<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techonia.com &#187; Centos</title>
	<atom:link href="http://www.techonia.com/category/linux/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techonia.com</link>
	<description>News, Tutorials, and How-tos about Technology</description>
	<lastBuildDate>Fri, 30 Jul 2010 11:19:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to add MP3 support to Rhythmbox</title>
		<link>http://www.techonia.com/add-mp3-support-rhythmbox</link>
		<comments>http://www.techonia.com/add-mp3-support-rhythmbox#comments</comments>
		<pubDate>Mon, 21 Dec 2009 11:25:17 +0000</pubDate>
		<dc:creator>Fuad NAHDI</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MP3]]></category>
		<category><![CDATA[Rhythmbox]]></category>

		<guid isPermaLink="false">http://www.techonia.com/?p=787</guid>
		<description><![CDATA[If you want to play musics (MP3 files) in UNIX/Linux platform, you can choose to use XMMS, Songbird, Amarok ,Rhythmbox and others. Since I use Gnome window manager on my Centos 5.4, I use Rhythmbox to play MP3 music files]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button-left"><script type="text/javascript">
			<!-- 
			tweetmeme_url = "http://www.techonia.com/add-mp3-support-rhythmbox";
			tweetmeme_source = "techonia";
			//-->
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><div class="KonaBody"><p>If you want to play musics (MP3 files) in UNIX/Linux platform, you can choose to use XMMS, Songbird, Amarok ,Rhythmbox and others. Since I use Gnome window manager on my Centos 5.4, I use Rhythmbox to play MP3 music files. However when I first run the Rhythmbox program, I got error messages telling me that &#8216;The Gstreamer plugins to decode MP3 files cound not be found&#8221;, so I need to install the plugins.<br />
<span id="more-787"></span><br />
The plugins you need are gstreamer-plugins-ugly and gstreamer-plugins-bad. Both are already in RPMforge repository.</p>
<p>Make sure that you already have rpmforge repository. See <a href="http://wiki.centos.org/Repositories">http://wiki.centos.org/Repositories</a> to know how to install the RPMForge repository.</p>
<p>Run yum to install the plugins:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> gstreamer-plugins-ugly gstreamer-plugins-bad</pre></div></div>

<p>After installation succeeded then re-run the Rhythmbox and you should be able to playing MP3 files now.</p>
</div><h4>Incoming search terms for this post:</h4><ul><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="rhythmbox mp3">rhythmbox mp3</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="nokia 5800 rhythmbox">nokia 5800 rhythmbox</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="rythmbox mp3">rythmbox mp3</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="rhythmbox mp3 centos">rhythmbox mp3 centos</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="rhythmbox nokia 5800">rhythmbox nokia 5800</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="FEDORA 13 RHYTHMBOX MP3">FEDORA 13 RHYTHMBOX MP3</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="rhythmbox 5800">rhythmbox 5800</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="add mp3 to rhythmbox">add mp3 to rhythmbox</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="mp3 rhythmbox">mp3 rhythmbox</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="rhytmbox centos">rhytmbox centos</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="rhythmbox mp3 plugin">rhythmbox mp3 plugin</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="rhythmbox centos mp3">rhythmbox centos mp3</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="how to add mp3 support to rhythmbox">how to add mp3 support to rhythmbox</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="rhythmbox mp3 mandriva">rhythmbox mp3 mandriva</a></li><li><a href="http://www.techonia.com/add-mp3-support-rhythmbox" title="mp3 support for rhythmbox">mp3 support for rhythmbox</a></li></ul><!-- SEO SearchTerms Tagging 2 plugin took 14.919 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.techonia.com/add-mp3-support-rhythmbox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Oracle x64 11gR2 on Centos 5.4 x86_64</title>
		<link>http://www.techonia.com/install-oracle-centos</link>
		<comments>http://www.techonia.com/install-oracle-centos#comments</comments>
		<pubDate>Thu, 10 Dec 2009 21:33:42 +0000</pubDate>
		<dc:creator>Fuad NAHDI</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.techonia.com/?p=745</guid>
		<description><![CDATA[For the x64 platform you need to modify some settings in the /etc/sysctl.conf file and also the memory swap space.
I have 2GB RAM and set the swap memory to 2GB also, but in the installation stage the expected swap space is 3GB]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button-left"><script type="text/javascript">
			<!-- 
			tweetmeme_url = "http://www.techonia.com/install-oracle-centos";
			tweetmeme_source = "techonia";
			//-->
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><div class="KonaBody"><p>I followed the tutorial written by James F. Koopmann located at http://www.jameskoopmann.com/docs/Install_Oracle11gCentOS5.htm. It is basically the best oracle installation tutorial I found on the internet.<br />
The tutorial just install the software only. For the database creation, we can install later using Database Configuration Assistant (DBCA).<span id="more-745"></span><br />
For the x64 platform you need to modify some settings in the /etc/sysctl.conf file and also the memory swap space.<br />
I have 2GB RAM and set the swap memory to 2GB also, but in the installation stage the expected swap space is 3GB.<br />
Here are the parameter of /etc/sysctl.conf file you need to consider:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">kernel.sem = <span style="color: #000000;">250</span> <span style="color: #000000;">32000</span> <span style="color: #000000;">100</span> <span style="color: #000000;">128</span>
net.ipv4.ip_local_port_range = <span style="color: #000000;">9000</span> <span style="color: #000000;">65500</span>
net.core.rmem_default = <span style="color: #000000;">4194304</span>
net.core.rmem_max = <span style="color: #000000;">4194304</span>
net.core.wmem_default = <span style="color: #000000;">262144</span>
net.core.wmem_max = <span style="color: #000000;">1048576</span>
fs.file-max = <span style="color: #000000;">6815744</span>
fs.aio-max-nr = <span style="color: #000000;">1048576</span></pre></div></div>

<p>Below are the screenshots of the installation process:</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/45032848@N07/4210703350/" title="ora-install-1 by Fuad NAHDI, on Flickr"><img src="http://farm3.static.flickr.com/2723/4210703350_193c870756.jpg" width="500" height="376" alt="ora-install-1" /></a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/45032848@N07/4210703402/" title="ora-grid-option by Fuad NAHDI, on Flickr"><img src="http://farm5.static.flickr.com/4010/4210703402_77a66283d5.jpg" width="500" height="375" alt="ora-grid-option" /></a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/45032848@N07/4209937773/" title="ora-install-db-edition by Fuad NAHDI, on Flickr"><img src="http://farm3.static.flickr.com/2707/4209937773_808f5a77ab.jpg" width="500" height="375" alt="ora-install-db-edition" /></a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/45032848@N07/4209937803/" title="ora-install-location by Fuad NAHDI, on Flickr"><img src="http://farm3.static.flickr.com/2631/4209937803_e1123fa2e6.jpg" width="500" height="375" alt="ora-install-location" /></a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/45032848@N07/4209937853/" title="ora-install-inventory by Fuad NAHDI, on Flickr"><img src="http://farm3.static.flickr.com/2783/4209937853_20543ca1da.jpg" width="500" height="375" alt="ora-install-inventory" /></a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/45032848@N07/4209937891/" title="ora-os-group by Fuad NAHDI, on Flickr"><img src="http://farm3.static.flickr.com/2515/4209937891_bb8bf34d84.jpg" width="500" height="376" alt="ora-os-group" /></a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/45032848@N07/4209937935/" title="ora-install-summary by Fuad NAHDI, on Flickr"><img src="http://farm5.static.flickr.com/4054/4209937935_d14f754440.jpg" width="500" height="375" alt="ora-install-summary" /></a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/45032848@N07/4209937957/" title="ora-install-product by Fuad NAHDI, on Flickr"><img src="http://farm5.static.flickr.com/4047/4209937957_bfda6c83b2.jpg" width="500" height="375" alt="ora-install-product" /></a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/45032848@N07/4210703646/" title="ora-install-finish by Fuad NAHDI, on Flickr"><img src="http://farm5.static.flickr.com/4069/4210703646_5af8b92c01.jpg" width="500" height="376" alt="ora-install-finish" /></a></p>
</div><h4>Incoming search terms for this post:</h4><ul><li><a href="http://www.techonia.com/install-oracle-centos" title="install oracle 11g on centos 5 4">install oracle 11g on centos 5 4</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="oracle 11g centos 5 4">oracle 11g centos 5 4</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="installing oracle 11g on centos 5 4">installing oracle 11g on centos 5 4</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="centos 5 4 oracle 11g">centos 5 4 oracle 11g</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="oracle centos 5 4">oracle centos 5 4</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="centos oracle 11gr2">centos oracle 11gr2</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="oracle on centos 5 4">oracle on centos 5 4</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="oracle 11gr2 centos">oracle 11gr2 centos</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="installing oracle on centos 5 4">installing oracle on centos 5 4</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="centos 5 4 oracle">centos 5 4 oracle</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="oracle 11g r2 centos">oracle 11g r2 centos</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="oracle 11gr2 centos 5 4">oracle 11gr2 centos 5 4</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="centos 5 4 oracle 11 R2">centos 5 4 oracle 11 R2</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="centos 5 4 oracle 11gr2">centos 5 4 oracle 11gr2</a></li><li><a href="http://www.techonia.com/install-oracle-centos" title="install oracle 11gr2 on centos">install oracle 11gr2 on centos</a></li></ul><!-- SEO SearchTerms Tagging 2 plugin took 15.652 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.techonia.com/install-oracle-centos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Huawei E220 USB Modem on Centos 5.4</title>
		<link>http://www.techonia.com/install-huawei-usb-modem-centos</link>
		<comments>http://www.techonia.com/install-huawei-usb-modem-centos#comments</comments>
		<pubDate>Tue, 03 Nov 2009 11:18:46 +0000</pubDate>
		<dc:creator>Fuad NAHDI</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Huawei]]></category>

		<guid isPermaLink="false">http://www.katalis.web.id/?p=530</guid>
		<description><![CDATA[It is very easy to do this. CentOS 5.4 that using kernel 2.6.18-164 is smart enough to autodetect the device so you do not need huaweiAktBbo-i386.out tool to switch the modem to the correct mode for serial port. In my case, it is detected and attached to ttyUSB0 and ttyUSB1]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button-left"><script type="text/javascript">
			<!-- 
			tweetmeme_url = "http://www.techonia.com/install-huawei-usb-modem-centos";
			tweetmeme_source = "techonia";
			//-->
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><div class="KonaBody"><p>You want to install Huawei E220 USB Modem on Centos 5.4 and use the modem to access internet? If you use Slackware 12.2 or Fedora 12, click <a href="http://www.techonia.com/install-huawei-usb-modem-slackware"> here </a> for Slackware 12.2 or <a href="http://www.techonia.com/install-huawei-usb-modem-fedora"> here</a> for Fedora 12 to follow the tutorials.</p>
<p>It is very easy to do this. CentOS 5.4 that using kernel 2.6.18-164 is smart enough to autodetect the device so you do not need huaweiAktBbo-i386.out tool to switch the modem to the correct mode for serial port. In my case, it is detected and attached to ttyUSB0 and ttyUSB1. When you connect the modem to your laptop or PC via USB port,<span id="more-530"></span> you would see log messages in &#8216;dmesg&#8217; command something like below:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">usb <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>: new full speed USB device using uhci_hcd and address <span style="color: #000000;">2</span>
usb <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>: configuration <span style="color: #666666; font-style: italic;">#1 chosen from 1 choice</span>
Initializing USB Mass Storage driver...
scsi3 : SCSI emulation <span style="color: #000000; font-weight: bold;">for</span> USB Mass Storage devices
usb-storage: device found at <span style="color: #000000;">2</span>
usb-storage: waiting <span style="color: #000000; font-weight: bold;">for</span> device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>: USB disconnect, address <span style="color: #000000;">2</span>
usb <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>: new full speed USB device using uhci_hcd and address <span style="color: #000000;">3</span>
usb <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>: configuration <span style="color: #666666; font-style: italic;">#1 chosen from 1 choice</span>
usb-storage: probe of <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>:<span style="color: #000000;">1.0</span> failed with error <span style="color: #660033;">-5</span>
usb-storage: probe of <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>:<span style="color: #000000;">1.1</span> failed with error <span style="color: #660033;">-5</span>
scsi6 : SCSI emulation <span style="color: #000000; font-weight: bold;">for</span> USB Mass Storage devices
usb-storage: device found at <span style="color: #000000;">3</span>
usb-storage: waiting <span style="color: #000000; font-weight: bold;">for</span> device to settle before scanning
usbcore: registered new driver usbserial
drivers<span style="color: #000000; font-weight: bold;">/</span>usb<span style="color: #000000; font-weight: bold;">/</span>serial<span style="color: #000000; font-weight: bold;">/</span>usb-serial.c: USB Serial support registered <span style="color: #000000; font-weight: bold;">for</span> generic
usbcore: registered new driver usbserial_generic
drivers<span style="color: #000000; font-weight: bold;">/</span>usb<span style="color: #000000; font-weight: bold;">/</span>serial<span style="color: #000000; font-weight: bold;">/</span>usb-serial.c: USB Serial Driver core
drivers<span style="color: #000000; font-weight: bold;">/</span>usb<span style="color: #000000; font-weight: bold;">/</span>serial<span style="color: #000000; font-weight: bold;">/</span>usb-serial.c: USB Serial support registered <span style="color: #000000; font-weight: bold;">for</span> GSM modem <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-port<span style="color: #7a0874; font-weight: bold;">&#41;</span>
option <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>:<span style="color: #000000;">1.0</span>: GSM modem <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-port<span style="color: #7a0874; font-weight: bold;">&#41;</span> converter detected
usb <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>: GSM modem <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-port<span style="color: #7a0874; font-weight: bold;">&#41;</span> converter now attached to ttyUSB0
option <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>:<span style="color: #000000;">1.1</span>: GSM modem <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-port<span style="color: #7a0874; font-weight: bold;">&#41;</span> converter detected
usb <span style="color: #000000;">2</span>-<span style="color: #000000;">2</span>: GSM modem <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-port<span style="color: #7a0874; font-weight: bold;">&#41;</span> converter now attached to ttyUSB1
usbcore: registered new driver option
drivers<span style="color: #000000; font-weight: bold;">/</span>usb<span style="color: #000000; font-weight: bold;">/</span>serial<span style="color: #000000; font-weight: bold;">/</span>option.c: USB Driver <span style="color: #000000; font-weight: bold;">for</span> GSM modems: v0.7.1
  Vendor: HUAWEI    Model: Mass Storage      Rev: <span style="color: #000000;">2.31</span>
  Type:   CD-ROM                             ANSI SCSI revision: 02
scsi <span style="color: #000000;">6</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>: Attached scsi generic sg1 <span style="color: #7a0874; font-weight: bold;">type</span> <span style="color: #000000;">5</span>
usb-storage: device scan <span style="color: #7a0874; font-weight: bold;">complete</span></pre></div></div>

<p>As you can see above, Centos 5.4 already attached the modem to ttyUSB0 and ttyUSB1.<br />
<!-- You will NOT be able to see the ad on your site! This unit is hidden on your page, and will only display to your search engine traffic (from US and CA). To preview, paste the code up on your site, then add #chitikatest=mortgage to the end of your URL in your browser's address bar.  Example:  www.yourwebsite.com#chitikatest=mortgage. This will show you what the ad would look like to a user who is interested in "mortgages." -->
<script type="text/javascript"><!--
ch_client = "fuadnahdi";
ch_type = "mpu";
ch_width = 468;
ch_height = 180;
ch_color_bg = "FFFFFF";
ch_color_border = "FFFFFF";
ch_color_title = "0066CC";
ch_color_site_link = "0066CC";
ch_color_text = "000000";
ch_non_contextual = 4;
ch_vertical ="premium";
ch_font_title = "Arial";
ch_font_text = "Arial";
ch_sid = "Chitika Premium";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript">
</script><br />
Now build a configuration file for wvdial and stored it in /etc/wvdial.conf file by running wvdialconf command as below:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fuad ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># wvdialconf /etc/wvdial.conf</span>
Scanning your serial ports <span style="color: #000000; font-weight: bold;">for</span> a modem.
&nbsp;
Port Scan<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: S0   S1   S2   S3
WvModem<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Cannot get information <span style="color: #000000; font-weight: bold;">for</span> serial port.
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 Z <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span> <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Modem Identifier: ATI <span style="color: #660033;">--</span> Manufacturer: huawei
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">4800</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">9600</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">19200</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">38400</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">57600</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">115200</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">230400</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">460800</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Max speed is <span style="color: #000000;">460800</span>; that should be safe.
ttyUSB0<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span> <span style="color: #660033;">--</span> OK
WvModem<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Cannot get information <span style="color: #000000; font-weight: bold;">for</span> serial port.
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 Z <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span> <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Modem Identifier: ATI <span style="color: #660033;">--</span> Manufacturer: huawei
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">4800</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">9600</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">19200</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">38400</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">57600</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">115200</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">230400</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Speed <span style="color: #000000;">460800</span>: AT <span style="color: #660033;">--</span> OK
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: Max speed is <span style="color: #000000;">460800</span>; that should be safe.
ttyUSB1<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span> <span style="color: #660033;">--</span> OK
&nbsp;
Found a modem on <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>ttyUSB0.
Modem configuration written to <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>wvdial.conf.
ttyUSB0: Speed <span style="color: #000000;">460800</span>; init <span style="color: #000000; font-weight: bold;">\&quot;</span>ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">\&quot;</span>
ttyUSB1: Speed <span style="color: #000000;">460800</span>; init <span style="color: #000000; font-weight: bold;">\&quot;</span>ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">\&quot;</span></pre></div></div>

<p>The command above will generate wvdial.conf after scanning the modem. You can check that file and should be like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fuad ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cat /etc/wvdial.conf</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>Dialer Defaults<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Modem = <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>ttyUSB0
Baud = <span style="color: #000000;">460800</span>
Init1 = ATZ
Init2 = ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span>
ISDN = <span style="color: #000000;">0</span>
Modem Type = Analog Modem
; Phone = 
; Username = 
; Password =</pre></div></div>

<p>You have to edit the Phone, Username and Password of the configuration above to meet your account.</p>
<p>For example, it should be like below:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>Dialer Defaults<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Modem = <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>ttyUSB0
Baud = <span style="color: #000000;">460800</span>
Init1 = ATZ
Init2 = ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span>
ISDN = <span style="color: #000000;">0</span>
Modem Type = Analog Modem
Phone = <span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">99</span><span style="color: #666666; font-style: italic;">#</span>
Username = fuadnahdi
Password = secret-eh</pre></div></div>

<p>The next step is running &#8216;wvdial&#8217; command as root. By default it will read /etc/wvdial.conf as we configured before.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fuad ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># wvdial</span>
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; WvDial: Internet dialer version 1.54.0
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Cannot get information <span style="color: #000000; font-weight: bold;">for</span> serial port.
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Initializing modem.
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Sending: ATZ
ATZ
OK
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Sending: ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span>
ATQ0 V1 E1 <span style="color: #007800;">S0</span>=<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;C1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;D2 +<span style="color: #007800;">FCLASS</span>=<span style="color: #000000;">0</span>
OK
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Modem initialized.
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Sending: ATDT<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">99</span><span style="color: #666666; font-style: italic;">#</span>
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Waiting <span style="color: #000000; font-weight: bold;">for</span> carrier.
ATDT<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">99</span><span style="color: #666666; font-style: italic;">#</span>
CONNECT
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Carrier detected.  Waiting <span style="color: #000000; font-weight: bold;">for</span> prompt.
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Don<span style="color: #000000; font-weight: bold;">\'</span>t know what to <span style="color: #000000; font-weight: bold;">do</span><span style="color: #000000; font-weight: bold;">!</span>  Starting pppd and hoping <span style="color: #000000; font-weight: bold;">for</span> the best.
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Starting pppd at Mon Nov  <span style="color: #000000;">1</span> <span style="color: #000000;">19</span>:<span style="color: #000000;">51</span>:01 <span style="color: #000000;">2009</span>
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; pid of pppd: <span style="color: #000000;">4206</span>
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Using interface ppp0
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #7a0874; font-weight: bold;">local</span>  IP address 114.59.189.52
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; remote IP address 10.64.64.64
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; primary   DNS address 202.155.0.10
--<span style="color: #000000; font-weight: bold;">&amp;</span>gt; secondary DNS address 202.155.0.15</pre></div></div>

<p>If successful you will get an IP address and DNS server assigned to you. For the DNS server, you need to manually write it into /etc/resolv.conf because the wvdial script will not automatically write it for you.</p>
</div><h4>Incoming search terms for this post:</h4><ul><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="usb-modeswitch centos">usb-modeswitch centos</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="centos 3g modem">centos 3g modem</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="centos Huawei">centos Huawei</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="huawei e220 centos 5 4">huawei e220 centos 5 4</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="centos Huawei E220">centos Huawei E220</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="huawei usb modem centos">huawei usb modem centos</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="HUAWEI centOS">HUAWEI centOS</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="centos usb-modeswitch">centos usb-modeswitch</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="usb modeswitch centos">usb modeswitch centos</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="centos usb modem">centos usb modem</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="e220 centos">e220 centos</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="usb-modeswitch howto">usb-modeswitch howto</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="huawei e220 centos">huawei e220 centos</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="Huawei E220 modeswitch">Huawei E220 modeswitch</a></li><li><a href="http://www.techonia.com/install-huawei-usb-modem-centos" title="centos usb 3g">centos usb 3g</a></li></ul><!-- SEO SearchTerms Tagging 2 plugin took 18.481 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.techonia.com/install-huawei-usb-modem-centos/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to upgrade Clam Anti-virus (Clamav) on Centos</title>
		<link>http://www.techonia.com/upgrade-clamav-centos</link>
		<comments>http://www.techonia.com/upgrade-clamav-centos#comments</comments>
		<pubDate>Sun, 23 Aug 2009 01:23:58 +0000</pubDate>
		<dc:creator>Fuad NAHDI</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Clamav]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.katalis.web.id/?p=389</guid>
		<description><![CDATA[My email server is using Postfix as the MTA and Clamav as the anti-virus software running on Centos 5. Today I check the version of Clamav installed on it and it is already out-dated so I need to upgrade to the latest stable version. The installed version of clamav is ClamAV 0.94 whereas the latest stable version is ClamAV 0.95.2.]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button-left"><script type="text/javascript">
			<!-- 
			tweetmeme_url = "http://www.techonia.com/upgrade-clamav-centos";
			tweetmeme_source = "techonia";
			//-->
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><div class="KonaBody"><p>My email server is using Postfix as the MTA and Clamav as the anti-virus software running on Centos 5.4. Today I check the version of Clamav installed on it and it is already out-dated so I need to upgrade to the latest stable version. The installed version of clamav is ClamAV 0.94 whereas the latest stable version is ClamAV 0.95.2.</p>
<p>Upgrading clamav installed on Centos is easy. You just first backup the current configuration of clamav (/etc/clamd.conf and /etc/freshclam.conf).<span id="more-389"></span><br />
Basically if you install clamav for the  first time, you need to edit and modify the config file of clamav (clamd.conf and freshclam.conf) to meet your need. You do not wanna lose these files because it takes time to edit them.</p>
<p>Here are the upgrade processes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>mx-<span style="color: #000000;">1</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum upgrade clamav</span>
Loading <span style="color: #ff0000;">&quot;installonlyn&quot;</span> plugin
Setting up Upgrade Process
Setting up repositories
rpmforge                  <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">1.1</span> kB    00:00
base                      <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">1.1</span> kB    00:00
updates                   <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">951</span> B    00:00
addons                    <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">951</span> B    00:00
extras                    <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">1.1</span> kB    00:00
Reading repository metadata <span style="color: #000000; font-weight: bold;">in</span> from <span style="color: #7a0874; font-weight: bold;">local</span> files
primary.xml.gz            <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">3.5</span> MB    00:<span style="color: #000000;">39</span>
<span style="color: #666666; font-style: italic;">################################################## 9558/9558</span>
primary.xml.gz            <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">878</span> kB    00:02
<span style="color: #666666; font-style: italic;">################################################## 2508/2508</span>
primary.xml.gz            <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">306</span> kB    00:01
<span style="color: #666666; font-style: italic;">################################################## 465/465</span>
primary.xml.gz            <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">100</span> kB    00:01
<span style="color: #666666; font-style: italic;">################################################## 312/312</span>
Resolving Dependencies
--<span style="color: #000000; font-weight: bold;">&gt;</span> Populating transaction <span style="color: #000000; font-weight: bold;">set</span> with selected packages. Please wait.
---<span style="color: #000000; font-weight: bold;">&gt;</span> Downloading header <span style="color: #000000; font-weight: bold;">for</span> clamav to pack into transaction set.
clamav-0.95.2-4.el5.rf.i3 <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000;">25</span> kB    00:00
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package clamav.i386 <span style="color: #000000;">0</span>:0.95.2-4.el5.rf <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libclamav.so.5 <span style="color: #000000; font-weight: bold;">for</span> package: clamd
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libclamav.so.5<span style="color: #7a0874; font-weight: bold;">&#40;</span>CLAMAV_PRIVATE<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">for</span> package: clamd
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: clamav = <span style="color: #000000;">0.94</span>-1.el5.rf <span style="color: #000000; font-weight: bold;">for</span> package: clamd
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: libclamav.so.5<span style="color: #7a0874; font-weight: bold;">&#40;</span>CLAMAV_PUBLIC<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">for</span> package: clamd
--<span style="color: #000000; font-weight: bold;">&gt;</span> Restarting Dependency Resolution with new changes.
--<span style="color: #000000; font-weight: bold;">&gt;</span> Populating transaction <span style="color: #000000; font-weight: bold;">set</span> with selected packages. Please wait.
---<span style="color: #000000; font-weight: bold;">&gt;</span> Downloading header <span style="color: #000000; font-weight: bold;">for</span> clamd to pack into transaction set.
clamd-0.95.2-4.el5.rf.i38 <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">6.7</span> kB    00:00
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package clamd.i386 <span style="color: #000000;">0</span>:0.95.2-4.el5.rf <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
&nbsp;
Dependencies Resolved
&nbsp;
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 clamav                  i386       0.95.2-4.el5.rf  rpmforge          <span style="color: #000000;">2.7</span> M
Updating <span style="color: #000000; font-weight: bold;">for</span> dependencies:
 clamd                   i386       0.95.2-4.el5.rf  rpmforge          <span style="color: #000000;">213</span> k
&nbsp;
Transaction Summary
=============================================================================
Install      <span style="color: #000000;">0</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Update       <span style="color: #000000;">2</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Remove       <span style="color: #000000;">0</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
Total download <span style="color: #c20cb9; font-weight: bold;">size</span>: <span style="color: #000000;">2.9</span> M
Is this ok <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#93;</span>:
Downloading Packages:
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: clamd-0.95.2-4.el5 <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">213</span> kB    00:03
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: clamav-0.95.2-4.el <span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2.7</span> MB    00:<span style="color: #000000;">15</span>
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : clamav                       <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>warning: <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>freshclam.conf created <span style="color: #c20cb9; font-weight: bold;">as</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>freshclam.conf.rpmnew
  Updating  : clamav                       <span style="color: #666666; font-style: italic;">######################### [1/4]</span>
  Updating  : clamd                        <span style="color: #666666; font-style: italic;">######################### [2/4]</span>
  Cleanup   : clamd                        <span style="color: #666666; font-style: italic;">######################### [3/4]</span>
  Cleanup   : clamav                       <span style="color: #666666; font-style: italic;">######################### [4/4]</span>
&nbsp;
Updated: clamav.i386 <span style="color: #000000;">0</span>:0.95.2-4.el5.rf
Dependency Updated: clamd.i386 <span style="color: #000000;">0</span>:0.95.2-4.el5.rf
Complete<span style="color: #000000; font-weight: bold;">!</span></pre></div></div>

<p>Now restore the backup files to /etc folder and then restart the clamav service.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>mx-<span style="color: #000000;">1</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># /etc/init.d/clamd restart</span></pre></div></div>

<p>Check the clamav version:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>mx-<span style="color: #000000;">1</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># clamd -V</span>
ClamAV 0.95.2<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">9727</span><span style="color: #000000; font-weight: bold;">/</span>Sat Aug <span style="color: #000000;">22</span> <span style="color: #000000;">21</span>:04:<span style="color: #000000;">10</span> <span style="color: #000000;">2009</span></pre></div></div>

<p>Do not forget to update clam antivirus database using freshclam.<br />
Since I live in Indonesia, I use db.id.clamav.net as DatabaseMirror in the freshclam.conf file but got errors when running the freshclam update like below:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Can not connect to port <span style="color: #000000;">80</span> of host db.id.clamav.net <span style="color: #7a0874; font-weight: bold;">&#40;</span>IP: 222.124.18.201<span style="color: #7a0874; font-weight: bold;">&#41;</span>
ERROR: getpatch: Can not download daily-9725.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Trying host db.id.clamav.net <span style="color: #7a0874; font-weight: bold;">&#40;</span>222.124.18.201<span style="color: #7a0874; font-weight: bold;">&#41;</span>...
nonblock_connect: connect timing out <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">30</span> secs<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Can not connect to port <span style="color: #000000;">80</span> of host db.id.clamav.net <span style="color: #7a0874; font-weight: bold;">&#40;</span>IP: 222.124.18.201<span style="color: #7a0874; font-weight: bold;">&#41;</span>
ERROR: Can not download daily.cvd from db.id.clamav.net
Giving up on db.id.clamav.net...
Update failed. Your network may be down or none of the mirrors listed <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>freshclam.conf is working. Check http:<span style="color: #000000; font-weight: bold;">//</span>www.clamav.net<span style="color: #000000; font-weight: bold;">/</span>support<span style="color: #000000; font-weight: bold;">/</span>mirror-problem <span style="color: #000000; font-weight: bold;">for</span> possible reasons.</pre></div></div>

<p>We have to try another mirror sites. Run &#8216;freshclam &#8211;list-mirrors&#8217; to see available mirror sites.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>mx-<span style="color: #000000;">1</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># freshclam --list-mirrors</span>
Mirror <span style="color: #666666; font-style: italic;">#1</span>
IP: 222.124.18.201
Successes: <span style="color: #000000;">1113</span>
Failures: <span style="color: #000000;">0</span>
Last access: Wed Aug <span style="color: #000000;">19</span> 04:04:<span style="color: #000000;">58</span> <span style="color: #000000;">2009</span>
Ignore: No
<span style="color: #660033;">-------------------------------------</span>
Mirror <span style="color: #666666; font-style: italic;">#2</span>
IP: 193.1.193.64
Successes: <span style="color: #000000;">1116</span>
Failures: <span style="color: #000000;">2</span>
Last access: Wed Aug <span style="color: #000000;">19</span> 04:04:<span style="color: #000000;">58</span> <span style="color: #000000;">2009</span>
Ignore: No
<span style="color: #660033;">-------------------------------------</span>
Mirror <span style="color: #666666; font-style: italic;">#3</span>
IP: 192.121.13.5
Successes: <span style="color: #000000;">12</span>
Failures: <span style="color: #000000;">0</span>
Last access: Sat Aug <span style="color: #000000;">22</span> 04:<span style="color: #000000;">12</span>:07 <span style="color: #000000;">2009</span>
Ignore: No</pre></div></div>

<p>There are three available mirrors. The first one was failed (db.id.clamav.net), the second one is located at Ireland and the third one is located at Sweden.<br />
I choose the third one, the Sweden. The domain country code of Sweden is &#8216;se&#8217; so the db clamav domain must be &#8216;db.se.clamav.net&#8217;. Set the DatabaseMirror in freshclam.conf to be db.se.clamav.net and then run freshclam update again.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>mx-<span style="color: #000000;">1</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># /usr/bin/freshclam --datadir=&quot;/var/clamav&quot; --log=&quot;/var/log/clamav/freshclam.log&quot; --daemon-notify=&quot;/etc/clamd.conf&quot;</span>
ClamAV update process started at Sun Aug <span style="color: #000000;">23</span> 07:01:<span style="color: #000000;">18</span> <span style="color: #000000;">2009</span>
main.cld is up to <span style="color: #c20cb9; font-weight: bold;">date</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>version: <span style="color: #000000;">51</span>, sigs: <span style="color: #000000;">545035</span>, f-level: <span style="color: #000000;">42</span>, builder: sven<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Trying host db.se.clamav.net <span style="color: #7a0874; font-weight: bold;">&#40;</span>194.47.250.218<span style="color: #7a0874; font-weight: bold;">&#41;</span>...
Downloading daily-9725.cdiff <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
Downloading daily-9726.cdiff <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
Downloading daily-9727.cdiff <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
daily.cld updated <span style="color: #7a0874; font-weight: bold;">&#40;</span>version: <span style="color: #000000;">9727</span>, sigs: <span style="color: #000000;">66742</span>, f-level: <span style="color: #000000;">43</span>, builder: mcichosz<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Database updated <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">611777</span> signatures<span style="color: #7a0874; font-weight: bold;">&#41;</span> from db.se.clamav.net <span style="color: #7a0874; font-weight: bold;">&#40;</span>IP: 194.47.250.218<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Clamd successfully notified about the update.</pre></div></div>

<p>Now your clamav has been upgraded and the clam antivirus database also has been updated successfully.  Restart the clamd service again.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>mx-<span style="color: #000000;">1</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># /etc/init.d/clamd restart</span></pre></div></div>

</div><h4>Incoming search terms for this post:</h4><ul><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="upgrade clamav">upgrade clamav</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="upgrade clamav centos">upgrade clamav centos</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="clamav upgrade">clamav upgrade</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="clamav centos">clamav centos</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="update clamav centos">update clamav centos</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="how to upgrade ClamAV">how to upgrade ClamAV</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="centos clamav">centos clamav</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="clamav centos 5 4">clamav centos 5 4</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="how to upgrade ClamaV on centos">how to upgrade ClamaV on centos</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="centos update clamav">centos update clamav</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="centos clamav upgrade">centos clamav upgrade</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="centos upgrade clamav">centos upgrade clamav</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="install clamav centos 5 4">install clamav centos 5 4</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="yam techoni net">yam techoni net</a></li><li><a href="http://www.techonia.com/upgrade-clamav-centos" title="how to upgrade clamav centos">how to upgrade clamav centos</a></li></ul><!-- SEO SearchTerms Tagging 2 plugin took 57.053 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.techonia.com/upgrade-clamav-centos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
