Category Archives: tips

Error installing mongrel: `require’: no such file to load — mkmf (LoadError)

lorenzo@ubuntu:~$ sudo gem1.8 install daemons gem_plugin mongrel mongrel_cluster –include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use –ignore-dependencies to install only the gems you list Successfully installed daemons-1.1.4 Successfully installed gem_plugin-0.2.3 Building native extensions. This … Continue reading

Posted in linux, tips | Tagged , | Leave a comment

Create DVD iso image with genisoimage (aka mkisofs)

To create a DVD iso image from a directory containing the DVD files you need: Verify that the directory structure is correct (the directories VIDEO_TS and AUDIO_TS must exists in the DVD root directory) Make the iso image with genisoimage … Continue reading

Posted in linux, tips | Tagged | Leave a comment

Use SSH as a proxy server

To use SSH as a proxy server use the following command: ssh -D 8080 -f -C -q -N lorenzo@www.myserver.com You will then be prompted for your password, which you should enter. That’s it! Your ssh tunnel is in place! A … Continue reading

Posted in howto, networking, tips | Tagged , | Leave a comment

VLC choppy playback on mkv files

Try to do the following operations: Go to Preferences -> Input/Codec -> other codecs -> FFmpeg Change the “Skip the loop filter for H.264 decoding” option to All. This option makes playback smoother by slightly degrading the quality of the … Continue reading

Posted in tips | Leave a comment

Shell Scripting and filename completition with Vim

Filename completition is a great technique, to complete a filename in vim is very easy, just type Ctrl-X followed by Ctrl-F complete the filename under cursor. Vim filename completition may be problematic in shell scripting, the motivation is that in … Continue reading

Posted in shell, tips, vim | Leave a comment

dhclient overwrites your /etc/resolv.conf

Create the file /etc/dhclient-enter-hooks and put the following line: make_resolv_conf() {}

Posted in linux, networking, tips | Leave a comment

OpenSSH Connection Multiplexing

With OpenSSH v4 have been introduced a new feature, which “enables the sharing of multiple sessions over a single network connection“. The idea is the following: when a session with the remote host has been established, it opens a unix … Continue reading

Posted in tips | Leave a comment