CRUX post-install cheatsheet

The crux.nu website actually provides all the information you need in order to have your CRUX installation up and running. Especially useful reads are the handbook, the wiki and the prt-get manual together with prt-utils list for package management.

Here, I am going to outline a few steps to do immediately after install for my future reference.

Configure pkgmk:

nano /etc/pkgmk.conf

Enable the contrib ports collection:

cd /etc/ports
mv contrib.rsync.inactive contrib.rsync

Update the ports tree:

ports -u

Configure prt-get:

nano /etc/prt-get.conf

I enabled prtdir /usr/ports/contrib, and I also prefer to set runscripts yes, so I do not need to add the --install-scripts option when I install stuff.

Now it’s time for a full featured kernel. Configuring the kernel manually is a step that I really wish to avoid, so I grabbed a ready config file from Slackware-current and went with it. I do trust Patrick with his decisions about the kernel config. At the time I did the install, I had config-generic-5.12.14.x64, so I downloaded the kernel source from kernel.org, placed it in /usr/src and made sure to build my file system’s driver in the kernel.

Finally, create a normal user account (myuser):

useradd -m -s /bin/bash -c "Firstname Lastname" -g users -G disk,cdrom,audio,lp,video,wheel,scanner myuser

Consulting the man pages, options are as follows:
-m, --create-home | Create the user’s home directory if it does not exist.
-s, --shell SHELL | The name of the user’s login shell.
-c, --comment COMMENT | Currently used as the field for the user’s full name.
-g, --gid GROUP | Group name or ID for a new user’s initial group.
-G, --groups GROUP2,GROUPN | Supplementary groups which the user is also a member of.

Set password for myuser:

passwd myuser

Make myuser‘s home not readable by others (i think this is what Slackware’s adduser does?):

chmod 711 /home/myuser

I still do not feel comfortable enough to make a full system update, so that’s why I have not included this step among the first things to do after a fresh install. I used the unofficial updated install CD and the packages that needed to be updated were very few, so let’s leave it as is for now. Anyway, a system will need to be updated later on…

That’s it for now. I will write another post later about setting a full-blown Xfce desktop, as well as my own ports collection.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s