Slackware Linux Post-installation

assuming network configuration is done

env,

cp -pi /etc/profile /etc/profile.dist
vi /etc/profile

SYSTEM-WIDE PATH,

PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/etc/rc.d:$HOME/bin:/usr/lib64/bcc:/usr/games"

and remove the user-specific part.

G
alias ll='ls -alhF'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'

source /etc/profile

log,

cd ~/
echo 'tail -n0 -F /var/log/*' > log
chmod +x log
./log

secure ssh for group wheel and reload,

/etc/rc.d/rc.sshd restart

are you clean?

netstat -lntup

Miscellaneous

indexing,

updatedb

fixing defaults for git,

git config --global core.pager "less -r"
#git config --global --replace-all core.pager more
echo $USER@$HOST
git config user.name "$USER"
git config user.email "$HOST"

doing some hardware checking,

grep '^model name' /proc/cpuinfo | uniq
grep ^proc /proc/cpuinfo
free -m
hdparm -I /dev/sda | grep 'Sector size'
hdparm -Tt /dev/sda | tee -a /var/tmp/hdparm.sda
#hdparm -Tt /dev/xvda | tee -a /var/tmp/hdparm.xvda
#hdparm -Tt /dev/xvda1 | tee -a /var/tmp/hdparm.xvda1

Packages & Upgrade

mv -i /etc/slackpkg/mirrors /etc/slackpkg/mirrors.dist
echo 'http://mirrors.phx.ms/slackware/slackware64-14.2/' > /etc/slackpkg/mirrors
echo 'file:///tftpboot/slackware142/' > /etc/slackpkg/mirrors

slackpkg update
slackpkg search htop
slackpkg search screen
slackpkg upgrade-all

(K)eep the old files and consider .new files later

updatedb
locate \.new | grep new$

ksh
for f in `locate \.new | grep new$`; do
    diff -bu ${f%\.new} $f
done; unset f
^D

mv /etc/ca-certificates.conf.new /etc/ca-certificates.conf
update-ca-certificates

Third-parity Binaries

cd ~/
#https://github.com/zuno/slackpkgplus
#http://slakfinder.org/slackpkg+/pkg/
#https://slackonly.com/readme.html
wget http://slakfinder.org/slackpkg+/pkg/slackpkg+-1.7.0-noarch-10mt.txz
installpkg --terse slackpkg+-1.7.0-noarch-10mt.txz
cd /etc/slackpkg/
cp -pi slackpkgplus.conf slackpkgplus.conf.dist
vi slackpkgplus.conf

REPOPLUS=( slackpkgplus slackonly )
MIRRORPLUS['slackonly']=http://packages.slackonly.com/pub/packages/14.2-x86_64/

diff -bu slackpkgplus.conf.dist slackpkgplus.conf     

slackpkg update gpg
slackpkg update

System Tuning

cat /etc/rc.d/rc.local_shutdown
cat > /etc/rc.d/rc.local_shutdown <<-EOF
#!/bin/bash
#nothing here yet
EOF
chmod +x /etc/rc.d/rc.local_shutdown

The two rc.local scripts are executable by default

ll /etc/rc.d/rc.local /etc/rc.local
ll /etc/rc.d/rc.local_shutdown /etc/rc.local_shutdown

ln -s rc.d/rc.local /etc/rc.local
ln -s rc.d/rc.local_shutdown /etc/rc.local_shutdown

cd /etc/rc.d/
find . -executable -type f
chmod -x rc.wireless rc.bluetooth rc.fuse rc.inetd

Note. keeping rc.udev because without it, I get this error when trying to SSH,

PTY allocation request failed on channel 0

Eventually make linux fast again, whatever boot-loader you are using

noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off
#ipv6.disable=1

and check after reboot

cat /proc/cmdline

BSD Wannabe

KSH

either loose the too-many BASH features

mkdir ~/.trash/
mv /etc/profile.d/modules.* ~/.trash/

or switch to KSH

vi /etc/profile

export ENV=/etc/shrc

further tune KSH and make it the default shell

chsh -s /bin/ksh root
useradd -D -s /bin/ksh

NVI

#/usr/sbin/slackpkg install db48 nvi
#ln -sf nvi /usr/bin/vi

Resources

Package Finder http://slakfinder.org/

packages.slackware.com https://packages.slackware.com/


Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml