UPDATE: it worked after this:
sudo apt install xserver-xorg-legacy
Can anyone explain why it works with xserver-xorg-legacy? Is this a viable long term fix to use something that says "legacy"?
My research indicates this has something to do with trying to run X rootless as user "ubuntu", here are some links that seem to be providing clues to the full picture, though I don't grasp the full picture yet. https://bugs.archlinux.org/task/41257 https://fedoraproject.org/wiki/Changes/XorgWithoutRootRights https://wiki.archlinux.org/index.php/Xorg ("Rootless Xorg")
I'll give the winning answer to anyone who explain what's going on and if this is a safe long term fix.
ORIGINAL QUESTION:
I am able to start xwindows as root user on Ubuntu 19.04 and it starts fine.
However, I cannot start it as "ubuntu" user - gives this error:
parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
Can anyone suggest what might be wrong?
I'm using Ubuntu 19.04 with an nvidia card.
Here is it starting fine with root user:
root@ip-172-31-4-65:/home/ubuntu# xinit
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-143-generic x86_64 Ubuntu
Current Operating System: Linux ip-172-31-4-65 5.0.0-1010-aws #11-Ubuntu SMP Tue Jun 25 13:59:51 UTC 2019 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.0.0-1010-aws root=PARTUUID=67505cef-01 ro rdblacklist=nouveau console=tty1 console=ttyS0 nvme_core.io_timeout=4294967295 panic=-1
Build Date: 03 April 2019 09:03:57AM
xorg-server 2:1.20.4-1ubuntu3 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.36.0
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: "/var/log/Xorg.0.log", Time: Thu Jul 4 06:21:30 2019
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xterm: cannot load font "-Misc-Fixed-bold-R-*-*-13-120-75-75-C-60-ISO8859-1"
xterm: cannot load font "-Misc-Fixed-medium-R-*-*-13-120-75-75-C-120-ISO10646-1"
xterm: cannot load font "-Misc-Fixed-bold-R-*-*-13-120-75-75-C-120-ISO10646-1"
xterm: cannot load font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"
Here it is failing to start as user ubuntu:
ubuntu@ip-172-31-4-65:~$ xinit
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-143-generic x86_64 Ubuntu
Current Operating System: Linux ip-172-31-4-65 5.0.0-1010-aws #11-Ubuntu SMP Tue Jun 25 13:59:51 UTC 2019 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.0.0-1010-aws root=PARTUUID=67505cef-01 ro rdblacklist=nouveau console=tty1 console=ttyS0 nvme_core.io_timeout=4294967295 panic=-1
Build Date: 03 April 2019 09:03:57AM
xorg-server 2:1.20.4-1ubuntu3 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.36.0
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/ubuntu/.local/share/xorg/Xorg.0.log", Time: Thu Jul 4 06:24:08 2019
(==) Using config file: "/etc/X11/xorg.conf"
(==) 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 The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/home/ubuntu/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
0 Answers