LinuxQuestions.org
Review your favorite Linux distribution.
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 03-01-2003, 10:13 AM   #1
m32
Member
 
Registered: Feb 2003
Location: Cedar Park, TX
Distribution: Slackware 9.0, RH 9
Posts: 39

Rep: Reputation: 15
2 config questions -- esd and xscreensaver


Hi,

I would like the esd and xscreensaver daemons (processes ?) to load automatically.

In slack, is there a config file where these are already located, and I just need to uncomment them?

If not, which file do you suggest I put them in, and what syntax, please?

If it matters, I'm running Slack 8.1 and enlightenment as my wm.
 
Old 03-01-2003, 01:12 PM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
I would think a simple command in the /etc/rc.d/rc.local file to call "esd" would be sufficient to start the sound daemon. My system simply starts esd when it is required by the app. But I do not use sound events like system sounds, etc.

For xscreensaver, there is an extensive man page, man xscreensaver, available. You might to review it. It appears that it can be called directly, but not sure what resources are required, like X running or not, that might make it difficult for the rc.local file. It does discuss using it with xdm as a graphical login manager. That is generally at runlevel 4, instead of runlevel 3.

Others here may have more experience with the screensaver that they may be able to add. I just turn my monitor off, I know it is old fashioned but it works.
 
Old 03-01-2003, 06:09 PM   #3
m32
Member
 
Registered: Feb 2003
Location: Cedar Park, TX
Distribution: Slackware 9.0, RH 9
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Excalibur
I would think a simple command in the /etc/rc.d/rc.local file to call "esd" would be sufficient to start the sound daemon.
Please help me. I put the esd line in rc.local, and now I cannot boot my system at all.

I hear esd starting up with its chorus of beeps, and then the boot process simply stops.

I have the timout in lilo set to 0, due to a suggestion at the Simply Linux site, so I can't really put anything in there.

Please, please tell me I don't have to format and reinstall yet again.

This is one of the frustrating things about slackware...all I wanted was to start a sound server, and instead I now cannot boot.

If I have to reinstall again, it would be somewhat frustrating.

Last edited by m32; 03-01-2003 at 06:15 PM.
 
Old 03-01-2003, 06:20 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
right, yeah that was a bit of a mistake, you did not make it fork (it doesn't without being told to with an ending & on the line). ok so firstly change that timeout to something useful (why did you do that??!?! here's an idea, never listen to Simply Linux again ). before that though, afaik you should be able to not process the rc.local file if you do the whole Press I to enter Interactive Mode thing (i presume slack does that too...?) then you should get to something resembling a login. then you should be able to edit the rc.local file. ifnot, just get a boot disk, or rescue disk like tomsrtbt to get in and change the file.

as a matter of fact though, you shouldn't need to tell esd to load, applications set to use it will typically spawn their own private instances on the spot.

as for xscreensaver, add it to /home/you/.xsession, not rc.local as i'm pretty damn sure it actually needs an X server to attach to...
 
Old 03-01-2003, 06:56 PM   #5
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
Sorry about that m32, since it was a daemon; I thought it was the only way it would run was a background daemon. Adding the "&" after the command should allow it to fork as Acid stated. I have no idea about the chorus of beeps though.

I would suggest booting the Slackware install CD. Login and use the following command to mount your root file system.

mount /dev/hda1 /mnt

Substitute your root file system partition for the hda1 above. Then you can

cd /mnt/etc/rc.d
vi rc.local

If you are not familiar with vi as an editor then perhaps just "chmod 000 rc.local" instead. That will stop it from executing.

cd /
umount /mnt
and then reboot as normal. You can then edit the rc.local file as desired and also change the permissions back if needed from above.

chmod 755 /etc/rc.d/rc.local

You might want to work with esd stand alone first before actually using it in the rc.local file. Actually I verify everything before I put anything in my boot sequence. It is to easy to run a standalone script for testing just to make sure it performs as I desire. You can also create your own scripts and call them from the rc.local file as desired.

The man page for esd states the -nobeeps option can be used to disable startup beeps. (man esd)

Last edited by Excalibur; 03-01-2003 at 07:05 PM.
 
Old 03-01-2003, 07:10 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
unless you start esd with -nobeeps it plays a set of tones to prove it's working.
 
Old 03-02-2003, 09:32 AM   #7
m32
Member
 
Registered: Feb 2003
Location: Cedar Park, TX
Distribution: Slackware 9.0, RH 9
Posts: 39

Original Poster
Rep: Reputation: 15
Thank both of you for replying.

I'll try your suggestions this morning.

I wasn't upset with the esd beeps--I like those--they tell me its running.

