Initiate a new (X11) desktop session on a remote host
5
votes
2
answers
4654
views
I would like to start a new
Xorg
server on a **remote** host. At first, I tought this would be as easy as it is on the local host:
$ xinit /usr/bin/startxfce4 -- :4
On a _local_ host, this command typed into a (non-graphic) login shell (vt/tty) will start _another_ Xorg
server, i.e. I will have a xfce4 desktop after this - and this desktop is _additional_ to my normal desktop started from login from the desktop manager (e.g. sddm
).
However, if I try that on a _remote_ (fedora) system from the ssh
console:
X.Org X Server 1.20.6
X Protocol Version 11, Revision 0
Build Operating System: 5.0.6-200.fc29.x86_64
Current Operating System: Linux noah.siteos-lokal.de 5.5.10-200.fc31.x86_64 #1 SMP Wed Mar 18 14:21:38 UTC 2020 x86_64
Kernel command line: BOOT_IMAGE=(hd0,msdos3)/vmlinuz-5.5.10-200.fc31.x86_64 root=/dev/mapper/vg_sdd-root ro rd.luks.uuid=luks-a9eba963-ff2e-499b-a298-0659c5e29359 rd.lvm.lv=vg_sdd/root rd.lvm.lv=vg_sdd/swap rhgb quiet resume=/dev/disk/by-uuid/73299393-6bdb-4230-a1ca-096e5ee32396 splash=silent quiet video.use_native_backlight=1
Build Date: 25 November 2019 12:00:00AM
Build ID: xorg-x11-server 1.20.6-1.fc31
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/tpasch/.local/share/xorg/Xorg.4.log", Time: Fri Apr 3 19:38:52 2020
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
(EE)
(EE)
Please consult the Fedora Project support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/home/tpasch/.local/share/xorg/Xorg.4.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
I wonder why it is possible to start _another_ Xorg
on the _local_ host but I get this error on a _remote_ host. I'm _not_ expecting to 'see' the new desktop from my ssh
terminal. But I would expect that I could ‘export’ the new Xorg
rendered desktop with e.g. x11vnc
.
It there easy way to get this running?
The bounty is for:
* Showing how to start _another_ Xorg
server on a _remote_ fedora machine from a ssh
terminal session.
The following answers will not be considered:
* Using Xvfb
, Xvnc
or the like.
* Using some kind of remote desktop technology (RDP, VNC, Spice, TeamViewer, ...)
Asked by aanno
(129 rep)
Apr 4, 2020, 05:57 AM
Last activity: Jul 25, 2025, 08:01 PM
Last activity: Jul 25, 2025, 08:01 PM