Skip to main content

Setting up FreshRPMs and Installing libdvdcss

wget http://ayo.freshrpms.net/fedora/linux/11/i386/freshrpms/RPMS/freshrpms-…
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:

http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/11/libdvdcss/

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 testfile.data file can now have spaces on each line.

#!/bin/sh

IFS="
"

for i in `cat testfile.dat`
do
        CHECK="test"
        echo $i
done
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

wget http://arduino.googlecode.com/files/arduino-0017.tgz
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:

uucp
lock
dialout

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
./arduino

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