SSH Port forwarding through multiple hops [.ssh/config]

Anybody that have to work with lab at work knows the pain of connecting to them. Usually labs don’t have direct connectivity to the “regular” network and to connect to them involves a series of jumps though different machines. Just SSH connectivity is painful in those scenarios let alone port forwarding. Fortunately you can setup your ~/.ssh/config in such a way that will automate most of it, if not all. ...

June 10, 2014

Conceptronics CSATACOMBO is not a Hardware RAID card

As clearly stated in Linux SATA RAID FAQ the Conceptronics CSATACOMBO card based on VIA vt6421 chipset is not a Hardware RAID. The CSATACOMBO is called a “fake raid”, “BIOS RAID” or “BIOS-assisted software RAID” that means that actually a driver at OS level is needed to get the RAID features (see more info about BIOS RAID at novell page). And that’s why Linux (gparted for example) doesn’t recognize the RAID arrays created with CSATACOMBO because there’s no Linux driver to handle the proprietary BIOS RAID in CSATACOMBO. ...

May 15, 2009

Cygwin/X: disappering mouse pointer

Remember to start the X system using startxwin.bat not startx. With startx I lose the mouse cursor/pointer when I’m over a X window.

November 15, 2007

cygwin: setup.exe crashes when upgrading packages

I’ve run into a very strange problem. Every time I run setup.exe and try to upgrade bash package setup.exe crashes with the familiar “setup.exe has generated errors and will be close by windows. you will need to restart the program. An error log is being created”. The solution I found is for bash package but I guess it also work for other packages as well After googling a bit I found the this mail thread . But there was no solution posted into the thread so I tried to contact the Mario Frasca (one of the participants in the mail thread) to see if he found any solution to the problem. Well, he did. He sent me a mail telling me that William Crosmun resolved his problem. ...

November 5, 2007

bash: clear: command not found

If your are getting “bash: clear: command not found” on you first install of cygwin you have to make sure that you include ncurses packages in your cygwin installation. clear.exe doesn’t come in the standard installation. You must include ncurses to get clear.exe in your system. If you are using bash you can use Ctrl-L and get the same result though. UPDATE: ncurses is a cygwin package in libs category in Utils category. You can install it using the the Cygwin Setup utility (just run setup.exe again). See screenshot below ...

September 26, 2007

How to redirect your root web directory to a subfolder with .htaccess

If you tried (like me) to redirect your / (root) web directory to a subfolder (like /wp/) modifying .htaccess in this way: Redirect 301 / http://rubenlaguna.com/wp/ You probably found that it didn’t work. The browser will end up in an endless loop of redirections. Firefox will complain with this error message: The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies. The right way to accomplish the root to subfolder redirection is the following: ...

September 6, 2007

avahi and .local domain troubleshooting

I got the “avahi-daemon disabled because there is a unicast .local domain” but I have no .local domain so I was a little bit confused. ~$ sudo /etc/init.d/avahi-daemon restart * Restarting Avahi mDNS/DNS-SD Daemon: avahi-daemon * avahi-daemon disabled because there is a unicast .local domain After a while I realized that my ISP is playing tricks with the DNS. It will never return a “DNS lookup failed”, it always resolve any dns name you pass to it. If the name is assigned it will return the proper IP but if the name is not assigned it will return the IP of the ISP portal. (Nice trick to get more page hits in their home page). ...

August 19, 2007

How to install trac 0.10.4 and XmlRpcPlugin on a non-standard directory location

First you need setuptools/EasyInstall: cd $HOME/opt wget http://peak.telecommunity.com/dist/ez_setup.py mkdir -p $HOME/opt/easyinstall/lib/python2.4/site-packages PYTHONPATH=$HOME/opt/easyinstall/lib/python2.4/site-packages python ez_setup.py --prefix=$HOME/opt/easyinstall Next, trac: cd $HOME/opt wget http://ftp.edgewall.com/pub/trac/trac-0.10.4.tar.gz tar xvzf trac-0.10.4.tar.gz cd trac-0.10.4 python setup.py install --prefix=$HOME/opt/trac cd .. rm -rf trac-0.10.4 cd trac PYTHONPATH=$HOME/opt/easyinstall/lib/python2.4/site-packages/:$HOME/opt/trac/lib/python2.4/site-packages/ bin/trac-admin $HOME/testtracenv initenv Then the xmlrpcplugin: cd $HOME/opt wget -O xmlrpcplugin.zip 'http://trac-hacks.org/changeset/latest/xmlrpcplugin?old_path=/&filename=xmlrpcplugin&format=zip' unzip xmlrpcplugin.zip cd xmlrpcplugin/0.10/ PYTHONPATH=$HOME/opt/easyinstall/lib/python2.4/site-packages/ python setup.py bdist_egg cp dist/*.egg $HOME/testtracenv/plugins cat <<EOF >>$HOME/testtracenv/conf/trac .ini > [components] > tracrpc.* = enabled > EOF And now you can test your installation: ...

August 17, 2007

Scripts to rename avi files from TV Shows

If you got a lot of ill-named files like: $ ls S01E03.The.Sopranos.S01E03.Denial.Anger.Acceptance.avi The.Sopranos.1x04.Meadowlands.avi The.Sopranos.S01E01.The.Sopranos.avi The.Sopranos.S01E02.46.Long.avi The.Sopranos.S01E06.Pax.Soprana.avi The_Sopranos.105.College.avi that your divx player can’t sort properly and you want to end up with something like: $ ls 1x01.avi 1x02.avi 1x03.avi 1x04.avi 1x05.avi 1x06.avi you can use the following script in this way: cd /path/to/avi/files ../script.sh|sh and if you want to do the same thing to srt files then: cd /path/to/srt/files ../script.sh srt|sh As an example the script will normalize any of the following patterns S01E03, 103,1x03, or just 03 to 1x03. ...

July 5, 2007

Synchronize bash history among different machines

Today I finally decide to make a script to keep my bash_history synchronized among all the machines I use. It’s a simple script that retrieves all the .bash_history files from all my machines, merges all the files into one, sort it, removes the duplicated lines and write it back to all the machines. The only drawback is that the original ordering of the history files is lost due to the alphabetical sorting step (needed to remove the duplicated lines). ...

May 30, 2007