
In this article, we’ll guide you through the process of setting Vino’s password in Ubuntu 18.04 via Terminal. Vino is a VNC server for GNOME, which allows you to remotely access your desktop over the network.
To set Vino’s password in Ubuntu 18.04 via Terminal, use the command gsettings set org.gnome.Vino vnc-password $(echo -n 'yourpassword'|base64)
. Replace 'yourpassword'
with your desired password.
Prerequisites
Before we begin, ensure that you have:
- A system running Ubuntu 18.04
- Terminal access to the system
- Vino installed on your system
If you don’t have Vino installed, you can install it by running the following command:
sudo apt-get install vino
Setting Vino’s Password
To set Vino’s password, we’ll use the gsettings
command. gsettings
is a command line interface to GSettings, which allows you to change system settings.
Here is the command to set the Vino password:
gsettings set org.gnome.Vino vnc-password $(echo -n 'yourpassword'|base64)
In this command:
gsettings set
is used to change a setting.org.gnome.Vino vnc-password
is the setting we’re changing. This is the password for Vino.$(echo -n 'yourpassword'|base64)
is a command substitution that encodes the password in base64. Replace'yourpassword'
with your desired password.
Please note that storing the password in the terminal history may not be a good practice. To avoid this, you can add a space before the command.
Additional Vino Settings
You can also modify other Vino settings using gsettings
. Here are some commonly used settings:
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.settings-daemon.plugins.sharing active true
In the above commands:
prompt-enabled false
disables the prompt for permission every time someone tries to connect.authentication-methods "['vnc']"
sets the authentication method to VNC.require-encryption false
disables encryption for VNC connections. Please note that this may pose a security risk, and it’s recommended to enable encryption whenever possible.active true
activates sharing.
Conclusion
In this article, we’ve shown you how to set Vino’s password in Ubuntu 18.04 via Terminal, as well as how to modify other Vino settings. With these commands, you can easily manage your Vino server from the command line. As always, remember to be careful when modifying system settings, and only make changes that you understand.
To install Vino on Ubuntu 18.04, you can use the command sudo apt-get install vino
in the terminal.
Once Vino is installed and configured, you can use a VNC client to connect to your desktop remotely. Simply enter the IP address or hostname of the Ubuntu machine running Vino in the VNC client and provide the password you set for Vino.
To change the Vino password, you can use the command gsettings set org.gnome.Vino vnc-password $(echo -n 'newpassword'|base64)
in the terminal. Replace 'newpassword'
with your desired password.
You can disable the prompt for permission by using the command gsettings set org.gnome.Vino prompt-enabled false
in the terminal.
Yes, it is recommended to enable encryption for VNC connections. To enable encryption, you can use the command gsettings set org.gnome.Vino require-encryption true
in the terminal.
You can activate sharing using Vino by using the command gsettings set org.gnome.settings-daemon.plugins.sharing active true
in the terminal.