Skip to main content

Setting up FreshRPMs and Installing libdvdcss

rpm -ivh freshrpms-release-1.2-1.noarch.rpm
yum update freshrpms-release
vi /etc/yum.repos.d/freshrpms.repo (uncomment the #baseurl line)
yum install libdvdcss

NOTE: The FreshRPM servers in their repo file do not apear to be valid. Try manually downloading the RPM from here:

Bash loop with End of Line as delimiter

Here is how you do a for loop that uses the end of the line as the delimiter instead of space delimited.
The reason this is better is that you can set variable inside the loop and check them outside unlike doing it with a while read loop.
The file can now have spaces on each line.



for i in `cat testfile.dat`
        echo $i
echo ${CHECK}

Resize Pics in current directory

How to resize all the pics in the current directory to all have the vertical resolution of 500:

mogrify -resize x500 *

NOTE this will CHANGE all the files in the current directory so run this on a COPY of your original files.

Do this for all files before uploading to Flikr to save on your monthly transfer amount. This is the size Flikr will resize them too.

Arduino Setup in Fedora

tar zxvf arduino-0017-linux.tgz
ln -s arduino-0017 arduino
yum install avr-gcc-c++
yum install avr-libc

Now add your username to the following groups:


You can do this by typing "vigr".

For the group changes to take effect, you must log out then back into X-windows.

Then to run just type:

cd arduino

In the arduino IDE select your Arduino by going to Tools->Board.