Skip to content

Instantly share code, notes, and snippets.

@tachesimazzoca
Last active November 18, 2017 01:52
Show Gist options
  • Select an option

  • Save tachesimazzoca/c503ddacddaa0a121a2f0961ab8e8162 to your computer and use it in GitHub Desktop.

Select an option

Save tachesimazzoca/c503ddacddaa0a121a2f0961ab8e8162 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 LTS + Mac OS X

Ubuntu 16.04 LTS + Mac OS X

Hardware

  • MacBook Aluminium Late 2008

rEFInd

Find a link to a binary zip file in the Getting rEFInd page and then download and unzip it.

$ cd /path/to/download
$ curl -L http://sourceforge.net/projects/refind/files/0.10.7/refind-bin-0.10.7.zip/download > refind-bin-0.10.7.zip
$ unzip refind-bin-0.10.7.zip
$ cd refind-bin-0.10.7

Under Mac OS X 10.11 (El Capitan) or later, the SIP (System Integrity Protecton) prevents us from installing rEIFind.

To ignore the SIP, run the install script on the Mac OS X recovery mode.

  1. Restart the machine in the Mac OX X recovery mode, holding down the Command + R keys.
  2. Launch Utilities > Terminal.

Run the script refind-install.

$ cd /path/to/download/refind-bin-0.10.7
$ ./refind-install

Install Ubuntu from a bootable USB stick.

  1. Restart the machine with the Option key to launch the Startup Manager.
  2. Choose the bootable USB volume.
  3. Install Ubuntu.

If the EFI Boot volume doesn't appear on the Statup Manager, the machine (firmware) doesn't recognize the boot loader in the EFI partition. To fix this problem, try the following workaround.

In Mac OS X, mount the EFI partition to a file such as /Volumes/efi and then rename refind/refind_x86.efi with boot/bootx86.efi.

$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   ...
   1:                        EFI EFI                     209.7 MB   disk0s1
   ...

$ mkdir -p /Volumes/efi
$ mount -t msdos /dev/disk0s1 /Volumes/efi
$ cd /Volumes/efi/EFI
$ ls
APPLE refind tools ubuntu

$ mv refind boot
$ mv boot/refind_x86.efi boot/bootx86.efi

Wi-fi Driver

$ lspci
...
03:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)

Install the following .deb packages, which contain in the Ubuntu Desktop ISO (bootable USB stick).

  • /pool/restricted/b/bcmwl/cmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.1_amd64.deb
  • /pool/main/d/dkms/dkms_2.2.0.3-2ubuntu11.3_all.deb

Packages

  • build-essential
  • curl / wget / rsync
  • git
  • fcitx-mozc
  • unity-tweak-tool
  • dconf-tools

dconf-editor / GSettings

The gsettings command offers a simple commandline interface to GSettings.

$ gsettings list-schemas

# Change the Unity Launcher's position
$ gsettings set com.canonical.Unity.Launcher launcher-position (Left|Bottom)

The GUI dconf-editor of the dconf-tools package would be better.

$ sudo apt-get install dconf-tools

Chromium Browser / Google Chrome

$ sudo apt-get install libappindicator1

# Chromimum Browser (open source)
$ sudo apt-get install chromium-browser

# Google Chrome
$ sudo dpkg -i google-chrome-stable_current_amd64.deb 

vim

You may suffer from the following error when you quit the GVim lanched from the terminal.

(gvim:2575): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type '<invalid>'

Install the vim-gtk package instead of vim-gnome.

$ sudo apt-get remove vim-gnome
$ sudo apt-get install vim-gtk

Adobe Fonts / Source Han Code JP

$ curl -LO https://github.com/adobe-fonts/source-han-code-jp/archive/2.000R.tar.gz
$ tar xvfz source-han-code-jp-2.000R.tar.gz
$ cp source-han-code-jp-2.000R/OTF/*.otf ~/.fonts/
$ fc-cache -f -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment