Update-alternatives -list x-window-manager To see what options are available type, as root: This changes things quite a bit,so be careful with this.ĭebian's /etc/X11/Xsession script uses /etc/X11/Xsession.options as a configuration file, and based on that configuration runs scripts in /etc/X11/Xsession.d/.ĭebian's default window manager can be changed via the Debian Alternatives System. If you do not, none will be started!ĭebian uses xsession for both startx sessions and session manager sessions. Note that if you use a ~/.xsession file you must start your window manager from it. Setting your gamma with xgamma is also a helpful thing to do in a. Many people want to start xautolock or xscreensaver. What might you want to put in an xsession? If you are running blackbox or fluxbox for a window manager, you might want to start your slit programs. The first 5 entries must be in that order, and after that are options to X. The :0 specifies which display it will be, the local specifies that were talking about the local machine, the vt7 specifies which virtual terminal, and the -nolisten tcp prevents the X server from listening on a TCP socket (this is for security). This specifices to start two instances of X: one on vt7 which will be display 0, and one on vt8 which will be display 1. :1 local /usr/X11R6/bin/X :1 vt8 -nolisten tcp :0 local /usr/X11R6/bin/X :0 vt7 -nolisten tcp You simply need to duplicate the lines in this file. Xdm (and presumably other session managers) has a Xservers file in its /etc/X11/xdm configuration directory. While you can manually start X on multiple virtual terminals, automating it makes the most sense when using a session manager, so we will cover that. And it is easy to configure (at least for xdm). If I step away from my machine and lock it, can my girlfriend use it without knowing my password AND without loggin me out? YES! The answer is to have multiple X sessions. Well, that's certainly true for terminal logins, but what about X? One nice thing about running linux (or any unix) is that every user can have their own username and password, their own customization, and can log in at the same time. If it is, then your script isn't exiting. If in doubt, back it up and remove your ~/.xsession file and see if it is started. Since this happens *after* other user programs and *after* X is started, if you are having trouble making this work, make sure your ~/.xsession's last statement uses exec. Many times there is a configuration file (such as /etc/X11/Xsession.options on Debian) that defines whether or not this happens. Most distributions these days have configured the session manager to start an SSH Agent to run on x startup, and kill it on x shutdown. Note that your ~/.xsession script must exit in order for xsession to continue on with the rest of what it must do, so the last line in there (which should be your window manager) should be run with exec. There is also usually a directory of scripts in /etc/X11/ that it runs as well. This script does different things on each distribution, but in general it checks for a ~/.xsession file, and sets up many other things. In this case your window manager invokes /etc/X11/Xsession, a shell script. More cool things can be done since there is a guiding process to prepare stuff for X and clean up when X exits. In the case of a window manager, things get more interesting. This file is simply a shell script to start various programs, including a window manager. In the case of startx, first ~/.xinitrc is looked for, and if it is not found a system-wide file such as /etc/X11/xinit/xinitrc is read and used. If you get a graphical login prompt, then you are using a session manager. In general, if you start x via the startx command, then the xinit files are used as a guide for startup, and if you use a session manager such as xdm, gdm, or kdm, then the xsession files are used. Unfortunately, every distribution customizes the way X starts up in a different way. Well, I decided to start tweaking my X for various reasons, and the best place to start was in figuring out the process. Here are some of the things that I think people should know about when customizing XFree86. I will cover some distro-specific examples at the end.Ĭhanging your background is not what this is about. There are a million and one obvious ways to customize X, I will not be covering those specific to a various Window Manger or graphical environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |