This is a discussion on 2 tiny newb problems within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> (Tiny problems, not a tiny newb!) Just discovered Slackware 10.1. After using Mandrake for a year, this distro seems ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| (Tiny problems, not a tiny newb!) Just discovered Slackware 10.1. After using Mandrake for a year, this distro seems like the perfect next step for learning a bit about Linux. Two small points I can't find info on though. 1. When selecting 'logout - Turn off computer' from KDM, I'm taken to a 'power down' prompt, where Mandrake 10.1 goes a step further and switch's the computer off. Is it possible for Slackware to do this? 2. How do I stop those 'amusing' random quotes each time I open a console (something to do with fortune)? Thanks. |
| |||
| On Sat, 09 Jul 2005 11:54:47 +0000, glen wrote: > 1. When selecting 'logout - Turn off computer' from KDM, I'm taken to a > 'power down' prompt, where Mandrake 10.1 goes a step further and > switch's the computer off. Is it possible for Slackware to do this? Uncomment the "apm" inserting line in /etc/rc.d/rc.modules and (re)run it. (Alternatively: switch to a the bareacpi.i kernel (IIRC)) > 2. How do I stop those 'amusing' random quotes each time I open a > console (something to do with fortune)? chmod -x /etc/profile.d/bsd-* -- -Menno. |
| |||
| glen wrote : > Just discovered Slackware 10.1. After using Mandrake for a year, this > distro seems like the perfect next step for learning a bit about Linux. > Your right, Slackware is perfect for this purpose. > > 1. When selecting 'logout - Turn off computer' from KDM, I'm taken to a > 'power down' prompt, where Mandrake 10.1 goes a step further and > switch's the computer off. Is it possible for Slackware to do this? > As root run '/sbin/modprobe apm' and if this has the effect you want then edit /etc/rc.d/rc.modules and remove the # from the line with this command. > 2. How do I stop those 'amusing' random quotes each time I open a > console (something to do with fortune)? Again as root remove the executable bit from /etc/profile.d/bsdgames.sh this way: 'chmod a-x /etc/profile.d/bsdgames.sh' -- Thomas O. This area is designed to become quite warm during normal operation. |
| |||
| On 2005-07-09, glen wrote: > 1. When selecting 'logout - Turn off computer' from KDM, I'm taken to a > 'power down' prompt, where Mandrake 10.1 goes a step further and > switch's the computer off. Is it possible for Slackware to do this? as root edit /etc/rc.d/rc.modules, look for the "APM" support section about line 40 and uncomment the line "/sbin/modprobe apm". The apm module enables full shutdown on most pc's as well as power savings on laptops. > 2. How do I stop those 'amusing' random quotes each time I open a > console (something to do with fortune)? fortunes are part of the bsd-games package so you can remove that package but iirc fortunes can also be turned off by commenting out it's entry in rc.M. or some other init script. # ls /var/log/packages/bsd-games* # removepkg bsd-games-<version> -- keithmg. |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Give a fish; teach to fish. In alt.os.linux.slackware, Thomas Overgaard dared to utter, >> 1. When selecting 'logout - Turn off computer' from KDM, I'm taken to a >> 'power down' prompt, where Mandrake 10.1 goes a step further and >> switch's the computer off. Is it possible for Slackware to do this? >> > As root run '/sbin/modprobe apm' and if this has the effect you want > then edit /etc/rc.d/rc.modules and remove the # from the line with this > command. APM is an old power management function available as a module in the kernel. About all it ever does these days is turn off a computer. Most people that require power management to do anyhting more than turn the box off (example: all laptop users) use ACPI, which is another (more powerful) power manager, though not quite so universally supported. By inserting that module into your kernel, the kernel now has the ability to tell the motherboard to tell the power supply to turn off. >> 2. How do I stop those 'amusing' random quotes each time I open a >> console (something to do with fortune)? > > Again as root remove the executable bit from /etc/profile.d/bsdgames.sh > this way: 'chmod a-x /etc/profile.d/bsdgames.sh' This works because most shells look at a file called /etc/profile for some sensible defaults. Unless I miss my guess; you're using bash, and bash is definately one of those shells. Inside /etc/profile you'll find a section that looks like this: /etc/profile ============ # Append any additional sh scripts found in /etc/profile.d/: for profile_script in /etc/profile.d/*.sh ; do if [ -x $profile_script ]; then . $profile_script fi done unset profile_script ============ Basically that says for anything in /etc/profile.d/ that ends with ".sh"; execute it. - -- It is better to hear the rebuke of the wise, Than for a man to hear the song of fools. Ecclesiastes 7:5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD4DBQFC0Al9zLTO1iU1uO4RAmw0AJ9myVoRxqN+J5gW89kMoV K6oJkQXwCYn44X nUlo+/QtJbl9O4dujykzDw== =wFjn -----END PGP SIGNATURE----- |
| |||
| +Alan Hicks+ wrote: >>>1. When selecting 'logout - Turn off computer' from KDM, I'm taken to a >>>'power down' prompt, where Mandrake 10.1 goes a step further and >>>switch's the computer off. Is it possible for Slackware to do this? >>> >> >>As root run '/sbin/modprobe apm' and if this has the effect you want >>then edit /etc/rc.d/rc.modules and remove the # from the line with this >>command. > > > APM is an old power management function available as a module in the > kernel. About all it ever does these days is turn off a computer. > Most people that require power management to do anyhting more than turn > the box off (example: all laptop users) use ACPI, which is another > (more powerful) power manager, though not quite so universally > supported. > > By inserting that module into your kernel, the kernel now has the > ability to tell the motherboard to tell the power supply to turn off. > > >>>2. How do I stop those 'amusing' random quotes each time I open a >>>console (something to do with fortune)? >> >>Again as root remove the executable bit from /etc/profile.d/bsdgames.sh >>this way: 'chmod a-x /etc/profile.d/bsdgames.sh' > > > This works because most shells look at a file called /etc/profile for > some sensible defaults. Unless I miss my guess; you're using bash, and > bash is definately one of those shells. Inside /etc/profile you'll > find a section that looks like this: > > /etc/profile > ============ > > # Append any additional sh scripts found in /etc/profile.d/: > for profile_script in /etc/profile.d/*.sh ; do > if [ -x $profile_script ]; then > . $profile_script > fi > done > unset profile_script > > ============ > > Basically that says for anything in /etc/profile.d/ that ends with > ".sh"; execute it. Thanks to all, for the advise and information, not only did the advice work, I've even got an idea of WHY it worked. Great! |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In alt.os.linux.slackware, glen dared to utter, > Thanks to all, for the advise and information, not only did the advice > work, I've even got an idea of WHY it worked. Exactly. Give a man a fish and he'll eat for a day. Teach a man to fish and he'll eat for a lifetime. BTW, please trim your quoted material when making replies. - -- It is better to hear the rebuke of the wise, Than for a man to hear the song of fools. Ecclesiastes 7:5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFC0DT2zLTO1iU1uO4RAhRRAJ99pqXSD/wDEgCEXQPH620Obh+C6gCfbViv kYqfWnNpAG4DvRzp/OF8H4E= =kce5 -----END PGP SIGNATURE----- |
| |||
| Le Sat, 09 Jul 2005 15:36:18 -0500, +Alan Hicks+ a écrit*: > Give a fish; teach to fish. Now eat a peach ;-) As you, and manies -- including me --, say here : > BTW, please trim your quoted > material when making replies. Another effort can be made .. Trim your sigs when re-re-replying, especially when it bears its own sentence ;-D) > It is better to hear the rebuke of the wise, > Than for a man to hear the song of fools. -- I am not a fool, I'm just looking for a man. Diogenes |
| ||||
| +Alan Hicks+ <alan@lizella.network> trolled: I am +Alan Hicks+ and I want to take it up the ass with a baseball bat wielded by a big black batsman. Please give it to me up the ass. Can I collect the reward if I take my own life? How would I go about collecting the reward for my assassination? I would like a baseball bat shoved all the way up my ass, so far that the shit comes out of my mouth. Because I am +Alan Hicks+ and my destiny is death. _________________________________________ Usenet Zone Free Binaries Usenet Server More than 120,000 groups Unlimited download http://www.usenetzone.com to open account |