Jump to content

Starting Stuff on boot


Guest JulesVerne
 Share

Recommended Posts

Guest JulesVerne

Hello there,

I dislike my screen to blank after 10 minutes (or something) so I'd like to start xscreensaver everytime x starts .... I found a way to do so, but that only works when I start from a login manager (kdm for exapmle) .... but since I use auto login, that doesn't help.

Do you have any suggestions? Is there a file that I have to place "xscreensaver" in?

 

Thank you very much!!!!

 

PS. I hope so much that Mandrake will survive..... I never used such a great OS before!

Link to comment
Share on other sites

First you'll need to get the RPM's from freshmeat. Or just look up Xscreensaver on the net.

 

Second you'll have to make sure you have the GLX drivers installed. If you have Gnome installed then the GLX drivers are in already.

 

You'll have to turn off the screensaver in KDE. I use KDE so I can only tell you how in KDE. The others are probobly the same.

 

Install the Xscreansaver RPM from an xterm screen.

 

You'll have to make and edit a file to auto start it when KDE starts. From Xterm screen change to root mode. Change to directory /home/(yourusername)/Autostart/.kde/

 

I use VIM to edit and make files. So type

vim /home/(yourusername)/Autostart/.kde/launch-xscreensaver

 

This makes the file and starts vim to edit it. Insert this into the blank file.

 

 

#!/bin/bash

 

xscreensaver -nosplash

 

 

 

Write and exit the VIM file. You might have to look up VIM comands but they are easy and simple.

 

Now you'll have to make the launch-xscreensaver file exacutable. Still as root, type

chmod +x /home/(yourusername)/Autostart/.kde/launch-xscreensaver

 

If I remembered everything the right way and you got through all this ok then the next time you start KDE the screensaver will automaticly start. You can edit everything about it by editing the xscreensaver-config file that extracting the RPM put into your system.

 

Of course all of this is also in the readme files and on freshmeat.

 

If anyone sees that I have screwed something up or forgot something then please correct my post. It has been several months since I did this.

Link to comment
Share on other sites

Guest JulesVerne

Thank you for answering so soon!

I should have mentioned 2 things.... I am sorry that I forgot it.

1. I already have xscreensaver installed and set up to work. So my only problem would be to get it startet without me having to open a shell and type "xscreensaver".

2. I don't really like KDE and Gnome, they are quite a little too much blowen up to fit my taste... so I am using IceWM and WindowMaker. Does that "/home/user/Autostart/.kde" thing also work on other window managers (such as IceWM and WMaker?)??

 

Okay, again, thank you!

 

Yours JulesVerne

Link to comment
Share on other sites

Does that "/home/user/Autostart/.kde" thing also work on other window managers (such as IceWM and WMaker?)??

 

NO

 

Take a look there -> http://www.mandrakeusers.org/viewtopic.php...1796&highlight=

 

Basically you have to make a file in your $HOME directory named .xinitrc and write your stuff that you want to start when you startx in that file. Here is mine and I use IceWM. I ONLY HAVE TO TYPE STARTX AND ICEWM LOADS.

 

icewm

gkrellm &

xscreensaver -nosplash &

play /home/gd/Programs/SoCool.wav & exit &

 

Hope that help

 

MottS

Link to comment
Share on other sites

To the best of my knowledge (which is little) Putting the starting scipt in xinitrc starts the xscreensaver when xstarts and placing it in the Autostart directory starts it when KDE starts.

Both do almost the same thing. but since I almost never use a desktop other than KDE i don't need it to start when X does. But I might change it eventualy.

 

And thanks for the corections!

Link to comment
Share on other sites

To the best of my knowledge (which is little) Putting the starting scipt in xinitrc starts the xscreensaver when xstarts and placing it in the Autostart directory starts it when KDE starts.

Both do almost the same thing. but since I almost never use a desktop other than KDE i don't need it to start when X does.

 

100% correct. But why not put it in a .xinitrc file regardless. that way, if you decide to play in another WM or desktop, your screensaver settings will be a non-issue...they'll always he there.

Link to comment
Share on other sites

I think I might. I didn't at first because i thought my brother would be logging onto this pc also and would want to setup everything himself the way he liked. but since he has since said no to that idea then its all mine to modify anyway I like. So I probobly will be doing that latter today. I've tried icewm and gnome but just didn't feel comfortable with them then. Now that I feel a little more comfortable modifeing them I'll try them more often.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...