Install xfce4 desktop on ubuntu headless server, for remote desktop (x11vnc)
I would like to install a full xfce4 desktop into my ubuntu 16 dedicated server.
I remember accessing the remote desktop with this command years ago:
ssh -v ip:port -L 5900:localhost:5900 "x11vnc -noxrecord -forever -noxfixes -noxdamage -scale 1024x768 -create -rfbauth $HOME/.vnc/passwd"
After that simply point a vnc client to localhost:5900 and get a working xfce desktop, no lightdm logins or anything.
Xfce desktop/session was not launched from a $HOME/.vnc/autostart script.
I could leave programs/windows open, kill x11vnc from another ssh session and later execute again the x11vnc tunnel to localhost:5900. Reopening the remote desktop showed everything untouched, all windows/programs still open.
Sadly I dont remember anything else about that setup, if it had cronjobs or other tweaks.
Not sure what packages to install right now, as some websites recommend xfce4, others lighdm+xfce4, others xubuntu-desktop.
What ive tried so far:
installing only xfce4, then only xubuntu-desktop, added
Xvfb :0 -nolisten tcp -screen 0 1024x768x16 & DISPLAY=:0 startxfce4 &
to user crontab (@reboot) and launching x11vnc from my laptop like this:
ssh -v ip:port -L 5900:localhost:5900 "x11vnc -noxrecord -forever -noxfixes -noxdamage -display :0 -rfbauth $HOME/.vnc/passwd"
This results in the xfce4 desktop opening up but with errors such as:
"Modifying the panel is not allowed: Because the panel is running in kiosk mode"
"no running instance of xfce4-panel was found"
and various broken things, i cant logout/reboot/shutdown from xfce desktop too, just hanging.
If i try the original x11vnc flags (with -create and without -display :0) I only get a black screen with a white terminal.
Could someone kind enough please suggest how to do this from a vanilla ubuntu server?
- install xfce4 desktop (or lxde if it matters)
- auto start it at boot without asking for login graphically
- launch x11vnc on server from ssh command, with correct flags.
Would it be simply better to reinstall the os, using xubuntu and not ubuntu server?
I tried, failed a lot, got very confused and feel like I need some help.
Thank you very much.
EDIT:
After more struggles i removed everything xfce related, went back to ubuntu server and got a working lxde desktop. Used this command:
sudo apt-get install lubuntu-desktop
and added "exec startlxde" to ~/.xinitrc file.
After rebooting the server I can connect with x11vnc with the first command (-create flag) like i was doing years ago. The graphical desktop session does not start/stop with x11vnc but at system boot so everything left open on screen persists, if I close x11vnc and later reconnect.
Leaving this edit for others.
server ssh xubuntu xfce vnc
add a comment |
I would like to install a full xfce4 desktop into my ubuntu 16 dedicated server.
I remember accessing the remote desktop with this command years ago:
ssh -v ip:port -L 5900:localhost:5900 "x11vnc -noxrecord -forever -noxfixes -noxdamage -scale 1024x768 -create -rfbauth $HOME/.vnc/passwd"
After that simply point a vnc client to localhost:5900 and get a working xfce desktop, no lightdm logins or anything.
Xfce desktop/session was not launched from a $HOME/.vnc/autostart script.
I could leave programs/windows open, kill x11vnc from another ssh session and later execute again the x11vnc tunnel to localhost:5900. Reopening the remote desktop showed everything untouched, all windows/programs still open.
Sadly I dont remember anything else about that setup, if it had cronjobs or other tweaks.
Not sure what packages to install right now, as some websites recommend xfce4, others lighdm+xfce4, others xubuntu-desktop.
What ive tried so far:
installing only xfce4, then only xubuntu-desktop, added
Xvfb :0 -nolisten tcp -screen 0 1024x768x16 & DISPLAY=:0 startxfce4 &
to user crontab (@reboot) and launching x11vnc from my laptop like this:
ssh -v ip:port -L 5900:localhost:5900 "x11vnc -noxrecord -forever -noxfixes -noxdamage -display :0 -rfbauth $HOME/.vnc/passwd"
This results in the xfce4 desktop opening up but with errors such as:
"Modifying the panel is not allowed: Because the panel is running in kiosk mode"
"no running instance of xfce4-panel was found"
and various broken things, i cant logout/reboot/shutdown from xfce desktop too, just hanging.
If i try the original x11vnc flags (with -create and without -display :0) I only get a black screen with a white terminal.
Could someone kind enough please suggest how to do this from a vanilla ubuntu server?
- install xfce4 desktop (or lxde if it matters)
- auto start it at boot without asking for login graphically
- launch x11vnc on server from ssh command, with correct flags.
Would it be simply better to reinstall the os, using xubuntu and not ubuntu server?
I tried, failed a lot, got very confused and feel like I need some help.
Thank you very much.
EDIT:
After more struggles i removed everything xfce related, went back to ubuntu server and got a working lxde desktop. Used this command:
sudo apt-get install lubuntu-desktop
and added "exec startlxde" to ~/.xinitrc file.
After rebooting the server I can connect with x11vnc with the first command (-create flag) like i was doing years ago. The graphical desktop session does not start/stop with x11vnc but at system boot so everything left open on screen persists, if I close x11vnc and later reconnect.
Leaving this edit for others.
server ssh xubuntu xfce vnc
add a comment |
I would like to install a full xfce4 desktop into my ubuntu 16 dedicated server.
I remember accessing the remote desktop with this command years ago:
ssh -v ip:port -L 5900:localhost:5900 "x11vnc -noxrecord -forever -noxfixes -noxdamage -scale 1024x768 -create -rfbauth $HOME/.vnc/passwd"
After that simply point a vnc client to localhost:5900 and get a working xfce desktop, no lightdm logins or anything.
Xfce desktop/session was not launched from a $HOME/.vnc/autostart script.
I could leave programs/windows open, kill x11vnc from another ssh session and later execute again the x11vnc tunnel to localhost:5900. Reopening the remote desktop showed everything untouched, all windows/programs still open.
Sadly I dont remember anything else about that setup, if it had cronjobs or other tweaks.
Not sure what packages to install right now, as some websites recommend xfce4, others lighdm+xfce4, others xubuntu-desktop.
What ive tried so far:
installing only xfce4, then only xubuntu-desktop, added
Xvfb :0 -nolisten tcp -screen 0 1024x768x16 & DISPLAY=:0 startxfce4 &
to user crontab (@reboot) and launching x11vnc from my laptop like this:
ssh -v ip:port -L 5900:localhost:5900 "x11vnc -noxrecord -forever -noxfixes -noxdamage -display :0 -rfbauth $HOME/.vnc/passwd"
This results in the xfce4 desktop opening up but with errors such as:
"Modifying the panel is not allowed: Because the panel is running in kiosk mode"
"no running instance of xfce4-panel was found"
and various broken things, i cant logout/reboot/shutdown from xfce desktop too, just hanging.
If i try the original x11vnc flags (with -create and without -display :0) I only get a black screen with a white terminal.
Could someone kind enough please suggest how to do this from a vanilla ubuntu server?
- install xfce4 desktop (or lxde if it matters)
- auto start it at boot without asking for login graphically
- launch x11vnc on server from ssh command, with correct flags.
Would it be simply better to reinstall the os, using xubuntu and not ubuntu server?
I tried, failed a lot, got very confused and feel like I need some help.
Thank you very much.
EDIT:
After more struggles i removed everything xfce related, went back to ubuntu server and got a working lxde desktop. Used this command:
sudo apt-get install lubuntu-desktop
and added "exec startlxde" to ~/.xinitrc file.
After rebooting the server I can connect with x11vnc with the first command (-create flag) like i was doing years ago. The graphical desktop session does not start/stop with x11vnc but at system boot so everything left open on screen persists, if I close x11vnc and later reconnect.
Leaving this edit for others.
server ssh xubuntu xfce vnc
I would like to install a full xfce4 desktop into my ubuntu 16 dedicated server.
I remember accessing the remote desktop with this command years ago:
ssh -v ip:port -L 5900:localhost:5900 "x11vnc -noxrecord -forever -noxfixes -noxdamage -scale 1024x768 -create -rfbauth $HOME/.vnc/passwd"
After that simply point a vnc client to localhost:5900 and get a working xfce desktop, no lightdm logins or anything.
Xfce desktop/session was not launched from a $HOME/.vnc/autostart script.
I could leave programs/windows open, kill x11vnc from another ssh session and later execute again the x11vnc tunnel to localhost:5900. Reopening the remote desktop showed everything untouched, all windows/programs still open.
Sadly I dont remember anything else about that setup, if it had cronjobs or other tweaks.
Not sure what packages to install right now, as some websites recommend xfce4, others lighdm+xfce4, others xubuntu-desktop.
What ive tried so far:
installing only xfce4, then only xubuntu-desktop, added
Xvfb :0 -nolisten tcp -screen 0 1024x768x16 & DISPLAY=:0 startxfce4 &
to user crontab (@reboot) and launching x11vnc from my laptop like this:
ssh -v ip:port -L 5900:localhost:5900 "x11vnc -noxrecord -forever -noxfixes -noxdamage -display :0 -rfbauth $HOME/.vnc/passwd"
This results in the xfce4 desktop opening up but with errors such as:
"Modifying the panel is not allowed: Because the panel is running in kiosk mode"
"no running instance of xfce4-panel was found"
and various broken things, i cant logout/reboot/shutdown from xfce desktop too, just hanging.
If i try the original x11vnc flags (with -create and without -display :0) I only get a black screen with a white terminal.
Could someone kind enough please suggest how to do this from a vanilla ubuntu server?
- install xfce4 desktop (or lxde if it matters)
- auto start it at boot without asking for login graphically
- launch x11vnc on server from ssh command, with correct flags.
Would it be simply better to reinstall the os, using xubuntu and not ubuntu server?
I tried, failed a lot, got very confused and feel like I need some help.
Thank you very much.
EDIT:
After more struggles i removed everything xfce related, went back to ubuntu server and got a working lxde desktop. Used this command:
sudo apt-get install lubuntu-desktop
and added "exec startlxde" to ~/.xinitrc file.
After rebooting the server I can connect with x11vnc with the first command (-create flag) like i was doing years ago. The graphical desktop session does not start/stop with x11vnc but at system boot so everything left open on screen persists, if I close x11vnc and later reconnect.
Leaving this edit for others.
server ssh xubuntu xfce vnc
server ssh xubuntu xfce vnc
edited Nov 7 '18 at 16:04
Kyle1w
asked Nov 6 '18 at 13:14
Kyle1wKyle1w
112
112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
would you share your solution (by using lubuntu desktop) step by step? I have the same problem (ubuntu xfce4, xvfb and vnc).
New contributor
add a 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%2f1090497%2finstall-xfce4-desktop-on-ubuntu-headless-server-for-remote-desktop-x11vnc%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
would you share your solution (by using lubuntu desktop) step by step? I have the same problem (ubuntu xfce4, xvfb and vnc).
New contributor
add a comment |
would you share your solution (by using lubuntu desktop) step by step? I have the same problem (ubuntu xfce4, xvfb and vnc).
New contributor
add a comment |
would you share your solution (by using lubuntu desktop) step by step? I have the same problem (ubuntu xfce4, xvfb and vnc).
New contributor
would you share your solution (by using lubuntu desktop) step by step? I have the same problem (ubuntu xfce4, xvfb and vnc).
New contributor
New contributor
answered 4 mins ago
BabahBabah
1
1
New contributor
New contributor
add a comment |
add a 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%2f1090497%2finstall-xfce4-desktop-on-ubuntu-headless-server-for-remote-desktop-x11vnc%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