Friends
Thu, 28 Mar 2024
mbsd 8:55 AM - Unbound CVEs
There's two security vulnerabilities in the base system unbound.
We've updated unbound to 1.19.1 in 3.2 CURRENT and 1.19.3 in mports.
tags:
Tue, 19 Mar 2024
mbsd 2:37 PM - current focus
We're working on getting mports back in shape on 3.2-current. At the moment, work is underway on the devel/llvm15 port so we can update mesa
tags:
Sun, 4 Feb 2024
laffer1 4:44 PM - Updating a PS3 to a SSD
I've been working on migrating my PS3 to a WD red 500GB ssd from the original 80GB toshiba hard drive. The hardware part is easy. For the software, you have to download the PS3 update from Sony's playstation website and then put it on a USB flash drive on PS3/UPDATE/ with the file named as downloaded. It will pick it up and load. Then you do an initial setup and then start the restore process. (assumes you have a backup from old drive ahead of time)
It takes like an hour to backup and another hour to restore
tags:
mbsd 4:42 PM - perl removed from base
We're in the process of migrating to perl in mports from base. Perl went into midnightbsd many years ago (around 0.4 i think)Â
There are a few reasons for the change but here are a few:
-
Difficulty in updatingÂ
-
Delays between releases
-
Security fixes are easier
-
Less software requires Perl now than when we made the decision
The biggest downsides are with mports as a lot of it still uses Perl. We're working on that.
tags:
Fri, 12 Jan 2024
mbsd 1:47 PM - mport package manager issue on 3.1.3 release
It seems that mport install doesn't work sometimes and gives no output.
Workaround:
mport download pkgname
/usr/libexec/mport.install /var/db/mport/downloads/pkgfilename.mport
where pkgname is something like gmake and pkgfilename.mport is something like gmake-3.8.1.mport
tags:
mbsd 1:46 PM -
perl is not correctly setting enabling man pages if a system uses mandoc. It kind of guesses if nroff is present. This causes many perl ports to not build man pages. Fixed in stable/3.1
We're now forcing man1dir/man3dir and man1ext/man3ext settings in build (missed)
tags:
Thu, 11 Jan 2024
laffer1 6:05 PM - Setting up mandoc man.cgi on MidnightBSD
Mandoc (mdocml) includes a man.cgi(8) script to display man pages. Here's a quick and dirty explanation on how to set it up.
-
mport install mdocmlÂ
-
Files will be installed in /usr/local/www/mdocml/
-
Configure apache
-
Configure man directory
create a directory /man on your file system. This is the default path.Â
in it, create a file called manpath.conf
it should have a RELATIVE path for one or more directories (per line) that you want to index.Â
so /man/midnightbsd-3.1
copy the man1, man2, and so on folders from /usr/share/man for your release.Â
extract all of then with gunzip
run makewhatis -a . from the /man/midnightbsd-3.1 folder. This will create your mandoc.db file.Â
Apache config
<VirtualHost *:80>
    Protocols h2c http/1.1
    H2Direct on
    DocumentRoot /usr/local/www/mdocml/htdocs/
    ServerName man.midnightbsd.org
    ErrorLog /var/log/man.midnightbsd.org-error_log
    CustomLog /var/log/man.midnightbsd.org-access_log combinedio
    RedirectMatch ^/$ /cgi-bin/man.cgi
    <Directory /usr/local/www/mdocml/>
    DirectoryIndex man.cgi index.html
    Require all granted
   Â
    ScriptAlias /cgi-bin/ "/usr/local/www/mdocml/cgi-bin/"
    <Location "/cgi-bin/man.cgi">
    Options +ExecCGI
    SetHandler cgi-script
   Â
