Skip to content

Instantly share code, notes, and snippets.

@therefromhere
Last active May 18, 2016 04:47
Show Gist options
  • Save therefromhere/47f42dfdb1cbce97e875b3843e408b50 to your computer and use it in GitHub Desktop.
Save therefromhere/47f42dfdb1cbce97e875b3843e408b50 to your computer and use it in GitHub Desktop.

Python virtualenv path gotcha

sudo apt-get install python-pip; pip install virtualenv; pip install virtualenvwrapper

The above works fine (note that you don't need to sudo the pip stuff, it gets installed in ~/.local) but ~/.local isn't in $PATH by default, so virtualenvwrapper.sh isn't pathed in.

One fix is to using the default ~/.profile behaviour to path ~/bin if it exists:

ln -s ~/.local/bin ~/bin

Full disk encryption graphics issue

the full disk encrytion splash page (cryptsetup ?) wasn't rendering correctly, I was just seeing a blank purple page.

One fix is to disable the splash screen from grub:

sudo vi /etc/default/grub

# change GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to: (ie, remove the splash screen)
GRUB_CMDLINE_LINUX_DEFAULT="quiet"

sudo update-grub

possibly related: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1359689

Ansible WTF

To resolve this issue: "ERROR: shell is not a legal parameter in an Ansible task or handler". Seems to be a bug with ansible==1.6.1 not playing nice with virtualenv?

export ANSIBLE_LIBRARY=${VIRTUAL_ENV}/lib/python2.7/site-packages/${VIRTUAL_ENV}/share/ansible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment