Category Archives: Uncategorized

Missing bash history in El Capitan

OK, bash history it is not exactly missing. El Capitan introduced "bash sessions" so history for each terminal session is saved in a separate file. Good old .bash_history file is not even there anymore. The annoyance here is that after you close your session and open a new one you can not access the history from you previous session. Also, I have no idea how to use the "bash sessions history" and do not want to waste time on exploring it. Fortunatelly the fix is simple – just create the .bash_history file and another file that serves as a "disable flag" – .bash_sessions_disable. Both in your home directory of course.

touch ~/.bash_history

touch ~/.bash_sessions_disable

Enjoy scrolling through your old commands.

 

 

 

Installing lxml on Ubuntu

To install lxml with pip on latest Ubuntu version you need a bunch of development packages installed first. 

sudo apt-get install -y python-dev libxml2-dev libxslt1-dev zlib1g-dev python-pip
sudo pip install lxml

These two commands should do the job.

Installing node.js on Debian 6 Squeeze

Unfortunatelly the Debian Squeeze package repositories do not include the node.js package, so the best way is to install from soures. I created a simple script that will let you install node.js with this one-liner :

sudo bash -c "$(curl -fsSL https://raw.github.com/kkoston/deb6-node-inst/master/go.sh)"

Just copy, paste and execute on your server. I am also hearing that recently released Debain Wheezy repos do not contain node.js package, so that should also work there. If you are experiencing problems with this script, make sure that you have git and curl installed on your system.