Created
July 16, 2010 14:17
-
-
Save carlosjac/478420 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Initial setup for Ubuntu 10.04 (Slicehost) | |
# | |
# Author : Carlos Jacobs | |
# Date : 16 Jul 2010 | |
# | |
# change root password | |
passwd | |
# create wheel group | |
/usr/sbin/groupadd wheel | |
# add wheel group to suoders | |
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers | |
# fix problem with backspace | |
echo "set rebinddelete" >> /etc/nanorc | |
# add user for remote access | |
/usr/sbin/adduser remoto | |
/usr/sbin/usermod -a -G wheel remoto | |
# config sshd | |
wget http://gist.github.com/raw/478404/736863bacd12bcc46a1bbf24a4e240212dd7b46c/sshconfig | |
mv sshconfig /etc/ssh/sshd_config | |
# config iptables | |
wget http://gist.github.com/raw/478410/8f0951a98c48c8fc449e50511ce79ed468b95ea5/iptablesconfig | |
mv iptablesconfig /etc/iptables.up.rules | |
/sbin/iptables-restore < /etc/iptables.up.rules | |
wget http://gist.github.com/raw/478412/c1a1ebe10fb9c9d4fe4c9f28c217b5d101b857f9/iptablesinit | |
mv iptablesinit /etc/network/if-pre-up.d/iptables | |
chmod +x /etc/network/if-pre-up.d/iptables | |
# reload sshd | |
/etc/init.d/ssh reload | |
# set locale | |
aptitude update | |
aptitude install locales | |
/usr/sbin/locale-gen es_AR.UTF-8 | |
/usr/sbin/update-locale LANG=es_AR.UTF-8 | |
# update server | |
aptitude update | |
aptitude safe-upgrade | |
# install base software | |
aptitude install build-essential | |
aptitude install mc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment