<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.linuxquestions.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Libertyernie</id>
	<title>LQWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linuxquestions.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Libertyernie"/>
	<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/wiki/Special:Contributions/Libertyernie"/>
	<updated>2026-04-11T15:51:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=44410</id>
		<title>X11vnc</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=44410"/>
		<updated>2009-03-14T19:43:05Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: xinetd&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''x11vnc''' is a [[VNC]] server that shares your physical X session. It can be started from a running X session by running:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;x11vnc -many&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It can also be started on system start-up. This is insecure and should only be used for firewalled home networks.&lt;br /&gt;
= Get it =&lt;br /&gt;
Download x11vnc from http://www.karlrunge.com/x11vnc/#downloading&lt;br /&gt;
&lt;br /&gt;
== Install it ==&lt;br /&gt;
Main article: [[installing software]]&lt;br /&gt;
&lt;br /&gt;
This article takes version 0.9.5 as an example, but it should work similar with any version.&lt;br /&gt;
[[Unpack]] x11vnc:&lt;br /&gt;
 [[tar]] xvzf x11vnc-0.9.5.tar.gz&lt;br /&gt;
 [[cd]] x11vnc-0.9.5/&lt;br /&gt;
 ./[[configure]] [[&amp;amp;&amp;amp;]] [[make]] &amp;amp;&amp;amp; make install&lt;br /&gt;
&lt;br /&gt;
If you wish, you can also use a precompiled binary package.&lt;br /&gt;
== Running x11vnc at boot ==&lt;br /&gt;
The following instructions are designed for [[Ubuntu]] and its sister projects, but will also work for other [[GNU/Linux]] [[distribution]]s with minor changes.&lt;br /&gt;
&lt;br /&gt;
This x11vnc how-to was originally written by ErikTheRed and can be found at the  [http://ubuntuforums.org/showthread.php?t=363236 Ubuntu forums].&lt;br /&gt;
&lt;br /&gt;
The original version of the how-to used [[xinetd]], but other [[inetd]] daemons can also be used.&lt;br /&gt;
&lt;br /&gt;
=== Using with KDM ===&lt;br /&gt;
&lt;br /&gt;
These additional steps are needed if and only if you use the KDM software to log in. Kubuntu uses KDM by default.&lt;br /&gt;
&amp;lt;!--credit: bdogg64--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following to /etc/kde3/kdm/kdmrc under [X-:*-Core]&lt;br /&gt;
&lt;br /&gt;
 AuthFile=/root/xauth&lt;br /&gt;
&lt;br /&gt;
On non-Ubuntu distributions, the kdmrc file may be located in a different folder.&lt;br /&gt;
&lt;br /&gt;
You can change the AuthFile to be something different, just make sure you have the same file in your server_args in your inetd services file.&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Using with GDM ===&lt;br /&gt;
&lt;br /&gt;
To use x11vnc with the [http://en.wikipedia.org/wiki/GNOME_Display_Manager GDM] logon manager (used by [[Ubuntu]], [http://en.wikipedia.org/wiki/Xubuntu Xubuntu] and [http://en.wikipedia.org/wiki/Linux_Mint Linux Mint] but NOT by [[Kubuntu]]), add the following to /etc/gdm/gdm.conf-custom under the [daemon] section:&lt;br /&gt;
&lt;br /&gt;
 KillInitClients=false&lt;br /&gt;
&lt;br /&gt;
(On other distributions, this file may have different name or be located in a different folder.)&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
==== Ubuntu/Linux Mint and related projects ====&lt;br /&gt;
x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.&lt;br /&gt;
&lt;br /&gt;
'''HINT:''' Replace &amp;quot;sudo nano&amp;quot; with &amp;quot;gksu gedit&amp;quot; on GNOME or &amp;quot;kdesudo kate&amp;quot; on KDE for a graphical editor.&lt;br /&gt;
&lt;br /&gt;
1. Install the packages&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install x11vnc openbsd-inetd tcpd&lt;br /&gt;
&lt;br /&gt;
2. Run the following command&lt;br /&gt;
&lt;br /&gt;
 ps wwaux | grep auth&lt;br /&gt;
&lt;br /&gt;
This command should output something like this:&lt;br /&gt;
&lt;br /&gt;
 root      3838 10.1  1.7  13308  8840 tty7     Ss+  15:35   2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth '''/root/xauth'''&lt;br /&gt;
 erik      5156  0.0  0.1   2800   752 pts/0    R+   15:57   0:00 grep auth&lt;br /&gt;
&lt;br /&gt;
Note the bold path after -auth, as you will need this for the next step&lt;br /&gt;
&lt;br /&gt;
3a. Add the x11vnc service to inetd:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
Add this line:&lt;br /&gt;
&lt;br /&gt;
 5900    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
4a. Then edit /usr/local/bin/x11vnc.sh:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
Enter this into the new file:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 /usr/bin/x11vnc -inetd -o /var/log/x11vnc.log -display :0 \&lt;br /&gt;
 -auth '''/root/xauth''' -many -bg&lt;br /&gt;
&lt;br /&gt;
Notice the bold path, this is where you put the path you found in step 2.&lt;br /&gt;
&lt;br /&gt;
Now, to make the script executable, you have to run the command:&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
4b. If you use xinetd (openSUSE does) then skip steps 3a and 4a and put the following text into a new file named /etc/xinetd.d/x11vnc:&lt;br /&gt;
&lt;br /&gt;
 service x11vnc&lt;br /&gt;
 {&lt;br /&gt;
 port = 5900&lt;br /&gt;
 type = UNLISTED&lt;br /&gt;
 socket_type = stream&lt;br /&gt;
 protocol = tcp&lt;br /&gt;
 wait = no&lt;br /&gt;
 user = root&lt;br /&gt;
 server = /usr/bin/x11vnc&lt;br /&gt;
 server_args = -inetd -o /var/log/x11vnc.log -display :0 -auth /var/run/xauth/A:0-LliKdB -many -bg&lt;br /&gt;
 disable = no&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
5. Restart inetd&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/openbsd-inetd restart&lt;br /&gt;
&lt;br /&gt;
6. You can now connect to display :0 from another machine by using a VNC client. For example:&lt;br /&gt;
&lt;br /&gt;
 vncviewer vnchost:0&lt;br /&gt;
&lt;br /&gt;
=== Using pre-0.9 versions of x11vnc with TightVNC Viewer ===&lt;br /&gt;
&lt;br /&gt;
If you find problems when using TightVNC Viewer with x11vnc, add the -rfbversion 3.7 option to the x11vnc arguments.&lt;br /&gt;
&lt;br /&gt;
If you are using xinetd, the server_args line will look like:&lt;br /&gt;
&lt;br /&gt;
 server_args     = -inetd -o /var/log/x11vnc.log -display :0 -auth '''/var/run/xauth/A:0-LliKdB''' -many -bg -rfbversion 3.7&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: Replace the -auth part with your own from step 2.&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* [http://www.karlrunge.com/x11vnc/ Official website]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=43709</id>
		<title>X11vnc</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=43709"/>
		<updated>2009-02-03T01:34:40Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''x11vnc''' is a [[VNC]] server that shares your physical X session. It can be started from a running X session by running:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;x11vnc -many&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It can also be started on system start-up. This is insecure and should only be used for firewalled home networks.&lt;br /&gt;
= Get it =&lt;br /&gt;
Download x11vnc from http://www.karlrunge.com/x11vnc/#downloading&lt;br /&gt;
&lt;br /&gt;
== Install it ==&lt;br /&gt;
Main article: [[installing software]]&lt;br /&gt;
&lt;br /&gt;
This article takes version 0.9.5 as an example, but it should work similar with any version.&lt;br /&gt;
[[Unpack]] x11vnc:&lt;br /&gt;
 [[tar]] xvzf x11vnc-0.9.5.tar.gz&lt;br /&gt;
 [[cd]] x11vnc-0.9.5/&lt;br /&gt;
 ./[[configure]] [[&amp;amp;&amp;amp;]] [[make]] &amp;amp;&amp;amp; make install&lt;br /&gt;
