Skip to content

Instantly share code, notes, and snippets.

@terlar
Last active December 20, 2015 03:28
Show Gist options
  • Save terlar/6063408 to your computer and use it in GitHub Desktop.
Save terlar/6063408 to your computer and use it in GitHub Desktop.
Guide to dual-boot archlinux
# Set bluetooth power up
ACTION=="add", KERNEL=="hci0", RUN+="/usr/bin/hciconfig hci0 up"

ArchLinux on iMac

Guides

Install

Hardware

Bluetooth

sudo modprobe -v btusb bluetooth hidp l2cap
sudo pacman -S bluez bluez-libs bluez-utils
sudo systemctl enable bluetooth.service
sudo gpasswd -a user lp
bluetoothctl -a

Create the file: /etc/udev/rules.d/10-local.rules

Wi-Fi

sudo packman -S wicd
sudo systemctl enable wicd.service

Sound

sudo pacman -S alsa-utils
amixer sset Master unmute

Magic Trackpad

sudo pacman -S xf86-input-synaptics
sudo aura -A touchegg xf86-input-synaptics-mtpatch

Console

Edit /etc/mkinitcpio.conf with:

MODULES="... radeon ..."
HOOK="... consolefont ..."
mkinitcpio -p linux
sudo pacman -S fontconfig freetype2 kbd terminus-font fbterm
sudo gpasswd -a user video

Caps2Ctrl

Edit the file us_caps2ctrl.map

sudo mkdir -p /usr/share/keymaps
dumpkeys > us_caps2ctrl.map
gzip us_caps2ctrl.map
sudo mv us_caps2ctrl.map.gz /usr/share/keymaps

Create the file /etc/vconsole.conf

Tools

sudo pacman -S gvim git hub unzip unrar acpid ranger tree scrot feh htop tmux vimpager mosh mutt lftp rtorrent w3m irssi
sudo systemctl enable acpid
mkdir ~/code
cd ~/code

fish

hub clone fish-shell/fish-shell
cd fish-shell

autoconf
./configure
make
sudo make install

AUR

GUI

sudo pacman -S xorg-server xorg-server-utils xorg-xinit xorg-xev xf86-video-ati xbindkeys xfce4-notifyd dmenu i3lock
sudo pacman -S xorg-font-utils xorg-fonts-encodings
sudo aura -A dmenu-path-c termite tigervnc compton-git xmonad-utils
sudo pacman -S xmonad xmonad-contrib
sudo pacman -S cabal-install
cabal update && cabal install yeganesh

Font

sudo pacman -S ttf-inconsolata ttf-linux-libertine
sudo aura -A freetype2-infinality fontconfig-infinality
sudo aura -A ttf-vista-fonts ttf-mac-fonts ttf-envy-code-r ttf-dejavu ttf-beteckna ttf-opensans
sudo infctl setstyle osx2

Login Manager

sudo pacman -S slim slim-themes archlinux-themes-slim
sudo systemctl enable slim.service
chmod +x ~/.xinitrc

Theme

sudo pacman -S lxappearance
sudo aura -A gtk-theme-numix-git gtk-theme-numix-white

Input

sudo pacman -S fcitx-im

Media

sudo pacman -S mplayer

Mopidy

Create /usr/lib/systemd/system/mopidy@.service

sudo pacman -S ncmpcpp python2-pylast
sudo aura -A mopidy-git
sudo systemctl enable mopidy@terje

Development

sudo pacman -S libsoup webkitgtk2
sudo aura -A vimprobable2-git
sudo pacman -S ctags java-runtime mysql mongodb redis memcached gd libxml2 libxslt
sudo aura -A ruby-build-git silver-searcher-git elasticsearch

fish plugins

cd ~/code

git clone terlar/fish-tank; and cd fish-tank
sudo make install; and cd ..

git clone terlar/fry; and cd fry
sudo make install; and cd ..

git clone terlar/fish-farm; and cd fish-farm
sudo make install; and cd ..

ruby

fry install 1.9.3-p392
fry install 2.0.0-p247
gem install bundler
Zero-Conf

Create /usr/lib/systemd/system/prax.service

sudo pacman -S iptables
cd ~/code
git clone ysbaddaden/prax; and cd prax
sudo cp install/intid /usr/local/bin/praxd
sudo chmod +x /usr/local/bin/praxd
sudo systemctl enable prax.service
cd ext
make; and sudo make install
mkdir ~/.prax

Add prax to the end of the host line in /etc/nsswitch.conf

[Unit]
Description=Mopidy
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/mopidy
RemainAfterExit=yes
Restart=always
User=%I
PAMName=system-local-login
[Install]
WantedBy=multi-user.target
[Unit]
Description=Prax Rack server (iptables configuration)
Requires=network.target remote-fs.target
After=network.target remote-fs.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/praxd start
ExecStop=/usr/local/bin/praxd stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
...
keycode 58 = Control # Caps as CTRL key
...
KEYMAP=/usr/share/keymaps/us_caps2ctrl.map
FONT=Lat2-Terminus16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment