Looking at the output of ‘ps ax’, how does login get to startx? See below.
init starts /bin/login login starts startx — HOW? What file is executed to get to startx?
1297 1 Ss+ tty1 00:00:00 /bin/login -f 1495 1297 S+ tty1 00:00:00 /bin/sh /usr/bin/startx 1519 1495 S+ tty1 00:00:00 xinit /home/./.xinitrc -- /etc/X11/xinit/x 1520 1519 Sl tty1 00:01:38 /usr/lib/xorg/Xorg ... 1526 1519 S tty1 00:00:00 /usr/bin/xterm ... 1531 1526 S tty1 00:00:00 twm
I installed Gnome/KDE/XFCE,… on CentOS 7 on a VPS
yum groupinstall "Server with GUI" yum groupinstall "GNOME Desktop"
yum groupinstall "Server with GUI" yum groupinstall "Xfce"
But when I run
startx I get the following result for all desktops
xauth: file /root/.serverauth.25989 does not exist X.Org X Server 1.20.1 X Protocol Version 11, Revision 0 Build Operating System: 3.10.0-957.1.3.el7.x86_64 Current Operating System: Linux centos7.cs1cloud.internal 3.10.0-957.12.2.el7.x86_64 #1 SMP Tue May 14 21:24:32 UTC 2019 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.10.0-957.12.2.el7.x86_64 root=UUID=dadd7363-eae7-4b4b-85a2-ed94705b1bed ro nomodeset crashkernel=auto rhgb quiet LANG=en_US.UTF-8 Build Date: 14 March 2019 10:37:36AM Build ID: xorg-x11-server 1.20.1-5.3.el7_6 Current version of pixman: 0.34.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 May 30 08:54:16 2019 (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) no screens found(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 "/var/log/Xorg.0.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
Appreciate for any help
Ok I did stuff in the terminal and then the whole desktop except for the wallpaper disappeared. And because of my stupidity I ran the startx on root. Then when it did not work. I shut it down. When at start again on entering password I get black and back to login prompt. It is LUbuntu 18.04.
This question has been asked several times, but the solutions I’ve found always solve the problem in a different way.
On the remote machine (the one on which I want to run
startx), I have already
echo allowed_users=anybody | sudo tee /etc/X11/Xwrapper.config
When I ssh to the machine and run
startx;, I get the error,
Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
I added myself to the
tty group after which the error is
Fatal server error: (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
Speculating, when I log in to the machine locally,
getty (running as
root) assigns ownership of
tty0 to my user, and this is sine qua non. How can I make this assignment happen without typing my username and password on that virtual terminal? Maybe I can send keystrokes to the virtual terminal? Maybe I can
chown the right files so that I can own it?
Of course this is a “XY” problem. The real problem is: when I’m away, I would like to log into the machine (e.g. after a reboot) and turn on its monitor (a projector in this case) so that my family can watch movies on my profile without knowing or having to type my password.
I am relatively new to Linux and I have installed Linux Mint version 18 on my PC. In the past, I have been able to get the desktop to launch by typing
at the terminal. After I did a few upgrades, this command stopped working. I get an error message
modprobe: FATAL: Module i915 not found in directory /lib/modules/4.4.0-145-generic
Fatal server error: (EE) no screens found (EE)
I am not sure what this means. I browsed the web and I guess it has something to do with the Intel Graphics driver. I am stumped. Any help would be greatly appreciated. Thanks in advance.
Help, I am stuck in a login loop with Ubuntu 18.04. I already checked the permissions/ownership of the .Xauthority .ICEauthority and /tmp folder. I tried setting to from lightdm to gdm3. I am still stuck in a login loop.
I also tried running startx using the terminal logged-in as the user but it just ends in a blank screen. What are the options that are possible for me and how can I diagnose this? I also tried looking at .xsession-errors which is just filled with setting environment variable message and no error message.