archgugl.blogg.se

Startx vs xinit
Startx vs xinit









startx vs xinit

This post is part of the series: Linux Command Line

startx vs xinit

There are a lot of reasons and you will want to be ready when the time comes that you need to be able to start an X session from the command line.

Startx vs xinit windows#

You may be running a server that also has X Windows loaded for administration purposes. You could hose your X Windows configuration and need to have a text-based log in just to repair the setup. There are a number of reasons this could be necessary. You may be wondering why would anyone use a text-based log in when simple, user-friendly graphical logins are available. You can also pass on to X that you are starting a multi-headed session (more than one monitor) with this command: startx – -layout Multihead. The use of the “–” indicates the end of client arguments and begins server arguments. To do this you would pass the argument “–16” along with the startx command like so: startx – -depth 16. Say, for instance, you want your X session to start up with a color depth of 16 instead of the default. Now with the startx command you can pass some arguments to set certain options to your X session. xinitrc entries for some of the more popular window managers or desktops (the. You can start any number of window managers and desktops this way. xinitrc that would load up the KDE desktop would look like: But the most important bit of information is the desktop. xinitrc file can also instruct xinit on variables for applications, color depth to start, background to load, etc. xinitrc can do much more than instruct xinit what desktop to run. xinitrc file is a configuration file that, above all else, instructs xinit what desktop to start. It does accept arguments, but generally speaking the defaults are fine. The startx command is most often issued without arguments. In less simple terms startx is the frontend for xinit that offers a much easier user interface. The X session is the underpinnings of the graphical desktop environment, without which the graphical desktop would not run. In simplest terms the startx command is responsible for launching the X session on your computer.











Startx vs xinit