##

Sign in to your Linode as root

    {{USERNAME}}@localhost$ ssh root@{{IP4_ADDR}}

Set the Linode hostname

    root@linode$ echo "HOSTNAME={{HOSTNAME}}" >> /etc/sysconfig/network
    root@linode$ hostname {{HOSTNAME}}

Add the IP / hosts to `/etc/hosts`

    root@linode$ {{IP4_ADDR}} {{HOSTNAME}}.r34d.me {{HOSTNAME}}
    root@linode$ {{IP6_ADDR}} {{HOSTNAME}}.r34d.me {{HOSTNAME}}

Set the Linode's time zone. I like to use UTC since servers can be moved and accessed all over the world.

    root@linode$ ln -sf /usr/share/zoneinfo/UTC /etc/localtime

Run system updates

    root@linode$ yum update

Add EPEL and Remi repos to yum

    wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
    wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Install the latest version of git

    # Dependencies
    yum install gcc openssl-devel curl-devel expat-devel cpan gettext-devel
    cpan -i ExtUtils::MakeMaker

    wget --output-document=git.tar.gz https://github.com/git/git/archive/v2.0.x.tar.gz
    tar zxf git.tar.gz
    cd git-2.0.0

    NO_TCLTK=1 make prefix=/usr/local all
    make prefix=/usr/local install
    git --version

Allow `wheel` group to use `sudo`

    root@linode$ vim /etc/sudoers

  - Find and uncomment `# %wheel        ALL=(ALL)       ALL`

Add a user for yourself and give the user sudo access

    root@linode$ adduser -G wheel {{USERNAME}}
    root@linode$ passwd {{USERNAME}}

Return to your localhost

    root@linode$ exit

Copy your SSH keys to your linode

    {{USERNAME}}@localhost$ scp -r ssh-user-dir/ {{USERNAME}}@{{IP4_ADDR}}:~/.ssh
    {{USERNAME}}@{{HOSTNAME}}$ ssh {{USERNAME}}@{{IP4_ADDR}}
    {{USERNAME}}@{{HOSTNAME}}$ .ssh/setup

Disable root login

    {{USERNAME}}@{{HOSTNAME}}$ sudo vim /etc/ssh/sshd_config

  - Find

    #PermitRootLogin yes

  - Replace with

    PermitRootLogin no

    {{USERNAME}}@{{HOSTNAME}}$ sudo service sshd restart


Add initial documentation for Linode setup
Add initial documentation for Linode setup
