/op
ssh pi@10.{x}.{x}.{x}
apt-get install rpi-update && rpi-update
reboot
ssh pi@10.{x}.{x}.{x}
sudo su -
apt-get purge squeak-vm wolfram-engine
apt-get purge consolekit desktop-base* desktop-file-utils* gnome-icon-theme* gnome-themes-standard* hicolor-icon-theme* leafpad* lxde* lxde-core* midori* xserver-common* xserver-xorg* xserver-xorg-core* xserver-xorg-input-all* xserver-xorg-input-evdev* xserver-xorg-input-synaptics* xserver-xorg-video-fbdev* openbox obconf menu omxplayer
apt-get autoremove
apt-get update
apt-get dist-upgrade
echo "bcm2835_wdt" | sudo tee -a /etc/modules && modprobe bcm2835_wdt
apt-get install vim-nox dnsmasq htop iftop nmap exim4-daemon-light uptimed dnsutils wget curl ntpdate mc fail2ban logwatch apticron watchdog git locate figlet lsb-release
adduser benh
su - benh
mkdir .ssh
vi .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5r9mj5lsBX55o2Cdv/57v5cH4GOJoZyIwC21tAvPEhzHM8AjD4M6HzlVazGS1pPcC/zm1uXUH6OUTmnphuyTDYmW1YS11PAeB5FmntSwgBQjgorJeEcGsK1Bw9qHCN9kddu2PS6By90+ihydCBMetCC4uAXCxtyClSGGjKT2QRpg+iXpYWSPIeAyEVEvtQPxfrgQz0+ZyXPJD1rcmT1Gs++Xume9w7hw3Aon07ZExJDVH/VF3Ro6P/91+WdvlIxBFgIBSVzr3OTLfM4OzKdnl2XpbKhZsjiRahpat3eNaB99tqfPxyH9Ai/W7lv1crBLBeY4ftu14n0ep6qLiVs//Q== benh@tux
chmod go-r .ssh/authorized_keys
update-alternatives --config editor
usermod -a -G sudo benh
deluser pi sudo
visudo
#pi ALL=(ALL) NOPASSWD: ALL
vi /etc/inputrc
# alternate mappings for "page up" and "page down" to search the history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
vi .bashrc
vi /etc/hosts
#127.0.1.1 xyz.b9h.de
10.{x}.0.200 xyz.b9h.de xyz.localnet xyz
vi /etc/ssh/sshrc
echo -e "root: operator\noperator: [email protected]" >> /etc/aliases && newaliases
dpkg-reconfigure exim4-config vi /etc/exim4/passwd.client
vi /etc/crontab
MAILTO=operator
vi /etc/crontab
#scan for unwanted sshrc-files and delete them */5 * * * * root find /home -type f -name ".sshrc" -maxdepth 1 -print -exec rm {} \;
vi /etc/rc.local
#send mail notification echo -e "`hostname --fqdn`\n`date`\nsystem is running" | mail -s"`hostname --fqdn` - system is running" operator
vi /etc/mailname
b9h.de #remove the hostname
vi /etc/cron.daily/00logwatch
vi /etc/fstab
proc /proc proc defaults,hidepid=2 0 0
mkdir /etc/update-motd.d rm /etc/motd ln -s /var/run/motd /etc/motd vi /etc/update-motd.d/00-header vi /etc/update-motd.d/10-sysinfo echo -ne '#!/bin/sh\nuname -snrvm' > /etc/update-motd.d/10uname rm /etc/motd.tail && echo > /etc/motd.tail echo -ne '#!/bin/sh\n[ ! -f /etc/motd.tail ] && exit 0\ncat /etc/motd.tail' > /etc/update-motd.d/20tail chmod a+x /etc/update-motd.d/*