How to configure a Remote Desktop host via CLI

Asked by fish07

Is there a command line feature to perform the following configuration:

System --> Preferences --> Remote Desktop --> Remote Desktop Preferences

Sharing ->Allow other users to view your desktop (Checked)
Allow other users to control your desktop (Checked)
Security ->Ask you for confirmation (Un-Checked)
Require the user to enter this password: (Checked)
Password: Specify the password

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#1

Fish07
We can view and or change "remote-desktop" parameter on local Ubuntu Gnome pc by using gconf-editor (if you don't have install it via apt)
Open a terminal and type:
gconf-editor
you can visually browse resource and you must go into section:
/ -> desktop->gnome-> remote_access

On a remote pc you can see all the remote desktop parameters with gconftool-2
gconftool-2 -R /desktop/gnome/remote_access

Then using gconftool-2 on a remote ubuntu pc you can change all the options for example:
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled false
and so on...
man gconftool-2 is your friend.

HTH

Revision history for this message
fish07 (act2-38) said :
#2

Thanks!

I do appreciate your help.

Namaste

./bly

Revision history for this message
Mark Z (mark-the-guitarist-gmail) said :
#3

A question specifically related to changing the password:
gconf-editor says that the password specified by the key is base64 encoded. How do I change this value? will gconftool-2 allow for a plain-text input and convert it to a key?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

Open a terminal:
install base64tool with this command:
sudo apt-get install mkvtoolnix

to test it type:

echo 'mypassword' > pwd-clear
base64tool encode pwd-clear pwd-encoded
base64tool decode pwd-encoded pwd-clear2
cat pwdclear2
rm pwd-*

HTH

Revision history for this message
Mark Z (mark-the-guitarist-gmail) said :
#5

Thanks elart.it, I will give this a try!

//MZ

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

I maked a typo and better:

Open a terminal:
install base64tool with this command:
sudo apt-get install mkvtoolnix

to test it type:

echo 'mypassword' > pwd-clear
base64tool encode pwd-clear pwd-encoded
base64tool decode pwd-encoded pwd-clear2
cat pwd-clear2
rm pwd-*

This answer can be related to https://answers.launchpad.net/ubuntu/+question/14409

HTH