SARPi Project - Slacking on a Raspberry Pi


Rebooting for the first time after installing Slackware Linux

It may take a minute or two when booting your Raspberry Pi for the first time after installing Slackware Linux. Don't worry, this is normal. The next time you (re)boot it will be quicker.

SARPi Project muse views ... You might find at this point that you cannot see the first few characters or word(s) of the text on your screen. On some displays, particularly LCD screens/monitors, just disabling overscan will make the picture fill the whole screen and correct the resolution. For other displays it may be necessary to leave overscan enabled and adjust the overscan values. If this is a problem for you, take a look at the Boot Config section where you can find out how to enable/disable overscan and configure settings.

Eventually you will be prompted to login. You should use the following credentials at this point:

login: root
password: ** the password you specified for the root user account **

Note that the hostname of your Linux system has now changed from 'slackware' to the name you gave in the HOSTNAME setting during setup. For the purpose of this tutorial, the hostname of our Slackware Linux system is 'iana'.

Check the system time/date before updating

After rebooting it's always a good idea to make sure the system time and date are accurate. Or else it will certainly produce errors and cause serious problems. Use the following command to verify the system clock:

root@iana:~# date

You should do this, as a 'good-practice' habit, each time you (re)boot the system. If the time is not set accurately use the 'date -s "DAY MONTH DATE hh:mm:ss YEAR"' or 'date MMDDhhmmYYYY.ss' command(s) the same as you did previously to achieve this. If you have an internet connection you can use the 'ntpdate' command like this:

root@iana:~# ntpdate 0.pool.ntp.org

Once you have set the correct date/time, or at least verified that the system clock is relatively accurate, it's the perfect time to add a normal user account.

Creating a normal user account - IMPORTANT!!!

The first thing you should do after (re)booting your Slackware Linux system and checking the system clock, before anything else, is to create a normal user account. You need to do this because you should never work as 'root' on your system unless you really need to. So for the purpose of every day use you should create a normal user account, of any name, and give it a password, and each time you log-in you should use this account and not 'root' user.

SARPi Project muse views ... You can break things very easily as the 'root' user and this is why it should never be used as a normal user account on any Linux system. Another reason is that after the system is updated with all the available new Slackware Linux packages, if openssh was one of those packages, and you chose to Overwrite your settings, you will not be able to log in as 'root' remotely (via ssh). As a security measure, remotely logging in as 'root' user is no longer permitted by default by the Slackware Linux operating system, as it's a security risk if your system is permanently connected to a network. In this event you need to login as your normal user and then use the 'su -' command to access the 'root' user to reconfigure your system settings.

Incidentally, the sarpi-hacks package (available from the SARPi Downloads section) enables root login and makes it possible, for initial installation and configuration/setup purposes.

To add a user account use the 'adduser' command followed by the username you want to assign it. We'll call our normal user 'dave' as an example. You add a new user like this:

root@iana:~# adduser <name>

Example: adduser dave

adduser

Go through the account creation setup and create a new user account, filling in any details you require for this user and setting a password. From now on, always use this username and password for logging in and only use 'root' when it's absolutely necessary.

Now all that's out of the way, let's move on to updating the system with the latest available Slackware Linux packages.

Keeping updated with slackpkg

To keep your Slackware Linux system totally up-to-date with the latest releases of available packages, there's a very useful package management tool called 'slackpkg' which is included as standard with every version of Slackware Linux.

For more details on slackpkg commands, options, and configuration, read the man pages:

root@iana:~# man slackpkg
root@iana:~# man slackpkg.conf

SARPi Project muse views ... Slackware Docs [slackpkg] and slackpkg.org websites are also worth referring to for further edification.

Configuring slackpkg

To get started, type 'slackpkg help' at the command prompt.

slackpkg

You may often see a message on your screen that slackpkg is asking you to edit a file containing a list of Slackware Linux mirrors. This can happen after an update where the mirrors file has been overwritten by a newer one. This file can be edited easily using 'nano', a simple text-editor included with Slackware Linux. Type the following command to edit the slackpkg mirrors file:

root@iana:~# nano -w /etc/slackpkg/mirrors

Scroll down the file until you see the following section:

slackpkg

You are required to edit/unhash/uncomment one of the lines (and ONLY one line) which is an address of a Slackware Linux mirror repository. We selected 'https://slackware.uk/slackwarearm/slackwareaarch64-current/' because that's the Slackware Linux operating system version we've installed. You should use a mirror for the version which you have installed - i.e. Slackware ARM 15.0 or Slackware AArch64 current. Or specify your own Slackware Linux mirror repository location if it's on your local network or elsewhere on the Internet.

slackpkg

Notice in the screenshot above we have removed the '#' from the beginning of only ONE line that is the FTP server address for a Slackware AArch64 current mirror. If you've have installed Slackware ARM 15.0 then select an appropriate mirror (i.e. not AArch64). This is what 'slackpkg' requires in order to download/install any package updates.

SARPi Project muse views ... IMPORTANT! DON'T select the wrong Slackware Linux mirror for the operating system version you have installed or you will end up with a broken/corrupt system if the wrong packages are installed!

Once you have correctly edited the slackpkg mirrors file, you need to save and exit that file. Do this by pressing and holding the key and pressing the key once. You will be asked to 'Save modified buffer?' at which point you just press the key followed by the key to save the file under the same filename.

Updating slackpkg GPG key

The first time you run slackpkg you should update Slackware's GPG key. You can achieve this with the following command:

root@iana:~# slackpkg update gpg

SARPi Project muse views ... Slackware's GPG key doesn't change. This should be a one time only command. So, once you've ran it, you can basically forget about it.

slackpkg update

To download the latest package lists from a Slackware Linux mirror type the following on the command line:

root@iana:~# slackpkg update

The results of running this command should be something similar to the following:

slackpkg

slackpkg install-new

If you have installed Slackware AArch64 current then you are strongly advised to run the following slackpkg command before upgrading any existing packages:

root@iana:~# slackpkg install-new

SARPi Project muse views ... NB: Slackware AArch64 current users should run 'slackpkg install-new' right after running 'slackpkg update'.

The list of new packages are always selected by default. If you have a large list of new packages and you would rather have them all initially deselected, use the '-onoff=off' command option. Like this:

root@iana:~# slackpkg -onoff=off install-new

You should be presented with a list of new packages which are available to install. As shown in this example screenshot:

slackpkg

You have total control over which new packages you wish to install or omit. Navigate through the list of available new packages using the and cursor keys (these will be installed if they have a '*' at the side of them) and select/deselect using the spacebar. When you have chosen the packages you wish to install press the key, making sure < OK > is highlighted at the bottom. You can switch between < OK > and <Cancel> using the and cursor keys. This will install any selected [*] new packages that have been added to the official Slackware package set.

slackpkg upgrade-all

Next you need to tell slackpkg to upgrade any and all of your existing packages if updates exist. This is the "good" way to upgrade the entire system. Do this by typing the following at the command prompt:

root@iana:~# slackpkg upgrade-all

If there are no available new packages to be installed you will receive a message similar to the following:

slackpkg

If any updated packages are available you should see a screen similar to the one below. Use this now familar method, the same way in which you have done previously, for selecting/deselecting upgraded packages. This will upgrade any currently installed packages that have been selected. When a package upgrade is highlighted in this list the name of the currently installed version appears at the bottom of the screen. So you can see which package version you currently have installed and which version you'll be upgrading to.

slackpkg

The packages you have selected will be upgraded, one after another if you've selected more than one, until all selected updates have been installed.

slackpkg

In our example '.new' configuration files have been found in the packages we've just installed. When there are '.new' files found you will be prompted to Keep, Overwrite, or Remove, them altogether, or Prompt to Keep/Overwrite/Remove for each individual file. If/when '.new' configuration files are available you may want to review any changes before allowing them. So, Prompt would be the best option for you. Or you can choose to keep all your existing configuration settings and Remove any '.new' files. Or you can choose to Keep all your current configuration settings and review/update any '.new' files at a later date. The example above shows we have chosen to Overwrite our existing system configuration settings with '.new' files. In our case it's safe to do so because we haven't done any customising of the system, or changed any of the default settings. You may choose the same option but, if you have modified/customised the system configuration in any way you may want to select another option here.

SARPi Project muse views ... IMPORTANT! If you have not made any changes to your system configuration then choosing to Overwrite any existing configuration settings with '.new' files is quite safe. Alternatively, if you have made any changes to your system configuration files, be aware that your custom settings may revert back to their defaults when Overwrite is selected!

When slackpkg has finished updating, your Slackware Arm Linux system should now be fully up-to-date with the latest available packages. You can run slackpkg anytime from the command prompt (as 'root' user) and install any new packages as and when they become available. If any errors occured you will be shown an error log at the end of the process.

slackpkg

Although 'slackpkg' is one way of updating and installing Slackware Linux operating system packages, it can also be done individually and manually on the command line using 'pkgtool' (Package Management Tools).

The 'slackpkg' tool is very reliable and well supported by Slackware Linux, Inc. However, on the Raspberry Pi computers there is another tool available, for updating the kernel and firmware, maintained by Raspberry Pi Ltd. As you'll see in the next section... rpi-update

Back to Top


Updated: 2024-03-05 17:06:19 UTC

Disclaimer: The SARPi Project website is for non-commercial and general information purposes only. The content is provided by Penthux.NET and while we endeavour to keep information up to date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or any information, software, products, services, or related graphics which is available on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk. In no event will Penthux.NET be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website or any of its contents. Through this website you are able to visit other websites which are not under our control. Penthux.NET has no influence over the nature, content or availability of any external URLs. The inclusion of any URLs does not necessarily imply a recommendation or endorsement of any content therein. Every effort is made to ensure the SARPi Project website remains accessible. However, Penthux.NET takes no responsibility for, and will not be liable for, the SARPi Project website being temporarily unavailable due to technical issues beyond our control. SARPi Project is in no way affiliated with Slackware Linux, Inc, or the Linux Foundation, or Raspberry Pi Ltd., or any of their respective members, trustees, partners, or associates.


Accept!

SARPi Project uses cookies for website traffic data analytics purposes only. Cookies from this website do not collect or store any of your personal data.

Please read the SARPi Project website [ Cookie Policy ] for more details.