12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #!/bin/sh
-
- apt-get -y install \
- build-essential \
- linux-headers-amd64 \
- iptables-persistent \
- gdm3 \
- vlc \
- firefox-esr \
- transmission \
- enlightenment \
- redsocks \
- tor \
- rsync \
- unbound \
- vim-tiny
-
- apt-get -y remove --purge nano
-
-
- mount /dev/cdrom /mnt && cd /mnt && ./VBoxLinuxAdditions.run
- cd -
- umount /mnt
-
- cd static && rsync -av . /
-
- echo net.ipv6.conf.all.disable_ipv6=1 >> /etc/sysctl.conf
- echo net.ipv6.conf.default.disable_ipv6=1 >> /etc/sysctl.conf
-
- for INSTUSER in `cd /home && ls -d *`
- do
- echo "Installing non-root setup for $INSTUSER"
- cp -R user/* /home/${INSTUSER}/
- chown -R ${INSTUSER}:${INSTUSER} /home/${INSTUSER}/
- echo "Disable bash_history for user ${INSTUSER}"
- rm -f /home/${INSTUSER}/.bash_history
- ln -s /dev/null /home/{$INSTUSER}/.bash_history
- done
-
- echo "Disable bash_history for root"
- rm -f /root/.bash_history
- ln -s /dev/null /root/.bash_history
-
- echo "Cleaning apt/pkg"
- apt-get clean
-
- echo "Cleaning syslog"
- /etc/init.d/rsyslog stop
- find /var/log -type f -print0 | xargs -0 rm
-
- echo "Time to reboot, setup will not work until you reboot"
- echo -n "Setup complete, press [Enter] to reboot (CTRL+C to reboot later)"
- read
-
- reboot
|