Automatically starting remote desktop: Difference between revisions

From WickyWiki
No edit summary
No edit summary
Line 2: Line 2:
[[Category:Ubuntu]]
[[Category:Ubuntu]]
[[Category:Ubuntu Network]]
[[Category:Ubuntu Network]]
Go to: System - Preferences - Remote desktop
Ubuntu comes with vino-server pre-installed. Remote desktop uses TCP port 5900.
 
To enable go to: System - Preferences - Remote desktop
*Check ‘Allow other users to view your desktop’.
*Check ‘Allow other users to view your desktop’.
*Check ‘Allow other users to control your desktop’.
*Check ‘Allow other users to control your desktop’.
Line 8: Line 10:
*Type in the password you want to use.
*Type in the password you want to use.


Note: remote desktop uses TCP port 5900
To enable using a script:
 
Go to: System - Preferences - Startup Applications - Add - Command


<blockquote>
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
metacity --replace & disown
metacity --replace & disown
Line 23: Line 24:
gconftool-2 -g /desktop/gnome/remote_access/enabled
gconftool-2 -g /desktop/gnome/remote_access/enabled
</syntaxhighlight>
</syntaxhighlight>
</blockquote>
Now you can use remote desktop with VNC, but you need to have a user logged in. To allow remote desktop at boot modify the gnome startup script to start vino-server:
<syntaxhighlight lang=bash>
sudo gedit /etc/gdm/Init/Default
</syntaxhighlight>
<blockquote>
<pre>
/usr/lib/vino/vino-server &
</pre>
</blockquote>
Then modify the config file 'KillInitClients=true':
<syntaxhighlight lang=bash>
sudo gedit /etc/gdm/gdm.conf
</syntaxhighlight>
<blockquote>
<pre>
KillInitClients=false
</pre>
</blockquote>

Revision as of 06:58, 12 January 2012

Ubuntu comes with vino-server pre-installed. Remote desktop uses TCP port 5900.

To enable go to: System - Preferences - Remote desktop

  • Check ‘Allow other users to view your desktop’.
  • Check ‘Allow other users to control your desktop’.
  • Uncheck ‘Ask you for confirmation’.
  • Type in the password you want to use.

To enable using a script:

metacity --replace & disown
vino-preferences & disown
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true

Check if the server is enabled:

gconftool-2 -g /desktop/gnome/remote_access/enabled

Now you can use remote desktop with VNC, but you need to have a user logged in. To allow remote desktop at boot modify the gnome startup script to start vino-server:

sudo gedit /etc/gdm/Init/Default
/usr/lib/vino/vino-server &

Then modify the config file 'KillInitClients=true':

sudo gedit /etc/gdm/gdm.conf
KillInitClients=false