[Previous entry: "19 horseshoes so far at JavaRanch"] [Next entry: "Names are important"]
09/27/2004: "Linux for a dummy (Guess who?)"
I am typing this entry from my laptop, from which Windows is temporarily banished. Yes, I am running RedHat Linux 9 on my laptop, and although it's only been a couple of days, so far, so good. I will be learning a great deal about administering a Linux machine in the coming months, and I will share a little of that with you. This is the first instalment, regarding startup scripts. I'd never quite got this right before, but now that it really matters, it's important enough to me to get right.
I wanted to add popfile, the nice e-mail filter, to my machine as a startup service. Here is how I did it.
- I found a good
init.dscript forpopfileon the web here. - I copied the initialization script to my file system at
/etc/init.d. - I made the script executable by the world. (
chmod a+x popfile) - I ran the script and realized it had hardcoded
/usr/local/popfileas the location on the file system ofpopfile, then fixed that setting. - I ran the script again to see it work.
- I added two symbolic links, once at
/etc/rc5.dand at/etc/rc3.d, that pointed to../init.d/popfile. The links are namedK80popfileandS80popfile: the former kills the program and the latter starts it. - I stumbled across the Services configuration tool in my desktop manager and ran it, which showed
popfileas a service, and I checked it to make sure it executed at system startup. I made a note to remember that next time. - I restarted my laptop, which thankfully takes only about 30 seconds now.
- I celebrated seeing
popfilerunning on startup!
This might be old hat for some of you out there, but I never had the courage to depend this little on Windows before. I do now. I'll be looking for help and advice, too. As they say, thanks in advance for that.
