Archive for the 'centos' Category Page 2 of 3



Convert WMA to MP3 in Ubuntu

mplayer logoIn order to convert WMA file into MP3 format in Ubuntu (or Debian) you should install the following requirements first:

1. mplayer (sudo aptitude install mplayer)
2. lame (sudo aptitude install lame)
3. win32 codecs (sudo aptitude install ubuntu-restricted-extras)

and then convert file.wma into file.mp3 using the following console command:

mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader file.wma;lame -m s -V 3 audiodump.wav;mv audiodump.wav.mp3 file.mp3;rm audiodump.wav

This also works for Fedora / Centos / Redhat family Linux distributions (requirements should be installed by yum package manager via third-party software repositories).

Try Google Chrome in Linux

There is still no native Linux support of newly unveiled browser Google Chrome but guys from CodeWeavers prepared the port of Chromium (official name of Google Chome for Linux). This staff is already available for downloading as DEB packages for Ubuntu (32-bit and 64-bit), as RPM for RedHat, Fedora, CentOS etc. as well as self installable script for any other Linux distribution.

Well, after quick testings there are no doubts that it is not a good option if you wish to have quick and stable alternative for Firefox… But of course it is good for evaluation purposes or for those people who CAN’T wait for official release of Chrome for Linux :) Certainly the port is based on Windows copy run by Wine (don’t forget to upgrade it). Actually CodeWeavers says that this is just a proof of concept, for fun, and to showcase what Wine can do.

Create .deb or .rpm from .tar.gz with checkinstall

tar logoCheckinstall is extremely useful utility to create .deb packages for Debian, Ubuntu (or .rpm packages for Fedora, RedHat, CentOs) from .tar.gz (or .tgz) source tarball after it’s compiled at your Linux box. In other words you can prepare binary package for later usage without need to compile software from sources every time you need to get it installed on certain Linux box.

Another application of checkinstall is software deinstallation that was compiled and installed from sources. As you might already noticed, not every programmer adds “uninstall” rule to Makefile and thus command “make uninstall” would fail. The nice solution is to use checkinstall to prepare binary package from sources and then install or uninstall it with dpkg command (or rpm in RedHat based distributions).

Here is the short algorithm on how to prepare .deb package from clamav source tarball:

1. Install checkinstall:
sudo aptitude -y install checkinstall (Ubuntu, Debian and related distributions)
or
sudo yum install -y checkinstall
(for rpm based distributions, please note that checkinstall usually isn’t included to standard Fedora/RedHat repositories, so you will need to link up third party repo like DAG)
or
compile checkinstall from sources

2. Get clamav sources:
wget http://mesh.dl.sourceforge.net/sourceforge/clamav/clamav-0.81.tar.gz (as an example)

3. Install libraries that might be necessary for clamav compilation:
sudo aptitude install libgmp3 libgmp3-dev
(this command is applicable for Debian and certainly will be different for Fedora or RedHat)

4. Compile clamav:
tar xvfz clamav-0.81.tar.gz
cd clamav-0.81/
./configure --sysconfdir=/etc
make

5. Run checkinstall and follow its intuitive instructions (enter package description etc.):
sudo checkinstall -D make install

6. When finished you’ll get clamav-0.81_0.81-1_i386.deb (or rpm package if you use Fedora/RedHat/CentOs) you may want to install with sudo dpkg -i clamav-0.81_0.81-1_i386.deb (or sudo rpm -i ...) or move to another PC for later installation.

FAQ: static routes after restart/reboot in Fedora/RedHat/CentOS

route 66Static routing is the term used to refer to the manual method used to set up routing. An administrator enters routes into the router using configuration commands. This method has the advantage of being predictable, and simple to set up. It is easy to manage in small networks but does not scale well.

Question: How can I save static routes I set up in my Fedora/RedHat/CentOS Linux after I reboot server?

Answer: In Fedora Linux (or RedHat, CentOS) you can set up static routes for certain network interface (for example eth1) by editing file /etc/sysconfig/network-scripts/route-eth1.

For example, you have to save static route added by the following command:

route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.100.1 dev eth1

To do it, just add the following line to /etc/sysconfig/network-scripts/route-eth1:

ADDRESS0=192.168.0.0
NETMASK0=255.255.255.0
GATE
WAY0=192.168.100.1

Update Dell laptop BIOS with Ubuntu

dell logoGood news for Dell laptops owners: latest BIOS images can be loaded with Ubuntu, Fedora or CentOS! It was announced at official Direct2Dell blog by Matt Domsch. In a nutshell to get new BIOS installed while you’re running Ubuntu 7.04 Feisty, 7.10 Gutsy, or Hardy just enable Universe repository in sources.list (System -> Administration -> Software Sources) and run under root (sudo -s):

wget -q -O - http://linux.dell.com/repo/firmware/bootstrap.cgi | bash
aptitude install firmware-addon-dell
aptitude install $(bootstrap_firmware -a)
update_firmware

The first command enables Dell’s Ubuntu repository as well as downloads and installs GPG key for this repository. As you might guess, restart is needed after last command is done (keep fingers crossed) :)

Please note that detailed instructions on how to update BIOS with Ubuntu (or other Linux distro) and firmware-tools developed by Dell are here:

We are releasing this project in the hopes of moving the industry towards a more scalable and friendly way to update BIOS and Firmware for systems.

Respect to Dell and it’s Linux engineers!




Pages: Prev 1 2 3 Next
Friendly Sites:Who is behind Linux Screw?
GeekyBits³ | Bash Cures Cancer | OMG! Ubuntu!
My SysAd Blog | Web Upd8
ZEPY | Linux config Wiki | Planet Sysadmin
a non-geek's linux notes | Linux Today
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem N. (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››