Keep Looking, Don't Settle

linux tips and resources

1. how to install deb file on ubuntu

method 1
step 1.  run `sudo dpkg -i /path/to/deb/file`. sometimes there will be errors after this, but it does not matter. run step 2.

step 2.  then run `sudo apt-get install -f`
method 2

move the deb file to /var/cache/apt/archives/, then run sudo apt-get install package_name

2. how to install pip on ubuntu

sudo apt-get install python-pip

3. remove the tiny vi in ubuntu

sudo apt-get remove vim.tiny sudo apt-get install vim

4. kill all the process from multiprocessing in python

kill -9 `ps -ef | grep | grep -v grep | awk '{print $2}'`