# wget http://repository.slacky.eu/slackware-13.0/utilities/cowsay/3.03/cowsay-3.03-x86-4an.txz
# vi ~/.bashrc
if [ !$COWPATH ]
then
COWPATH='/usr/share/cows/'
fi
cow_file_length=`ls -1 $COWPATH | wc -l`
RANDOM=$$ # initialized the random seed with the process id of this script
let "random_line = $RANDOM % $cow_file_length + 1"
cow=`ls -1 $COWPATH | head -n $random_line | tail -n 1`
/usr/games/fortune -a | cowsay -n -f $cow
Saturday, March 27, 2010
Friday, January 15, 2010
Saturday, January 9, 2010
Webcam AND Slackware
# Lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 1c4f:3000 SiGma Micro Micro USB Web Camera
Bus 004 Device 003: ID 04f3:0210 Elan Microelectronics Corp. AM-400 Hama Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Now let us see if the webcam is compatible:
Access this link and look inside for SiGma Micro, and see if it is compatible with the driver.
Download and install the driver: linux-uvc-20080604_2.6.24.5_smp-i486-1alien.tgz # installpkg linux-uvc-20080604_2.6.24.5_smp-i486-1alien.tgz
# chmod 777 /dev/video0
# modprobe uvcvideo
# lsmod | grep uvcvideo
# echo "modprobe uvcvideo">> / etc / rc.d / rc.local
Subscribe to:
Posts (Atom)