Skip to content

Instantly share code, notes, and snippets.

@thomascrha
Last active November 20, 2023 10:45
Show Gist options
  • Save thomascrha/974a947e371ef07c513bebbe86cefe51 to your computer and use it in GitHub Desktop.
Save thomascrha/974a947e371ef07c513bebbe86cefe51 to your computer and use it in GitHub Desktop.
Install Ubuntu 18.04 Macbook Air 2011

This is just some notes on what I did to get my macbook air up and running with Ubuntu 18.04

Install Ubuntu

This is actaully pretty simple - this setup does not dual boot making it easier. The only issue durring the install is not having internet as the wifi car is not supported by ubuntu out of the box. The easiest method is to utilise a USB-RJ45 adaptor to get internet during install and make sure you check the download updates and proprietary drivers.

Once booted you have a baically running version of Ubuntu.

Power

So to get more battery life I've been using intels powertop, it does a good job and is easy to use.

sudo apt install powertop sudo powertop --calibrate This will run and turn of your screens, wifi and bluetooth - just let it run and finish sudo powertop --auto-tune This will set all the settings to 'good'

Touchpad

After much trial and error I've decieded to utilise the Synaptics driver in combination with fusuma. The reason for this is because its simple to set up and works the best. I would prefer to use libinput natively by ubuntu, but it doesn't have momentum scrolling.

sudo apt install xserver-xorg-input-synaptics

Now there is a GUI app that allows config and custimization of your touchpad - this is alot simpler especially when you are simply trying to guage how settings effect your workflow. This package is not available from ubuntu so You'll need to download two deb files from:

http://archive.ubuntu.com/ubuntu/pool/universe/g/gpointing-device-settings/libgpds0_1.5.1-6ubuntu2_amd64.deb sudo apt install gconf2 http://archive.ubuntu.com/ubuntu/pool/universe/g/gpointing-device-settings/gpointing-device-settings_1.5.1-6ubuntu2_amd64.deb

Now for some gestures. To achive this we will use fusuma - its hacky, but through my testing it out performed anything else and just works.

sudo apt-get install libinput-tools ruby xdotools sudo gem install fusuma gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled mkdir -p ~/.config/fusuma

Then copy the config.yml to that directory. Make sure to restart x to see the affects of this.

Webcam

This is the only other thing that doesn't work out of the box. Simply follow the instructions here:

https://github.com/patjak/bcwc_pcie/wiki/Get-Started

swipe:
3:
left:
command: 'xdotool key alt+Left'
right:
command: 'xdotool key alt+Right'
up:
command: 'xdotool key super'
down:
command: 'xdotool key super'
4:
left:
command: 'xdotool key ctrl+alt+Down'
right:
command: 'xdotool key ctrl+alt+Up'
up:
command: 'xdotool key ctrl+alt+Down'
down:
command: 'xdotool key ctrl+alt+Up'
pinch:
2:
in:
command: 'xdotool key ctrl+plus'
threshold: 0.1
out:
command: 'xdotool key ctrl+minus'
threshold: 0.1
threshold:
swipe: 1
pinch: 1
interval:
swipe: 1
pinch: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment