<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How To Setup Linux VNC Server In 3 Minutes</title>
	<atom:link href="http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/</link>
	<description>A capsule of walker's experience in life...</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:09:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: GAP</title>
		<link>http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15979</link>
		<dc:creator>GAP</dc:creator>
		<pubDate>Fri, 27 Jan 2012 17:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15979</guid>
		<description>Wonderful, direct to the point every stupid guide I&#039;ve seen has tons of garbage and unnecessary technical explanations. I did follow your guide and had it enabled very quickly!

Tks!</description>
		<content:encoded><![CDATA[<p>Wonderful, direct to the point every stupid guide I&#8217;ve seen has tons of garbage and unnecessary technical explanations. I did follow your guide and had it enabled very quickly!</p>
<p>Tks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jambo13</title>
		<link>http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15906</link>
		<dc:creator>Jambo13</dc:creator>
		<pubDate>Wed, 28 Dec 2011 09:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15906</guid>
		<description>Brilliant, thanks for sharing :-)

Worked first time for me, nice clear instructions</description>
		<content:encoded><![CDATA[<p>Brilliant, thanks for sharing :-)</p>
<p>Worked first time for me, nice clear instructions</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lary</title>
		<link>http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15614</link>
		<dc:creator>Lary</dc:creator>
		<pubDate>Mon, 29 Aug 2011 02:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15614</guid>
		<description>I have recently inherited a windows network on a Linux server and have changed the ISP now when i go to connect using the VNC Viewer4 I get a error message stating that the &quot;connection was refused Error code 10061&quot; and guidance in the right direction would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>I have recently inherited a windows network on a Linux server and have changed the ISP now when i go to connect using the VNC Viewer4 I get a error message stating that the &#8220;connection was refused Error code 10061&#8243; and guidance in the right direction would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jxfish2</title>
		<link>http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15545</link>
		<dc:creator>jxfish2</dc:creator>
		<pubDate>Tue, 09 Aug 2011 17:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15545</guid>
		<description>Never mind.  I figured it out!
For any of you that might be interested in something similar. I created a separate script to open VNC sessions of 3 different xterm window types:

&lt;ul&gt;
&lt;li&gt;2 windows, with each xterm window running the length of the VNC session.&lt;/li&gt;
&lt;li&gt;4 windows, each of a relatively standard height and width.&lt;/li&gt;
&lt;li&gt;6 windows, each of a relatively standard height and width.&lt;/li&gt;
&lt;/ul&gt;

The code will follow in another comment window!
&lt;pre&gt;
WINS=$1

if [[ ! -n $1 ]]
then
echo “”
echo “You must enter the number of xterm windows you want to open, as \$1″
echo “on the command line.”
echo “”
echo ” Example:”
echo “”
echo ” ./vncserver 4″
echo “”
echo “Please try again!”
exit
fi

if [[ &quot;$WINS&quot; -eq &quot;2&quot; ]]
then
PORT=”20″
while [[ -n `ps -ef &#124; grep Xvnc &#124; grep &quot;\:$PORT&quot;` ]]
do
let PORT=”$PORT + 1″
done
/usr/bin/vncserver -geometry 1008×955 :$PORT
elif [[ &quot;$WINS&quot; -eq &quot;4&quot; ]]
then
PORT=”40″
while [[ -n `ps -ef &#124; grep Xvnc &#124; grep &quot;\:$PORT&quot;` ]]
do
let PORT=”$PORT + 1″
done
/usr/bin/vncserver -geometry 1008×660 :$PORT
elif [[ &quot;$WINS&quot; -eq &quot;6&quot; ]]
then
PORT=”60″
while [[ -n `ps -ef &#124; grep Xvnc &#124; grep &quot;\:$PORT&quot;` ]]
do
let PORT=”$PORT + 1″
done
/usr/bin/vncserver -geometry 1008×990 :$PORT
fi
&lt;/pre&gt;
To establish a new VNC session, with the pre-configured size, first you need to execute your new script:

./myvncserver 2

./myvncserver 4

./myvncserver 6

Finally, I need to configure my xstartup script so that it can determine on its own, whether it needs to open 2, 4 or 6 xterm windows.

xstartup contents to be displayed in the next comments window.
&lt;pre&gt;
xsetroot -solid royalblue
vncconfig -iconic &amp;

if [[ -n `/bin/echo $PORT &#124; /bin/egrep &#039;6[0-9]‘` ]]
then

# 6 Windows – 1008×990 resolution:

xterm -geometry 80×23+1+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;
xterm -geometry 80×23+505+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;
xterm -geometry 80×23+1+330 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;
xterm -geometry 80×23+505+330 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;
xterm -geometry 80×23+1+660 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;
xterm -geometry 80×23+505+660 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;

elif [[ -n `/bin/echo $PORT &#124; /bin/egrep &#039;4[0-9]‘` ]]
then

# 4 Windows – 1008×660 resolution:

xterm -geometry 80×23+1+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;
xterm -geometry 80×23+505+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;
xterm -geometry 80×23+1+330 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;
xterm -geometry 80×23+505+330 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;

elif [[ -n `/bin/echo $PORT &#124; /bin/egrep &#039;2[0-9]‘` ]]
then

# 2 Windows – 1008×955 resolution:

xterm -geometry 80×71+0+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;
xterm -geometry 80×71+504+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &amp;

fi

twm &amp;
&lt;/pre&gt;
Hope this was useful to someone other than me!
Note that the window sizes used in the above code fill my desktop sessions perfectly.
You may need to tweak the sizes according to your own desktop work space.</description>
		<content:encoded><![CDATA[<p>Never mind.  I figured it out!<br />
For any of you that might be interested in something similar. I created a separate script to open VNC sessions of 3 different xterm window types:</p>
<ul>
<li>2 windows, with each xterm window running the length of the VNC session.</li>
<li>4 windows, each of a relatively standard height and width.</li>
<li>6 windows, each of a relatively standard height and width.</li>
</ul>
<p>The code will follow in another comment window!</p>
<pre>
WINS=$1

if [[ ! -n $1 ]]
then
echo “”
echo “You must enter the number of xterm windows you want to open, as \$1″
echo “on the command line.”
echo “”
echo ” Example:”
echo “”
echo ” ./vncserver 4″
echo “”
echo “Please try again!”
exit
fi

if [[ "$WINS" -eq "2" ]]
then
PORT=”20″
while [[ -n `ps -ef | grep Xvnc | grep "\:$PORT"` ]]
do
let PORT=”$PORT + 1″
done
/usr/bin/vncserver -geometry 1008×955 :$PORT
elif [[ "$WINS" -eq "4" ]]
then
PORT=”40″
while [[ -n `ps -ef | grep Xvnc | grep "\:$PORT"` ]]
do
let PORT=”$PORT + 1″
done
/usr/bin/vncserver -geometry 1008×660 :$PORT
elif [[ "$WINS" -eq "6" ]]
then
PORT=”60″
while [[ -n `ps -ef | grep Xvnc | grep "\:$PORT"` ]]
do
let PORT=”$PORT + 1″
done
/usr/bin/vncserver -geometry 1008×990 :$PORT
fi
</pre>
<p>To establish a new VNC session, with the pre-configured size, first you need to execute your new script:</p>
<p>./myvncserver 2</p>
<p>./myvncserver 4</p>
<p>./myvncserver 6</p>
<p>Finally, I need to configure my xstartup script so that it can determine on its own, whether it needs to open 2, 4 or 6 xterm windows.</p>
<p>xstartup contents to be displayed in the next comments window.</p>
<pre>
xsetroot -solid royalblue
vncconfig -iconic &#038;

if [[ -n `/bin/echo $PORT | /bin/egrep '6[0-9]‘` ]]
then

# 6 Windows – 1008×990 resolution:

xterm -geometry 80×23+1+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;
xterm -geometry 80×23+505+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;
xterm -geometry 80×23+1+330 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;
xterm -geometry 80×23+505+330 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;
xterm -geometry 80×23+1+660 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;
xterm -geometry 80×23+505+660 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;

elif [[ -n `/bin/echo $PORT | /bin/egrep '4[0-9]‘` ]]
then

# 4 Windows – 1008×660 resolution:

xterm -geometry 80×23+1+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;
xterm -geometry 80×23+505+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;
xterm -geometry 80×23+1+330 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;
xterm -geometry 80×23+505+330 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;

elif [[ -n `/bin/echo $PORT | /bin/egrep '2[0-9]‘` ]]
then

# 2 Windows – 1008×955 resolution:

xterm -geometry 80×71+0+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;
xterm -geometry 80×71+504+0 -bg black -fg green -hc white -ls -title “$VNCDESKTOP Desktop” /bin/bash &#038;

fi

twm &#038;
</pre>
<p>Hope this was useful to someone other than me!<br />
Note that the window sizes used in the above code fill my desktop sessions perfectly.<br />
You may need to tweak the sizes according to your own desktop work space.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jxfish2</title>
		<link>http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15542</link>
		<dc:creator>jxfish2</dc:creator>
		<pubDate>Tue, 09 Aug 2011 15:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15542</guid>
		<description>Thanks dhabib.

I could not find the &quot;$DISPLAY&quot; variable, but I did find the native &quot;$VNCDESKTOP&quot; variable.

Using this variable, I was able to create a conditional statement to set the number of xterm sessions inside of a VNC session, differently, for different VNC sessions.

Here&#039;s the conditional statement I used:

if [[ -n `/bin/echo $VNCDESKTOP &#124; /bin/grep &#039;:2&#039;` ]]

Now I have one more question, if it’s Ok with you:

The VNC geometry that I have set inside of the /etc/sysconfig/vncservers is a non-standard entry.

But, as I have port :2 set for my own personal use, it’s not an issue.

However, when I open a new session, not previously defined within this config file, my .Xauthority file overrides my preferred VNC geometry, setting it to 1024×768.

Is there some way for me to set the VNC session geometry locally, outside of the vncserver config file?

Remember, not the size of the xterm windows, but the actual VNC session geometry.

In other words, I typically upgrade / work on 6 servers at once, all in parallel.

I have my default VNC session set to open 6 xterm windows inside of a single VNC session, with each xterm session set to 80×24.

But, I want to open a new VNC session, with xterm windows that are 80×60, where I can display HOWTO style, cut-n-paste documents. Documents that are prepared in advance of our maintenance windows.

If nothing more, do you know of a way to reset the default 1024×768 to something different, inside of the local .Xauthority file?</description>
		<content:encoded><![CDATA[<p>Thanks dhabib.</p>
<p>I could not find the &#8220;$DISPLAY&#8221; variable, but I did find the native &#8220;$VNCDESKTOP&#8221; variable.</p>
<p>Using this variable, I was able to create a conditional statement to set the number of xterm sessions inside of a VNC session, differently, for different VNC sessions.</p>
<p>Here&#8217;s the conditional statement I used:</p>
<p>if [[ -n `/bin/echo $VNCDESKTOP | /bin/grep ':2'` ]]</p>
<p>Now I have one more question, if it’s Ok with you:</p>
<p>The VNC geometry that I have set inside of the /etc/sysconfig/vncservers is a non-standard entry.</p>
<p>But, as I have port :2 set for my own personal use, it’s not an issue.</p>
<p>However, when I open a new session, not previously defined within this config file, my .Xauthority file overrides my preferred VNC geometry, setting it to 1024×768.</p>
<p>Is there some way for me to set the VNC session geometry locally, outside of the vncserver config file?</p>
<p>Remember, not the size of the xterm windows, but the actual VNC session geometry.</p>
<p>In other words, I typically upgrade / work on 6 servers at once, all in parallel.</p>
<p>I have my default VNC session set to open 6 xterm windows inside of a single VNC session, with each xterm session set to 80×24.</p>
<p>But, I want to open a new VNC session, with xterm windows that are 80×60, where I can display HOWTO style, cut-n-paste documents. Documents that are prepared in advance of our maintenance windows.</p>
<p>If nothing more, do you know of a way to reset the default 1024×768 to something different, inside of the local .Xauthority file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhabib77</title>
		<link>http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15476</link>
		<dc:creator>dhabib77</dc:creator>
		<pubDate>Tue, 02 Aug 2011 23:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15476</guid>
		<description>Hi jxfish2,

You should see your port on the DISPLAY environment variable that was set by the Xvnc process and spawned to your xtartup script.
Once its readily available, abuse of IF statements at will 

I know it has been a couple of weeks after you&#039;ve asked and yet I still hope i have helped you or anyone in need.

Sunniest SouthAmerican regards</description>
		<content:encoded><![CDATA[<p>Hi jxfish2,</p>
<p>You should see your port on the DISPLAY environment variable that was set by the Xvnc process and spawned to your xtartup script.<br />
Once its readily available, abuse of IF statements at will </p>
<p>I know it has been a couple of weeks after you&#8217;ve asked and yet I still hope i have helped you or anyone in need.</p>
<p>Sunniest SouthAmerican regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jxfish2</title>
		<link>http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15316</link>
		<dc:creator>jxfish2</dc:creator>
		<pubDate>Fri, 22 Jul 2011 17:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2007/07/05/how-to-setup-linux-vnc-server/#comment-15316</guid>
		<description>Is there a way to enter a conditional statement inside of the .xstartup file?

i.e.

If I open 1 specific VNC session, say on port :2, I want it to open 6 xterm sessions in a pre-defined space.

On the other hand, if I open any other VNC sessions, on any other ports, I want it to only open 4 xterm sessions, in pre-defined spaces.

I already have the xterm statements, and geometry&#039;s calculated and working, I just haven&#039;t hit on a way to differentiate between used ports, from inside of the .xstartup file.

TIA</description>
		<content:encoded><![CDATA[<p>Is there a way to enter a conditional statement inside of the .xstartup file?</p>
<p>i.e.</p>
<p>If I open 1 specific VNC session, say on port :2, I want it to open 6 xterm sessions in a pre-defined space.</p>
<p>On the other hand, if I open any other VNC sessions, on any other ports, I want it to only open 4 xterm sessions, in pre-defined spaces.</p>
<p>I already have the xterm statements, and geometry&#8217;s calculated and working, I just haven&#8217;t hit on a way to differentiate between used ports, from inside of the .xstartup file.</p>
<p>TIA</p>
]]></content:encoded>
	</item>
</channel>
</rss>

