SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
could you be a little more specific about what doesn't work? What screensaver you are using, which desktop environment, and what specifically doesn't work (nothing happens, blank screen, graphical errors, wrong colors, whatever). That would help a lot getting your problem solved.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
I haven't spent the time to see where KDE 3.3 kills screensaver on my FC3 system. I have tried other screensaver RPM's and even compiled the source to no avail. It somehow just does not work. I have no problem on my desktop, but it has never been formatted in 2 years. I started with Redhat 8 on it and just upgrade from redhat 8 to redhat 9 to FC1 to FC2 to FC3. Why it still works there I have no idea. But it does not work on my notebook. It is a fresh install of FC3.
To get the full use of xscreensaver back is goto your Configure Desktop > Screensavers.
Uncheck everything. Consider it disabled here.
Now goto a terminal screen and type ' xscreensaver & '.
When it appears click on the settings tab and select the screensaver you want, time for it to appear and time it resets.
Now close.
Now in the time you set it at it should come up and run the screensaver.
Now if you want to get back into it you will need to type ' xscreensaver-demo '. Make changes and close.
I haven't figure out where to put it to autostart on every reboot. I know /etc/rc.local does not work since X is not up when that script is run. Putting certain items in /usr/bin/startkde just cause major conflicts.
I usually start it manually. I created a script called /home/<username>/xscreensaver.sh
Contents of script
Code:
#!/bin/sh
#
# Starting Up XscreenSaverxscreensaver &
Then I created a softlink to the Desktop. I can click on it and it starts up. I don't hit the settings button here. After 5 secs or so it dissappears. Note you need to make the script executable. Either can do properties on the script from the desktop and set permissions. Or at a terminal type chmod +x xscreensaver.sh
I haven't tried it but I believe one can copy the script to /home/<username>/.kde/autostart directory. If you give it a try let me know.
Are you using Slackware 10.1? If you do, try the following:
1. Add the user(s) that are allowed to use screensavers to the "shadow" group
2. Remove XScreensaver 4.19, install XScreensaver 4.16 (from Slack 10.0) instead
Don't ask why, I didn't understand why it has to be the "shadow" group. I just found this solution on this site and it worked for me.
It seems to be a bug in XScreensaver 4.19 that causes problems with KDE. If this solution doesn't work, please tell us and we'll look further :-)
Both /etc/shadow and xscreensaver need be memebers of the shadow group so that xscreensaver can read the password data. Without it xscreensaver will not be able to lock and you would see something like this when starting it.
xscreensaver: couldn't get password of "pcrichton" xscreensaver: couldn't get password of "root" xscreensaver: 08:31:14: locking is disabled (error getting password). xscreensaver: 08:31:14: does xscreensaver need to be setuid? consult the manual.
Ensure that both /etc/shadow and xscreensaver are members of the shadow group and that xscreensaver has setgid (group sticky bit)
You can start xscreensaver automatically in KDE by:
1: Switch off KDE's screen saver.
Open the ``Control Center'' and select the ``Look and Feel / Screensaver'' page. Turn off the ``Enable Screensaver'' checkbox.
2: Find your Autostart directory.
Open the ``Look and Feel / Desktop / Paths'' page, and see what your ``Autostart'' directory is set to
It will probably be ~/.kde3/Autostart/ or something similar.
3: Make xscreensaver be an Autostart program.
Create a file in your autostart directory called xscreensaver.desktop that contains the following five lines:
Instead of putting the user in the shadow group, you should chown root:bin /usr/X11R6/bin/xscreensaver and be sure your user is on the bin group since this seems to be a bug in the packages (a bad group for the xscreensaver binary).
Actually, using the shadow group is the better solution. Xscreensaver must have access to the password hash to be able use locking. That means xscreensaver must run with the effective uid or gid of the /etc/shadow file (the suid or sgid sticky bits).
If you use suid, then xscreensaver has read/write access to /etc/shadow. Xscreensaver only needs read access, there is no need for write access. Over granting of prvilage is never a good idea. In addition, xscreensaver would also have privilage enough to access anything in the system with the uid of root. Not good .
By using the shadow group and sgid, access is limited to read only for only /etc/shadow and /etc/gshadow (the only two files in the group). This grants only the privilage it needs and no more .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.