Contents
What is sudo Startx?
Running sudo startx is a very bad idea, it changes the ownership of a file in the user’s home directory to root and that prevents the user from being able to log back in via X. To fix it you need to log in to the command line (pressing Ctrl-Alt-F2 should switch you to one where you can log in from, or SSH in remotely).
How do I exit Xinit?
Usually the last thing . xinitrc does is to call a window manager or a session manager (e.g. twm , fvwm , gnome-session , …). This way, I can exit by using my-favorite-window-manager’s “exit” command, or by running kill $XSESSION_PID from any shell in this X session.
Where is ” StartX ” called in the command line?
StartX is a script provided in the X11 apps for a user to convenient start an X11 GUI. StartX is one of many tools that are available for a user to use. It starts the X11 with a number of preset configurations and starts some default applications.
Where do I find StartX on my computer?
To determine the client to run, startx first looks for a file called .xinitrc in the user’s home directory. If that is not found, it uses the file xinitrc in the xinit library directory. If command line client options are given, they override this behavior and revert to the xinit behavior.
What does the StartX command do in xinit?
If no specific client program is given on the command line, xinit will look for a file in the user’s home directory called .xinitrc to run as a shell script to start up client programs. If no such file exists, xinit will use the following as a default:
What is the purpose of the StartX script?
The startx script is a front end to xinit that provides a somewhat nicer user interface for running a single session of the X Window System. It is often run with no arguments. Arguments immediately following the startx command are used to start a client in the same manner as xinit.