<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Linglom.com &#187; Linux</title> <atom:link href="http://www.linglom.com/category/linux/feed/" rel="self" type="application/rss+xml" /><link>http://www.linglom.com</link> <description>Source of IT knowledge</description> <lastBuildDate>Wed, 07 Dec 2011 14:03:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat</title><link>http://www.linglom.com/2008/08/17/how-to-setup-stand-alone-kaspersky-anti-virus-57-workstation-on-linux-redhat/</link> <comments>http://www.linglom.com/2008/08/17/how-to-setup-stand-alone-kaspersky-anti-virus-57-workstation-on-linux-redhat/#comments</comments> <pubDate>Sun, 17 Aug 2008 12:38:15 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Kaspersky]]></category> <category><![CDATA[Red Hat]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=104</guid> <description><![CDATA[Introduction Kaspersky Anti-Virus is now one of the popular anti-virus softwares. The strong point are that it can detect and clean most of virus, light weight &#8211; it consumes less system resource comparing with other anti-virus softwares and Kaspersky&#8217;s signature is updated regularly (about every 2 hours). Today, I have to setup Kaspersky Anti-Virus for [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2008/03/28/test-anti-virus-with-text-file/' rel='bookmark' title='Test anti virus with text file'>Test anti virus with text file</a> <small>If you have anti-virus installed on your PC and wonder...</small></li><li><a
href='http://www.linglom.com/2008/03/07/how-to-install-vmware-server-on-linux-redhat/' rel='bookmark' title='How to install VMWare Server on Linux Redhat'>How to install VMWare Server on Linux Redhat</a> <small>Introduction Nowadays, virtualization is a solution which is interested by...</small></li><li><a
href='http://www.linglom.com/2008/04/20/how-to-change-ip-address-on-linux-redhat/' rel='bookmark' title='How to change IP Address on Linux Redhat'>How to change IP Address on Linux Redhat</a> <small>Introduction Most of the time, I work in Windows environment....</small></li></ol>]]></description> <content:encoded><![CDATA[<h3>Introduction</h3><p>Kaspersky Anti-Virus is now one of the popular anti-virus softwares. The strong point are that it can detect and clean most of virus, light weight &#8211; it consumes less system resource comparing with other anti-virus softwares and Kaspersky&#8217;s signature is updated regularly (about every 2 hours).</p><p><span
id="more-104"></span></p><p>Today, I have to setup Kaspersky Anti-Virus for Linux Workstation on a RedHat Enterprise 4. But in my environment, I can&#8217;t update signature from the Internet directly because it&#8217;s a separated network. So I have to manually update the signature myself. And I&#8217;ll install only few servers so there&#8217;s no need to install administration console for centralize management Kaspersky&#8217;s product. Therefore, I&#8217;ll not install Kaspersky Network Agent.</p><p>This article, I&#8217;ll show how to install Kaspersky Anti-Virus 5.7 on Linux RedHat Enterprise 4 by starting from install Webmin first. Then, I&#8217;ll install Kaspersky Workstation 5.7 and update the signature manually. Finally, I&#8217;ll add cronjobs to perform a scanning every week.</p><p><em><strong>Note: </strong></em>Webmin is a web-based interface for system administration for Unix which will be used for configure Kaspersky Workstation.</p><p></p><p><a
name="top"></a></p><h3>Section</h3><ol><li><a
href="#1">Install Webmin on Linux RedHat Enterprise 4</a></li><li><a
href="#2">Install Kaspersky Anti-Virus Workstation 5.7 on Linux RedHat Enterprise 4</a></li><li><a
href="#3">Manually Update the Kaspersky Anti-Virus&#8217;s signature</a></li><li><a
href="#4">Start the Kaspersky Anti-Virus On-Access Scanner</a></li><li><a
href="#5">Add cronjobs to run Kaspersky Scanner</a></li></ol><h3>Step-by-step</h3><p><a
name="1"></a></p><h4>Install Webmin on Linux RedHat Enterprise 4</h4><ol><li>Login as &#8216;root&#8217; on Linux RedHat Enterprise 4 server. You may be logged in as other user and use &#8216;su&#8217; command to execute as &#8216;root&#8217;.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/1.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_1.png" width="250" height="188" alt="Root's desktop" title="Root's desktop"  /></a></li><li>Insert Kaspersky&#8217;s CD on the server. I got it from Kaspersky&#8217;s vendor. Copy these .rpm files to local server.<ul><li>Webmin: <strong>webmin-1.370-1.noarch.rpm</strong></li><li>Kaspersky Workstation 5.7 for Linux: <strong>kav4ws-5.7-17.i386.rpm</strong></li><li>Kaspersky&#8217;s CDKey: <strong>CDKEY.key</strong></li><li>Kaspersky&#8217;s signature: <strong>av-i386-cumul.zip</strong></li></ul><p><em><strong>Note: </strong></em>For webmin, you can find one at www.webmin.com. For av-i386-cumul.zip, you can find the latest signature one at kaspersky.com.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/2.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_2.png" width="250" height="188" alt="Prepare files for installation" title="Prepare files for installation"  /></a></li><li>Open Terminal by right click on any space on the desktop and select Open Terminal. Type the command below to install Webmin.<br
/><blockquote><p>rpm -ivh /root/Desktop/webmin-1.370-1.noarch.rpm</p></blockquote><p>When the installation finishes, it&#8217;ll show how to open Webmin as in the figure. In this example, it tells I can open Webmin by browse to http://localhost.localdomain.com:10000 and login using &#8216;root&#8217; account.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/3.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_3.png" width="250" height="188" alt="Install Webmin" title="Install Webmin"  /></a></li><li>Test if you can access Webmin by open the browser and enter the url that you get from the last step. It&#8217;ll ask for user account for Webmin server. Enter your account user and password.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/4.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_4.png" width="250" height="188" alt="Login to Webmin webpage" title="Login to Webmin webpage"  /></a></li><li>Now you&#8217;ll see the main page of Webmin. The Webmin has been installed successfully.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/5.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_5.png" width="250" height="188" alt="Webmin's Main page" title="Webmin's Main page"  /></a></li></ol><p><a
href="#top">Back to top</a></p><p><a
name="2"></a></p><h4>Install Kaspersky Anti-Virus Workstation 5.7 on Linux RedHat Enterprise 4</h4><ol><li>Back to Terminal. Type the command below to install Kaspersky Workstation 5.7.<br
/><blockquote><p>rpm -ivh /root/Desktop/kav4ws-5.7-17.i386.rpm</p></blockquote><p>When the installation finishes, it recommends you to run <strong>postinstall.pl</strong> to configure Kaspersky Anti-Virus.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/6.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_6.png" width="250" height="187" alt="Install Kaspersky Workstation 5.7" title="Install Kaspersky Workstation 5.7"  /></a></li><li>Run <strong>postinstall.pl</strong> to configure it by type the command below.<br
/><blockquote><p>/opt/kaspersky/kav4ws/lib/bin/setup/postinstall.pl</p></blockquote><p><a
href="http://www.linglom.com/images/Linux/Kaspersky/7.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_7.png" width="250" height="188" alt="Execute postinstall.pl" title="Execute postinstall.pl"  /></a></li><li>The first thing that the configuration asks is the license key of Kaspersky. You can obtain this file from Kaspersky by buying the product. Type only the folder that you keep the file. In this example, I have the license key file on /root/Desktop/CDKEY.key so I type<br
/><blockquote><p>/root/Desktop</p></blockquote><p><em><strong>Note: </strong></em>When configuration finishes, you can delete the license key file. Kaspersky has already load the license to its system.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/8.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_8.png" width="250" height="188" alt="Adding the license key" title="Adding the license key"  /></a></li><li>Next, the configuration asks for the proxy to access the Internet to get updates. Since I&#8217;ll configure an offline system, I can ignore this configuration. I simply press &#8216;Enter&#8217; to accept default value ([No]).<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/9.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_9.png" width="250" height="188" alt="Configure Kaspersky" title="Configure Kaspersky"  /></a></li><li>Next, it asks to update the signature. Again, this is offline system. I&#8217;ll type &#8216;no&#8217;.<br
/> <em><strong>Note:</strong></em> For the first time of installation, you have to update the signature at least once. Otherwise, it can&#8217;t run. I&#8217;ll manually update the signature in the next few steps.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/10.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_10.png" width="250" height="188" alt="Configure Kaspersky" title="Configure Kaspersky"  /></a></li><li>Next, it asks to compile kavmonitor, simply press &#8216;Enter&#8217; to proceed.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/11.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_11.png" width="250" height="187" alt="Configure Kaspersky" title="Configure Kaspersky"  /></a></li><li>Now the Kaspersky Anti-Virus for Linux Workstation is installed. You&#8217;ll noticed some error but it&#8217;ll be solved after update the signature.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/12.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_12.png" width="250" height="187" alt="Configure Kaspersky" title="Configure Kaspersky"  /></a></li><li>Check if Kaspersky Anti-Virus for Linux is installed properly by open Webmin. Browse to Other -> KAV 5.7 for UNIX WS. This is the configuration page for Kaspersky Anti-Virus 5.7.<br
/> <em><strong>Note: </strong></em>If you don&#8217;t see this menu, recheck the Kaspersky&#8217;s configuration again.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/13.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_13.png" width="250" height="187" alt="Open Kaspersky on Webmin" title="Open Kaspersky on Webmin"  /></a></li><li>Now Kaspersky Anti-Virus for Linux can&#8217;t be started yet since you haven&#8217;t update the signature. Click on Key Info to view license information.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/14.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_14.png" width="250" height="188" alt="Check license information" title="Check license information"  /></a></li><li>You&#8217;ll see an error on license page. Don&#8217;t worry, this will be solved by update the signature.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/15.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_15.png" width="250" height="188" alt="Check license information" title="Check license information"  /></a></li></ol><p><a
href="#top">Back to top</a></p><p><a
name="3"></a></p><h4>Manually Update the Kaspersky Anti-Virus&#8217;s signature</h4><ol><li>On Desktop, extract <strong>av-i386-cumul.zip</strong> to a folder. In this example, I extract all files to <strong>/root/Desktop/Updates/</strong>.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/16.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_16.png" width="250" height="188" alt="Extract the signature's file" title="Extract the signature's file"  /></a></li><li>Back to Webmin, click on <strong>KeepUp2Date</strong> in Other -> KAV 5.7 for UNIX WS.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/17.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_17.png" width="250" height="188" alt="Configure update on Webmin" title="Configure update on Webmin"  /></a></li><li>On KeepUp2Date menu, browse to misc settings. Check <strong>&#8216;Use update server url&#8217; </strong>and <strong>&#8216;Use update server url only&#8217;</strong> and change <strong>&#8216;Update server url&#8217;</strong> to the folder where you have extracted the signature files. In this example, it is <strong>&#8216;/root/Desktop/Updates/&#8217;</strong>. And click <strong>Save</strong>.<br
/> <em><strong>Note: </strong></em>The <strong>&#8216;Update server url&#8217;</strong> path must be follow with &#8216;/&#8217;.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/18.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_18.png" width="250" height="188" alt="Configure update path" title="Configure update path"  /></a></li><li>Open Terminal and type the command below to update the signature.<br
/><blockquote><p>/opt/kaspersky/kav4ws/bin/kav4ws-keepup2date</p></blockquote><p><a
href="http://www.linglom.com/images/Linux/Kaspersky/19.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_19.png" width="250" height="188" alt="Run keepup2date to update the signature" title="Run keepup2date to update the signature"  /></a></li><li>Waiting until the update is finished, you&#8217;ll see some error message because Kaspersky Anti-Virus hasn&#8217;t started yet.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/20.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_20.png" width="250" height="188" alt="The update is running" title="The update is running"  /></a></li><li>Now the signature is up-to-date. Browse to Key Info on Webmin again, the license info has been shown correctly.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/21.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_21.png" width="250" height="187" alt="Check license again to see if it shows correctly" title="Check license again to see if it shows correctly"  /></a></li></ol><p><a
href="#top">Back to top</a></p><p><a
name="4"></a></p><h4>Start the Kaspersky Anti-Virus On-Access Scanner</h4><ol><li>Before start Kaspersky Anti-Virus On-Access Scanner, you can configure how to handle when Kaspersky Anti-Virus found suspicious, infected files in <strong>&#8216;AV File Check&#8217;</strong> and <strong>&#8216;AV File Monitor&#8217;</strong>. I&#8217;ll not cover in these configuration.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/22.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_22.png" width="250" height="187" alt="Configure Kaspersky Anti-Virus" title="Configure Kaspersky Anti-Virus"  /></a></li><li>When you have finished configuration, next I&#8217;ll start Kaspersky Anti-Virus On-Access Scanner by click on <strong>&#8216;AV Run&#8217;</strong>.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/23.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_23.png" width="250" height="188" alt="Click 'AV Run'" title="Click 'AV Run'"  /></a></li><li>Browse to the bottom of the page, click &#8216;Start&#8217; button on Kaspersky Anti-Virus On-Access Scanner.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/24.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_24.png" width="250" height="188" alt="Start Kaspersky Anti-Virus On-Access Scanner" title="Start Kaspersky Anti-Virus On-Access Scanner"  /></a></li><li>It&#8217;ll show Kaspersky Anti-Virus On-Access Scanner Output.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/25.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_25.png" width="250" height="187" alt="Kaspersky Anti-Virus On-Access Scanner has started" title="Kaspersky Anti-Virus On-Access Scanner has started"  /></a></li><li>Back to &#8216;AV Run&#8217;, you&#8217;ll see the service status is started with no errors (Exit code:0).<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/26.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_26.png" width="250" height="188" alt="Kaspersky Anti-Virus On-Access Scanner has started" title="Kaspersky Anti-Virus On-Access Scanner has started"  /></a></li></ol><p><a
href="#top">Back to top</a></p><p><a
name="5"></a></p><h4>Add cronjobs to run Kaspersky Scanner</h4><ol><li>Open Terminal, type the command below to view current cronjobs.<br
/><blockquote><p>crontab -l</p></blockquote><p><a
href="http://www.linglom.com/images/Linux/Kaspersky/27.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_27.png" width="250" height="188" alt="Listing current cronjobs" title="Listing current cronjobs"  /></a></li><li>Type the command below to edit cronjob.<br
/><blockquote><p>crontab -e</p></blockquote><p><em><strong>Note:</strong></em> You can customize the frequency to run these jobs by change the values. For more information about cronjobs, see <a
href="http://www.adminschoice.com/docs/crontab.htm" rel="nofollow">Crontab &#8211; Quick reference</a>.<br
/> <a
href="http://www.linglom.com/images/Linux/Kaspersky/28.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_28.png" width="250" height="187" alt="Edit cronjobs" title="Edit cronjobs"  /></a></li><li>On the cronjob&#8217;s editor, add these 2 lines and save the file.<br
/><blockquote><p>0 0 * * 4 /opt/kaspersky/kav4ws/bin/kav4ws-kavscanner<br
/> 0 0 * * 3 /opt/kaspersky/kav4ws/bin/kav4ws-keepup2date</p></blockquote><p><a
href="http://www.linglom.com/images/Linux/Kaspersky/29.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_29.png" width="250" height="188" alt="Add new cronjobs" title="Add new cronjobs"  /></a></li><li>Review the cronjobs again by type the command.<br
/><blockquote><p>crontab -l</p></blockquote><p><a
href="http://www.linglom.com/images/Linux/Kaspersky/30.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/Kaspersky/_30.png" width="250" height="188" alt="Review cronjobs" title="Review cronjobs"  /></a></li><li>Now you have finished configure cronjobs.</li></ol><h3>Summary</h3><p>Now I have Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat. The routine that I need to do is to update the anti-virus&#8217;s signature regulary to ensure that the servers are safe from virus threats. For ease of management, you can extend by implement Kaspersky Administration console to manage Kaspersky&#8217;s product.</p><p>Related posts:<ol><li><a
href='http://www.linglom.com/2008/03/28/test-anti-virus-with-text-file/' rel='bookmark' title='Test anti virus with text file'>Test anti virus with text file</a> <small>If you have anti-virus installed on your PC and wonder...</small></li><li><a
href='http://www.linglom.com/2008/03/07/how-to-install-vmware-server-on-linux-redhat/' rel='bookmark' title='How to install VMWare Server on Linux Redhat'>How to install VMWare Server on Linux Redhat</a> <small>Introduction Nowadays, virtualization is a solution which is interested by...</small></li><li><a
href='http://www.linglom.com/2008/04/20/how-to-change-ip-address-on-linux-redhat/' rel='bookmark' title='How to change IP Address on Linux Redhat'>How to change IP Address on Linux Redhat</a> <small>Introduction Most of the time, I work in Windows environment....</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2008/08/17/how-to-setup-stand-alone-kaspersky-anti-virus-57-workstation-on-linux-redhat/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>How to change IP Address on Linux Redhat</title><link>http://www.linglom.com/2008/04/20/how-to-change-ip-address-on-linux-redhat/</link> <comments>http://www.linglom.com/2008/04/20/how-to-change-ip-address-on-linux-redhat/#comments</comments> <pubDate>Sun, 20 Apr 2008 02:56:08 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[IP Address]]></category> <category><![CDATA[Red Hat]]></category> <guid
isPermaLink="false">http://www.linglom.com/2008/04/20/how-to-change-ip-address-on-linux-redhat/</guid> <description><![CDATA[Introduction Most of the time, I work in Windows environment. But I sometimes have to work on Linux platform, too. So I decide to note it down this topic to remind myself. There are many ways to change IP Address on Linux. First one is the easiest way that configure on GUI because it&#8217;s like [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2008/03/07/how-to-install-vmware-server-on-linux-redhat/' rel='bookmark' title='How to install VMWare Server on Linux Redhat'>How to install VMWare Server on Linux Redhat</a> <small>Introduction Nowadays, virtualization is a solution which is interested by...</small></li><li><a
href='http://www.linglom.com/2008/08/17/how-to-setup-stand-alone-kaspersky-anti-virus-57-workstation-on-linux-redhat/' rel='bookmark' title='How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat'>How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat</a> <small>Introduction Kaspersky Anti-Virus is now one of the popular anti-virus...</small></li><li><a
href='http://www.linglom.com/2009/04/07/change-mac-address-in-windows-part-i-introduction/' rel='bookmark' title='Change MAC Address in Windows, Part I: Introduction'>Change MAC Address in Windows, Part I: Introduction</a> <small>Introduction MAC Address (Media Access Control) or physical address is...</small></li></ol>]]></description> <content:encoded><![CDATA[<h3>Introduction</h3><p>Most of the time, I work in Windows environment. But I sometimes have to work on Linux platform, too. So I decide to note it down this topic to remind myself.</p><p><span
id="more-84"></span></p><p>There are many ways to change IP Address on Linux. First one is the easiest way that configure on GUI because it&#8217;s like on Windows platform. The second way is configure on command-line but it is only temporary, it&#8217;ll reload to the old configuration when the network service is restart. And the last one is also configure on command-line to change IP Address permanently.</p><p></p><p><a
name="top"></a></p><h3>Section</h3><ol><li><a
href="#1">Configure on GUI (Permanently)</a></li><li><a
href="#2">Configure on commad-line (Temporary)</a></li><li><a
href="#3">Configure on commad-line by edit configuration file (Permanently)</a></li></ol><h3>Step-by-step</h3><p><a
name="1"></a></p><h4>Configure on GUI (Permanently)</h4><ol><li>Select Application -> System Settings ->Network.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/1.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_1.png" width="250" height="233" alt="Open Network Configuration" title="Open Network Configuration"  /></a></li><li>On Network Configuration and Devices tab, you&#8217;ll see available network card on the PC. In this example, the PC has 1 network interface card (NIC) and it&#8217;s currently inactive. Double click on the network interface card (NIC) that you want to configure to open its property.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/2.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_2.png" width="250" height="259" alt="Select a network interface card to configure" title="Select a network interface card to configure"  /></a></li><li>On Ethernet Device, you can configure the NIC to be either DHCP or static IP Address. When you finish, click OK.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/3.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_3.png" width="250" height="243" alt="Configure IP Address" title="Configure IP Address"  /></a></li><li>There is a pop-up message ask for activate the NIC. Click Yes to enable the NIC.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/4.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_4.png" width="250" height="255" alt="Activate the NIC" title="Activate the NIC"  /></a></li><li>The NIC will be restarted to reload the new configurations and the NIC is active now.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/5.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_5.png" width="250" height="258" alt="The NIC is actived" title="The NIC is actived"  /></a></li></ol><p><a
href="#top">Back to top</a></p><p><a
name="2"></a></p><h4>Configure on commad-line (Temporary)</h4><p><em><strong>Note:</strong></em> This way change IP Address only <strong>temporary</strong>. When you restart network service, it&#8217;ll load from configuration file to replace this configuration.</p><ol><li>Open Terminal.</li><li>Type<br
/><blockquote>ifconfig -a</p></blockquote><p> to list all network interface card on the current PC.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/6.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_6.png" width="250" height="128" alt="List all NICs on the PC" title="List all NICs on the PC"  /></a></li><li>Type<br
/><blockquote>ifconfig eth0 192.168.125.10 netmask 255.255.255.0 up</p></blockquote><p> to configure IP Address on interface eth0.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/7.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_7.png" width="250" height="72" alt="Change IP Address temporary" title="Change IP Address temporary"  /></a></li><li> Note: To configure gateway, type</p><blockquote><p>route add default gw <em>[gateway address]</em>.</p></blockquote></li></ol><p><a
href="#top">Back to top</a></p><p><a
name="3"></a></p><h4>Configure on commad-line by edit configuration file (Permanently)</h4><ol><li>Open Terminal.</li><li>Open network configuration file. In this example, it&#8217;ll configure on interface eth0. Type<br
/><blockquote>vi /etc/sysconfig/network-scripts/ifcfg-eth0</p></blockquote><p><a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/8.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_8.png" width="250" height="9" alt="Open NIC's configuration file" title="Open NIC's configuration file"  /></a></li><li>The current configuration is DHCP.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/9.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_9.png" width="250" height="96" alt="The NIC's configuration file" title="The NIC's configuration file"  /></a></li><li>Modify the file by press &#8216;i&#8217; to enter insert mode. Change BOOTPROTO to static and add IP Address and Net mask as new lines if they&#8217;re not existed yet..<br
/><blockquote><p> BOOTPROTO=static<br
/> IPADDR=192.168.125.10<br
/> NETMASK=255.255.255.0</p></blockquote><p>Save the configuration file by press ESC + &#8216;:&#8217; and type &#8216;wq&#8217; to write and quit the editor.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/10.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_10.png" width="250" height="74" alt="Edit the NIC's configuration file" title="Edit the NIC's configuration file"  /></a></li><li>You can added these configuration to the config file. Replace [number] with your actual value.<br
/><blockquote><p> GATEWAY=[number]<br
/> TYPE=Ethernet<br
/> NETWORK=[number]<br
/> BROADCAST=[number]</p></blockquote></li><li>Restart the network interface card. Type<br
/><blockquote>service network restart</p></blockquote><p><a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/11.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_11.png" width="250" height="50" alt="Restart network service" title="Restart network service"  /></a></li><li>Review the configuration. Type<br
/><blockquote>ifconfig</p></blockquote><p>. The IP Address has been changed permanently.<br
/> <a
href="http://www.linglom.com/images/Linux/ChangeIPAddress/12.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/ChangeIPAddress/_12.png" width="250" height="126" alt="List all NICs on the PC" title="List all NICs on the PC"  /></a></li></ol><p><a
href="#top">Back to top</a></p><p>Related posts:<ol><li><a
href='http://www.linglom.com/2008/03/07/how-to-install-vmware-server-on-linux-redhat/' rel='bookmark' title='How to install VMWare Server on Linux Redhat'>How to install VMWare Server on Linux Redhat</a> <small>Introduction Nowadays, virtualization is a solution which is interested by...</small></li><li><a
href='http://www.linglom.com/2008/08/17/how-to-setup-stand-alone-kaspersky-anti-virus-57-workstation-on-linux-redhat/' rel='bookmark' title='How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat'>How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat</a> <small>Introduction Kaspersky Anti-Virus is now one of the popular anti-virus...</small></li><li><a
href='http://www.linglom.com/2009/04/07/change-mac-address-in-windows-part-i-introduction/' rel='bookmark' title='Change MAC Address in Windows, Part I: Introduction'>Change MAC Address in Windows, Part I: Introduction</a> <small>Introduction MAC Address (Media Access Control) or physical address is...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2008/04/20/how-to-change-ip-address-on-linux-redhat/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>How to install VMWare Server on Linux Redhat</title><link>http://www.linglom.com/2008/03/07/how-to-install-vmware-server-on-linux-redhat/</link> <comments>http://www.linglom.com/2008/03/07/how-to-install-vmware-server-on-linux-redhat/#comments</comments> <pubDate>Fri, 07 Mar 2008 01:51:10 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[VMWare Server]]></category> <guid
isPermaLink="false">http://www.linglom.com/2008/03/07/how-to-install-vmware-server-on-linux-redhat/</guid> <description><![CDATA[Introduction Nowadays, virtualization is a solution which is interested by many IT manager. By converting existing system to virtual, you can save lot of money from buying new hardware every year, avoid hardware conflicts when you move virtual to another computer, etc. But when you convert system to virtual, you still need OS to run [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2008/08/17/how-to-setup-stand-alone-kaspersky-anti-virus-57-workstation-on-linux-redhat/' rel='bookmark' title='How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat'>How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat</a> <small>Introduction Kaspersky Anti-Virus is now one of the popular anti-virus...</small></li><li><a
href='http://www.linglom.com/2008/04/20/how-to-change-ip-address-on-linux-redhat/' rel='bookmark' title='How to change IP Address on Linux Redhat'>How to change IP Address on Linux Redhat</a> <small>Introduction Most of the time, I work in Windows environment....</small></li></ol>]]></description> <content:encoded><![CDATA[<h3>Introduction</h3><p>Nowadays, virtualization is a solution which is interested by many IT manager. By converting existing system to virtual, you can save lot of money from buying new hardware every year, avoid hardware conflicts when you move virtual to another computer, etc. But when you convert system to virtual, you still need OS to run virtual software (VMWare, Virtual PC, etc).</p><p><span
id="more-78"></span></p><p>The best practice is to have Linux operationg system running on host so that you won&#8217;t have to pay an additional license. Then, you can have whatever OS you want on virtual. For virtual software, VMWare is the one I recommend to try. There are some free licenses if you want to try. Like VMWare Server, you can have many virtual on a PC and you can connect to manage your virtuals remotely by using VMWare Server Console. This article shows how to install VMWare Server on Redhat Enterprise 4.</p><p></p><h3>Step-by-step</h3><ol><li>Install prerequisite program on Redhat. To install VMWare Server on Linux, you need to install gcc compiler and xinetd before install VMWare Server. By default, xinetd is already installed on Redhat Enterprise 4 so you only need to install gcc.<ul><li>To install gcc, click Application -> System Settings -> Add/Remove Applications<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/1.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_1.png" width="250" height="302" alt="Open Add/Remove Application on Linux Redhat" title="Open Add/Remove Application on Linux Redhat"  /></a></li><li>Browse to &#8216;Development&#8217; section and check &#8216;Development Tools&#8217;. Click update.<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/2.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_2.png" width="250" height="195" alt="Install gcc on Linux Redhat" title="Install gcc on Linux Redhat"  /></a></li><li>This will show what are going to install.<br
/> <strong>Note:</strong> To install this, you may requires Redhat installation CD (disc 3).<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/3.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_3.png" width="250" height="142" alt="Review for installation files" title="Review for installation files"  /></a></li></ul></li><li>Now download VMWare Server for Linux from vmware.com. Also, you need to register for a free serial number. When writing this article, the latest version is 1.0.4. I have copied the setup file to my desktop. In this example, I logged in as &#8216;root&#8217; for installation and configuration VMWare Server.<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/5.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_5.png" width="250" height="218" alt="VMWare Server for Linux installation file" title="VMWare Server for Linux installation file"  /></a></li><li>Open terminal, extract the zipped file by type &#8216;tar xvfz &#8220;your-file-name.tar.gz&#8221;&#8216;.<br
/><blockquote><p><em>tar xvfz VMWare-server-1.0.4-56528.tar.gz</em></p></blockquote><p><a
href="http://www.linglom.com/images/Linux/VMWare/6.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_6.png" width="250" height="42" alt="Extract the setup file" title="Extract the setup file"  /></a></li><li>When extract finishes, you&#8217;ll see the VMWare Server on desktop or at the same place with your zipped file.<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/7.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_7.png" width="250" height="188" alt="The VMWare Server extracted folder" title="The VMWare Server extracted folder"  /></a></li><li>Run the installation file. Open Terminal and change directory to the extracted folder and execute vmware-install.pl.<br
/><blockquote><p><em>cd vmware-server-distrib/<br
/> ./vmware-install.pl</em></p></blockquote><p><a
href="http://www.linglom.com/images/Linux/VMWare/8.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_8.png" width="250" height="131" alt="Execute vmware-install.pl" title="Execute vmware-install.pl"  /></a></li><li>This is the steps for installation and configuration VMWare Server. If you don&#8217;t know what value to enter, you can simply press Enter button to accept the default value in the bracket [ ] which is provided by the installation file. In this example, I install and configure as default value setting so I only press Enter on each question.<ul><li>The installation file asks for paths to install files (1-7).<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/9.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_9.png" width="250" height="148" alt="set path for VMWare Server installation on Redhat" title="set path for VMWare Server installation on Redhat"  /></a></li><li>The installation file asks for path to install documentation (8-9). Also, it asks for configure VMWare Server now (10). If yes, press Enter to view End User License Agreement (10).<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/10.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_10.png" width="250" height="130" alt="set path for VMWare Server installation on Redhat" title="set path for VMWare Server installation on Redhat"  /></a></li><li>Press Ctrl + C to exit the EULA and type &#8216;y&#8217; or &#8216;yes&#8217; to accept the EULA (11).<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/11.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_11.png" width="250" height="259" alt="VMWare Server End User License Agreement" title="VMWare Server End User License Agreement"  /></a></li><li>The configuration continue asks for path to install file (12-14) and whether to configure NAT network for VMWare Server now (15-16).<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/12.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_12.png" width="250" height="159" alt="Configure NAT network for VMWare Server" title="Configure NAT network for VMWare Server"  /></a></li><li>The configuration asks for configure Host-only network for VMWare Server (19-20).<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/13.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_13.png" width="250" height="124" alt="Configure Host-only network for VMWare Server" title="Configure Host-only network for VMWare Server"  /></a></li><li>The configuration asks for port which for remotely connection to this VMWare Server Console (22).<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/14.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_14.png" width="250" height="154" alt="Configure port for remote connection to this VMWare Server Console" title="Configure port for remote connection to this VMWare Server Console"  /></a></li><li>The configuration asks for path to keep virtual machine files (23) and serial number for VMWare Server (25). You can get one by register at vmware.com for free. If you don&#8217;t have now, you can enter this number later but it suggest you should enter it now. Otherwise, you need to re-run the config file again.<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/15.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_15.png" width="250" height="84" alt="Enter serial number for VMWare Server" title="Enter serial number for VMWare Server"  /></a></li><li>Whether you enter the serial number now or not, the configuration is finished. You&#8217;ll see VMWare service is starting.<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/16.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_16.png" width="250" height="121" alt="Finishes install and configure VMWare Server" title="Finishes install and configure VMWare Server"  /></a></li></ul></li><li>Try open VMWare Server Console, select Applications -> System Tools -> VMWare Server Console.<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/17.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_17.png" width="250" height="188" alt="Open VMWare Server Console" title="Open VMWare Server Console"  /></a></li><li>VMWare Server Console ask you to connect to which VMWare Server. Select Localhost and click connect.<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/18.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_18.png" width="250" height="187" alt="Connect to VMWare Server on localhost" title="Connect to VMWare Server on localhost"  /></a></li><li>That&#8217;s it. You can manage your virtual machine here.<br
/> <a
href="http://www.linglom.com/images/Linux/VMWare/19.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/VMWare/_19.png" width="250" height="188" alt="VMWare Server Console" title="VMWare Server Console"  /></a></li></ol><p>Related posts:<ol><li><a
href='http://www.linglom.com/2008/08/17/how-to-setup-stand-alone-kaspersky-anti-virus-57-workstation-on-linux-redhat/' rel='bookmark' title='How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat'>How to setup Stand-Alone Kaspersky Anti-Virus 5.7 Workstation on Linux RedHat</a> <small>Introduction Kaspersky Anti-Virus is now one of the popular anti-virus...</small></li><li><a
href='http://www.linglom.com/2008/04/20/how-to-change-ip-address-on-linux-redhat/' rel='bookmark' title='How to change IP Address on Linux Redhat'>How to change IP Address on Linux Redhat</a> <small>Introduction Most of the time, I work in Windows environment....</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2008/03/07/how-to-install-vmware-server-on-linux-redhat/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Enable remote desktop on linux using VNC</title><link>http://www.linglom.com/2008/02/11/enable-remote-desktop-on-linux-using-vnc/</link> <comments>http://www.linglom.com/2008/02/11/enable-remote-desktop-on-linux-using-vnc/#comments</comments> <pubDate>Mon, 11 Feb 2008 04:32:43 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Redhat]]></category> <category><![CDATA[remote desktop]]></category> <category><![CDATA[VNC]]></category> <guid
isPermaLink="false">http://www.linglom.com/2008/02/11/enable-remote-desktop-on-linux-using-vnc/</guid> <description><![CDATA[Introduction As an Windows administrator, I always have to work with many Windows servers. Most of the time, I use remote access rather than go to in front of each server. This can be done easily because they&#8217;re the same platform. But sometime I also need to access Linux server from Windows XP, too. This [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2008/10/04/how-to-enable-remote-desktop-web-connection-on-windows/' rel='bookmark' title='How to Enable Remote Desktop Web Connection on Windows'>How to Enable Remote Desktop Web Connection on Windows</a> <small>Introduction Remote Desktop Connection is one useful tool of Windows...</small></li></ol>]]></description> <content:encoded><![CDATA[<h3>Introduction</h3><p>As an Windows administrator, I always have to work with many Windows servers. Most of the time, I use remote access rather than go to in front of each server. This can be done easily because they&#8217;re the same platform. But sometime I also need to access Linux server from Windows XP, too. This can be done by using VNC. By default, VNC is alrealy installed on Redhat so I only need to configure it as VNC server and I have to install VNC Viewer on Windows XP. When enable this service, please keep in my that others can also remote to the server with this protocol, too!. So if your network can&#8217;t be trusted, do not enable the vncserver service. But in my case, I have firewall to limit only from my computer and the network is trusted.</p><p><span
id="more-74"></span></p><p></p><p>VNC stands for Virtual Network Computing. It is remote support software which allows you to view and fully interact with one computer desktop (the &#8220;VNC server&#8221;) using a simple program (the &#8220;VNC viewer&#8221;) on another computer desktop anywhere on the Internet. The two computers don&#8217;t even have to be the same type, so for example you can use VNC to view a Windows Vista desktop at the office on a Linux or Mac computer at home. For ultimate simplicity, there is even a Java viewer, so that any desktop can be controlled remotely from within a browser without having to install software.</p><h3>Step-by-step</h3><p>In this section, I&#8217;ll show how to configure VNC server on Redhat server and using VNC Viewer connect the server remotely from Windows XP.</p><ol><li>On Redhat server, login with your username that you want to enable remote access. In this example, I will use &#8216;admin&#8217; user.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/1.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/1.png" width="250" height="154" alt="Redhat Gnome's desktop" title="Redhat Gnome's desktop"  /></a></li><li>Open Terminal, type <em>&#8216;vncpasswd&#8217;</em>. Type your password and verify password again. This command will use to set you password for remote access for the current user.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/2.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_2.png" width="250" height="102" alt="Set VNC password" title="Set VNC password"  /></a></li><li>Before next step, you need to logged on as root by type <em>&#8216;su root&#8217;</em>.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/3.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_3.png" width="250" height="111" alt="Log as root using su" title="Log as root using su"  /></a></li><li>Edit the file /etc/sysconfig/vncservers by type <em>&#8216; vi /etc/sysconfig/vncservers&#8217;</em>.<br
/> <em><strong>Note:</strong> If you are new to Linux, vi is an editor tool in command line mode on Linux.</em><br
/> <a
href="http://www.linglom.com/images/Linux/vnc/4.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_4.png" width="250" height="13" alt="Edit /etc/sysconfig/vncservers" title="Edit /etc/sysconfig/vncservers"  /></a></li><li>You&#8217;ll see text file as in the figure below. Next, I&#8217;ll edit on the highlight line.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/5.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_5.png" width="250" height="141" alt="/etc/sysconfig/vncservers" title="/etc/sysconfig/vncservers"  /></a></li><li>Uncomment on the highlight line. If you have more than one usernames that want to enable remote acces, you can change VNCSERVERS value in this format, &#8220;1:username1 2:username2 3:username3 &#8230;.&#8221;. In this example, I have only one user which is root so this line of mine is &#8216;<em>VNCSERVERS = &#8220;1:admin&#8221;</em>&#8216;.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/6.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_6.png" width="250" height="136" alt="Edit /etc/sysconfig/vncservers" title="Edit /etc/sysconfig/vncservers"  /></a></li><li>Now save the file and exit. To save file, hold ESC + &#8216;:&#8217; and type &#8216;wq&#8217; to write and quit file.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/7.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_7.png" width="250" height="163" alt="Write and quit file in vi editor" title="Write and quit file in vi editor"  /></a></li><li>Next, log off the user if you are not user &#8216;root&#8217; and log in as root. Enable VNC service by type <em>&#8216;chkconfig vncserver on&#8217;</em>. Then, start the VNC service by type <em>&#8216;service vncserver start&#8217;</em>.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/8.png" target="_blank" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_8.png" width="250" height="65" alt="Set up VNC server as service and start" title="Set up VNC server as service and start"  /></a></li><li>If you have firewall enable on Redhat, be sure that your firewall configuration won&#8217;t block connection from remote computer by open port TCP 5901 for remote access. Open Applications -> System Settings -> Security Level. Add &#8217;5901:tcp&#8217; on Other ports.<br
/> <em><strong>Note:</strong></em> VNC uses TCP protocol on port 5901.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/9.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_9.png" width="250" height="299" alt="Open TCP port 5901 for remote access" title="Open TCP port 5901 for remote access"  /></a></li><li>Now you can connect Redhat server from remote computer. On my Windows XP computer, open VNC Viewer on Windows XP, type IP Address of Redhat server with number as a username specify in step 6. In this example, I want to remote to Redhat server as &#8216;admin&#8217; user which I assign as number 1 in step 6 (1:admin) and my Redhat server is 10.110.141.220. So I type &#8217;10.110.141.220:1&#8242;.<br
/> <em><strong>Note:</strong></em> You can download VNC Viewer for free at <a
href="http://www.realvnc.com/products/free/4.1/winvncviewer.html" rel="nofollow" target="_blank">realvnc.com</a><br
/> <a
href="http://www.linglom.com/images/Linux/vnc/10.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_10.png" width="250" height="102" alt="Test connect to Redhat server from remote computer" title="Test connect to Redhat server from remote computer"  /></a></li><li>Type your password for &#8216;admin&#8217; user which has been assign in step 2.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/11.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_11.png" width="250" height="73" alt="Specify password" title="Specify password"  /></a></li><li>Now you have connect to Redhat server remotely. But you&#8217;ll see that the interface looks different. You have to do a little thing more.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/12.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_12.png" width="250" height="175" alt="Remote screen" title="Remote screen"  /></a></li><li>On Redhat server, open terminal and type <em>&#8216;vi /home/username/.vnc/xstartup&#8217;</em>. In this example, I type &#8216;vi /home/admin/.vnc/xstartup&#8217;.<br
/> <em><strong>Note: </strong></em>If you going to enable remote access for user &#8216;root&#8217;, the file would be at &#8216;/root/.vnc/xstartup&#8217;.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/13.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_13.png" width="250" height="49" alt="Edit /home/admin/.vnc/xstartup" title="Edit /home/admin/.vnc/xstartup"  /></a></li><li>Uncomment these two lines and save the file.<br
/> <strong><em>Note: </em></strong>If you want to force to load Gnome or KDE Desktop on remote access, edit the last line from &#8216;twm &#038;&#8217; to &#8216;startx &#038;&#8217; for Gnome and &#8216;startkde &#038;&#8217; for KDE Desktop.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/14.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_14.png" width="250" height="136" alt="Edit xstartup" title="Edit xstartup"  /></a></li><li>Type &#8216;service vncserver restart&#8217; to apply changes.<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/15.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_15.png" width="250" height="60" alt="Restart VNCServer service" title="Restart VNCServer service"  /></a></li><li>Reconnect using VNC viewer on remote computer again. Now you will see the desktop as you were log in at the server but now you&#8217;re remotely <img
src='http://cdn.linglom.com/linglom/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br
/> <a
href="http://www.linglom.com/images/Linux/vnc/16.png" target="_blank"><img
src="http://www.linglom.com/images/Linux/vnc/_16.png" width="250" height="211" alt="Connect to Redhat server remotely" title="Connect to Redhat server remotely"  /></a></li></ol><p>Related posts:<ol><li><a
href='http://www.linglom.com/2008/10/04/how-to-enable-remote-desktop-web-connection-on-windows/' rel='bookmark' title='How to Enable Remote Desktop Web Connection on Windows'>How to Enable Remote Desktop Web Connection on Windows</a> <small>Introduction Remote Desktop Connection is one useful tool of Windows...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2008/02/11/enable-remote-desktop-on-linux-using-vnc/feed/</wfw:commentRss> <slash:comments>74</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 9/52 queries in 0.035 seconds using disk: basic
Content Delivery Network via cdn.linglom.com/linglom

Served from: www.linglom.com @ 2012-02-05 04:00:02 -->
