| View previous topic :: View next topic |
| Author |
Message |
tmafcerqueira n00b


Joined: 31 Dec 2006 Posts: 23
|
Posted: Wed Mar 05, 2008 12:53 pm Post subject: [Solved]Few quick questions |
|
|
Hey there,
I would like to ask a few questions, so here they are:
1- I have to run umount before shutdown, on two remote shares, otherwise the computer takes ages to shutdown. Can I edit the shutdown script to do that automatically, or is there another work-around?
2-Is there any deamon to check for emails on a server like yahoo and then run a command if the there are some on the server, or if a new email has arrived? Because my laptop has a blinking light that can be activated by running "led mail on" and that would be quite usefull.
3-How can activate kernel modules at boot time?
4-Is there any program to check the acess speed of files on a disk?
Thanks
PS: I'm using debian, but you guys are the true gurus, and I'm getting no replys in the debian forums.
Last edited by tmafcerqueira on Thu Mar 06, 2008 5:16 pm; edited 1 time in total |
|
| Back to top |
|
 |
einheitlix Tux's lil' helper

Joined: 03 Aug 2004 Posts: 144 Location: Saarbrücken, Germany
|
Posted: Wed Mar 05, 2008 1:10 pm Post subject: |
|
|
At least I can answer questions 1 and 4
1) I think the easiest thing to do would be a little script in /usr/local/bin that first runs umount, then shutdown... like this:
#!/bin/bash
umount (whatever)
shutdown -h now
You could of course perfect it with things like sudo, to be able to do this as a user etc.
2) Don't know of any, but that's sure as hell possible At least if Yahoo supports POP3, which I think it does. Writing such a script would then be very simple. If there's not already such a daemon, you could easily write one yourself, look up the specs of POP3...
3) In Gentoo this would just require adding the wanted modules to /etc/modules.autoload.d/kernel-2.6
In Debian this can be done somehow in modprobe.conf I think, but don't ask me how, it's been such a long time...
4) hdparm
Cheers
Malte _________________ Collecting data is only the first step toward wisdom. But sharing data is the first step toward community. |
|
| Back to top |
|
 |
tmafcerqueira n00b


Joined: 31 Dec 2006 Posts: 23
|
Posted: Wed Mar 05, 2008 2:47 pm Post subject: |
|
|
As for the first point, after creating that script, the only way to activate it would be using the command line. Is there any way to activate it by using the shutdown gui (the logout menu)?
Thanks |
|
| Back to top |
|
 |
einheitlix Tux's lil' helper

Joined: 03 Aug 2004 Posts: 144 Location: Saarbrücken, Germany
|
Posted: Wed Mar 05, 2008 4:27 pm Post subject: |
|
|
Probably. It depends on which desktop environment you are using and what this "logout menu" does and how it is implemented. See if you can configure it somehow, or try to track down which scripts it calls. I can't tell you more which such little information... _________________ Collecting data is only the first step toward wisdom. But sharing data is the first step toward community. |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 21678 Location: 56N 3W
|
Posted: Wed Mar 05, 2008 4:35 pm Post subject: |
|
|
tmafcerqueira,
Put your umount commands into the file /etc/conf.d/local.stop, just as you would type them at the keyboard.
kernel module autoloading, udev, and /etc/modules.d/* will get most of the modules you need if your system is set up properly.
Name the stragglers in /etc/modules.autoload.d/kernel-2.6 follow the comments in the file
If you want to do a is my DMA working then hdparm /dev/... tells you.
hdparm -tT /dev/... will do a crude speed test too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 21678 Location: 56N 3W
|
Posted: Wed Mar 05, 2008 4:36 pm Post subject: |
|
|
Moved from Other Things Gentoo to Unsupported Software.
Because we don't support Debian
Debian has its own versions of the files I named _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
tmafcerqueira n00b


Joined: 31 Dec 2006 Posts: 23
|
Posted: Wed Mar 05, 2008 5:30 pm Post subject: |
|
|
Ok, so I've eliminated number 3 with help from people at the debian forums and number 4 with the help of NeddySeagoon.
Thanks for the help so far  |
|
| Back to top |
|
 |
tmafcerqueira n00b


Joined: 31 Dec 2006 Posts: 23
|
Posted: Thu Mar 06, 2008 5:16 pm Post subject: |
|
|
I've solved all four issues with the help of the debian forums's users.
Here's the link for the post, if you have similar issues. |
|
| Back to top |
|
 |
|