Powered by Drupal
16
Sep

Change Plymouth Boot Splash Screen

Install Plymoth Uilities with:
yum install plymouth-utils

Install any new theme needed such as:
yum install plymouth-theme-spinfinity

List all installed themes with:
plymouth-set-default-theme --list

Change the theme with:
plymouth-set-default-theme spinfinity

Setup initdb:
/usr/libexec/plymouth/plymouth-update-initrd

6
Aug

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

6
Aug

Setting up FreshRPMs and Installing libdvdcss

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

Replace commas with spaces using "cut"

# echo "test,test,test" | cut -d',' --output-delimiter=' ' -f1-
test test test

20
Jul

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}
19
Jul

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.

19
Jul

Setup Epson Perfection V350 PHOTO Scanner for Fedora

UPDATE 5/2013: The drivers have moved the new site listed below. Also the firmware in the Fedora repositories no longer works. And they are no longer hosting the firmware on the Epson site. I have a copy of it below.
UPDATE 12/21/2014: Updated to latest versions below. Also note it looks like they are now hosting the plugin again. So you can download it from them or me. The latest version they have is the same version that hasn't been updated since 2011.

16
Jul

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.

Pages

Subscribe to blog.kevinfowler.net RSS