Configure Remote Desktop from Command Line


Open a terminal and type following command to enable the remote desktop:

$ gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true

To disable the “Ask for Confirmation” dialog

$ gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled true

If you check

System -> Preferences -> Remote Desktop

 you will see that it is now turned ON.

You can turn it back OFF again from the command line using this command:

$ gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled false

Now login to your Linux system from SSH & by using above commands, enable or disable the remote desktop.

Once you do that, you can use VNC Viewer from the remote machine to access the gui of your linux system.

  1. Rakesh
    April 25, 2011 at 12:16 pm | #1

    what command for kde desktop ?

    • April 25, 2011 at 4:48 pm | #2

      I don’t know the command for kde, but i will let you know when i will find it.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.