Installing OpenIndiana
OpenIndiana is a general purpose Illumos distribution (the open source successor to OpenSolaris). It had one of the fiddliest installations of any OS I came across so far, even other Illumos distros.
- The images it provides are seperated by DVD and USB images. This is not just a suggestion. A USB drive created with the ISO will not work (because the right drivers are missing)
- If you are using the USB images you basically have to image the drive from a system that has
dd, all the other options I tried failed to create a viable USB drive to boot from. No Rufus, no Win32DiskImager (even though that one should work according to the documentation).
In effect I wasn't able to create a boot medium on my Windows machine at all and had to (horrors of horrors!) get up and go to the other room to do it on a Linux machine.
tags: unix, illumos, openindiana
ninpath and the Usenet Top1000
So the Usenet Top1000 are a rather old institution. It's a list of the top #Usenet servers, as measured by the amount of times a specific server shows up in the inpath line of the servers that take part.
The inpath line can be seen in any source of a #NNTP post, it shows which path the message took to get from it's origin to the server you got it from.
A typical path line for example might look like this:
Path: wilderland.ovh!ereborbbs.duckdns.org!grenzland.club!.POSTED.localhost!not-for-mail
The lefter-most part is my own server running on wilderland.ovh. That's where I got this fromn. The righter-most part is where it came from. The POSTED and not-for-mail entries are just from how it was posted.
In this case this was the regular bulletin lkh posts on the grenzland.club newsgroup. The exclamation marks signify the path it has taken.
In this case it was posted first to the server grenzland.club (the server this post is on as well), then it was transferred to ereborbbs.duckdns.org (a local box I have running in my living room), and then it arrived at wilderland.ovh (my general nntp server).
This is a rather simple example, as our servers are connected directly with one another. These lines can get looooong.
The way the inpath, or rather ninpath (for 'new inpath'), utility works is that it checks the path of any messages that come through, collects all the mentioned servers in the paths, and then sends it to the anthologeek.net so that page can calculate the statistics.
And to show how far the Usenet has fallen, our not very busy network of INN2 servers manage to end in the top 400 with every single machine.
201 0.065838 ereborbbs.duckdns.org
202 0.065204 wilderland.ovh
...
349 0.000658 grenzland.club
...
355 0.000599 campaignwiki.org
tags: usenet, grenzland.club, newsnet
bloody groups godamnit
Spent way too much time trying to get a systemd service running on grenzland.club.
Specifically for our Grenzland Mud
I don't think I will ever become friends with that software, but in this case it turned out to be not actually a systemd problem as such. But the usual vacuous journal entries didn't help either.
Seems I was running it with the wrong group the whole time. The result was that I could run the application manually without issues, and was able to access it via telnet, but when run via systemd it just did not want to give me access.
In the end I changed the group it was running as to the one other group the user had, and lo! it worked.
Could have spent that time with something more productive.
Just so I remember it, this was the unit file
[Unit]
Description=Script Daemon For Grenzland MUD
[Service]
Type=simple
User=username
Group=users
ExecStart=/home/username/application/autorun.pl
Restart=on-failure
StandardOutput=file:%h/log_file
[Install]
WantedBy=default.target
The user had exactly two groups. username and users.
pkgsrc on a LFS system
Sometimes when dealing with Linux/Unix software there comes a moment when you find wonderfully detailed documentation, written by someone who knows everything about the subject by heart, and therefore doesn't bother explaining some of the most basic things about the software in question.
I felt like that when installing pkgsrc on my Linux from Scratch system.
pkgsrc is the package manager for NetBSD, but it also is highly portable to other unix-likes. Largely because what it primarily does is to get the source files of software, and then compile it. Which means unlike other package managers you don't use premade binaries, but instead everything gets build on your system. Which is what I want if I am installing on a Linux from Scratch system. The point of LFS is after all that you build everything for your own machine. Ok, the point is also that you learn how to do all this. But there comes a point when having a package manager is useful indeed.
Anyway. pkgsrc obviously expects you to know what it's talking about, and so it tells you with no irony that you should download the source tree via CVS, although Git is also mentioned as an option. It doesn't mention the address of the git repository. I fruitlessly searched for it for a while, until someone pointed out a github mirror of the CVS repository to me. I should have known, but I expected it to be an address local to the NetBSD site.
Anyway. Before finding the git repository I tried to install CVS unsuccessfully. CVS is a rather ancient versioning system (meaning it's a few years younger than me, but in IT times it's from the equivalent of the Createceous). It can be had on it's website in it's last release as well. One from 2008. It turns out, while currently BLFS (Beyond Linux from Scratch) doesn't mention this piece of software at all, it was supported up to BLFS 7.7. I guess the lack of interest in the times of git got it removed. I fruitlessly tried to use the 7.7 instructions to install it, only to run against library issues. This wouldn't be an issue if I was using a distro with binary packages most likely, as those come pre-compiled.
But then I got the git link anyway, so that became a moot point.
Installation is in fact rather simple, but also curiously full of holes in all the explanations. I had to find multiple documents that loved to go into weird edge cases, to realize the only thing I needed to do after downloading the tar.gz was
cd pkgsrc/bootstrap
./bootstrap --make-jobs=1
./cleanup
That --make-jobs option wasn't really explained anywhere either, but my first few attempts failed because one application refused to compile in parallel processes.
By default the programs compiled get installed into /usr/pkg/bin/sbin, the man pages into /usr/pkg/man. I had to set the paths for that as well.
There actually is another question about the way it all installs: I wanted to use this as a package management system, being able to update and supplement all the software I installed beforehand. But the way it works with separate bin folders this creates a seperate infrastructure instead. This COULD be changed as well (one can set different prefixes and directories during bootstrap), but for now this works. I was told this is preferable in case one messes up the whole source tree. But how often does that happen?
So wait, how do you actually install stuff with it?
First you might have to change /usr/pkg/etc/mk.conf (or wherever mk.conf is)
Well, the pkgsrc directory we installed earlier is also full of build recipes for all the apps netbsd has to offer. Which means basically all the common and free software you usually get.
Go to /usr/pkgsrc and you see multiple categories. Enter any of the categories and there will be multiple applications.
Then just go to any of those applications and type bmake install, and it will start compiling and install.
tags: pkgsrc, lfs, netbsd, linux
pinky and finger
I was futzing around with the veritable finger here on Grenzland.
Yes yes, lots of jokes about fingering people. I feel this would have had a different name if the creator had gotten laid a bit more often. Or maybe that is WHY it's called that way in the first place.
The official story is that it was a program that did what people used their finger for on terminal screens: they were going down a list of the last logins to see when a specific user last logged onto the mainframe.
finger was supposed to be the electronic equivalent, allowing you a quick access to that and a few other bits of basic information (like name, phone number, and .plan, which was undefined enough it soon became an early form of social media).
Oh, right, and to finger someone also can mean to blame someone, or to rat someone out.
I guess that also makes sense. You could figure out who was the culprit of a security breach by getting the last logon time.
Anyway. It seems the developers of the GNU Coreutils did in fact think about the sexual connotations, and the implementation of the program contained in the package is called... pinky.
...
You know, it's a lightweight finger.
... yeah...
Anyway, I was getting frustrated with the BSD finger that gets installed when you ask Debian for finger, so I looked for ways to make the logon history actually show up as correct (it kept claming I never logged on to the system before when I was the one asking it for any finger information). Turns out I needed to install the fingerd daemon to manage that.
But in between I found pinky as a replacement. That is, sort of. It shows most of the finger information I wanted. The one thing it didn't show? The last login information, which was the thing the whole program supposedly was invented for.
runit on LFS
The last few weeks I have been going through the Linux from Scratch 12.4 book, the System V version of that. I only realized later that they discontinued the development of that earlier this year, meaning going forward the future versions will be systemd based. Which I find a bit of a pity, because I wanted to learn specifically, how Unix actually works, and what you need for it, without the endless complexities of systemd. I still remember systemd being introduced everywhere just after I got into Linux, and I just had gotten used to dealing with the normal Linux init process. And then this giant mess of complexity was dropped into my lap and I had to throw out all the knowledge I gained before. I was not happy. Over time I got used to working with systemd, but it still feels way more cumbersome and intrusive than I'd like. So anyway, many systems nowadays are using runit as an init instead. Ok, many systems nowadays are running with busybox as well, and that one has an inbuilt version of runit. But after I was finished with the original LFS book, and partway through BLFS (Beyond Linux from Scratch), I decided to deal with the init system.
It turns out this is easier to replace than I thought. Runit can be had on the author's website: [https://smarden.org/runit/]
runit should go into /sbin
runsvdir, runsv, chpst, svlogd, and sv should be moved to /usr/bin
runsvchdir and utmpset to /usr/sbin
The man pages in the man folder to /usr/share/man/man8
But the tricky part with runit are the scripts needed for the system to start up in the first place. Luckily there are some scripts under [https://github.com/inthecloud247/runit-for-lfs/] which mostly work. It also has a very good INSTALL document that helps with installing runit.
The repo is over 12 years old now, but outside some basic stuff (udevadm is installed in /bin instead of /sbin now) they seem to be working fine
You might want to check the 1 script in the /etc/runit folder if everything is alright. This is basically your startup script that runs everything the system needs to boot.
btw, there is another runit for lfs repository around that looks all nice and professional, and which purports to have a whole runit environment to use, but the author admit to having vibe-coded it, and when I tried it it showed. As in, it didn't. Run at all I mean.
bashblog
An attempt at a blog on my grenzland.club tilde page. I am using bashblog for it, which is basically just a bash script that creates a whole blog out of posts on your command line interface. I am using nano to write this right now for example. If this works as it should there soon should be a shiny new blog under this address.