Download Ubuntu Server for amd64 http://www.ubuntu.com/download/server (on a Mac).
Plug in a USB flash drive.
Convert the .iso file to .img using the convert option of hdiutil e.g.,
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
Run
diskutil list
again and determine the device node assigned to your flash media (e.g. /dev/disk2
).
Run
diskutil unmountDisk /dev/diskN
(replace N with the disk number from the last command; in the previous example, N would be 2).
Execute
sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
There should be a Mac OS X Finder prompt, at which point you can eject.
References: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
Plug in the USB drive, and right after hitting the start button, hit the del
key to load up the firmware.
Select the USB key as the first two boot options.
Save & Exit firmware, to boot.
Install linux, and select entire hard drive with LVM
. Select 100%
of your drive to give it to use.
Select SSH server to install, which makes saving odd video driver issues easier to get to.
Let install finish, and reboot
Boot into recovery mode (you should have a 2 second chance to select this in grub2), and edit grub settings:
nano /etc/default/grub
(ctrl-o
and then ctrl-x
to save and quit)
Add nomodeset
to GRUB_CMDLINE_LINUX_DEFAULT=""
and GRUB_CMDLINE_LINUX=""
lines, e.g.
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
GRUB_CMDLINE_LINUX="nomodeset"
Then run update-grub
to tell grub to use these options.
update-grub
References: http://blog.jamesrhall.com/2014/05/update-grub-2-options.html http://blog.jamesrhall.com/2014/04/ubuntu-server-1404-fun.html http://serverfault.com/questions/546079/ubuntu-server-hanging-on-adding-swap
Edit GAI config (?): open /etc/gai.conf
nano /etc/gai.conf
change line ~54 to uncomment out the following:
precedence ::ffff:0:0/96 100
(ctrl-o
and then ctrl-x
to save and quit)
References: http://askubuntu.com/questions/574569/apt-get-stuck-at-0-connecting-to-us-archive-ubuntu-com
reboot or sudo reboot.
sudo nano /etc/network/interfaces
Add
auto wlan0
iface wlan0 inet dhcp
wpa-ssid <your_router>
wpa-psk <your_wpa_key>
Run
sudo ifup -v wlan0
Do the following:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install nvidia-331
sudo apt-get install xubuntu-desktop
Just search it in Firefox.