Installing perl audio converter

Wednesday, August 5th, 2009

Download the latest version of pacpl from:

Download PACPL from http://pacpl.sourceforge.net/

install cpan, either with yum,apt..

Install these cpan modules:

cpan install Ogg::Vorbis::Header
cpan install Inline::MakeMaker
cpan install MP3::Tag
cpan install Audio::FLAC::Header
cpan install MP4::Info
cpan install Audio::WMA
cpan install Audio::Musepack
cpan install CDDB_get

Untar the pacpl source and move the binary into /usr/bin and the share/pacpl files into /usr/share/pacpl, also the config file (pacpl.conf) should be in /etc/pacpl/

To convert from .caf to mp3 use:

pacpl –to mp3 file.caf

Download RPMs with yum

Thursday, June 18th, 2009

Under Fedora and Centos:

[root@infra ~]# yum install yum-downloadonly

Be sure /etc/yum.conf contains : plugins=1

[root@infra ~]# yum reinstall gcc –downloadonly –downloaddir=/root
Loaded plugins: downloadonly
Setting up Reinstall Process
Resolving Dependencies
–> Running transaction check
—> Package gcc.i386 0:4.1.2-33 set to be updated
—> Package gcc.i386 0:4.1.2-33 set to be erased
–> Finished Dependency Resolution

Dependencies Resolved

Installing:
gcc i386 4.1.2-33 fedora 5.2 M
Removing:
gcc i386 4.1.2-33 installed 9.6 M

Transaction Summary

Install 1 Package(s)
Update 0 Package(s)
Remove 1 Package(s)

Total download size: 5.2 M
Is this ok [y/N]: y
Downloading Packages:
gcc-4.1.2-33.i386.rpm | 5.2 MB 00:00

exiting because –downloadonly specified

Now /root should contain : gcc-4.1.2-33.i386.rpm

Bandwidth Monitoring with Webmin

Wednesday, June 17th, 2009

I have Fedora 8 on this server..to install webmin:

yum -y install perl-Net-SSLeay
rpm -ihv http://superb-west.dl.sourceforge.net/sourceforge/webadmin/webmin-1.480-1.noarch.rpm

Then login to the Webmin interface: https://site.com:10000/ and enable Networking -> Bandwidth Monitoring.
It uses iptables and reads counters for IN/OUT. A good practice would be to change the port. This should work on Centos 5.2 / Centos 5.3 too. Also keep in mind that default installations of Fedora or Centos might require to open port 10000. On this Fedora 8 I had to :

iptables -I RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 10000 -j ACCEPT
service iptables save