LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-01-2004, 05:27 AM   #1
hunterfighter
Member
 
Registered: Oct 2004
Location: Malaysia, Kuala Lumpur
Distribution: FreeBSD
Posts: 65

Rep: Reputation: 15
XScreenSaver in startup


How to make the XScreenSaver deamon start when I login and startx.
I have add

xscreensaver-command -exit
xscreensaver &

in my initrc. But it can't work.
 
Old 11-01-2004, 07:06 AM   #2
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
man xscreensaver
 
Old 11-01-2004, 11:51 AM   #3
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Rep: Reputation: 15
If your logged in as a user, you don't need to do anything.

As a user, run:

ps -ef|grep xscreen

and you should see something like:

tpatrick 2450 1 0 10:17 ? 00:00:00 xscreensaver -nosplash

xscreensaver doesn't run as root, unless you do a little bit of configuration, which you can read in the man pages.

You don't need the entry in the initrc file.
 
Old 11-02-2004, 05:48 AM   #4
hunterfighter
Member
 
Registered: Oct 2004
Location: Malaysia, Kuala Lumpur
Distribution: FreeBSD
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jtp51
If your logged in as a user, you don't need to do anything.

As a user, run:

ps -ef|grep xscreen

and you should see something like:

tpatrick 2450 1 0 10:17 ? 00:00:00 xscreensaver -nosplash

My output is different

bash-2.05b$ ps -ef|grep xscreen
hunterf 12351 12106 0 Nov01 tty1 00:00:02 xscreensaver
hunterf 15016 15014 0 19:39 pts/0 00:00:00 grep xscreen
 
Old 11-02-2004, 11:52 AM   #5
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Rep: Reputation: 15
That's ok if your output is different...

If your logged in as a user. Find and Kill the process, then run:

Code:
xscreensaver
You should get the xscreensaver window, click 'settings'

Once you make your changes, under the File menu, select 'Restart Daemon' and after it's done processing, select 'Quit or Exit'

Then run:

Code:
ps -ef|grep xscreen
And you should see the xscreensaver process running.
 
Old 11-02-2004, 07:58 PM   #6
hunterfighter
Member
 
Registered: Oct 2004
Location: Malaysia, Kuala Lumpur
Distribution: FreeBSD
Posts: 65

Original Poster
Rep: Reputation: 15
Yah, now I have the output that same as you. Then now I need to repeat this step when each time I login and startx?
 
Old 11-02-2004, 08:58 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
It should work if you put it in your ~/.xinitrc file or if you want all users to use it put it in /etc/X11/xinit/xinitrc
 
Old 11-02-2004, 10:22 PM   #8
hunterfighter
Member
 
Registered: Oct 2004
Location: Malaysia, Kuala Lumpur
Distribution: FreeBSD
Posts: 65

Original Poster
Rep: Reputation: 15
What should I put in ~/.xinitrc ?

Is it
xscreensaver-command -exit
xscreensaver &

these?
 
Old 11-03-2004, 12:04 AM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Just xscreensaver& will do the work.
 
Old 11-03-2004, 03:31 AM   #10
hunterfighter
Member
 
Registered: Oct 2004
Location: Malaysia, Kuala Lumpur
Distribution: FreeBSD
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by gbonvehi
Just xscreensaver& will do the work.
I had try. It not really work. I still need to retype it again when I startx.
 
Old 11-03-2004, 03:35 AM   #11
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Are you sure that your xinitrc is being read? Where did you add that line, try adding some other program there like xterm& to see if it fires up. By the way, you have to add that line BEFORE the window manager get's executed.
 
Old 11-03-2004, 04:59 AM   #12
hunterfighter
Member
 
Registered: Oct 2004
Location: Malaysia, Kuala Lumpur
Distribution: FreeBSD
Posts: 65

Original Poster
Rep: Reputation: 15
Hehe. I write after the window manager executed. Thanks, it is working now.

Beside that, should I ask them close this thread?
 
Old 11-03-2004, 05:54 AM   #13
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Glad to hear it's solved

I don't think you should ask to close this thread, rarely a thread is closed here, most of them are because someone post the same thing on two different forums (it's not allowed, there are rules here ). The rest of the threads stay open in case someone with the same problem or a different solution want to take a look and post on it.
 
Old 11-04-2004, 05:07 AM   #14
hunterfighter
Member
 
Registered: Oct 2004
Location: Malaysia, Kuala Lumpur
Distribution: FreeBSD
Posts: 65

Original Poster
Rep: Reputation: 15
I see. Really thx your help hehe.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xscreensaver Biglinuxnewb Linux - Newbie 6 07-19-2006 11:09 AM
Running Xscreensaver at Startup burningsun1981 DamnSmallLinux 1 07-04-2005 01:04 AM
xscreensaver chilehead Linux - Software 3 10-28-2004 07:31 PM
How do I start programs on x startup? xscreensaver & gkrellm darkleaf Linux - Software 3 10-08-2004 04:15 PM
xscreensaver installed, but no xscreensaver-demo command? dalesan Linux - Software 7 09-01-2004 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration