Installing codec's to be used with Xine or MPlayer
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
tar jxvf all-20071007.tar.bz2
cd all-20071007
mv * /usr/lib/codecs
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/
- Read more about Setting up FreshRPMs and Installing libdvdcss
- Log in to post comments
Replace commas with spaces using "cut"
# echo "test,test,test" | cut -d',' --output-delimiter=' ' -f1-
test test test
- Read more about Replace commas with spaces using "cut"
- Log in to post comments
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}
- Read more about Bash loop with End of Line as delimiter
- Log in to post comments
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.
- Read more about Resize Pics in current directory
- Log in to post comments
Setup Epson Perfection V350 PHOTO Scanner for Fedora
UPDATE 3/2022: You can download the drivers from here: https://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
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.
- Read more about Arduino Setup in Fedora
- Log in to post comments