Initial VPS setup
- Add normal user account
- adduser <username>
- Generate ssh keys
- ssh-keygen
- Add other ssh keys to ~/.ssh/authorized_keys
- change permissions chmod go-rw authorized_keys
- Disable root login
- /etc/ssh/sshd_config
- PermitRootLogin no
- Add the bzr ppa to /etc/apt/sources.list
- #bzr
- deb http://ppa.launchpad.net/bzr/ubuntu hardy main
- deb-src http://ppa.launchpad.net/bzr/ubuntu hardy main
- In order to install the latest and greatest bzr 1.9 at the time of writing the updates repo needs to be added also.
- deb http://archive.ubuntu.com/ubuntu hardy-updates main
- Install bzr
- mkdir vc
- cd vc
- bzr init-repo bzr
- To give bzr a little more room to breath create another swapfile and activate it
- dd if=/dev/zero of=/swapfile bs=1024 count=196608
- mkswap /swapfile
- swapon /swapfile
- Add the following to the fstab file so that the swapfile will be available after a reboot
- /swapfile none swap sw 0 0
- Fix the locale problem (i386)
- apt-get install language-pack-en
- Edit the sudoers file by adding the following line
- <username> ALL=(ALL) ALL
Posted by Paddy
Posted by Paddy