Initial VPS setup

27 November, 2008

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


Hello world!

8 April, 2008

Hi everyone,

This is my first foray into the world of blogging, this site will probably just be used as a place to brain dump some of the things that I’m currently working on.

Feel free to look around and leave comments.

;)