DebianThis forum is for the discussion of Debian Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have made a small debian setup on an older machine, without GNOME/KDE, just with xdm and xfce4.2
I dont know where to put the command that starts xscreensaver on user login. I have no ~/.Xsession or ~/.xinitrc? (But xdm knows that it sould start xfce somehow. how?)
When I go to the xfce4.2 settings manager and to screensaver, it says, that "The XScreenSaver daemon doesn't seem to be running on display :0.0. Launch it now?"
Thats the way I start the xscreensaver daemon at the moment. :-)
I am confused by all various places of all the possible X startup scripts..
usually, xfce4.2 should have installed ~/.config/xfce4/xinitrc which is the startup script for xfce4. If it's not there, the original should be in the directory PREFIX/etc/xdg/xfce4/ where PREFIX is whereever xfce4 is installed. This script should start the screensaver.
Also, you ca create a directory
and place scripts in here which will be run during the startup of xfce. It would be a possibility to start xscreensaver (don't forget the make the script executable).
XDM will read this .xsession file and it's also customary to make it executable with "chmod +x ~/.xsession".
xdm knows that it sould start xfce somehow. how?
The Debian configuration system, debconf, keeps track of installed WM's/DE's and the one installed last will become the default. For instance, if you now install fluxbox, xdm will start fluxbox instead of xfce -- unless you "su" to root and run "update-alternatives --config x-window-manager" to change the debconf default. But this is a difficult command to remember, so it might be easier to create ~/.xsession and define the default window manager there because the settings in ~/.xsession will override the debconf defaults.
can you launch the xscreensaver manually once xfce is up? If you can, you should try the autostart option by placing a little script in
the script should simply start the xcreensaver and nothing more.
In general, everything that you specifically define in your home directory overrides any system-wide settings. I'd still insist that creating a ~/.xsession file (like described in my earlier post) would be the easiest solution to your problem.
I don't have xfce currently installed on my system but I'd expect that if you study the system-wide startup scripts for xfce, you'll find that they first check out if there's any local startup scripts under the user's home directory (like ~/.xinitrc or ~/.xsession).
The point I'm trying to make is: Any system-wide startup scripts usually check first if there's some local scripts under the user's home directory, and these local scripts usually override any system-wide settings.
Last edited by Dead Parrot; 04-02-2005 at 12:07 PM.
I just asked myself why it didnt work with the /etc/xdg/xfce4/xinitrc script in the first place.
Maybe it didn't work because /etc/xdg/xfce4/xinitrc was not executed at all. If you launch Xfce session by running startxfce4 script, it will execute some xinitrc. It may be that Xfce was not started that way, because you did not choose Xfce session explicitly in display manager.