Friday, August 17, 2007

Create cool custom functions with Linux

This section today is dedicated to the cool functions a System Administrator can create to make its life easier. I will give two examples i found very usefull.

$ tip() { lynx -cfg=/dev/null -dump "http://www.ugu.com/sui/ugu/show?tip.today" | sed -n '/Unix Tip #/,/generously/p' }

$ trans() {lynx -cfg=/dev/null -dump "http://spanishdict.com/1AS.cfm?e=$1" | sed -n '/Spanish Word/,/Spanish Word:/p' }

Yoy call these functions this way:

$ tip
Thanks to www.ugu.com

$ trans traducir
Spanish Word English Word
traducir [9]to translate
And to see the defined functions type:
$ set

Please, share with your comment some helpfulness scripts ;)

Thursday, August 16, 2007

Post install in Fedora Core 6 and Fedora 7

Fedora 7 really rocks. I recommend to install the livna repository and these packages after the normal installation.

# rpm -ivh http://rpm.livna.org/livna-release-6.rpm
Install the mp3's plugins
# yum install gstreamer-plugins-ugly
Install totem-xine and firefox plugin
# yum install totem-xine totem-xine-mozplugin
# yum install ffmpeg gstreamer-ffmpeg sox lame faad2 mjpegtools xine-lib-extras-nonfree

Install the plugins to see mpeg videos in Linux

yum install libdvdread
yum install libdvdcss
yum install libdvdnav
yum install xine-lib-extras-nonfree
yum install xine-lib
yum install mplayer

For security reasons i recommend to turnoff these services that come enabled by default:

chkconfig haldaemon off
service haldaemon stop
chkconfig sendmail off
service sendmail stop
chkconfig hplip off
service hplip stop
chkconfig portmap off
service portmap stop
chkconfig avahi-daemon off
service avahi-daemon stop
chkconfig nfs off
service nfs stop
chkconfig rpcidmapd off
service rpcidmapd stop
chkconfig rpcgssd off
service rpcgssd stop
chkconfig autofs off
service autofs stop
chkconfig yum-updatesd off
service yum-updatesd stop
chkconfig nfslock off
service nfslock stop
chkconfig hidd off
service hidd stop
chkconfig pcscd off
chkconfig acpid off
service acpid stop
chkconfig iptables off
service iptables stop