30 July 2011

sudo apt-get install unrar to install rar support in ubuntu linux http://goo.gl/pN3li

unrar - extract files from rar archives


unrar <command> [-<switch 1> -<switch N>] archive [files...] [path...]


from linux.die.net

29 July 2011

check out a starcraft2 linux interface from @taranasus

edit the default screensaver dir in natty with vim .../personal-slideshow.desktop

Change the default folder for your Screensaver Slidershow images:

  1. Open a Terminal.
  2. Open the personal-slideshow.desktop file to line 4 with write permissions:

    sudo vim /usr/share/applications/screensavers/personal-slideshow.desktop +4

  3. Append line 4 with your path so:


    changes to:

    Exec=/usr/lib/gnome-screensaver/gnome-screensaver/slideshow --location=[YOUR PATH WHATEVER]

  4. Esc :qw to close vim!

The method is not the same for some older releases. I had to use the full reference: "home/lxtips/Pictures..."

Suggestion: create a single user solution with a symbolic link.

28 July 2011

single window screen capture script using ffmpeg

INFO=$(xwininfo -frame)

WIN_GEO=$(echo $INFO | grep -oEe 'geometry [0-9]+x[0-9]+' | grep -oEe '[0-9]+x[0-9]+')
WIN_XY=$(echo $INFO | grep -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' | grep -oEe '[0-9]+\+[0-9]+' | sed -e 's/\+/,/' )

ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 15 -s $WIN_GEO -i :0.0+$WIN_XY -acodec libfaac -vcodec huffyuv -threads 0 -sameq -y $1.avi
libfaac can be installed in ubuntu 11.04 with:

sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update ; sudo apt-get install ffmpeg libavcodec-extra-52

search the string under the cursor in vim with *

via unix.com

26 July 2011

add empty lines in vim with o and O http://is.gd/prVQlq

Quickly adding and deleting empty lines - Vim Tips Wiki

watch @computerhistory interviews and other videos at youtube http://goo.gl/5HpQ7

some videos I have watched:

The Code Breakers, 2006. BBC documentary on Open Source Software. Part 1 (24:42) Part 2 (13:15)

Revolution OS, 2001. Video (1:25:10)

The Origins of Linux - Linus Torvalds, 2001. Live presentation. Video (1:25:13)

Secret History of Silicon Valley - Steve Blank, 2008. Live presentation. Video (1:02:45)

Stephen Levy -- Author of In the Plex, 2011. Computer history interview. Video (1:24:21)

Jane Mcgonigal, 2011. Computer history interview. Video (1:19:23)

Bill Joy, 2008. TED presentation. Video (20:44) 2006. NerdTV, Robert Cringley Interview. Video (57:08).

Sun Microsystems Founders Panel 2010. Computer History Panel. Video (2:10:37)

Javascript Tutorial, 2008. by thenewboston Parts: 1, 2, 3, 4, 5, 6, 7, 8...

XHTML Tutorial, 2008. by thenewboston Parts: 1, 2, 3, 4, 5...


replace space in file names with rename 's/ /_/g' *

from metalx1000

change character case in vim in normal mode with tilde ~

25 July 2011

rest your mouse in chrome and firefox with vimium http://youtu.be/OUl2mJnjwbY

identify a process ID with pgrep -f *string*

from the Linux / Unix Man Pages


pgrep, pkill - look up or signal processes based on name and other


pgrep looks through the currently running processes and lists the pro-
cess IDs which matches the selection criteria to stdout. All the cri-
teria have to match. 




   -f     The pattern is normally only matched against the process name.
When -f is set, the full command line is used.

ps(1) regex(7) signal(7) killall(1) skill(1) kill(1) kill(2)


24 July 2011

check your linux kernel version with uname -r

from the man pages uname(1) - Linux man page

uname - print system information


uname [OPTION]...

Print certain system information. With no OPTION, same as -s.

-a, --all
print all information, in the following order, except omit -p and -i if unknown:
-s, --kernel-name
print the kernel name
-n, --nodename
print the network node hostname
-r, --kernel-release
print the kernel release
-v, --kernel-version
print the kernel version
-m, --machine
print the machine hardware name
-p, --processor
print the processor type or "unknown"
-i, --hardware-platform
print the hardware platform or "unknown"
-o, --operating-system
print the operating system
display this help and exit
output version information and exit

Written by David MacKenzie.