How to set vino's password through terminal?
How can one set vino's password through terminal in Ubuntu 18.04?
Here it uses vino-passwd
command, but this gives me vino-passwd: command not found
.
18.04 password gnome-terminal vnc vino
add a comment |
How can one set vino's password through terminal in Ubuntu 18.04?
Here it uses vino-passwd
command, but this gives me vino-passwd: command not found
.
18.04 password gnome-terminal vnc vino
add a comment |
How can one set vino's password through terminal in Ubuntu 18.04?
Here it uses vino-passwd
command, but this gives me vino-passwd: command not found
.
18.04 password gnome-terminal vnc vino
How can one set vino's password through terminal in Ubuntu 18.04?
Here it uses vino-passwd
command, but this gives me vino-passwd: command not found
.
18.04 password gnome-terminal vnc vino
18.04 password gnome-terminal vnc vino
asked Jan 23 at 4:03
SaTaSaTa
5517
5517
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I haven't specifically tried on 18.04, but I have successfully used gsettings to do this in the past:
gsettings set org.gnome.Vino vnc-password $(echo -n 'mypasswd'|base64)
The Arch Wiki for Vino describes some other useful options you can modify using gsettings. My standard set is:
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.Vino vnc-password $(echo -n 'mypasswd'|base64)
gsettings set org.gnome.settings-daemon.plugins.sharing active true
eths=$(nmcli -t -f uuid,type c s --active | grep 802 | awk -F ":" '{ print "'''" $1 "'''" }' | paste -s -d, -)
gsettings set org.gnome.settings-daemon.plugins.sharing.service:/org/gnome/settings-daemon/plugins/sharing/vino-server/ enabled-connections "[ $eths ]"
Again, the above is not tested on 18.04, so your mileage may vary.
Thanks. With the command mentioned above, the password ("mypasswd" in this case) would get stored in the terminal history, right? Is this good practice?
– SaTa
Feb 21 at 3:38
Do you know of other commands that would take in the password as you secretly type it in like what happens when one triessudo
for the first time in a terminal.
– SaTa
Feb 21 at 3:39
1
Your shell probably doesn't save commands if you add a blank space to the front. Reference
– proximous
Feb 21 at 22:49
What are intents of the last 3 lines on the standard settings you have?
– SaTa
Feb 24 at 18:56
Not sure about 18.04, but "...sharing active true" activated the sharing, "eths=..." finds all the active Ethernet interfaces using the NetworkManager (I had several on different networks), and the last line enabled Vino on all of those interfaces. Without that, it was only available on the 'primary' interface.
– proximous
Feb 24 at 19:47
|
show 1 more comment
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1112127%2fhow-to-set-vinos-password-through-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I haven't specifically tried on 18.04, but I have successfully used gsettings to do this in the past:
gsettings set org.gnome.Vino vnc-password $(echo -n 'mypasswd'|base64)
The Arch Wiki for Vino describes some other useful options you can modify using gsettings. My standard set is:
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.Vino vnc-password $(echo -n 'mypasswd'|base64)
gsettings set org.gnome.settings-daemon.plugins.sharing active true
eths=$(nmcli -t -f uuid,type c s --active | grep 802 | awk -F ":" '{ print "'''" $1 "'''" }' | paste -s -d, -)
gsettings set org.gnome.settings-daemon.plugins.sharing.service:/org/gnome/settings-daemon/plugins/sharing/vino-server/ enabled-connections "[ $eths ]"
Again, the above is not tested on 18.04, so your mileage may vary.
Thanks. With the command mentioned above, the password ("mypasswd" in this case) would get stored in the terminal history, right? Is this good practice?
– SaTa
Feb 21 at 3:38
Do you know of other commands that would take in the password as you secretly type it in like what happens when one triessudo
for the first time in a terminal.
– SaTa
Feb 21 at 3:39
1
Your shell probably doesn't save commands if you add a blank space to the front. Reference
– proximous
Feb 21 at 22:49
What are intents of the last 3 lines on the standard settings you have?
– SaTa
Feb 24 at 18:56
Not sure about 18.04, but "...sharing active true" activated the sharing, "eths=..." finds all the active Ethernet interfaces using the NetworkManager (I had several on different networks), and the last line enabled Vino on all of those interfaces. Without that, it was only available on the 'primary' interface.
– proximous
Feb 24 at 19:47
|
show 1 more comment
I haven't specifically tried on 18.04, but I have successfully used gsettings to do this in the past:
gsettings set org.gnome.Vino vnc-password $(echo -n 'mypasswd'|base64)
The Arch Wiki for Vino describes some other useful options you can modify using gsettings. My standard set is:
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.Vino vnc-password $(echo -n 'mypasswd'|base64)
gsettings set org.gnome.settings-daemon.plugins.sharing active true
eths=$(nmcli -t -f uuid,type c s --active | grep 802 | awk -F ":" '{ print "'''" $1 "'''" }' | paste -s -d, -)
gsettings set org.gnome.settings-daemon.plugins.sharing.service:/org/gnome/settings-daemon/plugins/sharing/vino-server/ enabled-connections "[ $eths ]"
Again, the above is not tested on 18.04, so your mileage may vary.
Thanks. With the command mentioned above, the password ("mypasswd" in this case) would get stored in the terminal history, right? Is this good practice?
– SaTa
Feb 21 at 3:38
Do you know of other commands that would take in the password as you secretly type it in like what happens when one triessudo
for the first time in a terminal.
– SaTa
Feb 21 at 3:39
1
Your shell probably doesn't save commands if you add a blank space to the front. Reference
– proximous
Feb 21 at 22:49
What are intents of the last 3 lines on the standard settings you have?
– SaTa
Feb 24 at 18:56
Not sure about 18.04, but "...sharing active true" activated the sharing, "eths=..." finds all the active Ethernet interfaces using the NetworkManager (I had several on different networks), and the last line enabled Vino on all of those interfaces. Without that, it was only available on the 'primary' interface.
– proximous
Feb 24 at 19:47
|
show 1 more comment
I haven't specifically tried on 18.04, but I have successfully used gsettings to do this in the past:
gsettings set org.gnome.Vino vnc-password $(echo -n 'mypasswd'|base64)
The Arch Wiki for Vino describes some other useful options you can modify using gsettings. My standard set is:
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.Vino vnc-password $(echo -n 'mypasswd'|base64)
gsettings set org.gnome.settings-daemon.plugins.sharing active true
eths=$(nmcli -t -f uuid,type c s --active | grep 802 | awk -F ":" '{ print "'''" $1 "'''" }' | paste -s -d, -)
gsettings set org.gnome.settings-daemon.plugins.sharing.service:/org/gnome/settings-daemon/plugins/sharing/vino-server/ enabled-connections "[ $eths ]"
Again, the above is not tested on 18.04, so your mileage may vary.
I haven't specifically tried on 18.04, but I have successfully used gsettings to do this in the past:
gsettings set org.gnome.Vino vnc-password $(echo -n 'mypasswd'|base64)
The Arch Wiki for Vino describes some other useful options you can modify using gsettings. My standard set is:
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.Vino vnc-password $(echo -n 'mypasswd'|base64)
gsettings set org.gnome.settings-daemon.plugins.sharing active true
eths=$(nmcli -t -f uuid,type c s --active | grep 802 | awk -F ":" '{ print "'''" $1 "'''" }' | paste -s -d, -)
gsettings set org.gnome.settings-daemon.plugins.sharing.service:/org/gnome/settings-daemon/plugins/sharing/vino-server/ enabled-connections "[ $eths ]"
Again, the above is not tested on 18.04, so your mileage may vary.
answered Feb 21 at 2:10
proximousproximous
714
714
Thanks. With the command mentioned above, the password ("mypasswd" in this case) would get stored in the terminal history, right? Is this good practice?
– SaTa
Feb 21 at 3:38
Do you know of other commands that would take in the password as you secretly type it in like what happens when one triessudo
for the first time in a terminal.
– SaTa
Feb 21 at 3:39
1
Your shell probably doesn't save commands if you add a blank space to the front. Reference
– proximous
Feb 21 at 22:49
What are intents of the last 3 lines on the standard settings you have?
– SaTa
Feb 24 at 18:56
Not sure about 18.04, but "...sharing active true" activated the sharing, "eths=..." finds all the active Ethernet interfaces using the NetworkManager (I had several on different networks), and the last line enabled Vino on all of those interfaces. Without that, it was only available on the 'primary' interface.
– proximous
Feb 24 at 19:47
|
show 1 more comment
Thanks. With the command mentioned above, the password ("mypasswd" in this case) would get stored in the terminal history, right? Is this good practice?
– SaTa
Feb 21 at 3:38
Do you know of other commands that would take in the password as you secretly type it in like what happens when one triessudo
for the first time in a terminal.
– SaTa
Feb 21 at 3:39
1
Your shell probably doesn't save commands if you add a blank space to the front. Reference
– proximous
Feb 21 at 22:49
What are intents of the last 3 lines on the standard settings you have?
– SaTa
Feb 24 at 18:56
Not sure about 18.04, but "...sharing active true" activated the sharing, "eths=..." finds all the active Ethernet interfaces using the NetworkManager (I had several on different networks), and the last line enabled Vino on all of those interfaces. Without that, it was only available on the 'primary' interface.
– proximous
Feb 24 at 19:47
Thanks. With the command mentioned above, the password ("mypasswd" in this case) would get stored in the terminal history, right? Is this good practice?
– SaTa
Feb 21 at 3:38
Thanks. With the command mentioned above, the password ("mypasswd" in this case) would get stored in the terminal history, right? Is this good practice?
– SaTa
Feb 21 at 3:38
Do you know of other commands that would take in the password as you secretly type it in like what happens when one tries
sudo
for the first time in a terminal.– SaTa
Feb 21 at 3:39
Do you know of other commands that would take in the password as you secretly type it in like what happens when one tries
sudo
for the first time in a terminal.– SaTa
Feb 21 at 3:39
1
1
Your shell probably doesn't save commands if you add a blank space to the front. Reference
– proximous
Feb 21 at 22:49
Your shell probably doesn't save commands if you add a blank space to the front. Reference
– proximous
Feb 21 at 22:49
What are intents of the last 3 lines on the standard settings you have?
– SaTa
Feb 24 at 18:56
What are intents of the last 3 lines on the standard settings you have?
– SaTa
Feb 24 at 18:56
Not sure about 18.04, but "...sharing active true" activated the sharing, "eths=..." finds all the active Ethernet interfaces using the NetworkManager (I had several on different networks), and the last line enabled Vino on all of those interfaces. Without that, it was only available on the 'primary' interface.
– proximous
Feb 24 at 19:47
Not sure about 18.04, but "...sharing active true" activated the sharing, "eths=..." finds all the active Ethernet interfaces using the NetworkManager (I had several on different networks), and the last line enabled Vino on all of those interfaces. Without that, it was only available on the 'primary' interface.
– proximous
Feb 24 at 19:47
|
show 1 more comment
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1112127%2fhow-to-set-vinos-password-through-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown