Shell script to enable Remote desktop on ubuntu

Written By Smart| 19 September 2009| 2 Comments

To enable remote desktop on ubuntu below is the script
#!/bin/sh

#author : admin@smartproteam.com
#copy rights@smartproteam 2009
#script to enable remote desktop with password

#to enable the remote connection
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled  true

#to enable password protect

gconftool-2 –type list –list-type string –set /desktop/gnome/remote_access/authentication_methods ‘[vnc]‘

#In my case i have used the password “test1234″ ,if want you can change it

PW=`echo ‘test1234′ | base64`
gconftool-2 –type string –set /desktop/gnome/remote_access/vnc_password $PW

#to disable the icon visibility of remote connection established.
gconftool-2 -s -t string   /desktop/gnome/remote_access/icon_visibility  never
Related Posts with Thumbnails

Share With Others

2 Comments »

  • brown said:

    nice script,liked it

  • Devyn said:

    I’m pretty sure there’s a Remote Desktop thing in System & Administration in Ubuntu’s GNOME.

Leave your response!




Comment moderation is enabled. Your comment may take some time to appear.