&lt;br /&gt;
If you wish, you can also use a precompiled binary package.&lt;br /&gt;
== Running x11vnc at boot ==&lt;br /&gt;
The following instructions are designed for [[Ubuntu]] and its sister projects, but will also work for other [[GNU/Linux]] [[distribution]]s with minor changes.&lt;br /&gt;
&lt;br /&gt;
This x11vnc how-to was originally written by ErikTheRed and can be found at the  [http://ubuntuforums.org/showthread.php?t=363236 Ubuntu forums].&lt;br /&gt;
&lt;br /&gt;
The original version of the how-to used [[xinetd]], but other [[inetd]] daemons can also be used.&lt;br /&gt;
&lt;br /&gt;
=== Using with KDM ===&lt;br /&gt;
&lt;br /&gt;
These additional steps are needed if and only if you use the KDM software to log in. Kubuntu uses KDM by default.&lt;br /&gt;
&amp;lt;!--credit: bdogg64--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following to /etc/kde3/kdm/kdmrc under [X-:*-Core]&lt;br /&gt;
&lt;br /&gt;
 AuthFile=/root/xauth&lt;br /&gt;
&lt;br /&gt;
On non-Ubuntu distributions, the kdmrc file may be located in a different folder.&lt;br /&gt;
&lt;br /&gt;
You can change the AuthFile to be something different, just make sure you have the same file in your server_args in your inetd services file.&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Using with GDM ===&lt;br /&gt;
&lt;br /&gt;
To use x11vnc with the [http://en.wikipedia.org/wiki/GNOME_Display_Manager GDM] logon manager (used by [[Ubuntu]], [http://en.wikipedia.org/wiki/Xubuntu Xubuntu] and [http://en.wikipedia.org/wiki/Linux_Mint Linux Mint] but NOT by [[Kubuntu]]), add the following to /etc/gdm/gdm.conf-custom under the [daemon] section:&lt;br /&gt;
&lt;br /&gt;
 KillInitClients=false&lt;br /&gt;
&lt;br /&gt;
(On other distributions, this file may have different name or be located in a different folder.)&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
==== Ubuntu/Linux Mint and related projects ====&lt;br /&gt;
x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.&lt;br /&gt;
&lt;br /&gt;
'''HINT:''' Replace &amp;quot;sudo nano&amp;quot; with &amp;quot;gksu gedit&amp;quot; on GNOME or &amp;quot;kdesudo kate&amp;quot; on KDE for a graphical editor.&lt;br /&gt;
&lt;br /&gt;
1. Install the packages&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install x11vnc openbsd-inetd tcpd&lt;br /&gt;
&lt;br /&gt;
2. Run the following command&lt;br /&gt;
&lt;br /&gt;
 ps wwaux | grep auth&lt;br /&gt;
&lt;br /&gt;
This command should output something like this:&lt;br /&gt;
&lt;br /&gt;
 root      3838 10.1  1.7  13308  8840 tty7     Ss+  15:35   2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth '''/root/xauth'''&lt;br /&gt;
 erik      5156  0.0  0.1   2800   752 pts/0    R+   15:57   0:00 grep auth&lt;br /&gt;
&lt;br /&gt;
Note the bold path after -auth, as you will need this for the next step&lt;br /&gt;
&lt;br /&gt;
3. Add the x11vnc service to inetd:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
Add this line:&lt;br /&gt;
&lt;br /&gt;
 5900    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
4. Then edit /usr/local/bin/x11vnc.sh:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
Enter this into the new file:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 /usr/bin/x11vnc -inetd -o /var/log/x11vnc.log -display :0 \&lt;br /&gt;
 -auth '''/root/xauth''' -many -bg&lt;br /&gt;
&lt;br /&gt;
Notice the bold path, this is where you put the path you found in step 2.&lt;br /&gt;
&lt;br /&gt;
Now, to make the script executable, you have to run the command:&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
5. Restart inetd&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/openbsd-inetd restart&lt;br /&gt;
&lt;br /&gt;
6. You can now connect to display :0 from another machine by using a VNC client. For example:&lt;br /&gt;
&lt;br /&gt;
 vncviewer vnchost:0&lt;br /&gt;
&lt;br /&gt;
=== Using pre-0.9 versions of x11vnc with TightVNC Viewer ===&lt;br /&gt;
&lt;br /&gt;
If you find problems when using TightVNC Viewer with x11vnc, add the -rfbversion 3.7 option to the x11vnc arguments.&lt;br /&gt;
&lt;br /&gt;
If you are using xinetd, the server_args line will look like:&lt;br /&gt;
&lt;br /&gt;
 server_args     = -inetd -o /var/log/x11vnc.log -display :0 -auth '''/var/run/xauth/A:0-LliKdB''' -many -bg -rfbversion 3.7&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: Replace the -auth part with your own from step 2.&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* [http://www.karlrunge.com/x11vnc/ Official website]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=42764</id>
		<title>X11vnc</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=42764"/>
		<updated>2008-12-03T16:54:43Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: a few minor fixes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''x11vnc''' is a [[VNC]] server that shares your physical X session. It can be started form a running X session by running:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;x11vnc -many&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It can also be started on system start-up. This is insecure and should only be used for firewalled home networks.&lt;br /&gt;
= Get it =&lt;br /&gt;
Download x11vnc from http://www.karlrunge.com/x11vnc/#downloading&lt;br /&gt;
&lt;br /&gt;
== Install it ==&lt;br /&gt;
Main article: [[installing software]]&lt;br /&gt;
&lt;br /&gt;
This article takes version 0.9.5 as an example, but it should work similar with any version.&lt;br /&gt;
[[Unpack]] x11vnc:&lt;br /&gt;
 [[tar]] xvzf x11vnc-0.9.5.tar.gz&lt;br /&gt;
 [[cd]] x11vnc-0.9.5/&lt;br /&gt;
 ./[[configure]] [[&amp;amp;&amp;amp;]] [[make]] &amp;amp;&amp;amp; make install&lt;br /&gt;
&lt;br /&gt;
== Running x11vnc at boot ==&lt;br /&gt;
The following instructions are designed for [[Ubuntu]] and its sister projects, but will also work forhttp://www.karlrunge.com/x11vnc/#downloading other [[GNU/Linux]] distributions with minor changes (such as using su rather than sudo).&lt;br /&gt;
&lt;br /&gt;
This x11vnc how-to was originally written by ErikTheRed and can be found at the  [http://ubuntuforums.org/showthread.php?t=363236 Ubuntu forums].&lt;br /&gt;
&lt;br /&gt;
The original version of the how-to used [[xinetd]], but other [[inetd]] daemons can also be used.&lt;br /&gt;
&lt;br /&gt;
=== Using with KDM ===&lt;br /&gt;
&lt;br /&gt;
These additional steps are needed if and only if you use the KDM software to log in. Kubuntu uses KDM by default.&lt;br /&gt;
&amp;lt;!--credit: bdogg64--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following to /etc/kde3/kdm/kdmrc under [X-:*-Core]&lt;br /&gt;
&lt;br /&gt;
 AuthFile=/root/xauth&lt;br /&gt;
&lt;br /&gt;
On non-Ubuntu distributions, the kdmrc file may be located in a different folder.&lt;br /&gt;
&lt;br /&gt;
You can change the AuthFile to be something different, just make sure you have the same file in your server_args in your inetd services file.&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Using with GDM ===&lt;br /&gt;
&lt;br /&gt;
To use x11vnc with the [http://en.wikipedia.org/wiki/GNOME_Display_Manager GDM] logon manager (used by [[Ubuntu]], [http://en.wikipedia.org/wiki/Xubuntu Xubuntu] and [http://en.wikipedia.org/wiki/Linux_Mint Linux Mint] but NOT by [[Kubuntu]]), add the following to /etc/gdm/gdm.conf-custom under the [daemon] section:&lt;br /&gt;
&lt;br /&gt;
 KillInitClients=false&lt;br /&gt;
&lt;br /&gt;
(On other distributions, this file may have different name or be located in a different folder.)&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
====Ubuntu/Linux Mint and related projects====&lt;br /&gt;
x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.&lt;br /&gt;
&lt;br /&gt;
'''HINT:''' Replace &amp;quot;sudo nano&amp;quot; with &amp;quot;gksu gedit&amp;quot; on GNOME or &amp;quot;kdesudo kate&amp;quot; on KDE for a graphical editor.&lt;br /&gt;
&lt;br /&gt;
1. Install the packages&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install x11vnc openbsd-inetd tcpd&lt;br /&gt;
&lt;br /&gt;
2. Run the following command&lt;br /&gt;
&lt;br /&gt;
 ps wwaux | grep auth&lt;br /&gt;
&lt;br /&gt;
This command should output something like this:&lt;br /&gt;
&lt;br /&gt;
 root      3838 10.1  1.7  13308  8840 tty7     Ss+  15:35   2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth '''/root/xauth'''&lt;br /&gt;
 erik      5156  0.0  0.1   2800   752 pts/0    R+   15:57   0:00 grep auth&lt;br /&gt;
&lt;br /&gt;
Note the bold path after -auth, as you will need this for the next step&lt;br /&gt;
&lt;br /&gt;
3. Add the x11vnc service to inetd:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
Add this line:&lt;br /&gt;
&lt;br /&gt;
 5900    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
4. Then edit /usr/local/bin/x11vnc.sh:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
Enter this into the new file:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 /usr/bin/x11vnc -inetd -o /var/log/x11vnc.log -display :0 \&lt;br /&gt;
 -auth '''/root/xauth''' -many -bg&lt;br /&gt;
&lt;br /&gt;
Notice the bold path, this is where you put the path you found in step 2.&lt;br /&gt;
&lt;br /&gt;
Now, to make the script executable, you have to run the command:&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
5. Restart inetd&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/openbsd-inetd restart&lt;br /&gt;
&lt;br /&gt;
6. You can now connect to display :0 from another machine by using a VNC client. For example:&lt;br /&gt;
&lt;br /&gt;
 vncviewer vnchost:0&lt;br /&gt;
&lt;br /&gt;
=== Using pre-0.9 versions of x11vnc with TightVNC Viewer ===&lt;br /&gt;
&lt;br /&gt;
If you find problems when using TightVNC Viewer with x11vnc, add the -rfbversion 3.7 option to the x11vnc arguments.&lt;br /&gt;
&lt;br /&gt;
If you are using xinetd, the server_args line will look like:&lt;br /&gt;
&lt;br /&gt;
 server_args     = -inetd -o /var/log/x11vnc.log -display :0 -auth '''/var/run/xauth/A:0-LliKdB''' -many -bg -rfbversion 3.7&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: Replace the -auth part with your own from step 2.&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* [http://www.karlrunge.com/x11vnc/ Official website]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=42763</id>
		<title>X11vnc</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=42763"/>
		<updated>2008-12-03T16:53:22Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: Edubuntu doesn't necessairly use GDM - it might be KDM or LTSP/LDM. Also, Linux Mint should have a link to Wikipedia.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''x11vnc''' is a [[VNC]] server that shares your physical X session. It can be started form a running X session by running:&lt;br /&gt;
&amp;lt;tt&amp;gt;x11vnc -many&amp;lt;/tt&amp;gt;&lt;br /&gt;
It can also be started on system start-up. This is insecure and should only be used for firewalled home networks.&lt;br /&gt;
= Get it =&lt;br /&gt;
Download x11vnc from http://www.karlrunge.com/x11vnc/#downloading&lt;br /&gt;
&lt;br /&gt;
== Install it ==&lt;br /&gt;
Main article: [[installing software]]&lt;br /&gt;
&lt;br /&gt;
This article takes version 0.9.5 as an example, but it should work similar with any version.&lt;br /&gt;
[[Unpack]] x11vnc:&lt;br /&gt;
 [[tar]] xvzf x11vnc-0.9.5.tar.gz&lt;br /&gt;
 [[cd]] x11vnc-0.9.5/&lt;br /&gt;
 ./[[configure]] [[&amp;amp;&amp;amp;]] [[make]] &amp;amp;&amp;amp; make install&lt;br /&gt;
&lt;br /&gt;
== Running x11vnc at boot ==&lt;br /&gt;
The following instructions are designed for [[Ubuntu]] and its sister projects, but will also work forhttp://www.karlrunge.com/x11vnc/#downloading other [[GNU/Linux]] distributions with minor changes (such as using su rather than sudo).&lt;br /&gt;
&lt;br /&gt;
This x11vnc how-to was originally written by ErikTheRed and can be found at the  [http://ubuntuforums.org/showthread.php?t=363236 Ubuntu forums].&lt;br /&gt;
&lt;br /&gt;
The original version of the how-to used [[xinetd]], but other [[inetd]] daemons can also be used.&lt;br /&gt;
&lt;br /&gt;
=== Using with KDM ===&lt;br /&gt;
&lt;br /&gt;
These additional steps are needed if and only if you use the KDM software to log in. Kubuntu uses KDM by default.&lt;br /&gt;
&amp;lt;!--credit: bdogg64--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following to /etc/kde3/kdm/kdmrc under [X-:*-Core]&lt;br /&gt;
&lt;br /&gt;
 AuthFile=/root/xauth&lt;br /&gt;
&lt;br /&gt;
On non-Ubuntu distributions, the kdmrc file may be located in a different folder.&lt;br /&gt;
&lt;br /&gt;
You can change the AuthFile to be something different, just make sure you have the same file in your server_args in your inetd services file.&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Using with GDM ===&lt;br /&gt;
&lt;br /&gt;
To use x11vnc with the [http://en.wikipedia.org/wiki/GNOME_Display_Manager GDM] logon manager (used by [[Ubuntu]], [http://en.wikipedia.org/wiki/Xubuntu Xubuntu] and [http://en.wikipedia.org/wiki/Linux_Mint Linux Mint] but NOT by [[Kubuntu]]), add the following to /etc/gdm/gdm.conf-custom under the [daemon] section:&lt;br /&gt;
&lt;br /&gt;
 KillInitClients=false&lt;br /&gt;
&lt;br /&gt;
(On other distributions, this file may be located in a different folder.)&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
====Ubuntu/Linux Mint and related projects====&lt;br /&gt;
x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.&lt;br /&gt;
&lt;br /&gt;
'''HINT:''' Replace &amp;quot;sudo nano&amp;quot; with &amp;quot;gksu gedit&amp;quot; on GNOME or &amp;quot;kdesu kate&amp;quot; on KDE for a graphical editor.&lt;br /&gt;
&lt;br /&gt;
1. Install the packages&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install x11vnc openbsd-inetd tcpd&lt;br /&gt;
&lt;br /&gt;
2. Run the following command&lt;br /&gt;
&lt;br /&gt;
 ps wwaux | grep auth&lt;br /&gt;
&lt;br /&gt;
This command should output something like this:&lt;br /&gt;
&lt;br /&gt;
 root      3838 10.1  1.7  13308  8840 tty7     Ss+  15:35   2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth '''/root/xauth'''&lt;br /&gt;
 erik      5156  0.0  0.1   2800   752 pts/0    R+   15:57   0:00 grep auth&lt;br /&gt;
&lt;br /&gt;
Note the bold path after -auth, as you will need this for the next step&lt;br /&gt;
&lt;br /&gt;
3. Add the x11vnc service to inetd:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
Add this line:&lt;br /&gt;
&lt;br /&gt;
 5900    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
4. Then edit /usr/local/bin/x11vnc.sh:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
Enter this into the new file:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 /usr/bin/x11vnc -inetd -o /var/log/x11vnc.log -display :0 \&lt;br /&gt;
 -auth '''/root/xauth''' -many -bg&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice the bold path, this is where you put the path you found in step 2.&lt;br /&gt;
&lt;br /&gt;
Now, to make the script executable, you have to run the command:&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
5. Restart inetd&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/openbsd-inetd restart&lt;br /&gt;
&lt;br /&gt;
6. You can now connect to display :0 from another machine by using a VNC client. For example:&lt;br /&gt;
&lt;br /&gt;
 vncviewer vnchost:0&lt;br /&gt;
&lt;br /&gt;
=== Using pre-0.9 versions of x11vnc with TightVNC Viewer ===&lt;br /&gt;
&lt;br /&gt;
If you find problems when using TightVNC Viewer with x11vnc, add the -rfbversion 3.7 option to the x11vnc arguments.&lt;br /&gt;
&lt;br /&gt;
If you are using xinetd, the server_args line will look like:&lt;br /&gt;
&lt;br /&gt;
 server_args     = -inetd -o /var/log/x11vnc.log -display :0 -auth '''/var/run/xauth/A:0-LliKdB''' -many -bg -rfbversion 3.7&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: Replace the -auth part with your own from step 2.&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* [http://www.karlrunge.com/x11vnc/ Official website]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Kopete&amp;diff=41538</id>
		<title>Kopete</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Kopete&amp;diff=41538"/>
		<updated>2008-09-06T15:16:21Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Kopete''' is a flexible and extendable multi-protocol [[instant messaging]] system that is now bundled together with KDE.&lt;br /&gt;
&lt;br /&gt;
The goal of Kopete is to provide users with a standard and easy to use interface between all of their instant messaging systems.&lt;br /&gt;
&lt;br /&gt;
It supports many messaging protocols like [[Jabber]], [[ICQ]], [[AIM]], [[MSN]], [http://en.wikipedia.org/wiki/Yahoo Yahoo], [[IRC]], [[Windows LANs]], [[GaduGadu]], and [[SMS]].&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* [http://kopete.kde.org/ Kopete Home Page]&lt;br /&gt;
&lt;br /&gt;
''This article is a [[LQWiki:stub_articles|stub]] and needs to be finished. [[LQWiki:plunging_forward|Plunge forward]] and [[LQWiki:How_to_edit_a_page|help it grow]]!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FYI in regards to supporting MSN. It works great except when I want to delete items out of my junkmail box. For this I go through an open window via Mozilla Firefox.&lt;br /&gt;
Outside the missing toolbar that MSN supplies with their E-mail compose page and the video player that seems common with them and Comcast isp/broadband, the system (Mandriva) has more lights, bells and whistles to keep me happy. Anything I can do to help out, I will.&lt;br /&gt;
Scottie&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=41457</id>
		<title>X11vnc</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=41457"/>
		<updated>2008-08-30T16:37:47Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''x11vnc''' is a [[VNC]] server that shares your physical X session. It can be started form a running X session by running:&lt;br /&gt;
&amp;lt;tt&amp;gt;x11vnc -many&amp;lt;/tt&amp;gt;&lt;br /&gt;
It can also be started on system start-up. This is insecure and should only be used for firewalled home networks.&lt;br /&gt;
==Running x11vnc at boot==&lt;br /&gt;
The following instructions are designed for [[Ubuntu]] and its sister projects, but will also work for other [[GNU/Linux]] distributions with minor changes (such as using su rather than sudo).&lt;br /&gt;
&lt;br /&gt;
This x11vnc how-to was originally written by ErikTheRed and can be found at the Ubuntu forums: [http://ubuntuforums.org/showthread.php?t=363236]&lt;br /&gt;
&lt;br /&gt;
The original version of the how-to used [[xinetd]], but other [[inetd]] daemons can also be used.&lt;br /&gt;
&lt;br /&gt;
=== Using with KDM ===&lt;br /&gt;
&lt;br /&gt;
These additional steps are needed if and only if you use the KDM software to log in. Kubuntu uses KDM by default.&lt;br /&gt;
&amp;lt;!--credit: bdogg64--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following to /etc/kde3/kdm/kdmrc under [X-:*-Core]&lt;br /&gt;
&lt;br /&gt;
 AuthFile=/root/xauth&lt;br /&gt;
&lt;br /&gt;
On non-Ubuntu distributions, the kdmrc file may be located in a different folder.&lt;br /&gt;
&lt;br /&gt;
You can change the AuthFile to be something different, just make sure you have the same file in your server_args in your inetd services file.&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Using with GDM ===&lt;br /&gt;
&lt;br /&gt;
To use x11vnc with the [[GDM]] logon manager (used by [[Ubuntu]]/[[Xubuntu]]/[[Edubuntu]]/[[Linux Mint]] but NOT by [[Kubuntu]]), add the following to /etc/gdm/gdm.conf-custom under the [daemon] section:&lt;br /&gt;
&lt;br /&gt;
 KillInitClients=false&lt;br /&gt;
&lt;br /&gt;
(On other distributions, this file may be located in a different folder.)&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
====Ubuntu/Linux Mint and related projects====&lt;br /&gt;
x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.&lt;br /&gt;
&lt;br /&gt;
'''HINT:''' Replace &amp;quot;sudo nano&amp;quot; with &amp;quot;gksu gedit&amp;quot; on GNOME or &amp;quot;kdesu kate&amp;quot; on KDE for a graphical editor.&lt;br /&gt;
&lt;br /&gt;
1. Install the packages&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install x11vnc openbsd-inetd tcpd&lt;br /&gt;
&lt;br /&gt;
2. Run the following command&lt;br /&gt;
&lt;br /&gt;
 ps wwaux | grep auth&lt;br /&gt;
&lt;br /&gt;
This command should output something like this:&lt;br /&gt;
&lt;br /&gt;
 root      3838 10.1  1.7  13308  8840 tty7     Ss+  15:35   2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth '''/root/xauth'''&lt;br /&gt;
 erik      5156  0.0  0.1   2800   752 pts/0    R+   15:57   0:00 grep auth&lt;br /&gt;
&lt;br /&gt;
Note the bold path after -auth, as you will need this for the next step&lt;br /&gt;
&lt;br /&gt;
3. Add the x11vnc service to inetd:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
Add this line:&lt;br /&gt;
&lt;br /&gt;
 5900    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
4. Then edit /usr/local/bin/x11vnc.sh:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
Enter this into the new file:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 /usr/bin/x11vnc -inetd -o /var/log/x11vnc.log -display :0 \&lt;br /&gt;
 -auth '''/root/xauth''' -many -bg&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice the bold path, this is where you put the path you found in step 2.&lt;br /&gt;
&lt;br /&gt;
Now, to make the script executable, you have to run the command:&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
5. Restart inetd&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/openbsd-inetd restart&lt;br /&gt;
&lt;br /&gt;
6. You can now connect to display :0 from another machine by using a VNC client. For example:&lt;br /&gt;
&lt;br /&gt;
 vncviewer vnchost:0&lt;br /&gt;
&lt;br /&gt;
=== Using pre-0.9 versions of x11vnc with TightVNC Viewer ===&lt;br /&gt;
&lt;br /&gt;
If you find problems when using TightVNC Viewer with x11vnc, add the -rfbversion 3.7 option to the x11vnc arguments.&lt;br /&gt;
&lt;br /&gt;
If you are using xinetd, the server_args line will look like:&lt;br /&gt;
&lt;br /&gt;
 server_args     = -inetd -o /var/log/x11vnc.log -display :0 -auth '''/var/run/xauth/A:0-LliKdB''' -many -bg -rfbversion 3.7&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: Replace the -auth part with your own from step 2.&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* [http://www.karlrunge.com/x11vnc/ Official website]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=User_talk:Libertyernie&amp;diff=41456</id>
		<title>User talk:Libertyernie</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=User_talk:Libertyernie&amp;diff=41456"/>
		<updated>2008-08-29T16:33:22Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Your tutorial about [[x11VNC]] is exactly what we need here - and I did not know this. Thanks! --[[User:ThorstenStaerk|ThorstenStaerk]] 07:56, August 29, 2008 (UTC)&lt;br /&gt;
:I'm glad you like it. I wanted to put it on a wiki so people could edit it easily. --[[User:Libertyernie|Libertyernie]] 16:33, August 29, 2008 (UTC)&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=41443</id>
		<title>X11vnc</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=41443"/>
		<updated>2008-08-28T20:32:28Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''x11vnc''' is a [[VNC]] server that shares your physical X session. It can be started form a running X session by running:&lt;br /&gt;
&amp;lt;tt&amp;gt;x11vnc -many&amp;lt;/tt&amp;gt;&lt;br /&gt;
It can also be started on system start-up. This is insecure and should only be used for firewalled home networks.&lt;br /&gt;
==Running x11vnc at boot==&lt;br /&gt;
The following instructions are designed for [[Ubuntu]] and its sister projects, but will also work for other [[GNU/Linux]] distributions with minor changes (such as using su rather than sudo).&lt;br /&gt;
&lt;br /&gt;
This x11vnc how-to was originally written by ErikTheRed and can be found at the Ubuntu forums: [http://ubuntuforums.org/showthread.php?t=363236]&lt;br /&gt;
&lt;br /&gt;
The original version of the how-to used [[xinetd]], but other [[inetd]] daemons can also be used.&lt;br /&gt;
&lt;br /&gt;
=== Using with KDM ===&lt;br /&gt;
&lt;br /&gt;
These additional steps are needed if and only if you use the KDM software to log in. Kubuntu uses KDM by default.&lt;br /&gt;
&amp;lt;!--credit: bdogg64--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following to /etc/kde3/kdm/kdmrc under [X-:*-Core]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;AuthFile=/root/xauth&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On non-Ubuntu distributions, the kdmrc file may be located in a different folder.&lt;br /&gt;
&lt;br /&gt;
You can change the AuthFile to be something different, just make sure you have the same file in your server_args in your inetd services file.&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Using with GDM ===&lt;br /&gt;
&lt;br /&gt;
To use x11vnc with the [[GDM]] logon manager (used by [[Ubuntu]]/[[Xubuntu]]/[[Edubuntu]]/[[Linux Mint]] but NOT by [[Kubuntu]]), add the following to /etc/gdm/gdm.conf-custom under the [daemon] section:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;KillInitClients=false&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(On other distributions, this file may be located in a different folder.)&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
====Ubuntu/Linux Mint and related projects====&lt;br /&gt;
x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.&lt;br /&gt;
&lt;br /&gt;
'''HINT:''' Replace &amp;quot;sudo nano&amp;quot; with &amp;quot;gksu gedit&amp;quot; on GNOME or &amp;quot;kdesu kate&amp;quot; on KDE for a graphical editor.&lt;br /&gt;
&lt;br /&gt;
1. Install the packages&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo aptitude install x11vnc openbsd-inetd tcpd&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Run the following command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;ps wwaux | grep auth&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command should output something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;root      3838 10.1  1.7  13308  8840 tty7     Ss+  15:35   2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth '''/root/xauth'''&lt;br /&gt;
erik      5156  0.0  0.1   2800   752 pts/0    R+   15:57   0:00 grep auth&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note the bolded path after -auth, as you will need this for the next step&lt;br /&gt;
&lt;br /&gt;
3. Add the x11vnc service to inetd:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo nano /etc/inetd.conf&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add this line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;5900    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/local/bin/x11vnc.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Then edit /usr/local/bin/x11vnc.sh:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo nano /usr/local/bin/x11vnc.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter this into the new file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;#!/bin/sh&lt;br /&gt;
/usr/bin/x11vnc -inetd -o /var/log/x11vnc.log -display :0 \&lt;br /&gt;
-auth '''/root/xauth''' -many -bg&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice the bolded path, this is where you put the path you found in step 2.&lt;br /&gt;
&lt;br /&gt;
Now, to make the script executable, you have to run the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo chmod +x /usr/local/bin/x11vnc.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Restart inetd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo /etc/init.d/openbsd-inetd restart&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. You can now connect to display :0 from another machine by using a VNC client. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;vncviewer vnchost:0&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Using pre-0.9 versions of x11vnc with TightVNC Viewer ===&lt;br /&gt;
&lt;br /&gt;
If you find problems when using TightVNC Viewer with x11vnc, add the -rfbversion 3.7 option to the x11vnc arguments.&lt;br /&gt;
&lt;br /&gt;
If you are using xinetd, the server_args line will look like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;server_args     = -inetd -o /var/log/x11vnc.log -display :0 -auth '''/var/run/xauth/A:0-LliKdB''' -many -bg -rfbversion 3.7&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: Replace the -auth part with your own from step 2.&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[http://www.karlrunge.com/x11vnc/ Official website]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=41442</id>
		<title>X11vnc</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=X11vnc&amp;diff=41442"/>
		<updated>2008-08-28T20:31:26Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: new x11vnc tutorial&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''x11vnc''' is a [[VNC]] server that shares your physical X session. It can be started form a running X session by running:&lt;br /&gt;
&amp;lt;tt&amp;gt;x11vnc -many&amp;lt;/tt&amp;gt;&lt;br /&gt;
It can also be started on system start-up. This is insecure and should only be used for firewalled home networks.&lt;br /&gt;
==Running x11vnc at boot==&lt;br /&gt;
The following instructions are designed for [[Ubuntu]] and its sister projects, but will also work for other [[GNU/Linux]] distributions with minor changes (such as using su rather than sudo).&lt;br /&gt;
&lt;br /&gt;
This x11vnc how-to was originally written by ErikTheRed and can be found at the Ubuntu forums: [http://ubuntuforums.org/showthread.php?t=363236]&lt;br /&gt;
&lt;br /&gt;
The original version of the how-to used [[xinetd]], but other [[inetd]] daemons can also be used.&lt;br /&gt;
&lt;br /&gt;
=== Using with KDM ===&lt;br /&gt;
&lt;br /&gt;
These additional steps are needed if and only if you use the KDM software to log in. Kubuntu uses KDM by default.&lt;br /&gt;
&amp;lt;!--credit: bdogg64--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following to /etc/kde3/kdm/kdmrc under [X-:*-Core]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;AuthFile=/root/xauth&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On non-Ubuntu distributions, the kdmrc file may be located in a different folder.&lt;br /&gt;
&lt;br /&gt;
You can change the AuthFile to be something different, just make sure you have the same file in your server_args in your inetd services file.&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Using with GDM ===&lt;br /&gt;
&lt;br /&gt;
To use x11vnc with the [[GDM]] logon manager (used by [[Ubuntu]]/[[Xubuntu]]/[[Edubuntu]]/[[Linux Mint]] but NOT by [[Kubuntu]]), add the following to /etc/gdm/gdm.conf-custom under the [daemon] section:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;KillInitClients=false&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(On other distributions, this file may be located in a different folder.)&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
====Ubuntu/Linux Mint and related projects====&lt;br /&gt;
x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.&lt;br /&gt;
&lt;br /&gt;
'''HINT:''' Replace &amp;quot;sudo nano&amp;quot; with &amp;quot;gksu gedit&amp;quot; on GNOME or &amp;quot;kdesu kate&amp;quot; on KDE for a graphical editor.&lt;br /&gt;
&lt;br /&gt;
1. Install the packages&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo aptitude install x11vnc openbsd-inetd tcpd&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Run the following command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;ps wwaux | grep auth&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command should output something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;root      3838 10.1  1.7  13308  8840 tty7     Ss+  15:35   2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth '''/root/xauth'''&lt;br /&gt;
erik      5156  0.0  0.1   2800   752 pts/0    R+   15:57   0:00 grep auth&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note the bolded path after -auth, as you will need this for the next step&lt;br /&gt;
&lt;br /&gt;
3. Add the x11vnc service to inetd:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo nano /etc/inetd.conf&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add this line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;5900    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/local/bin/x11vnc.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Then edit /usr/local/bin/x11vnc.sh:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo nano /usr/local/bin/x11vnc.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter this into the new file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;#!/bin/sh&lt;br /&gt;
 /usr/bin/x11vnc -inetd -o /var/log/x11vnc.log -display :0 \&lt;br /&gt;
 -auth '''/root/xauth''' -many -bg&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice the bolded path, this is where you put the path you found in step 2.&lt;br /&gt;
&lt;br /&gt;
Now, to make the script executable, you have to run the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo chmod +x /usr/local/bin/x11vnc.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Restart inetd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo /etc/init.d/openbsd-inetd restart&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. You can now connect to display :0 from another machine by using a VNC client. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;vncviewer vnchost:0&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Using pre-0.9 versions of x11vnc with TightVNC Viewer ===&lt;br /&gt;
&lt;br /&gt;
If you find problems when using TightVNC Viewer with x11vnc, add the -rfbversion 3.7 option to the x11vnc arguments.&lt;br /&gt;
&lt;br /&gt;
If you are using xinetd, the server_args line will look like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;server_args     = -inetd -o /var/log/x11vnc.log -display :0 -auth '''/var/run/xauth/A:0-LliKdB''' -many -bg -rfbversion 3.7&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: Replace the -auth part with your own from step 2.&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[http://www.karlrunge.com/x11vnc/ Official website]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Remote_desktop_connection&amp;diff=41441</id>
		<title>Remote desktop connection</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Remote_desktop_connection&amp;diff=41441"/>
		<updated>2008-08-28T20:21:11Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: Added link to x11vnc&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several techniques which can be used to establish a '''remote desktop connection''' between one computer and another.&lt;br /&gt;
&lt;br /&gt;
= Applications on remote computers =&lt;br /&gt;
&lt;br /&gt;
You can start an [[application]] on a remote computer and see its [[gui]] on your local [[workStation]].&lt;br /&gt;
&lt;br /&gt;
* [[X11 forwarding with OpenSSH]] - You can start an application on a remote [http://en.wikipedia.org/wiki/Computer computer] and have its [[gui]] displayed on your local [[desktop]].&lt;br /&gt;
&lt;br /&gt;
= Terminal Servers =&lt;br /&gt;
&lt;br /&gt;
Terminal servers display a complete desktop environment from a remote computer. For every user, an own graphical session is created.&lt;br /&gt;
&lt;br /&gt;
* [[XDMCP|Remote X-Windows with XDMCP]] - XDMCP allows remote login and access to an entire [[GUI]] environment through an X display manager such as Gnome's GDM (so long as the option is enabled).&lt;br /&gt;
&lt;br /&gt;
* [[NX]] - NX is designed to allow you remote-controlling a graphical [[desktop]]. It is also possible to use a slow computer as pure NX presentation server. You can directly log in to the remote computer and do not need to log in to the local computer.&lt;br /&gt;
&lt;br /&gt;
* [[rdesktop]] - RDesktop is a Linux client that can attach to a Windows Server running Terminal Services or to the built-in Remote Desktop capability of Windows XP Pro.  It is ideal for many who prefer to work from a Linux system, but who have an occasional need to access a Windows machine.  RDesktop replicates a full Windows desktop in a window within Linux. -- also capabile of showing just one application&lt;br /&gt;
&lt;br /&gt;
* [[LTSP]] - the '''L'''inux '''t'''erminal '''s'''erver '''p'''roject allows you to set up a terminal server infrastructure including boot from [[PXE]] from the terminal server.&lt;br /&gt;
&lt;br /&gt;
= Shared Sessions =&lt;br /&gt;
&lt;br /&gt;
[[Shared session]]s allow two (or more) users to act on one graphical session, so they can see what each other types and how he moves the [[mouse]].&lt;br /&gt;
&lt;br /&gt;
* [[VNC]] - VNC is also designed to forward an entire GUI environment.  It is less efficient than X-Windows but the traffic is compressed (for low bandwidth connections), and clients exist for every major [[OS]]. It has a degree of protection for passwords, but the data itself is sent without encryption. It can be made more secure by tunnelling the connection via ssh.  By using [[x11vnc]] you can also use VNC to connect to an already running X session.&lt;br /&gt;
&lt;br /&gt;
* [[krfb]] - Remote Assistance [[software]] from [[KDE]].&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
&lt;br /&gt;
* [[Networking]]&lt;br /&gt;
&lt;br /&gt;
= External links =&lt;br /&gt;
&lt;br /&gt;
* [http://www.debianhelp.co.uk/vnc.htm VNC Configuration in Debian] (''www.debianhelp.co.uk'')&lt;br /&gt;
*:Easy VNC Server and client setup guide&lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=VNC&amp;diff=36941</id>
		<title>VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=VNC&amp;diff=36941"/>
		<updated>2008-02-22T23:26:02Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''VNC''' stands for '''Virtual Network Computing'''. It is client/server software that allows you to build up a terminal server scenario. That means you have one central server where users can work on while using their local computers just to display the content that comes from the server.&lt;br /&gt;
&lt;br /&gt;
It is possible that, say 5, users work simultaneously on one server, each of them using their client software on a different operating system.&lt;br /&gt;
&lt;br /&gt;
It is also possible to view the local session remotely over VNC, using x11vnc.&lt;br /&gt;
&lt;br /&gt;
=VNC Usage=&lt;br /&gt;
&lt;br /&gt;
==Commands==&lt;br /&gt;
&lt;br /&gt;
The [[client]] [[software]] is called '''vncviewer''', the [[server]] [[command]] is '''vncserver'''. Other clients are also available, such as the Remote Desktop Connection [[application]] of [[KDE]].&lt;br /&gt;
&lt;br /&gt;
==Invoking VNC==&lt;br /&gt;
&lt;br /&gt;
===From Linux===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vncviewer &amp;lt;ip&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will prompt for the password of the VNC server, before displaying a window with the desktop of the remote machine.&lt;br /&gt;
&lt;br /&gt;
Users of KDE can also install the kdenetwork-krfb package to get krdc, which is has an easy to use GUI interface:&lt;br /&gt;
&amp;lt;pre&amp;gt;krdc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===From Windows===&lt;br /&gt;
To install it on Windows Google for 'vncviewer'. There are several different VNC projects but their viewers should be compatible with each other.&lt;br /&gt;
&lt;br /&gt;
===From a Web Browser===&lt;br /&gt;
It is possible to connect to a VNC viewer using a java enabled browser. This is makes VNC technology much more flexible, as no special software is required on the client. This is done by entering the IP address of VNC server followed by the port 5800 +display number though ports are customizable. e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;http://192.168.1.1:5801&amp;lt;/pre&amp;gt; - Typical for a windows box&lt;br /&gt;
&amp;lt;pre&amp;gt;http://192.168.1.1:5802&amp;lt;/pre&amp;gt; - Typical for a linux box (displays second X display)&lt;br /&gt;
&lt;br /&gt;
==Starting the vnc server==&lt;br /&gt;
Starting the vnc server is quite easy:&lt;br /&gt;
 vncserver&lt;br /&gt;
&lt;br /&gt;
===For a Web Browser===&lt;br /&gt;
 vncserver -httpport 80&lt;br /&gt;
Starts the vnc server that can be accessed over the default http port 80.&lt;br /&gt;
&lt;br /&gt;
==Setting up (General)==&lt;br /&gt;
&lt;br /&gt;
VNC server is easy to [[install]] on Windows and on Linux. See also [[rdesktop]] for a way to log into windows native remote systems.&lt;br /&gt;
&lt;br /&gt;
VNC is installed by default in recent versions of [[KDE]]:&lt;br /&gt;
&lt;br /&gt;
K menu--&amp;gt;Settings --&amp;gt; Control Center --&amp;gt; Internet and Networking --&amp;gt; Desktop Sharing&lt;br /&gt;
&lt;br /&gt;
For the vncserver box, you don't need to start Xserver, VNC (TightVNC) incorporate one. It's start the window manager which is configured in the $HOME/.vnc/xstartup file.&lt;br /&gt;
&lt;br /&gt;
The server is up by typing &lt;br /&gt;
 vncserver :X&lt;br /&gt;
at the prompt. Where X is the display's number where you want vncserver reside.&lt;br /&gt;
The second part of VNC is the client. You can invoke it from the command line and, as a [[java]] applet, from a browser.&lt;br /&gt;
&lt;br /&gt;
This means you can launch differents vncserver on differents ports and you access them by entering in web java browser : http://your_vncserver:58xx.&lt;br /&gt;
Where xx is the screen (01 for &amp;quot;#vncserver :1&amp;quot;, 02 for &amp;quot;#vncserver :2&amp;quot;, &amp;quot;#...).&lt;br /&gt;
&lt;br /&gt;
==Tunnelling Over SSH==&lt;br /&gt;
Like most other protocols VNC can be 'tunnelled' over ssh. There are two significant advantages to this:&lt;br /&gt;
#Its encrypted and as secure as your ssh connection&lt;br /&gt;
#It can go anywhere ssh goes, ie. if you can ssh to the machine you can also VNC to it no matter whether any firewalls/routing in between actually allows you to access VNC. The flipside advantage of this is for the owner/administrator of the machine running VNC as they don't have to leave it open to the Internet (its not hugely secure) to allow people to use it for remote access.&lt;br /&gt;
&lt;br /&gt;
Sounds good? Here's how to do it:&lt;br /&gt;
&lt;br /&gt;
===From Windows===&lt;br /&gt;
See: http://martybugs.net/smoothwall/puttyvnc.cgi&lt;br /&gt;
&lt;br /&gt;
===From Linux===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;CODE&amp;gt;&amp;lt;pre&amp;gt;ssh username@remotemachine -L 5901:localhost:5901&amp;lt;/pre&amp;gt;&amp;lt;/CODE&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now connect to it with vncviewer (see &amp;quot;Invoking VNC&amp;quot; section above) using localhost:1 or localhost:0.&lt;br /&gt;
&lt;br /&gt;
=Setup (Distribution Specific)=&lt;br /&gt;
&lt;br /&gt;
==Mandriva==&lt;br /&gt;
===Server===&lt;br /&gt;
1) Using either urpmi or menu-&amp;gt;System-&amp;gt;Configuration-&amp;gt;Packaging-&amp;gt;Install Software install tightvnc-server&lt;br /&gt;
&lt;br /&gt;
2) Edit the file /etc/sysconfig/vncservers and add a line like this:&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
VNCSERVERS=&amp;quot;1:yourusername&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3) Logged in as yourself run 'vncpasswd' (no quotes) and set a password for your vnc desktop&lt;br /&gt;
&lt;br /&gt;
4) Create the file .wmrc in your home directory and add a single line with either KDE or GNOME&lt;br /&gt;
&lt;br /&gt;
5) Start the vncserver service with 'service vncserver start' OR in the Mandrake Control Centre-&amp;gt;System-&amp;gt;Services&lt;br /&gt;
&lt;br /&gt;
Now you should be able to login to a vncserver on &amp;lt;ip of machine&amp;gt;:1&lt;br /&gt;
&lt;br /&gt;
===Client===&lt;br /&gt;
Mandriva comes with a simple VNC viewer installed by default in menu-&amp;gt;Internet-&amp;gt;Remote Access, however the graphical parts of its user interface are a bit primitive and unfriendly. Using urpmi or menu-&amp;gt;System-&amp;gt;Configuration-&amp;gt;Packaging-&amp;gt;Install Software install the package krdc to get a more userfriendly VNC (and RDP) client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
&lt;br /&gt;
Your vnc server's configuration is stored in ~/.vnc. Most important file is '''xstartup'''. For example, the following content of xstartup will make your vnc server start [[KDE]] at logon:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetroot -solid grey&lt;br /&gt;
 startkde&lt;br /&gt;
&lt;br /&gt;
=Products=&lt;br /&gt;
&lt;br /&gt;
* realvnc http://www.realvnc.org&lt;br /&gt;
* tightvnc http://www.tightvnc.org&lt;br /&gt;
&lt;br /&gt;
=Alternatives=&lt;br /&gt;
&lt;br /&gt;
Operating systems using the [[X Window System]] can use the X Display Manager Control Protocol ([[XDMCP]]) to allow network based access to a remote system's graphical desktop.  [[XDMCP]] uses much less network bandwith than VNC, but it requires an X server.  There are [[X#For_other_OS|X servers]] available for non-UNIX OS's.&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
&lt;br /&gt;
* [[Remote login]]&lt;br /&gt;
* [[X forwarding]]&lt;br /&gt;
* [[Nx]] - an alternative&lt;br /&gt;
* [[xdmcp]] - let the user log in graphically&lt;br /&gt;
*[http://www.debianhelp.co.uk/vnc.htm VNC Configuration guide]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=VNC&amp;diff=36940</id>
		<title>VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=VNC&amp;diff=36940"/>
		<updated>2008-02-22T23:25:42Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''VNC''' stands for '''Virtual Network Computing'''. It is client/server software that allows you to build up a terminal server scenario. That means you have one central server where users can work on while using their local computers just to display the content that comes from the server.&lt;br /&gt;
&lt;br /&gt;
It is possible that, say 5, users work simultaneously on one server, each of them using their client software on a different operating system.&lt;br /&gt;
&lt;br /&gt;
It is also possible to view the local session remotely over VNC, usinmg [[x11vnc]].&lt;br /&gt;
&lt;br /&gt;
=VNC Usage=&lt;br /&gt;
&lt;br /&gt;
==Commands==&lt;br /&gt;
&lt;br /&gt;
The [[client]] [[software]] is called '''vncviewer''', the [[server]] [[command]] is '''vncserver'''. Other clients are also available, such as the Remote Desktop Connection [[application]] of [[KDE]].&lt;br /&gt;
&lt;br /&gt;
==Invoking VNC==&lt;br /&gt;
&lt;br /&gt;
===From Linux===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vncviewer &amp;lt;ip&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will prompt for the password of the VNC server, before displaying a window with the desktop of the remote machine.&lt;br /&gt;
&lt;br /&gt;
Users of KDE can also install the kdenetwork-krfb package to get krdc, which is has an easy to use GUI interface:&lt;br /&gt;
&amp;lt;pre&amp;gt;krdc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===From Windows===&lt;br /&gt;
To install it on Windows Google for 'vncviewer'. There are several different VNC projects but their viewers should be compatible with each other.&lt;br /&gt;
&lt;br /&gt;
===From a Web Browser===&lt;br /&gt;
It is possible to connect to a VNC viewer using a java enabled browser. This is makes VNC technology much more flexible, as no special software is required on the client. This is done by entering the IP address of VNC server followed by the port 5800 +display number though ports are customizable. e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;http://192.168.1.1:5801&amp;lt;/pre&amp;gt; - Typical for a windows box&lt;br /&gt;
&amp;lt;pre&amp;gt;http://192.168.1.1:5802&amp;lt;/pre&amp;gt; - Typical for a linux box (displays second X display)&lt;br /&gt;
&lt;br /&gt;
==Starting the vnc server==&lt;br /&gt;
Starting the vnc server is quite easy:&lt;br /&gt;
 vncserver&lt;br /&gt;
&lt;br /&gt;
===For a Web Browser===&lt;br /&gt;
 vncserver -httpport 80&lt;br /&gt;
Starts the vnc server that can be accessed over the default http port 80.&lt;br /&gt;
&lt;br /&gt;
==Setting up (General)==&lt;br /&gt;
&lt;br /&gt;
VNC server is easy to [[install]] on Windows and on Linux. See also [[rdesktop]] for a way to log into windows native remote systems.&lt;br /&gt;
&lt;br /&gt;
VNC is installed by default in recent versions of [[KDE]]:&lt;br /&gt;
&lt;br /&gt;
K menu--&amp;gt;Settings --&amp;gt; Control Center --&amp;gt; Internet and Networking --&amp;gt; Desktop Sharing&lt;br /&gt;
&lt;br /&gt;
For the vncserver box, you don't need to start Xserver, VNC (TightVNC) incorporate one. It's start the window manager which is configured in the $HOME/.vnc/xstartup file.&lt;br /&gt;
&lt;br /&gt;
The server is up by typing &lt;br /&gt;
 vncserver :X&lt;br /&gt;
at the prompt. Where X is the display's number where you want vncserver reside.&lt;br /&gt;
The second part of VNC is the client. You can invoke it from the command line and, as a [[java]] applet, from a browser.&lt;br /&gt;
&lt;br /&gt;
This means you can launch differents vncserver on differents ports and you access them by entering in web java browser : http://your_vncserver:58xx.&lt;br /&gt;
Where xx is the screen (01 for &amp;quot;#vncserver :1&amp;quot;, 02 for &amp;quot;#vncserver :2&amp;quot;, &amp;quot;#...).&lt;br /&gt;
&lt;br /&gt;
==Tunnelling Over SSH==&lt;br /&gt;
Like most other protocols VNC can be 'tunnelled' over ssh. There are two significant advantages to this:&lt;br /&gt;
#Its encrypted and as secure as your ssh connection&lt;br /&gt;
#It can go anywhere ssh goes, ie. if you can ssh to the machine you can also VNC to it no matter whether any firewalls/routing in between actually allows you to access VNC. The flipside advantage of this is for the owner/administrator of the machine running VNC as they don't have to leave it open to the Internet (its not hugely secure) to allow people to use it for remote access.&lt;br /&gt;
&lt;br /&gt;
Sounds good? Here's how to do it:&lt;br /&gt;
&lt;br /&gt;
===From Windows===&lt;br /&gt;
See: http://martybugs.net/smoothwall/puttyvnc.cgi&lt;br /&gt;
&lt;br /&gt;
===From Linux===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;CODE&amp;gt;&amp;lt;pre&amp;gt;ssh username@remotemachine -L 5901:localhost:5901&amp;lt;/pre&amp;gt;&amp;lt;/CODE&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now connect to it with vncviewer (see &amp;quot;Invoking VNC&amp;quot; section above) using localhost:1 or localhost:0.&lt;br /&gt;
&lt;br /&gt;
=Setup (Distribution Specific)=&lt;br /&gt;
&lt;br /&gt;
==Mandriva==&lt;br /&gt;
===Server===&lt;br /&gt;
1) Using either urpmi or menu-&amp;gt;System-&amp;gt;Configuration-&amp;gt;Packaging-&amp;gt;Install Software install tightvnc-server&lt;br /&gt;
&lt;br /&gt;
2) Edit the file /etc/sysconfig/vncservers and add a line like this:&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
VNCSERVERS=&amp;quot;1:yourusername&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3) Logged in as yourself run 'vncpasswd' (no quotes) and set a password for your vnc desktop&lt;br /&gt;
&lt;br /&gt;
4) Create the file .wmrc in your home directory and add a single line with either KDE or GNOME&lt;br /&gt;
&lt;br /&gt;
5) Start the vncserver service with 'service vncserver start' OR in the Mandrake Control Centre-&amp;gt;System-&amp;gt;Services&lt;br /&gt;
&lt;br /&gt;
Now you should be able to login to a vncserver on &amp;lt;ip of machine&amp;gt;:1&lt;br /&gt;
&lt;br /&gt;
===Client===&lt;br /&gt;
Mandriva comes with a simple VNC viewer installed by default in menu-&amp;gt;Internet-&amp;gt;Remote Access, however the graphical parts of its user interface are a bit primitive and unfriendly. Using urpmi or menu-&amp;gt;System-&amp;gt;Configuration-&amp;gt;Packaging-&amp;gt;Install Software install the package krdc to get a more userfriendly VNC (and RDP) client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
&lt;br /&gt;
Your vnc server's configuration is stored in ~/.vnc. Most important file is '''xstartup'''. For example, the following content of xstartup will make your vnc server start [[KDE]] at logon:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetroot -solid grey&lt;br /&gt;
 startkde&lt;br /&gt;
&lt;br /&gt;
=Products=&lt;br /&gt;
&lt;br /&gt;
* realvnc http://www.realvnc.org&lt;br /&gt;
* tightvnc http://www.tightvnc.org&lt;br /&gt;
&lt;br /&gt;
=Alternatives=&lt;br /&gt;
&lt;br /&gt;
Operating systems using the [[X Window System]] can use the X Display Manager Control Protocol ([[XDMCP]]) to allow network based access to a remote system's graphical desktop.  [[XDMCP]] uses much less network bandwith than VNC, but it requires an X server.  There are [[X#For_other_OS|X servers]] available for non-UNIX OS's.&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
&lt;br /&gt;
* [[Remote login]]&lt;br /&gt;
* [[X forwarding]]&lt;br /&gt;
* [[Nx]] - an alternative&lt;br /&gt;
* [[xdmcp]] - let the user log in graphically&lt;br /&gt;
*[http://www.debianhelp.co.uk/vnc.htm VNC Configuration guide]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=VNC&amp;diff=36939</id>
		<title>VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=VNC&amp;diff=36939"/>
		<updated>2008-02-22T23:24:44Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: /* Ubuntu/Debian */ should have its own page maybe?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''VNC''' stands for '''Virtual Network Computing'''. It is client/server software that allows you to build up a terminal server scenario. That means you have one central server where users can work on while using their local computers just to display the content that comes from the server.&lt;br /&gt;
&lt;br /&gt;
It is possible that, say 5, users work simultaneously on one server, each of them using their client software on a different operating system.&lt;br /&gt;
&lt;br /&gt;
=VNC Usage=&lt;br /&gt;
&lt;br /&gt;
==Commands==&lt;br /&gt;
&lt;br /&gt;
The [[client]] [[software]] is called '''vncviewer''', the [[server]] [[command]] is '''vncserver'''. Other clients are also available, such as the Remote Desktop Connection [[application]] of [[KDE]].&lt;br /&gt;
&lt;br /&gt;
==Invoking VNC==&lt;br /&gt;
&lt;br /&gt;
===From Linux===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vncviewer &amp;lt;ip&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will prompt for the password of the VNC server, before displaying a window with the desktop of the remote machine.&lt;br /&gt;
&lt;br /&gt;
Users of KDE can also install the kdenetwork-krfb package to get krdc, which is has an easy to use GUI interface:&lt;br /&gt;
&amp;lt;pre&amp;gt;krdc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===From Windows===&lt;br /&gt;
To install it on Windows Google for 'vncviewer'. There are several different VNC projects but their viewers should be compatible with each other.&lt;br /&gt;
&lt;br /&gt;
===From a Web Browser===&lt;br /&gt;
It is possible to connect to a VNC viewer using a java enabled browser. This is makes VNC technology much more flexible, as no special software is required on the client. This is done by entering the IP address of VNC server followed by the port 5800 +display number though ports are customizable. e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;http://192.168.1.1:5801&amp;lt;/pre&amp;gt; - Typical for a windows box&lt;br /&gt;
&amp;lt;pre&amp;gt;http://192.168.1.1:5802&amp;lt;/pre&amp;gt; - Typical for a linux box (displays second X display)&lt;br /&gt;
&lt;br /&gt;
==Starting the vnc server==&lt;br /&gt;
Starting the vnc server is quite easy:&lt;br /&gt;
 vncserver&lt;br /&gt;
&lt;br /&gt;
===For a Web Browser===&lt;br /&gt;
 vncserver -httpport 80&lt;br /&gt;
Starts the vnc server that can be accessed over the default http port 80.&lt;br /&gt;
&lt;br /&gt;
==Setting up (General)==&lt;br /&gt;
&lt;br /&gt;
VNC server is easy to [[install]] on Windows and on Linux. See also [[rdesktop]] for a way to log into windows native remote systems.&lt;br /&gt;
&lt;br /&gt;
VNC is installed by default in recent versions of [[KDE]]:&lt;br /&gt;
&lt;br /&gt;
K menu--&amp;gt;Settings --&amp;gt; Control Center --&amp;gt; Internet and Networking --&amp;gt; Desktop Sharing&lt;br /&gt;
&lt;br /&gt;
For the vncserver box, you don't need to start Xserver, VNC (TightVNC) incorporate one. It's start the window manager which is configured in the $HOME/.vnc/xstartup file.&lt;br /&gt;
&lt;br /&gt;
The server is up by typing &lt;br /&gt;
 vncserver :X&lt;br /&gt;
at the prompt. Where X is the display's number where you want vncserver reside.&lt;br /&gt;
The second part of VNC is the client. You can invoke it from the command line and, as a [[java]] applet, from a browser.&lt;br /&gt;
&lt;br /&gt;
This means you can launch differents vncserver on differents ports and you access them by entering in web java browser : http://your_vncserver:58xx.&lt;br /&gt;
Where xx is the screen (01 for &amp;quot;#vncserver :1&amp;quot;, 02 for &amp;quot;#vncserver :2&amp;quot;, &amp;quot;#...).&lt;br /&gt;
&lt;br /&gt;
==Tunnelling Over SSH==&lt;br /&gt;
Like most other protocols VNC can be 'tunnelled' over ssh. There are two significant advantages to this:&lt;br /&gt;
#Its encrypted and as secure as your ssh connection&lt;br /&gt;
#It can go anywhere ssh goes, ie. if you can ssh to the machine you can also VNC to it no matter whether any firewalls/routing in between actually allows you to access VNC. The flipside advantage of this is for the owner/administrator of the machine running VNC as they don't have to leave it open to the Internet (its not hugely secure) to allow people to use it for remote access.&lt;br /&gt;
&lt;br /&gt;
Sounds good? Here's how to do it:&lt;br /&gt;
&lt;br /&gt;
===From Windows===&lt;br /&gt;
See: http://martybugs.net/smoothwall/puttyvnc.cgi&lt;br /&gt;
&lt;br /&gt;
===From Linux===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;CODE&amp;gt;&amp;lt;pre&amp;gt;ssh username@remotemachine -L 5901:localhost:5901&amp;lt;/pre&amp;gt;&amp;lt;/CODE&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now connect to it with vncviewer (see &amp;quot;Invoking VNC&amp;quot; section above) using localhost:1 or localhost:0.&lt;br /&gt;
&lt;br /&gt;
=Setup (Distribution Specific)=&lt;br /&gt;
&lt;br /&gt;
==Mandriva==&lt;br /&gt;
===Server===&lt;br /&gt;
1) Using either urpmi or menu-&amp;gt;System-&amp;gt;Configuration-&amp;gt;Packaging-&amp;gt;Install Software install tightvnc-server&lt;br /&gt;
&lt;br /&gt;
2) Edit the file /etc/sysconfig/vncservers and add a line like this:&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
VNCSERVERS=&amp;quot;1:yourusername&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3) Logged in as yourself run 'vncpasswd' (no quotes) and set a password for your vnc desktop&lt;br /&gt;
&lt;br /&gt;
4) Create the file .wmrc in your home directory and add a single line with either KDE or GNOME&lt;br /&gt;
&lt;br /&gt;
5) Start the vncserver service with 'service vncserver start' OR in the Mandrake Control Centre-&amp;gt;System-&amp;gt;Services&lt;br /&gt;
&lt;br /&gt;
Now you should be able to login to a vncserver on &amp;lt;ip of machine&amp;gt;:1&lt;br /&gt;
&lt;br /&gt;
===Client===&lt;br /&gt;
Mandriva comes with a simple VNC viewer installed by default in menu-&amp;gt;Internet-&amp;gt;Remote Access, however the graphical parts of its user interface are a bit primitive and unfriendly. Using urpmi or menu-&amp;gt;System-&amp;gt;Configuration-&amp;gt;Packaging-&amp;gt;Install Software install the package krdc to get a more userfriendly VNC (and RDP) client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
&lt;br /&gt;
Your vnc server's configuration is stored in ~/.vnc. Most important file is '''xstartup'''. For example, the following content of xstartup will make your vnc server start [[KDE]] at logon:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetroot -solid grey&lt;br /&gt;
 startkde&lt;br /&gt;
&lt;br /&gt;
=Products=&lt;br /&gt;
&lt;br /&gt;
* realvnc http://www.realvnc.org&lt;br /&gt;
* tightvnc http://www.tightvnc.org&lt;br /&gt;
&lt;br /&gt;
=Alternatives=&lt;br /&gt;
&lt;br /&gt;
Operating systems using the [[X Window System]] can use the X Display Manager Control Protocol ([[XDMCP]]) to allow network based access to a remote system's graphical desktop.  [[XDMCP]] uses much less network bandwith than VNC, but it requires an X server.  There are [[X#For_other_OS|X servers]] available for non-UNIX OS's.&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
&lt;br /&gt;
* [[Remote login]]&lt;br /&gt;
* [[X forwarding]]&lt;br /&gt;
* [[Nx]] - an alternative&lt;br /&gt;
* [[xdmcp]] - let the user log in graphically&lt;br /&gt;
*[http://www.debianhelp.co.uk/vnc.htm VNC Configuration guide]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=VNC&amp;diff=36938</id>
		<title>VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=VNC&amp;diff=36938"/>
		<updated>2008-02-22T23:23:38Z</updated>

		<summary type="html">&lt;p&gt;Libertyernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''VNC''' stands for '''Virtual Network Computing'''. It is client/server software that allows you to build up a terminal server scenario. That means you have one central server where users can work on while using their local computers just to display the content that comes from the server.&lt;br /&gt;
&lt;br /&gt;
It is possible that, say 5, users work simultaneously on one server, each of them using their client software on a different operating system.&lt;br /&gt;
&lt;br /&gt;
=VNC Usage=&lt;br /&gt;
&lt;br /&gt;
==Commands==&lt;br /&gt;
&lt;br /&gt;
The [[client]] [[software]] is called '''vncviewer''', the [[server]] [[command]] is '''vncserver'''. Other clients are also available, such as the Remote Desktop Connection [[application]] of [[KDE]].&lt;br /&gt;
&lt;br /&gt;
==Invoking VNC==&lt;br /&gt;
&lt;br /&gt;
===From Linux===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vncviewer &amp;lt;ip&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will prompt for the password of the VNC server, before displaying a window with the desktop of the remote machine.&lt;br /&gt;
&lt;br /&gt;
Users of KDE can also install the kdenetwork-krfb package to get krdc, which is has an easy to use GUI interface:&lt;br /&gt;
&amp;lt;pre&amp;gt;krdc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===From Windows===&lt;br /&gt;
To install it on Windows Google for 'vncviewer'. There are several different VNC projects but their viewers should be compatible with each other.&lt;br /&gt;
&lt;br /&gt;
===From a Web Browser===&lt;br /&gt;
It is possible to connect to a VNC viewer using a java enabled browser. This is makes VNC technology much more flexible, as no special software is required on the client. This is done by entering the IP address of VNC server followed by the port 5800 +display number though ports are customizable. e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;http://192.168.1.1:5801&amp;lt;/pre&amp;gt; - Typical for a windows box&lt;br /&gt;
&amp;lt;pre&amp;gt;http://192.168.1.1:5802&amp;lt;/pre&amp;gt; - Typical for a linux box (displays second X display)&lt;br /&gt;
&lt;br /&gt;
==Starting the vnc server==&lt;br /&gt;
Starting the vnc server is quite easy:&lt;br /&gt;
 vncserver&lt;br /&gt;
&lt;br /&gt;
===For a Web Browser===&lt;br /&gt;
 vncserver -httpport 80&lt;br /&gt;
Starts the vnc server that can be accessed over the default http port 80.&lt;br /&gt;
&lt;br /&gt;
==Setting up (General)==&lt;br /&gt;
&lt;br /&gt;
VNC server is easy to [[install]] on Windows and on Linux. See also [[rdesktop]] for a way to log into windows native remote systems.&lt;br /&gt;
&lt;br /&gt;
VNC is installed by default in recent versions of [[KDE]]:&lt;br /&gt;
&lt;br /&gt;
K menu--&amp;gt;Settings --&amp;gt; Control Center --&amp;gt; Internet and Networking --&amp;gt; Desktop Sharing&lt;br /&gt;
&lt;br /&gt;
For the vncserver box, you don't need to start Xserver, VNC (TightVNC) incorporate one. It's start the window manager which is configured in the $HOME/.vnc/xstartup file.&lt;br /&gt;
&lt;br /&gt;
The server is up by typing &lt;br /&gt;
 vncserver :X&lt;br /&gt;
at the prompt. Where X is the display's number where you want vncserver reside.&lt;br /&gt;
The second part of VNC is the client. You can invoke it from the command line and, as a [[java]] applet, from a browser.&lt;br /&gt;
&lt;br /&gt;
This means you can launch differents vncserver on differents ports and you access them by entering in web java browser : http://your_vncserver:58xx.&lt;br /&gt;
Where xx is the screen (01 for &amp;quot;#vncserver :1&amp;quot;, 02 for &amp;quot;#vncserver :2&amp;quot;, &amp;quot;#...).&lt;br /&gt;
&lt;br /&gt;
==Tunnelling Over SSH==&lt;br /&gt;
Like most other protocols VNC can be 'tunnelled' over ssh. There are two significant advantages to this:&lt;br /&gt;
#Its encrypted and as secure as your ssh connection&lt;br /&gt;
#It can go anywhere ssh goes, ie. if you can ssh to the machine you can also VNC to it no matter whether any firewalls/routing in between actually allows you to access VNC. The flipside advantage of this is for the owner/administrator of the machine running VNC as they don't have to leave it open to the Internet (its not hugely secure) to allow people to use it for remote access.&lt;br /&gt;
&lt;br /&gt;
Sounds good? Here's how to do it:&lt;br /&gt;
&lt;br /&gt;
===From Windows===&lt;br /&gt;
See: http://martybugs.net/smoothwall/puttyvnc.cgi&lt;br /&gt;
&lt;br /&gt;
===From Linux===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;CODE&amp;gt;&amp;lt;pre&amp;gt;ssh username@remotemachine -L 5901:localhost:5901&amp;lt;/pre&amp;gt;&amp;lt;/CODE&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now connect to it with vncviewer (see &amp;quot;Invoking VNC&amp;quot; section above) using localhost:1 or localhost:0.&lt;br /&gt;
&lt;br /&gt;
=Setup (Distribution Specific)=&lt;br /&gt;
&lt;br /&gt;
==Mandriva==&lt;br /&gt;
===Server===&lt;br /&gt;
1) Using either urpmi or menu-&amp;gt;System-&amp;gt;Configuration-&amp;gt;Packaging-&amp;gt;Install Software install tightvnc-server&lt;br /&gt;
&lt;br /&gt;
2) Edit the file /etc/sysconfig/vncservers and add a line like this:&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
VNCSERVERS=&amp;quot;1:yourusername&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3) Logged in as yourself run 'vncpasswd' (no quotes) and set a password for your vnc desktop&lt;br /&gt;
&lt;br /&gt;
4) Create the file .wmrc in your home directory and add a single line with either KDE or GNOME&lt;br /&gt;
&lt;br /&gt;
5) Start the vncserver service with 'service vncserver start' OR in the Mandrake Control Centre-&amp;gt;System-&amp;gt;Services&lt;br /&gt;
&lt;br /&gt;
Now you should be able to login to a vncserver on &amp;lt;ip of machine&amp;gt;:1&lt;br /&gt;
&lt;br /&gt;
===Client===&lt;br /&gt;
Mandriva comes with a simple VNC viewer installed by default in menu-&amp;gt;Internet-&amp;gt;Remote Access, however the graphical parts of its user interface are a bit primitive and unfriendly. Using urpmi or menu-&amp;gt;System-&amp;gt;Configuration-&amp;gt;Packaging-&amp;gt;Install Software install the package krdc to get a more userfriendly VNC (and RDP) client.&lt;br /&gt;
&lt;br /&gt;
==Ubuntu/Debian==&lt;br /&gt;
&lt;br /&gt;
===x11vnc===&lt;br /&gt;
&lt;br /&gt;
The following instructions are designed for [[Ubuntu]] and its sister projects, but will also work for other [[GNU/Linux]] distributions with minor changes (such as using su rather than sudo).&lt;br /&gt;
&lt;br /&gt;
This x11vnc how-to was originally written by ErikTheRed and can be found at: http://ubuntuforums.org/showthread.php?t=363236&lt;br /&gt;
&lt;br /&gt;
The original version of the how-to used [[xinetd]], but other [[inetd]] daemons (like the OpenBSD version) can also be used.&lt;br /&gt;
&lt;br /&gt;
==== Using with KDM ====&lt;br /&gt;
&lt;br /&gt;
These additional steps are needed if and only if you use the KDM software to log in. Kubuntu uses KDM by default.&lt;br /&gt;
&amp;lt;!--credit: bdogg64--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following to /etc/kde3/kdm/kdmrc under [X-:*-Core]&lt;br /&gt;
&lt;br /&gt;
 AuthFile=/root/xauth&lt;br /&gt;
&lt;br /&gt;
On non-Ubuntu distributions, the kdmrc file may be located in a different folder.&lt;br /&gt;
&lt;br /&gt;
You can change the AuthFile to be something different, just make sure you have the same file in your server_args in your inetd services file.&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
==== Using with GDM ====&lt;br /&gt;
&lt;br /&gt;
To use x11vnc with the [[GDM]] logon manager (used by [[Ubuntu]]/[[Xubuntu]]/[[Edubuntu]]/[[Linux Mint]] but NOT by [[Kubuntu]]), follow the above steps and then add the following to /etc/gdm/gdm.conf-custom under the [daemon] section:&lt;br /&gt;
&lt;br /&gt;
 KillInitClients=false&lt;br /&gt;
&lt;br /&gt;
(On other distributions, this file may be located in a different folder.)&lt;br /&gt;
&lt;br /&gt;
Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.&lt;br /&gt;
&lt;br /&gt;
==== Setup with openbsd-inetd ====&lt;br /&gt;
&lt;br /&gt;
1. Install the packages&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install x11vnc openbsd-inetd tcpd&lt;br /&gt;
&lt;br /&gt;
2. Run the following command&lt;br /&gt;
&lt;br /&gt;
 ps wwaux | grep auth&lt;br /&gt;
&lt;br /&gt;
This command should output something like this:&lt;br /&gt;
&lt;br /&gt;
 root      3838 10.1  1.7  13308  8840 tty7     Ss+  15:35   2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth '''/var/run/xauth/A:0-LliKdB'''&lt;br /&gt;
 erik      5156  0.0  0.1   2800   752 pts/0    R+   15:57   0:00 grep auth&lt;br /&gt;
