Skip to content

Instantly share code, notes, and snippets.

@benjaminhawkeslewis
Created September 7, 2011 08:51

Revisions

  1. benjaminhawkeslewis revised this gist Sep 21, 2011. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,9 @@ apt-get install fortune ack-grep
    # Update time hourly - useful for VMs that may be paused
    ln -s /usr/sbin/ntpdate-debian /etc/cron.hourly/

    # Latest weechat (0.3.6-dev)
    add-apt-repository ppa:nesthib/weechat && apt-get update && apt-get dist-upgrade && apt-get install weechat

    # Git config
    git config --global user.name "Benjamin Hawkes-Lewis"
    git config --global user.email "[email protected]"
  2. benjaminhawkeslewis created this gist Sep 7, 2011.
    80 changes: 80 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,80 @@
    # Some useful things
    apt-get install fortune ack-grep

    # Update time hourly - useful for VMs that may be paused
    ln -s /usr/sbin/ntpdate-debian /etc/cron.hourly/

    # Git config
    git config --global user.name "Benjamin Hawkes-Lewis"
    git config --global user.email "[email protected]"

    # Latest git (1.7.6)

    add-apt-repository ppa:git-core/ppa && apt-get update && apt-get dist-upgrade

    # Vim 7.3
    echo 'Package: *
    Pin: release a=ubuntu-backports-testers
    Pin-Priority: 300

    Package: vim*
    Pin: release a=ubuntu-backports-testers
    Pin-Priority: 500' > /etc/apt/preferences.d/ubuntu-backports-testers

    add-apt-repository ppa:ubuntu-backports-testers/ppa

    apt-get update && apt-get upgrade

    # Tmux trunk
    cd /usr/local/src
    svn co https://tmux.svn.sourceforge.net/svnroot/tmux/trunk tmux
    apt-get install libevent-dev libncurses5-dev
    cd tmux && sh autogen.sh && ./configure --prefix=/usr/local && make && make install

    # Common home
    mkdir -p ~/Projects && cd ~/Projects
    ssh-keygen -t rsa -C "[email protected]"
    # Login and add as public key (CTRL-Xe to invoke Vim as editor)
    # In Vim :r ~/.ssh/id_rsa.pub
    lynx -editor=vim -accept_all_cookies https://github.com/account/ssh
    PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install HTTP::Lite'
    git clone [email protected]:benjaminhawkeslewis/home.git
    cd ~/Projects/home
    git submodule init
    git submodule update
    ~/Projects/home/bin/home-symlinks


    # Node
    cd /usr/local/src
    git clone git://github.com/joyent/node.git
    cd node
    git checkout v0.4.10 # Stable tag
    ./configure --prefix=/usr/local && make && make install

    # NPM
    curl http://npmjs.org/install.sh | sh

    # Soda
    npm install soda

    # Local selenium
    apt-get install xvfb firefox # Headless Firefox
    apt-get install sun-java6-jre sun-java6-bin # or some other java
    mkdir -p /usr/local/share/java
    cd /usr/local/share/java
    wget https://selenium.googlecode.com/files/selenium-server-standalone-2.5.0.jar

    # Start with…
    xvfb-run java -jar selenium-server-standalone-2.5.0.jar

    # Additional browsers
    apt-get install chromium-browser

    # http://domino.symetrikdesign.com/2011/03/23/installing-opera-11-on-ubuntu-10-04/
    apt-add-repository 'deb http://deb.opera.com/opera/ stable non-free'
    wget -qO - http://deb.opera.com/archive.key | sudo apt-key add -
    apt-get update && apt-get install opera