Thomas’ Lab Notes

Stuff worth not forgetting

Setting Up Octopress

Objective

To set up Octopress in its own, isolated Ruby environment

Prerequisite

Install rbenv to manage Ruby virtual environments.

Create isolated environment:

1
2
3
$ export GEM_HOME=$HOME/octopress.gems
$ gem install bundler
$ export PATH=$GEM_HOME/bin:$PATH

GEM_HOME and PATH need to be set to do any Octopress work.

Clone Octopress:

1
2
$ git clone git://github.com/imathis/octopress.git octopress
$ cd octopress 

Install dependencies and default theme:

1
2
$ bundle install
$ rake install

warning If --path is passed to bundle install, the value is cached in .bundle/config, and $GEM_HOME is subsequently ignored.

Emoji support

Debian Jessie on Dell Precision M4800

The testing ISO image works on a USB key.

Using the nvidia (non-free) driver

To install the nVidia driver:

  • make sure installed kernel headers (linux-headers) match kernel (linux-image), otherwise DKMS won’t build.
  • install nvidia-driver (note: this will build a kernel module, so requires a working compiler)
  • run nvidia-xconfig --query-gpu-info by hand and make note of PCI BusID
  • run nvidia-xconfig --busid=PCI:x:x:x to generate xorg.conf

BIOS setup

  • Video -> Switchable graphics -> uncheck Enable Switchable Graphics

GNOME 3

Disable gnome-keyring:

1
2
3
$ cd /etc/xdg/autostart
$ mv gnome-keyring-ssh.desktop gnome-keyring-ssh.desktop-
$ mv gnome-keyring-gpg.desktop gnome-keyring-gpg.desktop-

Remember NumLock state:

1
$ gsettings set org.gnome.settings-daemon.peripherals.keyboard remember-numlock-state true

Support for smart-card reader

apt-get install pcscd

Network

Disable IPv6 Privacy Extensions

/etc/sysctl.conf
1
2
3
# Disable IPv6 "Privacy extensions" (random SLAAC addresses)
net.ipv6.conf.all.use_tempaddr=0
net.ipv6.conf.default.use_tempaddr=0