&lt;br /&gt;
Note the bolded path after -auth, as you will need this for the next step&lt;br /&gt;
&lt;br /&gt;
3. Add the x11vnc service to inetd:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
Add this line:&lt;br /&gt;
&lt;br /&gt;
 5900    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
4. Then edit /usr/local/bin/x11vnc.sh:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
Enter this into the new file:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 /usr/bin/x11vnc -inetd -o /var/log/x11vnc.log -display :0 \&lt;br /&gt;
 -auth '''/var/run/xauth/A:0-LliKdB''' -many -bg&lt;br /&gt;
&lt;br /&gt;
Notice the bolded path, this is where you put the path you found in step 2.&lt;br /&gt;
&lt;br /&gt;
Now, to make the script executable, you have to run the command:&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /usr/local/bin/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
5. Restart inetd&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/openbsd-inetd restart&lt;br /&gt;
&lt;br /&gt;
6. You can now connect to display :0 from another machine by using a VNC client. For example:&lt;br /&gt;
&lt;br /&gt;
 vncviewer vnchost:0&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
&lt;br /&gt;
Your vnc server's configuration is stored in ~/.vnc. Most important file is '''xstartup'''. For example, the following content of xstartup will make your vnc server start [[KDE]] at logon:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetroot -solid grey&lt;br /&gt;
 startkde&lt;br /&gt;
&lt;br /&gt;
=Products=&lt;br /&gt;
&lt;br /&gt;
* realvnc http://www.realvnc.org&lt;br /&gt;
* tightvnc http://www.tightvnc.org&lt;br /&gt;
&lt;br /&gt;
=Alternatives=&lt;br /&gt;
&lt;br /&gt;
Operating systems using the [[X Window System]] can use the X Display Manager Control Protocol ([[XDMCP]]) to allow network based access to a remote system's graphical desktop.  [[XDMCP]] uses much less network bandwith than VNC, but it requires an X server.  There are [[X#For_other_OS|X servers]] available for non-UNIX OS's.&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
&lt;br /&gt;
* [[Remote login]]&lt;br /&gt;
* [[X forwarding]]&lt;br /&gt;
* [[Nx]] - an alternative&lt;br /&gt;
* [[xdmcp]] - let the user log in graphically&lt;br /&gt;
*[http://www.debianhelp.co.uk/vnc.htm VNC Configuration guide]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Libertyernie</name></author>
	</entry>
</feed>