chmod 700 ~
echo "Paste your public ssh rsa key (cat ~/.ssh/id_rsa.pub) here"
mkdir ~/.ssh
vim ~/.ssh/authorized_keys
apt-get update
apt-get upgrade
apt-get install mc zip unzip bzip2 nmap smbclient sshfs
echo -n "SSH RSA key fingerprint: " >> /etc/motd
ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub >> /etc/motd
echo Now edit /etc/motd
read
vim /etc/motd
# profile
echo "alias ls='ls --color'" >> /etc/profile
echo "alias ll='ls -al'" >> /etc/profile
echo >> /etc/profile
echo 'if [ "$PS1" ]; then' >> /etc/profile
echo ' if [ "$BASH" ]; then' >> /etc/profile
echo ' if [ "`id -u`" -eq 0 ]; then' >> /etc/profile
echo " PS1='\[\033[01;31m\]\u@\h \[\033[01;30m\]\W \$ \[\033[00m\]'" >> /etc/profile
echo ' else' >> /etc/profile
echo " PS1='\[\033[01;34m\]\u@\h \[\033[01;30m\]\W \$ \[\033[00m\]'" >> /etc/profile
echo ' fi' >> /etc/profile
echo ' fi' >> /etc/profile
echo " PROMPT_COMMAND='echo -ne \"\033]0;${USER}@${HOSTNAME}: ${PWD}\007\"'" >> /etc/profile
echo 'fi' >> /etc/profile
echo Now edit /etc/profile
read
vim /etc/profile
source /etc/profile
# GPG
echo "setting up gnupg"
echo "keyserver x-hkp://pgp.mit.edu" >> ~/.gnupg/gpg.conf
gpg --search yourGPGkeyIDENTIFIER
# cron
echo "edit crontab, should look similar to:"
echo "# m h dom mon dow command"
echo "0 3 * * 7 backup"
echo "0 1 * * * access_rights"
echo "30 4 * * * update"
echo "Press enter when ready"
read
crontab -e