Saturday, September 26, 2015

#!++: Reverse mouse wheel

swap 4 and 5 using the following command. It may require restart x.
xmodmap -e "pointer = 1 2 3 5 4"

Saturday, December 20, 2014

Python 3 virtualenv

sudo apt-get install python3-pip
sudo pip-3.2 install virtualenv
virtualenv-3.2 env3
source env3/bin/activate


Saturday, October 11, 2014

[Waldorf] Shockwave Flash Has Crashed - Chrome 38

Solution
cd /tmp
wget http://mirror.pcbeta.com/google/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_37.0.2062.94-1_amd64.deb
dpkg -x google-chrome-stable_37.0.2062.94-1_amd64.deb temp/
sudo cp ./temp/opt/google/chrome/PepperFlash/libpepflashplayer.so  /opt/google/chrome/PepperFlash/
reference 1 reference 2

Thursday, September 18, 2014

Install Crunchbang to EeePC with USB flash drive

sudo dd if=mini.iso of=/dev/sdb bs=4M; sync
Where mini.iso is downloaded regular #! distro. && /dev/sdb is USB drive

Monday, July 14, 2014

Update Java Version

sudo update-java-alternatives -s java-1.7.0-openjdk-amd64

Wednesday, July 9, 2014

Linux: mkdir cd combo

mkdir -p "1/2/3/4/5/6 6/7"
cd "$_"
$_ is previous last command argument which is "1/2/3/4/5/6 6/7"

Saturday, May 17, 2014

webcam streaming with VLC

vlc v4l2:///$(ls /dev/video*)
Or if you know exactly which device the video is on do this for example:
vlc v4l2:///dev/video0
source