Update Apt and install a bunch of utilities I use a lot.
apt update
apt install vim net-tools neofetch mlocate curl rsync git cron postfix dnsutils
Add these lines to ~/.vimrc
set mousemodel=popup
syntax on
Add these lines to ~/.bash_profile. The first line clears the screen without affecting the buffer. The last line sets the title bar to your server name so in tabs you can see which server is in which tab quickly and clearly.
printf '\33[H\33[2J'
/usr/bin/neofetch
PROMPT_COMMAND="echo -ne \"\033]0;Server Name HERE \007\""
Edit the ~/.config/neofetch/config.conf comment out and uncomment info that you want or don’t want. For instance I am not interested in GPU, Resolution or Host. But I do like to have Disk and local IP
Add this line to ~/.bashrc
export SYSTEMD_EDITOR=vim
Kill off apparmor. Please note I do not recommend this for all servers, sometime figuring out why it won’t work is better. A judgement call is required.
systemctl stop apparmor
systemctl disable apparmor
apt remove apparmor
For any service that you want to log to syslog rather than faff with systemd journal
systemctl edit --full
For example for pdns
systemctl edit --full pdns
Look for the line ExecStart in the [service] section. Remove the –disable-syslog entry and save.
Providing you have installed rsyslogd you should now have a /var/log/syslog etc.
apt install rsyslog
More to come…. (Iptables, bash functions and scripts)
Leave a Reply