Loading

Category Archives: linux

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 [...]

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.

Bookmark It

Hide Sites

$$(‘div.d185′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });

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 [...]

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 [...]

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 [...]

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 [...]

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 [...]

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.1×04.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
1×01.avi 1×02.avi 1×03.avi 1×04.avi 1×05.avi 1×06.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 [...]

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 [...]

Scrolling fast with the mousewheel triggers history back and forth

I’m observing an strange firefox behavior when I scroll the page using the mouse wheel. It goes back and forth through search history. So I googled a little bit and found that the KVM switch that I’m using it’s producing bogus key press event that firefox misinterprets. If you are running Linux [...]