<?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>Walker News &#187; Networking</title>
	<atom:link href="http://www.walkernews.net/tag/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.walkernews.net</link>
	<description>A capsule of walker's experience in life...</description>
	<lastBuildDate>Sun, 29 Jan 2012 16:29:08 +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 Fix: SCP And SSH Login Prompt Is Very Slow In Linux</title>
		<link>http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-login-prompt-is-very-slow-in-linux/</link>
		<comments>http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-login-prompt-is-very-slow-in-linux/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 15:48:11 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SCP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=2332</guid>
		<description><![CDATA[Do you know what causes the SSH or SCP slow login prompt problem? Check this out.]]></description>
			<content:encoded><![CDATA[Apparently, today is not a good day for me. But it&#8217;s not too bad too as I still have enough fingers to count all these bad incidents :-)<br />
<span id="more-2332"></span><br />
OK, back to topic. How to find out that what cause the SSH or SCP login prompt to slowdown? How could you fix this so-called slow or delayed SSH and SCP login prompt?<br />
<br /><!--wgadh-->This is one of the &#8220;bad incident&#8221; happened on me today &#8211; as the boss was looking at me to scp program patches to a remote Linux-based application server, the SSH login prompt took more than <span class="subhead2">1 minute</span> to appear on screen.<br />
<br />To be precise, the stopwatch showed that it took exactly 1 minute and 25 seconds to display SSH login prompt!<br />
<br />Luckily, I do not have to Google for more than a minute to find the cause and solution :-)<br />
<br /><span class="subhead">What causes SCP and SSH login prompt to slowdown?</span> <br />
<br />For my case, the GSSAPI authentication feature was causing the delayed SSH login prompt!<br />
<br />You can confirm the causes of your case by using the -v option switch. For example, the following is the verbose response of SSH login process started with -v option:<br />
<pre>
dev01 [/home/devstl]$ ssh <span style="color:#F00;font-weight:bold;">-v</span> appssupp@10.50.100.111
......
......
......
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: An invalid name was supplied
Cannot determine realm for numeric host address

debug1: An invalid name was supplied
Cannot determine realm for numeric host address

debug1: An invalid name was supplied
Cannot determine realm for numeric host address

debug1: Next authentication method: publickey
debug1: Trying private key: /home/devstl/.ssh/identity
debug1: Trying private key: /home/devstl/.ssh/id_rsa
debug1: Trying private key: /home/devstl/.ssh/id_dsa
debug1: Next authentication method: password
appssupp@10.50.100.111's password:
</pre>
<br /><span class="subhead">How to fix SCP and SSH delayed login prompt?</span><br />
<br />The answer for my case is apparently by disabling GSSAPI authentication, which can be done in one of these three ways:<br />
<blockquote>
The &#8220;fix&#8221; is tested with SSH clients installed by <span class="fpath">openssh-clients-3.9p1-8.RHEL4.15</span> RPM file.
</blockquote>
<br />1) Specify the option to disable GSSAPI authentication when using SSH or SCP command, e.g.:<br />
<pre>
ssh <span style="color:#F00;font-weight:bold;">-o GSSAPIAuthentication=no</span> appssupp@10.50.100.111
</pre>
<br />2) Explicitly disable GSSAPI authentication in SSH client program configuration file, i.e. edit the <span class="fpath">/etc/ssh/ssh_config</span> and add in this configuration (if it&#8217;s not already in the config file):<br />
<pre>
GSSAPIAuthentication no
</pre>
<br />3) Create a file called <span class="fpath">config</span> in .ssh directory of respective user home directory (or whichever user home directory that need to get rid of this show login prompt). For example, edit <span class="fpath">/home/devstl/.ssh/config</span> (create the config file if it&#8217;s not currently exist) and add in the <code>GSSAPIAuthentication no</code> option.<br />
<blockquote>
1) <span class="fpath">/etc/ssh/ssh_config</span> is a global SSH client configuration file that affects all system users who are using SSH client programs.<br />
<br />2) <span class="fpath">/home/devstl/.ssh/config</span> is local SSH client configuration file that only affects the user account called devstl. Whatever SSH client options specified in this local file overwrite the options stated in global SSH client configuration file.
</blockquote>
<br />After disabling GSSAPI authentication, SSH login prompt is back to &#8220;normal&#8221; now:<br />
<pre>
dev01 [/home/devstl]$ ssh <span style="color:#F00;font-weight:bold;">-v</span> appssupp@10.50.100.111
......
......
......
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/devstl/.ssh/identity
debug1: Trying private key: /home/devstl/.ssh/id_rsa
debug1: Trying private key: /home/devstl/.ssh/id_dsa
debug1: Next authentication method: password
appssupp@10.50.100.111's password:
</pre>
<br />As you can see, the SSH login is not currently authenticated via public key cryptography method, which I&#8217;ve to fix it later :-(<br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2009/05/11/how-to-use-putty-generated-rsa-key-to-login-linux-openssh-server/" title="How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?">How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?</a></li><li><a href="http://www.walkernews.net/2009/05/03/how-to-create-putty-based-rsa-public-key-for-openssh-server/" title="How To Create Putty-based RSA Public-key For OpenSSH Server?">How To Create Putty-based RSA Public-key For OpenSSH Server?</a></li><li><a href="http://www.walkernews.net/2009/05/02/how-to-regenerate-putty-based-rsa-public-key-from-its-private-key/" title="How To Regenerate Putty-based RSA Public-key From Its Private-key?">How To Regenerate Putty-based RSA Public-key From Its Private-key?</a></li><li><a href="http://www.walkernews.net/2009/03/22/how-to-fix-server-refused-our-key-error-that-caused-by-putty-generated-rsa-public-key/" title="How To Fix &#8220;Server Refused Our Key&#8221; Error That Caused By Putty Generated RSA Public Key?">How To Fix &#8220;Server Refused Our Key&#8221; Error That Caused By Putty Generated RSA Public Key?</a></li><li><a href="http://www.walkernews.net/2009/03/18/how-to-allow-root-login-to-telnet-server-in-linux/" title="How To Allow Root Login To Telnet Server In Linux?">How To Allow Root Login To Telnet Server In Linux?</a></li><li><a href="http://www.walkernews.net/2008/06/06/how-to-setup-non-interactive-ssh-login/" title="How To Setup Non-Interactive SSH Login">How To Setup Non-Interactive SSH Login</a></li><li><a href="http://www.walkernews.net/2009/04/03/how-to-restart-vnc-server-after-vnc-service-hangs-or-stops-unexpectedly/" title="How To Restart VNC Server After VNC Service Hangs or Stops Unexpectedly?">How To Restart VNC Server After VNC Service Hangs or Stops Unexpectedly?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-login-prompt-is-very-slow-in-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How To Restart VNC Server After VNC Service Hangs or Stops Unexpectedly?</title>
		<link>http://www.walkernews.net/2009/04/03/how-to-restart-vnc-server-after-vnc-service-hangs-or-stops-unexpectedly/</link>
		<comments>http://www.walkernews.net/2009/04/03/how-to-restart-vnc-server-after-vnc-service-hangs-or-stops-unexpectedly/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 10:32:55 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=2322</guid>
		<description><![CDATA[Do you know how to restart VNC server when you realize the VNC service might has hung up or stopped?]]></description>
			<content:encoded><![CDATA[How difficult is to restart the VNC server or service? Well, there is certainly no difficulty at all, if you&#8217;re in front of the server.<br />
<span id="more-2322"></span><br />
Now, imagine that server is at few hundred miles away and nobody is there to restart that bloody machine.<br />
<br /><!--wgadh-->Worst still, simply reboot the machine might not able restart the <a href="http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/" title="How to setup VNC server in Linux machine?" rel="bookmark">VNC server</a>.<br />
<br />So, what could you do in order to get the VNC server back to work? Precisely, if you can&#8217;t VNC to the remote server, how could you attempt to restart the VNC service?<br />
<br />OK, here are the tips and tricks for VNC server running in Windows or Linux machine.<br />
<br />To apply this method, however, there must be network connection between you and the remote server.<br />
<br /><span class="subhead">Restart VNC service of a remote computer running Windows 2000 or above</span><br />
<br />You must do the following steps on a computer running Windows 2000 or above as well. Let say this is a Windows Vista Ultimate machine.<br />
<br />1) Click the Vista Orb (Start button), right-click on <span class="subhead2">Computer</span> and select <span class="subhead2">Manage</span> option from the pop-up menu. This will open Computer Management window.<br />
<br />2) Right-click the <span class="subhead2">Computer Management (Local)</span>, the top node on left pane, and select <span class="subhead2">Connect to another computer&#8230;</span>.<br />
<br />Alternatively, click the <span class="subhead2">Action</span> menu to find the same option.<br />
<br />3) In the Select Computer dialog box, opt for <span class="subhead2">Another Computer</span> and type the computer name in the text box.<br />
<br />If you can&#8217;t remember the computer name, click <span class="subhead2">Browse</span> button follow by <span class="subhead2">Advanced</span> button and click <span class="subhead2">Find Now</span> to list all computers detected.<br />
<br />Now, hopefully this step will be succeed. Otherwise, it ends here :-(<br />
<br />Once you&#8217;ve connected the remote computer, click <span class="subhead2">Services and applications</span> node on the left pane of Computer Management window. From there, locate the VNC service on the right pane and restart it.<br />
<br /><span class="subhead">Restart VNC service of a remote computer running Red Hat Enterprise Linux</span><br />
<br />With Linux, this job is easier :-)<br />
<br />Other than network connection, you must able to remotely login the Linux server, be it the vulnerable telnet or secure <a href="http://www.walkernews.net/2007/07/21/how-to-setup-ssh-port-forwarding-in-3-minutes/" title="How to setup SSH port forwarding in 3 minutes - good to secure the VNC connection!" rel="bookmark">SSH protocol</a>.<br />
<br />After login to Linux command prompt (via telnet or SSH), just execute <code>service vncserver restart</code>, if the <a href="http://www.walkernews.net/2008/06/20/configure-vnc-server-to-auto-start-up-in-red-hat-linux/" title="How to configure VNC server to start up automatically when Linux boots up or reboot?" rel="bookmark">VNC server is configured to auto-start when Linux boots up / reboot</a>.<br />
<br />If there is no auto-start setup, then do the manual ways as you&#8217;ve done:<br />
<br />1) If the VNC server process stills exists, and it was started with DISPLAY:1, then kill it will command <code>vncserver -kill :1</code><br />
<br />2) Start it again by executing <code>vncserver :1</code><br />
<br />Now, you can confirm the VNC server is up again by executing <a href="http://www.walkernews.net/2007/05/27/linux-commands-to-check-network-connection/" title="Good Linux commands to troubleshoot network connection issues." rel="bookmark">netstat command</a>:<br />
<pre>
netstat -tulpan | grep vnc
</pre>
<br />If the VNC server is started for DISPLAY:1, the netstat result should shows Xvnc listening to three different ports: 5801, 5901, and 6001.<br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-login-prompt-is-very-slow-in-linux/" title="How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux">How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux</a></li><li><a href="http://www.walkernews.net/2009/03/18/how-to-allow-root-login-to-telnet-server-in-linux/" title="How To Allow Root Login To Telnet Server In Linux?">How To Allow Root Login To Telnet Server In Linux?</a></li><li><a href="http://www.walkernews.net/2008/11/20/how-to-fix-telnet-rejection-error-of-name-or-service-not-known-illegal-seek/" title="How To Fix Telnet Rejection Error of Name or Service Not Known: Illegal Seek">How To Fix Telnet Rejection Error of Name or Service Not Known: Illegal Seek</a></li><li><a href="http://www.walkernews.net/2009/07/01/how-to-turn-off-or-disable-the-citrix-beep-sound/" title="How To Turn Off Or Disable The Citrix Beep Sound?">How To Turn Off Or Disable The Citrix Beep Sound?</a></li><li><a href="http://www.walkernews.net/2009/05/11/how-to-use-putty-generated-rsa-key-to-login-linux-openssh-server/" title="How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?">How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?</a></li><li><a href="http://www.walkernews.net/2009/05/10/red-hat-linux-5-man-page-displays-weird-characters/" title="Red Hat Linux 5 Man Page Displays Weird Characters">Red Hat Linux 5 Man Page Displays Weird Characters</a></li><li><a href="http://www.walkernews.net/2009/05/03/how-to-disable-keyboard-power-button/" title="How To Disable Keyboard Power Button?">How To Disable Keyboard Power Button?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2009/04/03/how-to-restart-vnc-server-after-vnc-service-hangs-or-stops-unexpectedly/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How To Allow Root Login To Telnet Server In Linux?</title>
		<link>http://www.walkernews.net/2009/03/18/how-to-allow-root-login-to-telnet-server-in-linux/</link>
		<comments>http://www.walkernews.net/2009/03/18/how-to-allow-root-login-to-telnet-server-in-linux/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 17:15:23 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Remote Access]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Telnet]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=2194</guid>
		<description><![CDATA[If you insist, this is the way to enable remotely login Linux server via telnet protocol with root user privilege.]]></description>
			<content:encoded><![CDATA[Although remote access via telnet protocol is highly discouraged by most system administrators, there are still fans and old boys who are reluctant to change.<br />
<span id="more-2194"></span><br />
Interestingly, these people (who I&#8217;ve been dealing with) are all Windows users, i.e. they either use Windows at most of the time or they never have their hands on Linux at all.<br />

So, I guess these people will only abandon telnet client when Microsoft start to bundle <a href="http://www.walkernews.net/2007/07/22/ssh-port-forwarding-local-vs-remote/" title="How to configure local or remote port forwarding with SSH clients?" rel="bookmark">Secure Shell (SSH) clients</a> with Windows OS :-(<br />
<br />Now back to topic, if you really want to put the Linux host at risk by allowing telnet protocol, here is the way to <a href="http://www.walkernews.net/2008/11/19/how-to-install-and-start-telnet-server-in-red-hat-linux/" title="How to install and turn on telnet server in Red Hat Linux system?" rel="bookmark">enable telnet server in Red Hat Enterprise Linux system</a> (in case you&#8217;re asking).<br />
<br />Next, we look at <span class="subhead">How to enable root account telnet to Red Hat Linux system</span>, if you have nothing to worry about system security (because you&#8217;re sysadmin, not security administrator :-)<br />
<blockquote>
Telnet client transmit account password in plain text format over (vulnerable) network. Thus, by default, Red Hat Linux (and most Linux distributions, I believe) disables telnet daemon and disallow root user to login directly via telnet protocol.
</blockquote>
<br />When you telnet to RHEL server with root ID, it will always rejects with message saying &#8220;Login incorrect&#8221;, no matter how many times you&#8217;ve entered the correct root password:<br />
<br /><img src="http://www.walkernews.net/wp-content/uploads/2009/03/linux-telnet.jpg" alt="How to enable root user login to telnet server directly in Red Hat Linux system?" title="How to enable root user login to telnet server directly in Red Hat Linux system?" /><br />
<br />To overcome this &#8220;problem&#8221;, simply open <span class="fpath">/etc/pam.d/remote</span> and remark this following line, where the PAM module <em>pam_securetty.so</em> disallows root user login remotely via telnet and the alike (except SSH).<br />
<br />Original <span class="fpath">/etc/pam.d/remote</span> with this line:<br />
<pre>
auth       required   pam_securetty.so
</pre>
<br />Tweaked <span class="fpath">/etc/pam.d/remote</span> that remark (comment out) <em>pam_securetty.so</em>: <br />
<pre>
# auth       required   pam_securetty.so
</pre>
<br />This guide has been tested successfully on system running RHEL4. It should be valid for use in other Linux distributions that implement Linux-PAM modules (Pluggable Authentication Modules for Linux).<br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2008/11/20/how-to-fix-telnet-rejection-error-of-name-or-service-not-known-illegal-seek/" title="How To Fix Telnet Rejection Error of Name or Service Not Known: Illegal Seek">How To Fix Telnet Rejection Error of Name or Service Not Known: Illegal Seek</a></li><li><a href="http://www.walkernews.net/2008/11/19/how-to-install-and-start-telnet-server-in-red-hat-linux/" title="How To Install And Start Telnet Server In Red Hat Linux?">How To Install And Start Telnet Server In Red Hat Linux?</a></li><li><a href="http://www.walkernews.net/2009/05/11/how-to-use-putty-generated-rsa-key-to-login-linux-openssh-server/" title="How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?">How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?</a></li><li><a href="http://www.walkernews.net/2009/05/03/how-to-create-putty-based-rsa-public-key-for-openssh-server/" title="How To Create Putty-based RSA Public-key For OpenSSH Server?">How To Create Putty-based RSA Public-key For OpenSSH Server?</a></li><li><a href="http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-login-prompt-is-very-slow-in-linux/" title="How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux">How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux</a></li><li><a href="http://www.walkernews.net/2009/03/22/how-to-fix-server-refused-our-key-error-that-caused-by-putty-generated-rsa-public-key/" title="How To Fix &#8220;Server Refused Our Key&#8221; Error That Caused By Putty Generated RSA Public Key?">How To Fix &#8220;Server Refused Our Key&#8221; Error That Caused By Putty Generated RSA Public Key?</a></li><li><a href="http://www.walkernews.net/2009/05/02/how-to-regenerate-putty-based-rsa-public-key-from-its-private-key/" title="How To Regenerate Putty-based RSA Public-key From Its Private-key?">How To Regenerate Putty-based RSA Public-key From Its Private-key?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2009/03/18/how-to-allow-root-login-to-telnet-server-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Fix Telnet Rejection Error of Name or Service Not Known: Illegal Seek</title>
		<link>http://www.walkernews.net/2008/11/20/how-to-fix-telnet-rejection-error-of-name-or-service-not-known-illegal-seek/</link>
		<comments>http://www.walkernews.net/2008/11/20/how-to-fix-telnet-rejection-error-of-name-or-service-not-known-illegal-seek/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 17:16:08 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[KnowHow]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Protocol]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Remote Access]]></category>
		<category><![CDATA[TCP]]></category>
		<category><![CDATA[Telnet]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=1411</guid>
		<description><![CDATA[What happen if you telnet clients unable to remote access Linux server, with an error message that says "Name or service not known: illegal seek".]]></description>
			<content:encoded><![CDATA[We all know that telnet is a good remote access protocol in the old days. Now, we prefer <a href="http://www.walkernews.net/2007/07/22/ssh-port-forwarding-local-vs-remote/" title="SSH Local Port Forwarding VS Remote Port Forwarding" rel="bookmark">SSH protocol</a> because SSH is a secure protocol, i.e. it’s not easy to hack.<br />
<span id="more-1411"></span><br />
However, for some reasons, telnet server still installed for some (Microsoft Windows) users who <!--wgadh3-->desperately need remote access facility. (Maybe telnet server will go into history when Windows start to bundle <a href="http://www.walkernews.net/2008/06/05/configure-putty-to-support-password-less-ssh-login/" title="Configure Putty to support non-interactive or password-less SSH login" rel="bookmark">Putty</a> or its own SSH client).<br />
<br />So, this is what happen here, that we have to <a href="http://www.walkernews.net/2008/11/19/how-to-install-and-start-telnet-server-in-red-hat-linux/" title="How to install and enable telnet server in Red Hat Linux?" rel="bookmark">install and enable the insecure telnet server</a> on all <a href="http://www.walkernews.net/2008/01/15/how-to-install-rhel4-in-hp-netserver-lh3000/" title="How to install RHEL4 in my bloody HP NetServer LH3000" rel="bookmark">Red Hat Enterprise Linux</a> servers, for obvious reason.<br />
<br />Problem happen today when one user reported that he cannot telnet to the server, with an rejection error message that said &#8220;GetAddrInfo: <em>&lt;hostname&gt;</em>: Success. Name or service not known: Illegal seek&#8221; (as seen in the following screenshot taken when I telnet to localhost in a SSH session):<br />
<br /><img style="float:left;margin:0 5px 0 0;" src="http://www.walkernews.net/wp-content/uploads/2008/11/telnet-error.jpg" alt="Linux telnet server rejected client connection with error message saying Name or service not known: Illegal seek." title="Linux telnet server rejected client connection with error message saying Name or service not known: Illegal seek." width="350" height="122" class="size-full wp-image-1414" />How to fix this so-called &#8220;Name or service not known: Illegal seek&#8221; error (replied by the telnet daemon)?<br />
<br />Well, I guess this has something to do with DNS resolution. It was working fine until we changed the Linux hostname on yesterday. The hostname is not registered to <a href="http://www.walkernews.net/2007/06/29/how-to-setup-tinydns-server-for-soho/" title="How to setup TinyDNS server in 3 minutes." rel="bookmark">DNS servers</a> that defined in <span class="fpath">/etc/resolv.conf</span> file and there is no hostname-to-IP mapping in <span class="fpath">/etc/hosts</span> file as well.<br />
<br />So, to try out the possible solution, I <span class="subhead2">add in hostname-to-IP mapping in <span class="fpath">/etc/hosts</span> file, and it works</span>:<br />
<pre>
192.168.20.21      WalkerNews      WalkerNews.net
</pre>
<br />[ assuming the hostname is <a href="http://www.walkernews.net/" title="WalkerNews.net - A capsule of Walker experience in life." rel="bookmark">WalkerNews</a> and its IP address is 192.168.20.21]<br />
<br />I am not sure (because I haven&#8217;t tried) the problem will be fixed, if I remove the hostname-IP mapping in <span class="fpath">/etc/hosts</span> and register the hostname-IP to DNS servers that defined in <span class="fpath">/etc/resolv.conf</span> file. (I bet this will work, too).<br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2009/03/18/how-to-allow-root-login-to-telnet-server-in-linux/" title="How To Allow Root Login To Telnet Server In Linux?">How To Allow Root Login To Telnet Server In Linux?</a></li><li><a href="http://www.walkernews.net/2008/11/19/how-to-install-and-start-telnet-server-in-red-hat-linux/" title="How To Install And Start Telnet Server In Red Hat Linux?">How To Install And Start Telnet Server In Red Hat Linux?</a></li><li><a href="http://www.walkernews.net/2008/11/21/how-to-check-what-kernel-build-options-enabled-in-the-linux-kernel/" title="How To Check What Kernel Build Options Enabled In The Linux Kernel?">How To Check What Kernel Build Options Enabled In The Linux Kernel?</a></li><li><a href="http://www.walkernews.net/2009/05/11/how-to-use-putty-generated-rsa-key-to-login-linux-openssh-server/" title="How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?">How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?</a></li><li><a href="http://www.walkernews.net/2009/05/03/how-to-create-putty-based-rsa-public-key-for-openssh-server/" title="How To Create Putty-based RSA Public-key For OpenSSH Server?">How To Create Putty-based RSA Public-key For OpenSSH Server?</a></li><li><a href="http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-login-prompt-is-very-slow-in-linux/" title="How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux">How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux</a></li><li><a href="http://www.walkernews.net/2009/04/03/how-to-restart-vnc-server-after-vnc-service-hangs-or-stops-unexpectedly/" title="How To Restart VNC Server After VNC Service Hangs or Stops Unexpectedly?">How To Restart VNC Server After VNC Service Hangs or Stops Unexpectedly?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2008/11/20/how-to-fix-telnet-rejection-error-of-name-or-service-not-known-illegal-seek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Vista Multiple Networks: Wireless To Public WIFI and Wired To Private LAN</title>
		<link>http://www.walkernews.net/2008/10/29/windows-vista-multiple-networks-wireless-to-public-wifi-and-wired-to-private-lan/</link>
		<comments>http://www.walkernews.net/2008/10/29/windows-vista-multiple-networks-wireless-to-public-wifi-and-wired-to-private-lan/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 17:51:47 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Default Route]]></category>
		<category><![CDATA[Ethernet]]></category>
		<category><![CDATA[Gateway]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[KnowHow]]></category>
		<category><![CDATA[Multihomed]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Route]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Vista SP1]]></category>
		<category><![CDATA[WIFI]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=1232</guid>
		<description><![CDATA[How to configure Windows Vista multiple networks, so that you can use wireless to surf Internet via WIFI and use Cat-5 LAN cable to access private Ethernet network?]]></description>
			<content:encoded><![CDATA[Today, I found an insecure public WIFI in office that allows me to surf Internet directly (without going through the corporate <a href="http://www.walkernews.net/2007/05/11/google-hack-using-google-as-proxy-server/" title="Google Hack 101 - How to use Google translation service as a web proxy to surf restricted web sites that filtered by Webmarshal?" rel="bookmark">proxy server</a>).<br />
<span id="more-1232"></span><br />
As Dell Latitude D410 built with both Ethernet and wireless network connection, so I would like the wireless network adapter connecting to Internet via that insecure public WIFI and use the wired Ethernet network to access corporate network.<br />

However, soon after I plug in CAT-5 cable to Ethernet port, the <a href="http://www.walkernews.net/tag/windows-vista/" title="All posts related to Windows Vista in WalkerNews.net" rel="bookmark">Windows Vista</a> Multiple Networks failed to access Internet via public WIFI connection.<br />
<br /><span class="subhead2">How to configure Windows Vista SP1 Multiple Networks</span> so that only the wireless is used to connect to Internet and use the Ethernet LAN connection to access corporate / internal network?<br />
<br /><div style="max-width:500px;"><img src="http://www.walkernews.net/wp-content/uploads/2008/10/vista-multiple-networks-setup.jpg" alt="How to configure Windows Vista Multiple Networks - use wireless to connect Internet and wired Ethernet to access internal LAN network?" title="How to configure Windows Vista Multiple Networks - use wireless to connect Internet and wired Ethernet to access internal LAN network?" width="500" height="297" class="size-full wp-image-1234" /></div><sup>How to configure Windows Vista Multiple Networks - use wireless to connect Internet and wired Ethernet to access internal LAN network?</sup><br />
<br />In my case, both the Ethernet LAN connection and Wireless network connection has a default route 0.0.0.0. However, the Ethernet LAN connection always given a lower route metric than the wireless network connection. (Is it the faster network interface prioritized for lower metric?)<br />
<br />Thus, all network packets addressed to Internet IP forwarded to Ethernet network interface rather than to the wireless network connection, which has a higher route metric.<br />
<br /><span class="subhead2">Solution:</span> There might be a better solution, but I choose to delete the default route of Ethernet network interface from route table.<br />
<br /><span class="subhead">Configure Windows Vista Multiple Networks &#8211; Delete Unwanted Default Route 0.0.0.0</span><br />
<br />While ONLY the wireless network interface is connecting to that insecure public WIFI, execute <code>route print</code> in an <a href="http://www.walkernews.net/2007/05/21/open-command-prompt-here-with-elevated-privilege/" title="How to create a shortcut in Windows Context menu that used to open an elevated Command Prompt window in Windows Vista?" rel="bookmark">elevated Command Prompt window</a> shows there is only one active network interface (i.e. 192.168.0.103) and its default route (0.0.0.0.): <br />
<br /><div style="max-width:500px;"><img src="http://www.walkernews.net/wp-content/uploads/2008/10/vista-default-gateway-a.jpg" alt="Windows Vista route print command display the route table information - the Interface List and Route Table." title="Windows Vista route print command display the route table information - the Interface List and Route Table." width="500" height="375" class="size-full wp-image-1236" /></div><sup>Windows Vista route print command display the route table information - the Interface List and Route Table.</sup><br />
<br />Now, after connecting the Ethernet port to corporate network via CAT-5 cable, the route table has two active networks interface and their respective default route (but different metric, i.e. 20 and 25):<br />
<br /><div style="max-width:500px;"><img src="http://www.walkernews.net/wp-content/uploads/2008/10/vista-multiple-gateway-a.jpg" alt="Windows Vista route table with multiple default routes." title="Windows Vista route table with multiple default routes." width="500" height="74" class="size-full wp-image-1238" /></div><sup>Windows Vista route table with multiple default routes.</sup><br />
<br />So, I have to delete / remove the default route of Ethernet network interface:<br />
<pre>route delete 0.0.0.0 IF 11</pre>
<br />where the IF 11 refers to Inteface List # 11 (which is displayed by <code>route print</code> command output, in the Interface List section).<br />
<blockquote>
In my example (2nd screenshot), the IF 11 refers to Broadcom Nextreme 57xx Gigabit Controller (as highlighted with blue color) while IF 12 is the wireless network interface that appears as Intel (R) PRO/Wireless 2200BG Network Connection.
</blockquote>
<br />At this point, I&#8217;m happily browsing any web sites without restriction (oppose to web browsing through corporate <a href="http://www.walkernews.net/2007/08/02/squid-child-process-exited-due-to-signal-25/" title="How to fix problem of Squid proxy child process exited due to signal 25?" rel="bookmark">proxy server</a> with WebMarshal filtering feature) via wireless network interface that connecting to public WIFI. <br />
<br />At same time, I am able to access <a href="http://www.walkernews.net/2008/06/24/bypass-exchange-server-attachment-filtering-system/" title="How to bypass MS Exchange Server attachment-filtering module, in order to send email with restricted attachment content?" rel="bookmark">MS Exchange Server</a> and all other corporate network resources using the faster Ethernet LAN connection. (Although, I&#8217;ve to add some routes with different gateways to access the 192.x.x.x segments, which is part of the corporate networks).<br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2008/11/03/how-to-copy-or-backup-file-that-is-open-in-another-program/" title="How To Copy Or Backup File That Is Open In Another Program?">How To Copy Or Backup File That Is Open In Another Program?</a></li><li><a href="http://www.walkernews.net/2008/10/25/how-to-use-infrared-to-send-files-from-windows-vista-to-nokia-n73/" title="How To Use Infrared To Send Files From Windows Vista To Nokia N73?">How To Use Infrared To Send Files From Windows Vista To Nokia N73?</a></li><li><a href="http://www.walkernews.net/2008/06/12/how-to-cut-mp3-as-mobile-phone-ringtone/" title="How To Cut MP3 As Mobile Phone Ringtone">How To Cut MP3 As Mobile Phone Ringtone</a></li><li><a href="http://www.walkernews.net/2008/12/01/how-to-extend-windows-vista-system-partition/" title="How To Extend Windows Vista System Partition?">How To Extend Windows Vista System Partition?</a></li><li><a href="http://www.walkernews.net/2008/11/12/how-to-fix-ie-7-print-error-in-windows-vista/" title="How To Fix IE 7 Print Error In Windows Vista?">How To Fix IE 7 Print Error In Windows Vista?</a></li><li><a href="http://www.walkernews.net/2008/06/18/how-to-check-windows-last-boot-up-time/" title="How To Check Windows Last Boot Up Time">How To Check Windows Last Boot Up Time</a></li><li><a href="http://www.walkernews.net/2008/06/11/tweak-windows-media-player-to-display-chinese-characters/" title="Tweak Windows Media Player To Display Chinese Characters">Tweak Windows Media Player To Display Chinese Characters</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2008/10/29/windows-vista-multiple-networks-wireless-to-public-wifi-and-wired-to-private-lan/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Private IP VS Public IP: How To Check WAN IP, Public IP, or Internet IP?</title>
		<link>http://www.walkernews.net/2008/08/26/private-ip-vs-public-ip-how-to-check-wan-ip-public-ip-or-internet-ip/</link>
		<comments>http://www.walkernews.net/2008/08/26/private-ip-vs-public-ip-how-to-check-wan-ip-public-ip-or-internet-ip/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 16:44:15 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Dummy Guide]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[IP Address]]></category>
		<category><![CDATA[KnowHow]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Private IP]]></category>
		<category><![CDATA[Public IP]]></category>
		<category><![CDATA[Speed Test]]></category>
		<category><![CDATA[TCP]]></category>
		<category><![CDATA[WAN IP]]></category>
		<category><![CDATA[WHOIS]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=1003</guid>
		<description><![CDATA[So long as you're online to Internet, your computer system is given an IP. How do you check this Internet IP address in a second?]]></description>
			<content:encoded><![CDATA[15 years ago, your home computer might not really need an IP address, simply because you neither online to Internet nor connected to a local network.<br />
<span id="more-1003"></span><br />
Nowadays, an offline Core 2 Duo computer is like a Jaguar without fuel to burn for power!<br />
<br /><!--wgadm-->Having say that, 99% of home computers (be it a Desktop or Laptop, Core 2 Duo or an aging Pentium 133) have been actively using <a href="http://www.walkernews.net/2008/08/18/wordpress-26-what-does-the-commenter-ip-tells/" title="Do you check the commenter IP address each time before approving a reader comments?" rel="bookmark">IP address</a> to communicate over the TCP/IP network.<br />
<br /><span class="subhead">Private IP vs Public IP</span><br />
<br />In a brief, using a home computer network as an example, a <span style="font-weight:bold;color:#F00;font-weight:bold;">private IP</span> is an unique ID used to facilitate communication among IP-enabled devices (network printer, laptop, XBox, etc) that linked up to the same ADSL router modem. The <code>ipconfig</code> command in <a href="http://www.walkernews.net/tag/windows-vista/" title="All posts related to Windows Vista in WalkerNews.net" rel="bookmark">Windows</a> or <code>/sbin/ifconfig</code> command in <a href="http://www.walkernews.net/tag/linux/" title="All posts related to Linux in WalkerNews.net" rel="bookmark">Linux</a> can be used to check this private IP address.<br />
<br />In contrast, <span style="font-weight:bold;color:#F00;font-weight:bold;">public IP</span> (a.k.a. WAN IP or Internet IP address) is an unique ID given by your Internet service provider (ISP) to the ADSL router modem, enable it to online to Internet.<br />
<blockquote>
In a office/college network, the Desktop/laptop hooking up to the internal network is using a private IP too, be it fixed IP or dynamic IP given by internal DHCP server. The proxy server that serves Internet-related activity is in turn holding the public, WAN IP address given by ISP.
</blockquote>
<br /><span class="subhead">How to check my public/Internet/WAN IP address?</span><br />
<br />There are many ways lead to Rome. Here are just some of the easy methods to check my computer (or your computer) WAN IP/Public IP/Internet IP:<br />
<ul>
<li>Just ask Google Search to look for &#8220;check WAN IP&#8221;, &#8220;check public IP&#8221;, etc. For example, one of the easiest URL to remember could be <a href="http://who.is/" target="_blank" rel="nofollow">who.is</a>. Just type <code>who.is</code> in the web browser and hit ENTER key, a simple and quick-loading webpage appears with a line that says <strong>Your IP is xxx.xxx.xxx.xxx</strong>.<br />
&nbsp;</li>
<li>Telnet to ADSL router modem (e.g. D-LINK 504T) and type <code>ifconfig</code> to check <strong>inet addr</strong> of ppp0.<br />
&nbsp;</li>
<li>Add <a href="http://www.google.com/ig/directory?synd=open&#038;url=http://aruljohn.com/gadget/ip.xml" target="_blank" rel="nofollow">this Google gadget</a> to your iGoogle homepage/blog. You could also simply click <a href="http://www.gmodules.com/ig/creator?synd=open&#038;url=http%3A//aruljohn.com/gadget/ip.xml&#038;pt=%26context%3Dd%26synd%3Dopen%26lang%3Den%26.lang%3Den%26country%3Dus%26.country%3Dus%26cat%3Dall%26num%3D1%26start%3D-1%26cols%3D1%26objs%3DAgg&#038;sn=Agg&#038;lang=en" target="_blank" rel="nofollow">this link</a> to view your WAN IP address, hostname given by the ISP, ISP name, country name and proxy server information.</li>
</ul>
<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2008/11/24/how-to-check-router-modem-ip-address-that-given-by-isp/" title="How To Check Router Modem IP Address That Given By ISP?">How To Check Router Modem IP Address That Given By ISP?</a></li><li><a href="http://www.walkernews.net/2008/11/20/how-to-fix-telnet-rejection-error-of-name-or-service-not-known-illegal-seek/" title="How To Fix Telnet Rejection Error of Name or Service Not Known: Illegal Seek">How To Fix Telnet Rejection Error of Name or Service Not Known: Illegal Seek</a></li><li><a href="http://www.walkernews.net/2008/10/29/windows-vista-multiple-networks-wireless-to-public-wifi-and-wired-to-private-lan/" title="Windows Vista Multiple Networks: Wireless To Public WIFI and Wired To Private LAN">Windows Vista Multiple Networks: Wireless To Public WIFI and Wired To Private LAN</a></li><li><a href="http://www.walkernews.net/2009/05/17/how-to-check-which-isp-your-neighbour-or-public-wifi-is-using/" title="How To Check Which ISP Your Neighbour Or Public WIFI Is Using?">How To Check Which ISP Your Neighbour Or Public WIFI Is Using?</a></li><li><a href="http://www.walkernews.net/2008/11/23/how-to-know-my-gmail-account-has-been-hacked-by-keylogger/" title="How To Know My Gmail Account Has Been Hacked By Keylogger?">How To Know My Gmail Account Has Been Hacked By Keylogger?</a></li><li><a href="http://www.walkernews.net/2008/11/19/how-to-install-and-start-telnet-server-in-red-hat-linux/" title="How To Install And Start Telnet Server In Red Hat Linux?">How To Install And Start Telnet Server In Red Hat Linux?</a></li><li><a href="http://www.walkernews.net/2008/11/13/windows-live-messenger-does-not-display-music-playing-in-windows-media-player/" title="Windows Live Messenger Does Not Display Music Playing In Windows Media Player">Windows Live Messenger Does Not Display Music Playing In Windows Media Player</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2008/08/26/private-ip-vs-public-ip-how-to-check-wan-ip-public-ip-or-internet-ip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configure VNC Server To Auto Start Up In Red Hat Linux</title>
		<link>http://www.walkernews.net/2008/06/20/configure-vnc-server-to-auto-start-up-in-red-hat-linux/</link>
		<comments>http://www.walkernews.net/2008/06/20/configure-vnc-server-to-auto-start-up-in-red-hat-linux/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 09:08:38 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[3-Minutes]]></category>
		<category><![CDATA[ChkConfig]]></category>
		<category><![CDATA[Know-how]]></category>
		<category><![CDATA[Netstat]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[RealVNC]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Remote Access]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[VNCPasswd]]></category>
		<category><![CDATA[VNCServer]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=771</guid>
		<description><![CDATA[How to get VNC server auto start up after Red Hat Linux reboot? Read this setup guide to get the job done in less than 3 minutes! ]]></description>
			<content:encoded><![CDATA[Last year, I wrote a post on <a href="http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/" title="How to setup Linux VNC Server?" rel="bookmark">how to configure VNC server in Red Hat Linux system</a>. But, that <a href="http://www.walkernews.net/?s=3-minutes" title="Search all posts related to 3-minutes guide in WalkerNews.net" rel="bookmark">3-minutes</a> setup guide doesn&#8217;t mention about how to auto start <a href="http://www.walkernews.net/2007/07/22/ssh-remote-port-forwarding-in-3-minutes/" title="How to secure or encrypt VNC connection with SSH port forwarding technique?" rel="bookmark">VNC server</a> when Linux boots up.<br />
<span id="more-771"></span><br />
Again, don&#8217;t expect this is a complex setup. Indeed, you probably need less than a minute to get this job done!<br />

<span class="subhead">How to auto start VNC server in Red Hat Linux after system reboot?</span><br />
<br />My testing environment is a machine running on Red Hat Enterprise Linux 4 Update 4, with the bundled VNC Server (i.e. vnc-server-4.0-8.1). Also assume that a Linux user account called &#8220;walker&#8221; needs the VNC server to start up automatically when Linux boots up.<br />
<ol>
<li>The Linux user account that needs VNC server to automatically start up after system reboot, must have a VNC password. To create a new (or reset a forgotten) VNC password, just login or su (switch user) with that Linux user account and execute this simple command:
<pre>vncpasswd</pre>
<br />Enter a password when prompted, which is used for VNC authentication.</li>
<li>A hidden directory named .vnc is created in the user home directory by the vncpasswd command (if it&#8217;s not current exists). Execute <code>ls -la $HOME/.vnc</code> command to check if there is a file called xstartup. If this file is not exists, bring up VNC server with another simple command:
<pre>vncserver :1</pre>
<br />If you get this similar message &#8220;A VNC server is already running as :1&#8243;, meaning that there is another instance of VNC server running with the same display number. To resolve this, just try to replace the :1 with :2, :3, etc. Alternatively, you may execute this <a href="http://www.walkernews.net/2007/05/27/linux-commands-to-check-network-connection/" title="Linux netstat - how useful is this networking command in Linux?" rel="bookmark">netstat command</a> with root user privilege:<br />
<pre>[root@walkernews ~]# netstat -tulpan | grep vnc
tcp    0    0 0.0.0.0:5801    0.0.0.0:*   LISTEN   3402/Xvnc
tcp    0    0 0.0.0.0:5802    0.0.0.0:*   LISTEN   8447/Xvnc
tcp    0    0 0.0.0.0:5901    0.0.0.0:*   LISTEN   3402/Xvnc
tcp    0    0 0.0.0.0:5902    0.0.0.0:*   LISTEN   8447/Xvnc
tcp    0    0 0.0.0.0:6001    0.0.0.0:*   LISTEN   3402/Xvnc
tcp    0    0 0.0.0.0:6002    0.0.0.0:*   LISTEN   8447/Xvnc</pre>
<br />The netstat output shows that there are two VNC servers running with display number 1 and 2. So, for the 3rd VNC server to start, the command should be <code>vncserver :3</code>.<br />
&nbsp;</li>
<li>Edit $HOME/.vnc/xstartup file with your favourite editor, to un-comment these two lines in order to get the &#8220;normal&#8221; Linux Desktop view:
<pre>unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc</pre>
</li>
<li>Switch user to root account (i.e. <code> su - root</code>), edit /etc/sysconfig/vncservers with your favourite editor, append the display number and Linux user account information to the VNCSERVERS (an array variable). This configuration file defines who can start up VNC server with what display number via the VNCSERVERS array (that&#8217;s read by Linux start up scripts /etc/init.d/vncserver). For example,
<pre>VNCSERVERS="1:root 2:tester 3:walker"</pre>
<br />That means there are three Linux user accounts (root, tester, and walker) will start up VNC server with display number 1, 2, and 3 respecitively, as Linux boots up.<br />
<br /><span class="subhead2">Note:</span> Don&#8217;t simply add more than one VNCSERVERS array in /etc/sysconfig/vncserver configuration file. Otherwise, only the last VNCSERVERS array will be used.<br />
&nbsp;</li>
<li>Make sure VNC server (the daemon or server process) is set to auto run upon system boots up to your runlevel. For example,
<pre>[root@walkernews ~]# chkconfig &#8211;&#8211;list | grep vnc
vncserver  0:off  1:off  2:off  3:off  4:off  5:on  6:off</pre>
<br />The &#8211;&#8211;list option of chkconfig shows VNC server is set to auto run in Linux runlevel 5 (the default multi-user runlevel with Linux Desktop console). To configure VNC server to auto run when Linux boots into runlevel 5, use the &#8211;&#8211;level with on option switch:<br />
<pre>chkconfig --level 5 vncserver on</pre>
</li>
</ol>
<br />Ok, that&#8217;s all you need. You should have the VNC server automatically running when Red Hat Linux boots up at runlevel 5. Although the guide might looks lengthy to you, but works involve shouldn&#8217;t take you more than 3 minutes after you get used with Linux!<br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2009/03/18/how-to-allow-root-login-to-telnet-server-in-linux/" title="How To Allow Root Login To Telnet Server In Linux?">How To Allow Root Login To Telnet Server In Linux?</a></li><li><a href="http://www.walkernews.net/2008/11/20/how-to-fix-telnet-rejection-error-of-name-or-service-not-known-illegal-seek/" title="How To Fix Telnet Rejection Error of Name or Service Not Known: Illegal Seek">How To Fix Telnet Rejection Error of Name or Service Not Known: Illegal Seek</a></li><li><a href="http://www.walkernews.net/2008/06/05/configure-putty-to-support-password-less-ssh-login/" title="Configure Putty To Support Password-less SSH Login">Configure Putty To Support Password-less SSH Login</a></li><li><a href="http://www.walkernews.net/2008/06/04/auto-ssh-login-by-using-public-key-cryptography/" title="Auto SSH Login By Using Public-key Cryptography">Auto SSH Login By Using Public-key Cryptography</a></li><li><a href="http://www.walkernews.net/2009/04/03/how-to-restart-vnc-server-after-vnc-service-hangs-or-stops-unexpectedly/" title="How To Restart VNC Server After VNC Service Hangs or Stops Unexpectedly?">How To Restart VNC Server After VNC Service Hangs or Stops Unexpectedly?</a></li><li><a href="http://www.walkernews.net/2009/03/07/how-to-create-volume-group-and-file-system-with-lvm2-in-linux/" title="How To Create Volume Group And File System With LVM2 In Linux?">How To Create Volume Group And File System With LVM2 In Linux?</a></li><li><a href="http://www.walkernews.net/2008/11/19/how-to-install-and-start-telnet-server-in-red-hat-linux/" title="How To Install And Start Telnet Server In Red Hat Linux?">How To Install And Start Telnet Server In Red Hat Linux?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2008/06/20/configure-vnc-server-to-auto-start-up-in-red-hat-linux/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