Right now, I'm going to see if I can get the system to boot, then I'll go from there.
 
Old 03-02-2003, 09:51 AM   #8
m32
Member
 
Registered: Feb 2003
Location: Cedar Park, TX
Distribution: Slackware 9.0, RH 9
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Excalibur
Sorry about that m32, since it was a daemon; I thought it was the only way it would run was a background daemon. Adding the "&" after the command should allow it to fork as Acid stated. I have no idea about the chorus of beeps though.

I would suggest booting the Slackware install CD. Login and use the following command to mount your root file system.

mount /dev/hda1 /mnt

Substitute your root file system partition for the hda1 above. Then you can

cd /mnt/etc/rc.d
vi rc.local
Thanks, the above worked, and I'm posting this from the laptop that had the problem.

Thanks again to both of you, and actually, I'm glad I "messed it up," because thanks to your second tip, Excalibur, I now know how to get past bad rc. files. Learning this tip alone was very much worth it. I now feel a bit better about messing around with the rc files.


Further questions, though, if I may.

1. You both note that esd starts up automatically for you. I'm running enlightenment, and when I try to enable audio when esd is not running, I get a basic error telling me that audio can't be enabled. Same thing if I boot into Gnome, or KDE. Except with KDE, I get something about a directory. I don't remember what that was, but since I don't want to boot into anything but e right now, I wasn't worried.

Is there a different setting I should apply, as opposed to enabling the daemon? Its not really an "emergency," but its for things like cute noises when you iconify a tool, or close e, or what not.

2. Acid, the reason those emergency boot disks wouldn't work for me (currently), is that they aren't in iso format...since my linux laptop was down, I only had my windoze pc to post the above messages. See, the laptop only has one slot for both the cd and the floppy. You have to take out the cd player, pop in the floppy, and then go from there.

And if I take out the cd player, and try to mount floppy, nothing happens--at least, in my last distro (mandrake)...I haven't tried it in Slack.

In windows, there was a tool that would "stop" the cd player, and then allow me to take it out without any system errors, and then insert the floppy disk drive. Is there any such tool in linux/slack? Or iis it a matter of unmounting the cdrom, and then mounting the floppy?


Thank you both again.

Last edited by m32; 03-02-2003 at 09:53 AM.
 
Old 03-02-2003, 12:09 PM   #9
m32
Member
 
Registered: Feb 2003
Location: Cedar Park, TX
Distribution: Slackware 9.0, RH 9
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie


as for xscreensaver, add it to /home/you/.xsession, not rc.local as i'm pretty damn sure it actually needs an X server to attach to...
Oh, and on this as well...I don't have the home/marcus/.xsession directory.

There is a home/marcus/.xsession-errors directory.

Should I make the .xsession directory?
 
Old 03-02-2003, 12:17 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's a text file, not a directory. the contents is run, if it exsts, everytime X loads.
 
Old 03-04-2003, 07:31 PM   #11
m32
Member
 
Registered: Feb 2003
Location: Cedar Park, TX
Distribution: Slackware 9.0, RH 9
Posts: 39

Original Poster
Rep: Reputation: 15
well, figured out the esd issue.

actually, logging into KDE again gave me a better error message:

/dev/dsp: can't load device (permission denied).

So, searched this forum and did the chmod 666 /dev/dsp, and now things seem to be working fine.

my .xsession text file didn't seem to work, but I'll see if I can figure that one out with the man file.

thanks again for all the help.
 
Old 03-06-2003, 08:45 AM   #12
m32
Member
 
Registered: Feb 2003
Location: Cedar Park, TX
Distribution: Slackware 9.0, RH 9
Posts: 39

Original Poster
Rep: Reputation: 15
and got a good answer on the xscreensaver issue

Sorry,

Just putting this in here in case anyone is doing searches looking for answers.

For enlightenment users:

edit .enlightenment/...e_session-XXXXXX.snapshots.0

put this at the end:

NEW: XScreensaver.xscreensaver
NAME: XScreensaver
CLASS: xscreensaver
CMD: xscreensaver -no-spash


Thanks to the enlightenment users mailing list for this tip. Hope that helps some other "noobs"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 questions TomalakBORG Linux - Software 2 05-08-2005 12:47 AM
xscreensaver installed, but no xscreensaver-demo command? dalesan Linux - Software 7 09-01-2004 01:06 PM
firewall config questions robhargreaves Linux - Security 2 05-30-2004 05:46 AM
2 Questions About Config inescapeableus Linux - Newbie 2 04-26-2004 01:09 PM
.config and kernel questions Machiaveli Slackware 5 01-22-2004 06:55 AM

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

All times are GMT -5. The time now is 10:46 AM.

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