Automatically starting remote desktop: Difference between revisions
From WickyWiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Category: | [[Category:201004]] | ||
[[Category:Ubuntu]] | [[Category:Ubuntu]] | ||
[[Category:Ubuntu Network]] | [[Category:Ubuntu Network]] | ||
| Line 38: | Line 38: | ||
</blockquote> | </blockquote> | ||
Then | Then add the line 'KillInitClients=false': | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
sudo gedit /etc/gdm/ | sudo gedit /etc/gdm/custom.conf | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
... | |||
KillInitClients=false | KillInitClients=false | ||
... | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
Note: this file has been moved around quite a lot in Ubuntu history. This location is for Ubuntu 10.04. | |||
Revision as of 07:08, 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 trueCheck 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 add the line 'KillInitClients=false':
sudo gedit /etc/gdm/custom.conf
... KillInitClients=false ...
Note: this file has been moved around quite a lot in Ubuntu history. This location is for Ubuntu 10.04.