Why x0vncserver is not starting at boot?
I tried to make my tightvncserver start at boot on parabola arch Gnu/Linux in an auto GUI login setup using the wiki https://wiki.archlinux.org/index.php/TigerVNC#Using_tigervnc.27s_x0vncserver and by creating x0vncserver.service systemd unit following that and then systemctl enable x0vncserver.service
but when I boot/reboot, I see no vnc server active and then checking I see this
# systemctl status x0vncserver.service
* x0vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/x0vncserver.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Sat 2017-07-01 20:42:55 +06; 1min 34s ago
Process: 302 ExecStart=/usr/bin/sh -c /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd & (code=exited, status=0/SUCCESS)
Jul 01 20:42:52 sky systemd[1]: Starting Remote desktop service (VNC)...
Jul 01 20:42:55 sky systemd[1]: Started Remote desktop service (VNC).
and my
# journalctl -xe | grep vnc
-- Subject: Unit x0vncserver.service has begun start-up
-- Unit x0vncserver.service has begun starting up.
-- Subject: Unit x0vncserver.service has finished start-up
-- Unit x0vncserver.service has finished starting up.
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Unit entered failed state.
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Failed with result 'exit-code'.
But if I run the command systemctl start x0vncserver.service
or systemctl restart x0vncserver.service
after loading the desktop, it works without any issue as the # systemctl status x0vncserver.service
shows
# systemctl status x0vncserver.service
* x0vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/x0vncserver.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2017-07-01 20:56:53 +06; 2s ago
Process: 924 ExecStart=/usr/bin/sh -c /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd & (code=exited, status=0/SUCCESS)
Main PID: 925 (x0vncserver)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/x0vncserver.service
`-925 /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd
Jul 01 20:56:53 sky systemd[1]: Starting Remote desktop service (VNC)...
Jul 01 20:56:53 sky systemd[1]: Started Remote desktop service (VNC).
and my default.target is
# systemctl get-default
graphical.target
I guess the service starts earlier than it supposed to and fails due to lack of resources at boot.
boot systemd tightvnc
add a comment |
I tried to make my tightvncserver start at boot on parabola arch Gnu/Linux in an auto GUI login setup using the wiki https://wiki.archlinux.org/index.php/TigerVNC#Using_tigervnc.27s_x0vncserver and by creating x0vncserver.service systemd unit following that and then systemctl enable x0vncserver.service
but when I boot/reboot, I see no vnc server active and then checking I see this
# systemctl status x0vncserver.service
* x0vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/x0vncserver.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Sat 2017-07-01 20:42:55 +06; 1min 34s ago
Process: 302 ExecStart=/usr/bin/sh -c /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd & (code=exited, status=0/SUCCESS)
Jul 01 20:42:52 sky systemd[1]: Starting Remote desktop service (VNC)...
Jul 01 20:42:55 sky systemd[1]: Started Remote desktop service (VNC).
and my
# journalctl -xe | grep vnc
-- Subject: Unit x0vncserver.service has begun start-up
-- Unit x0vncserver.service has begun starting up.
-- Subject: Unit x0vncserver.service has finished start-up
-- Unit x0vncserver.service has finished starting up.
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Unit entered failed state.
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Failed with result 'exit-code'.
But if I run the command systemctl start x0vncserver.service
or systemctl restart x0vncserver.service
after loading the desktop, it works without any issue as the # systemctl status x0vncserver.service
shows
# systemctl status x0vncserver.service
* x0vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/x0vncserver.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2017-07-01 20:56:53 +06; 2s ago
Process: 924 ExecStart=/usr/bin/sh -c /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd & (code=exited, status=0/SUCCESS)
Main PID: 925 (x0vncserver)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/x0vncserver.service
`-925 /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd
Jul 01 20:56:53 sky systemd[1]: Starting Remote desktop service (VNC)...
Jul 01 20:56:53 sky systemd[1]: Started Remote desktop service (VNC).
and my default.target is
# systemctl get-default
graphical.target
I guess the service starts earlier than it supposed to and fails due to lack of resources at boot.
boot systemd tightvnc
If you want to try x11vnc then unix.stackexchange.com/questions/405185/password-problem-x11vnc/…
– Arpit Agarwal
Nov 21 '17 at 21:08
add a comment |
I tried to make my tightvncserver start at boot on parabola arch Gnu/Linux in an auto GUI login setup using the wiki https://wiki.archlinux.org/index.php/TigerVNC#Using_tigervnc.27s_x0vncserver and by creating x0vncserver.service systemd unit following that and then systemctl enable x0vncserver.service
but when I boot/reboot, I see no vnc server active and then checking I see this
# systemctl status x0vncserver.service
* x0vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/x0vncserver.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Sat 2017-07-01 20:42:55 +06; 1min 34s ago
Process: 302 ExecStart=/usr/bin/sh -c /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd & (code=exited, status=0/SUCCESS)
Jul 01 20:42:52 sky systemd[1]: Starting Remote desktop service (VNC)...
Jul 01 20:42:55 sky systemd[1]: Started Remote desktop service (VNC).
and my
# journalctl -xe | grep vnc
-- Subject: Unit x0vncserver.service has begun start-up
-- Unit x0vncserver.service has begun starting up.
-- Subject: Unit x0vncserver.service has finished start-up
-- Unit x0vncserver.service has finished starting up.
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Unit entered failed state.
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Failed with result 'exit-code'.
But if I run the command systemctl start x0vncserver.service
or systemctl restart x0vncserver.service
after loading the desktop, it works without any issue as the # systemctl status x0vncserver.service
shows
# systemctl status x0vncserver.service
* x0vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/x0vncserver.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2017-07-01 20:56:53 +06; 2s ago
Process: 924 ExecStart=/usr/bin/sh -c /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd & (code=exited, status=0/SUCCESS)
Main PID: 925 (x0vncserver)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/x0vncserver.service
`-925 /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd
Jul 01 20:56:53 sky systemd[1]: Starting Remote desktop service (VNC)...
Jul 01 20:56:53 sky systemd[1]: Started Remote desktop service (VNC).
and my default.target is
# systemctl get-default
graphical.target
I guess the service starts earlier than it supposed to and fails due to lack of resources at boot.
boot systemd tightvnc
I tried to make my tightvncserver start at boot on parabola arch Gnu/Linux in an auto GUI login setup using the wiki https://wiki.archlinux.org/index.php/TigerVNC#Using_tigervnc.27s_x0vncserver and by creating x0vncserver.service systemd unit following that and then systemctl enable x0vncserver.service
but when I boot/reboot, I see no vnc server active and then checking I see this
# systemctl status x0vncserver.service
* x0vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/x0vncserver.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Sat 2017-07-01 20:42:55 +06; 1min 34s ago
Process: 302 ExecStart=/usr/bin/sh -c /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd & (code=exited, status=0/SUCCESS)
Jul 01 20:42:52 sky systemd[1]: Starting Remote desktop service (VNC)...
Jul 01 20:42:55 sky systemd[1]: Started Remote desktop service (VNC).
and my
# journalctl -xe | grep vnc
-- Subject: Unit x0vncserver.service has begun start-up
-- Unit x0vncserver.service has begun starting up.
-- Subject: Unit x0vncserver.service has finished start-up
-- Unit x0vncserver.service has finished starting up.
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Unit entered failed state.
Jul 01 20:47:08 sky systemd[1]: x0vncserver.service: Failed with result 'exit-code'.
But if I run the command systemctl start x0vncserver.service
or systemctl restart x0vncserver.service
after loading the desktop, it works without any issue as the # systemctl status x0vncserver.service
shows
# systemctl status x0vncserver.service
* x0vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/x0vncserver.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2017-07-01 20:56:53 +06; 2s ago
Process: 924 ExecStart=/usr/bin/sh -c /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd & (code=exited, status=0/SUCCESS)
Main PID: 925 (x0vncserver)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/x0vncserver.service
`-925 /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd
Jul 01 20:56:53 sky systemd[1]: Starting Remote desktop service (VNC)...
Jul 01 20:56:53 sky systemd[1]: Started Remote desktop service (VNC).
and my default.target is
# systemctl get-default
graphical.target
I guess the service starts earlier than it supposed to and fails due to lack of resources at boot.
boot systemd tightvnc
boot systemd tightvnc
edited Nov 21 '17 at 19:36
Pavel Sayekat
asked Jul 1 '17 at 15:19
Pavel SayekatPavel Sayekat
245312
245312
If you want to try x11vnc then unix.stackexchange.com/questions/405185/password-problem-x11vnc/…
– Arpit Agarwal
Nov 21 '17 at 21:08
add a comment |
If you want to try x11vnc then unix.stackexchange.com/questions/405185/password-problem-x11vnc/…
– Arpit Agarwal
Nov 21 '17 at 21:08
If you want to try x11vnc then unix.stackexchange.com/questions/405185/password-problem-x11vnc/…
– Arpit Agarwal
Nov 21 '17 at 21:08
If you want to try x11vnc then unix.stackexchange.com/questions/405185/password-problem-x11vnc/…
– Arpit Agarwal
Nov 21 '17 at 21:08
add a comment |
2 Answers
2
active
oldest
votes
As x0vncserver
will only start after xsession, and as mine is an LXDE environment, the easier way is to create a script.sh
file like following
#!/bin/bash
x0vncserver -display :0 -rfbport 5900 -passwordfile ~/.vnc/passwd
and make it executable by sudo chmod +x script.sh
and add a line in ~/.config/lxsession/LXDE/autostart
file like following
path_to_the_script_file/script.sh
and the x0vncserver
starts as my LXDE desktop session starts and that's what I need.
add a comment |
A little late, but I also just stumbled over this problem.
The problem is, that x0vncserver needs a logged in X session for your user, so you have to ensure two things:
- Your user must be configure for autologin
Put a sleep in your ExecStart command, so that the desktop can start and log in before x0vncserver service tries to start:
ExecStart=/usr/bin/sh -c 'sleep 3 && /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd &'
The sleep did the trick for me and now my x0vnc is working.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f374638%2fwhy-x0vncserver-is-not-starting-at-boot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
As x0vncserver
will only start after xsession, and as mine is an LXDE environment, the easier way is to create a script.sh
file like following
#!/bin/bash
x0vncserver -display :0 -rfbport 5900 -passwordfile ~/.vnc/passwd
and make it executable by sudo chmod +x script.sh
and add a line in ~/.config/lxsession/LXDE/autostart
file like following
path_to_the_script_file/script.sh
and the x0vncserver
starts as my LXDE desktop session starts and that's what I need.
add a comment |
As x0vncserver
will only start after xsession, and as mine is an LXDE environment, the easier way is to create a script.sh
file like following
#!/bin/bash
x0vncserver -display :0 -rfbport 5900 -passwordfile ~/.vnc/passwd
and make it executable by sudo chmod +x script.sh
and add a line in ~/.config/lxsession/LXDE/autostart
file like following
path_to_the_script_file/script.sh
and the x0vncserver
starts as my LXDE desktop session starts and that's what I need.
add a comment |
As x0vncserver
will only start after xsession, and as mine is an LXDE environment, the easier way is to create a script.sh
file like following
#!/bin/bash
x0vncserver -display :0 -rfbport 5900 -passwordfile ~/.vnc/passwd
and make it executable by sudo chmod +x script.sh
and add a line in ~/.config/lxsession/LXDE/autostart
file like following
path_to_the_script_file/script.sh
and the x0vncserver
starts as my LXDE desktop session starts and that's what I need.
As x0vncserver
will only start after xsession, and as mine is an LXDE environment, the easier way is to create a script.sh
file like following
#!/bin/bash
x0vncserver -display :0 -rfbport 5900 -passwordfile ~/.vnc/passwd
and make it executable by sudo chmod +x script.sh
and add a line in ~/.config/lxsession/LXDE/autostart
file like following
path_to_the_script_file/script.sh
and the x0vncserver
starts as my LXDE desktop session starts and that's what I need.
edited 11 mins ago
answered Mar 9 '18 at 15:15
Pavel SayekatPavel Sayekat
245312
245312
add a comment |
add a comment |
A little late, but I also just stumbled over this problem.
The problem is, that x0vncserver needs a logged in X session for your user, so you have to ensure two things:
- Your user must be configure for autologin
Put a sleep in your ExecStart command, so that the desktop can start and log in before x0vncserver service tries to start:
ExecStart=/usr/bin/sh -c 'sleep 3 && /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd &'
The sleep did the trick for me and now my x0vnc is working.
add a comment |
A little late, but I also just stumbled over this problem.
The problem is, that x0vncserver needs a logged in X session for your user, so you have to ensure two things:
- Your user must be configure for autologin
Put a sleep in your ExecStart command, so that the desktop can start and log in before x0vncserver service tries to start:
ExecStart=/usr/bin/sh -c 'sleep 3 && /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd &'
The sleep did the trick for me and now my x0vnc is working.
add a comment |
A little late, but I also just stumbled over this problem.
The problem is, that x0vncserver needs a logged in X session for your user, so you have to ensure two things:
- Your user must be configure for autologin
Put a sleep in your ExecStart command, so that the desktop can start and log in before x0vncserver service tries to start:
ExecStart=/usr/bin/sh -c 'sleep 3 && /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd &'
The sleep did the trick for me and now my x0vnc is working.
A little late, but I also just stumbled over this problem.
The problem is, that x0vncserver needs a logged in X session for your user, so you have to ensure two things:
- Your user must be configure for autologin
Put a sleep in your ExecStart command, so that the desktop can start and log in before x0vncserver service tries to start:
ExecStart=/usr/bin/sh -c 'sleep 3 && /usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/peruvian/.vnc/passwd &'
The sleep did the trick for me and now my x0vnc is working.
answered Nov 21 '17 at 8:44
Stefan ZimmermannStefan Zimmermann
212
212
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f374638%2fwhy-x0vncserver-is-not-starting-at-boot%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
If you want to try x11vnc then unix.stackexchange.com/questions/405185/password-problem-x11vnc/…
– Arpit Agarwal
Nov 21 '17 at 21:08