Install as dual-boot on Macbook¶ ↑
-
www.howtogeek.com/187410/how-to-install-and-dual-boot-linux-on-a-mac/
-
help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation
Keep notes of steps taken by the old fashioned way on paper…last done at BSC initial meeting…
OSX cmds:
$ diskutil list
Process details¶ ↑
/dev/sda3 ext3 /boot 256MB (128 MB wasn't enough for the upgrade to Xenial Xerus) /dev/sda4 swap 512MB /dev/sda5 ext3 / 10GB
-
Boot loader installation: /dev/sda
-
Ignore error re no “Reserved BIOS area” (due to having EFI boot area already for OSX)
-
-
Software Updater (“Ask me later” re Upgrade) -> software up-to-date -> Upgrade
-
The ROS computer vision stuff must have installed an apt pkg that prevented upgrade…
-
-
Timings:
-
Install = about 30mins
-
Update = 40mins
-
Upgrade = 3hrs
-
Create bootable Ubuntu USB disk on Macbook¶ ↑
askubuntu.com/questions/86/how-do-i-create-an-ubuntu-live-usb-using-a-mac
$ cd ~/Downloads $ hdiutil convert -format UDRW ubuntu-16.04.1-desktop-amd64.iso -o ubuntu-16.04.1-desktop-amd64.img $ diskutil list $ mv ubuntu-16.04.1-desktop-amd64.img.dmg ubuntu-16.04.1-desktop-amd64.img $ diskutil unmountDisk /dev/disk1 $ sudo dd if=./ubuntu-16.04.1-desktop-amd64.img of=/dev/disk1 bs=1m dd: /dev/disk1: end of device 65+0 records in 64+1 records out 67112960 bytes transferred
-
The new SanDisk Cruzer Blade USB stick was sold knowing it was faulty and supplier blamed manufacturer…ffs…!!!
Copy bootable Ubuntu image onto disk¶ ↑
$ diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *160.0 GB disk0 1: EFI 209.7 MB disk0s1 2: Apple_HFS Fireweed 139.5 GB disk0s2 3: Microsoft Basic Data 133.2 MB disk0s3 4: Microsoft Basic Data 18.0 GB disk0s4 $ sudo dd if=./ubuntu-16.04.1-desktop-amd64.img of=/dev/disk0s4 bs=1m 1443+1 records in 1443+1 records out 1513308160 bytes transferred in 239.184227 secs (6326956 bytes/sec)
-
Still not work so buy a Canonical Ubuntu USB boot stick
u0 - Ubuntu overview¶ ↑
Built on Debain 'hence apt and dpkg'
Pkg list¶ ↑
$ apt –installed list
$ apt search xdotool
-
$ apt-cache search xdotool
$ dpkg -l
-
$ dpkg -L vim
packages.ubuntu.com/trusty/i386/vim/filelist
$ cd /etc/alternatives ; ls -l `which vim` lrwxrwxrwx 1 root root 21 May 18 14:43 /usr/bin/vim -> /etc/alternatives/vim $ ls -l vim lrwxrwxrwx 1 root root 18 May 18 14:43 vim -> /usr/bin/vim.basic /etc/alternatives/README
u1 - Keyboard mapping¶ ↑
$ sudo apt-get install keyboard-configuration $ sudo dpkg-reconfigure keyboard-configuration -> MacBook / MacBookPro (Intl) -> AltGrp = R Alt -> defaults
u2 - Get Macbook wireless working:¶ ↑
$ sudo apt-get update $ sudo apt-get install firmware-b43-installer Reboot
u3 - Additional packages via Ubuntu Software Centre¶ ↑
-
System-Vi IMproved
-
dwww
$ sudo a2enmod cgi $ sudo service apache2 restart $ dwww vim-doc
-
chrome
Needed since Channel4od didn't support flash version for Linux (whereas BBC iPlayer does!)
support.google.com/chrome/answer/7026064?hl=en&rd=1
(Still not work on MacBook 5.1 but can use OSX Firefox…)
-
qtcreator
Help files not work from link in Welcome page (bugs.launchpad.net/ubuntu/+bug/1356515)
Open Qt Creator > Tools > Options > Help > Documentation > Add > /usr/share/qtcreator/doc/ choose qtcreator.qch
u4 - 16.04 (Xenial Xerus) Ubuntu software ¶ ↑
(en.wikipedia.org/wiki/GNOME_Software)
-
Installed ViM
~/.vimrc
set nocompatible set backspace=2
-
Ubuntu SDK IDE
developer.ubuntu.com/en/phone/platform/sdk/installing-the-sdk/
-
DVD codecs
$ sudo apt-get install libdvd-pkg $ sudo dpkg-reconfigure libdvd-pkg
-
Pip upgrade (when 'pip install –upgrade pip' not work with apt installed pkg)
$ sudo easy_install -U pip
(Prob 'sudo pip install …' would have worked)
u5 - Additional packages via apt¶ ↑
-
Temperature sensors
$ sudo apt-get install hardinfo
This also installs 'sensors' $ sudo sensors-detect Return to accept each default answer $ sensors
u6 - Clearing '/boot' for Software Update¶ ↑
Software Updater complained about '/boot' not having enough free space
$ uname -r 4.4.0-53-generic $ dpkg --list|grep linux-image $ sudo apt-get purge linux-image-4.4.0-47-generic The link /vmlinuz.old is a damaged link Removing symbolic link vmlinuz.old you may need to re-run your boot loader[grub] The link /initrd.img.old is a damaged link Removing symbolic link initrd.img.old you may need to re-run your boot loader[grub] $ sudo update-grub
u7 - OS shift¶ ↑
(26/4/17)
$ cat plain.txt | openssl rsautl -encrypt -pubin -inkey ~/.ssh/id_rsa.pub.pem > cipher.txt $ cat cipher.txt | openssl rsautl -decrypt -inkey ~/.ssh/id_rsa
u8 - Software Updater complaining about untrusted packages¶ ↑
(13/5/17)
$ sudo apt-get clean $ sudo mv /var/lib/apt/lists /var/lib/apt/lists.bak $ sudo mkdir -p /var/lib/apt/lists/partial $ sudo apt-get clean $ sudo apt-get update W: GPG error: https://repo.skype.com/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1F3045A5DF7587C3 $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1F3045A5DF7587C3 ... gpg: key DF7587C3: public key "Skype Linux Client Repository <se-um@microsoft.com>" imported $ sudo apt-get update ... Reading package lists... Done
Now Updater works