tags:
Tue, 9 Jan 2024
mbsd 1:51 PM - Project Status 2024
Here are our plans for 2024:
-
3.2 release - bug fix release with some base system third-party library updates. This is on track to be released in the next few months. TODO: decide if perl will migrate to ports. (likely)
-
4.0 work started - still planning what will be in this release Updating mesa and llvm ports (llvm 12 recently added)
-
Migrate from svn to git to magus indexer. (done today) Find ways to cut costs month to month. (spending roughly $300 a month on server/cloud plus on prem infra including business internet connection)
-
Determine what we want to do with portsnap. Love to know if you use it.
tags:
Sat, 6 Jan 2024
laffer1 7:13 PM - vm-bhyve quick start for MidnightBSD
1\. mport install vm-bhyve
2\. vm init
6\. cp /usr/local/share/examples/vm-bhyve/* /mountpoint/for/vm/.templates/
7\. vm switch create public
8\. vm switch add public em0
9\. vm iso https://midnightbsd.org/ftp/MidnightBSD/releases/amd64/ISO-IMAGES/3.1.3/MidnightBSD-3.1.3--amd64-disc1.iso
10\. vm create myguest
11\. vm install [-f] myguest MidnightBSD-3.1.3--amd64-disc1.iso
12\. vm console myguest
Here's an example template for midnightbsd.
loader="bhyveload"
cpu=3
memory=4096M
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
disk0_size="90"
tags:
laffer1 7:09 PM - HPE DL20 Gen9 Configuration issues with Linux
I had a lot of issues getting HPE DL20 gen9 server working with Linux today. It won't even boot with ubuntu server 23.10 or the LTS release. It would hang with constant resets on the SSA.Â
Disabling SSA and going to AHCI mode in the bios allowed me to boot debian 12 after a lot of trial and error.
tags:
laffer1 7:06 PM - Installing the docker ship for k8s
tags:
laffer1 7:05 PM - Initializing kubeadm with the cri socket for docker use
kubeadm init --pod-network-cidr=10.244.0.0/16 --cri-socket=unix:///var/run/cri-dockerd.sock
tags:
laffer1 7:03 PM - using metalink tools (CLI) to generate a metalink file
**Install metalink-tools package **
mport install metalink-tools
metalink -d md5 -d sha1 M*Â < mirror > 3.1.3-amd64.metalink
where mirror is a text file containing:
us 10 % https://archer.midnightbsd.org/ftp/releases/amd64/ISO-IMAGES/3.1.3/Â
us 10 % https://ns3.foolishgames.net/ftp/pub/MidnightBSD/releases/amd64/ISO-IMAGES/3.1.3/
us 20 % https://www.midnightbsd.org/ftp/MidnightBSD/releases/i386/ISO-IMAGES/3.1.3/
uk 10 % https://discovery.midnightbsd.org/releases/amd64/ISO-IMAGES/3.1.3/
jp 10 % https://pub.allbsd.org/MidnightBSD/releases/amd64/ISO-IMAGES/3.1.3/
tags:
laffer1 7:01 PM - k8s on debian 12 links
Install kubernetes cluster on debian 12
https://computingforgeeks.com/install-kubernetes-cluster-on-debian-12-bookworm/
install k8s on debian 11
https://www.node35.com/how-to-install-kubernetes-on-debian-11-bullseye/
tags:
laffer1 6:53 PM - Using HPE ILM v4
If you need to use HPE ILM v4 on a server, there is usually a sticker on the server with the default hostname and username/password combination. You can then hit that with a web browser to the standard port and login.
In the bios, you can also add users and set permissions for it.
tags:
laffer1 6:51 PM - HPE dl20 gen9 debian 12 software
If you need to install HPE management software in linux for the agent or ssa configuration, do the following
create a file in /etc/apt/sources.list.d/
deb http://downloads.linux.hpe.com/SDR/repo/mcp/debian/ bookworm/12.80 non-free non-free-firmware
for keys:
curl -fsSL https://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | gpg --dearmor -o /usr/share/keyrings/hpPublicKey2048.gpg
curl -fsSL https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | gpg --dearmor -o /usr/share/keyrings/hpePublicKey2048_key1.gpg
curl -fsSL https://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | gpg --dearmor -o /usr/share/keyrings/hpPublicKey2048_key1.gpg
For agent:
apt install amsd
For ILM (LOM)
apt install hponcfg
tags:
Thu, 26 Oct 2023
mbsd 3:56 PM - mports status
Packages for i386 and amd64 MidnightBSD 3.1 have been released this month. We're currently trying to fix a number of vulnerable mports with updates and also add support for PHP 8.3.
tags:
Tue, 24 Oct 2023
laffer1 12:10 AM - Tuning for search engine traffic
When you have a small site, the worst-case scenario is a spider indexing you that doesn't honor robots.txt. Yandex is particularly bad about this. Trying to tune for a large indexing operation becomes the bottleneck.Â
It's effectively the load test.
tags:
Fri, 15 Sep 2023
laffer1 4:17 PM - The problem with benchmarks
I frequently see folks arguing about CPUs to buy. Many want everyone to buy a 5600x or 12600k or some other variant that's last gen and cheap. The idea is that gamers don't need anything more so these should be the only choices for 99% of the world. Â
The problem with that is gaming and even more specifically, people who would build their own PC also are a very niche group also. If you think the most common workload should dictate all benchmarks, we'd only benchmark Microsoft Office apps and web browsers. That's what most people use a computer for right? Â
Don't be that guy who thinks his own use case is the only one that matters. Â
I care about compiler and lzma performance more than anything else when selecting a CPU. Other people need to make youtube videos, play games, work on AI/ML workloads, CAD, or other tasks. It's not universal. That's what is great about PCs and not so great about modern Macs.
tags: