Skip to content

Instantly share code, notes, and snippets.

@simon-wenmouth
Last active December 15, 2015 18:59
Show Gist options
  • Save simon-wenmouth/5307400 to your computer and use it in GitHub Desktop.
Save simon-wenmouth/5307400 to your computer and use it in GitHub Desktop.
Ubuntu 12.04.2 x64 Install

Create Bootable USB Drive

  1. Download ISO
  2. Format USB Drive
    • diskpart
    • list disks
    • select disk n
    • clean
    • create partition primary
    • select partition 1
    • active
    • format fs=fat32 quick
    • assign letter=u
  3. Download unetbootin
  4. Use unetbootin to copy ISO to USB and setup bootloader
  5. Download md5summer
  6. Run MD5 verifications
  7. Fix errors
    • Rename file extensions from ".ude" to ".udev"
    • Correct files to end with "precise1_amd64" where they are truncated
    • Remove the missing files from the md5list (install\netboot)

Ready to go.

Install

I used the default LVM layout.

Post Install

Networking

  1. Update /etc/networking/interfaces setting eth0 to be a static address
  2. Update /etc/resolv.conf adding nameserver and domain entries.

Example

auto eth0 iface eth0 inet static address 10.1.1.75 netmask 255.255.255.0 network 10.1.1.0 gateway 10.1.1.254 dns-search firstlook.biz dns-search 10.1.1.41 10.4.254.41

Updates

  1. sudo apt-get update
  2. sudo apt-get upgrade

Build Essential

  1. sudo apt-get install build-essential linux-headers-uname -r

Nvidia Drivers

  1. sudo apt-get install python-software-properties
  2. sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
  3. sudo apt-get update
  4. sudo apt-get install nvidia-current

Xfce

  1. sudo apt-get install xubuntu-desktop
  2. sudo reboot

This should boot you into GDM (graphical boot manager).

Install Updates

Just like Windows apt-get did not install all the updates.

  1. sudo apt-get update
  2. sudo apt-get upgrade

Software Development

  1. sudo apt-get install git-core
  2. sudo apt-get install vim-nox vim-gtk
  3. sudo apt-get install libnss3-1d
  4. download latest chrome dpkg
  5. sudo dpkg -i downloaded.dpkg
  6. sudo update-alternatives –config x-www-browser
  7. in the ui settings -> preferred applications -> google-chrome
  8. start web browser and accept "make default browser"

Ruby / RVM

  1. sudo ls
    • this is to cache your sudo credentials
  2. curl -L https://get.rvm.io | sudo bash -s stable
  3. usermod -a -G rvm simon

Log out and back in (for group change to take effect).

  1. rvm requirements
  2. manually apt-get install the packages printed by the prior step

Virtual Box

4.1.12 (broken)

  1. sudo apt-get install virtualbox
  2. sudo apt-get install virtualbox-ose-dkms
  3. sudo apt-get install virtualbox-ose-guest-utils virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms

This causes an error as a symbol is no longer public in the Linux kernel. Locate all instances of the file

memobj-r0drv-linux.c

and apply the #ifdef's from this file around the calls to do_mmap from this file

https://www.virtualbox.org/attachment/ticket/10709/memobj-r0drv-linux.c
  1. sudo dpkg-reconfigure virtualbox-dkms
  2. sudo dpkg-reconfigure virtualbox
  3. sudo modprobe vboxdrv

Now we get another error. There is another symbol that is no longer exported.

We need to apply this patch too (lines 245 and 272-274 of all copies of "the-linux-kernel.h" get changed)

https://www.virtualbox.org/changeset/41660/vbox

I actually found it easier to download and splat memobj-r0drv-linux.c rather than hand make the edits.

4.2.0

Go to the virtualbox web site and download their deb package as well as the client extensions. Install virtualbox and add the extensions using file > preferences > extensions > add package. You will need to sudo to root and setup a password for this to work -- it is not using sudo to perform the install.

Add users to virtualbox users group

sudo usermod -a -G vboxusers simon

Vagrant

Head on over to vagrantup.com and download / install their package.

Music Clients

Spotify

Head over to the spotify preview site where there instructions on how to add their debian repository so the client can be retrieved with apt-get.

https://www.spotify.com/us/download/previews/

Pandora

Here there is a native Gnome program to consume pandora (since Adobe does not support Air on Linux anymore)

http://kevinmehall.net/p/pithos/

You will find the instructions for installation on the home page (add a ppa, apt-get update+install).

Windows Support

Install the program thusly:

sudo apt-get install rdesktop

Connect to a windows machine (from linux) with

rdesktop -u swenmouth -d firstlook -p - -f swenmouth03.firstlook.biz

Windows Autounattend

create floppy

  1. dd if=/dev/zero of=floppy.img bs=512 count=2880
  2. sudo losetup /dev/loop0 floppy.img
  3. sudo mkfs -t vfat /dev/loop0
  4. sudo mkdir /mnt/floppy
  5. sudo mount -t vfat /dev/loop0 /mnt/floppy
  6. sudo cp /srv/iso/en_windows_7_ultimate_with_sp1_x64_dvd_618240.xml /mnt/floppy/Autounattend.xml
  7. sudo umount /mnt/floppy
  8. sudo losetup -d /dev/loop0
  9. sudo mv floppy.img /srv/iso/en_windows_7_ultimate_with_sp1_x64_autounattend.img

boot virtualbox vm

attach floppy controller, and assign the floppy img file to the drive; boot with the windows iso attached to the cd drive.

this will perform an automated installation of windows.

yay.

Java (Damn You Oracle)

Go to the Oracle site and download the AMD64 tar.gz file.

  • tar zxf jdk-7u17-linux-x64.tar.gz
  • sudo mkdir /usr/lib/jvm
  • sudo mv jdk1.7.0_17 /usr/lib/jvm/
  • sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_17/bin/java" 1
  • sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_17/bin/javac" 1
  • sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_17/bin/javac" 1
  • cd /usr/bin
  • chmod a+x java javac javaws

In theory the update-alternatives and the chmod should apply for every file in the JDK bin folder.

Ruby and Gems And Stuff

  • rvm install 1.9.2
  • rvm use 1.9.2 --default
  • gem install bundler

Chef

as per

http://docs.opscode.com/install_workstation.html

do this

veewee

accept the installation of veewee dependencies at the RVM prompt.

  • bundle install

windows-fromscratch

  • git clone git://github.com/hh/windows-fromscratch.git
  • cd windows-fromscratch
  • bundle install
  • bundle exec bash

Vagrant / Windows

  • gem install em-winrm vagrant-windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment