LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-01-2004, 01:52 PM   #1
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Rep: Reputation: 30
Slack Newbie Questions


It's been almost a week since I installed Slack on my Toshiba 1625CDT laptop. I am loving every minute of it!!!! I'm so pleased with this distribution that I am going to install it on my wife's 7 year old IBM Thinkpad that she uses for school. Being new to Slack I have a few questions.

1- I would like to use a custom memmory map with the kernel as it boots up. When I ran Fedora, I would simply add the instructions in the grub.conf file. With Slack I am using LILO and I am not sure what file to edit and where in that file I should add the command. (Note: The system has 320MB of RAM installed, but only detects 64MB of it WITHOUT the mem map)

2- I would like to turn off some daemons that are running including "sendmail." What file do I need to edit in order to prevent certain daemons from running on startup?

I know I have a couple more questions, but right now I am drawing a blank. If anyone can help me out with the 2 questions above, I would greatly appreciate it.
 
Old 07-01-2004, 02:00 PM   #2
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
2. network daemons are generally started in /etc/rc.d/rc.inet2

hope this helps.

note: i'm on an xp box at work and can't specifically check where sendmail is started.
 
Old 07-01-2004, 02:07 PM   #3
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
1. not familiar with memmap in particular, but if it is an argument that you pass to the kernel at boot time then you can add the command line in /etc/lilo.conf and make it:

append = "yourargumenthere"

i use append = "hdc=ide-scsi" in mine for scsi emulation for my cdrw.

hope this helps.

Edit: typical disclaimer: ALWAYS back up your lilo.conf file when editing it

Last edited by lyceum; 07-01-2004 at 02:31 PM.
 
Old 07-01-2004, 04:14 PM   #4
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
New Questions...

New Questions:

3- How to I allow users other than root to have the ability to mount partitions? I tried mounting a floppy disk from KDE as user "todd", but it said I must be root in order to mount the partition.

1b - Where in the lilo.conf file do I add this argument?

Here?

image = /boot/vmlinuz append="command"
root = /dev/hda1
label = Linux
read-only

I'm sorry if this is a VERY newbie question.

2b- /etc/rc.d/rc.inet2 looks like a script. What file contains the list of daemons that run on startup like sendmail, CUPS, xine, etc??

Thanks!!
 
Old 07-01-2004, 04:19 PM   #5
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
For question 2, Slackware provides an easy way to turn the daemons on/off............

1) Run 'pkgtool' as root on the command line in a console. A menu will appear.

2) Highlight "Setup" and hit <Enter>.

3) In the next screen that appears, scroll down and highlight "services", hit the spacebar to select it and hit <Enter>.

4) Now you will be able to select or deselect the services you want to run at startup. Just highlight the service and use the spacebar to select or deselect them.

5) Hit <Enter> twice to exit the program, making sure "OK" (at the bottom of the menu) is highlighted each time.

What this does is to make the rc scripts in /etc/rc.d executable to run the script at boot time, or remove the executable permisions to prevent the service from starting up at boot time..................You could do the same thing by running 'chmod 644' on each startup script in /etc/rc.d for the service you don't want to run at boot time, or run 'chmod 755' on the startup scripts for the services you do want to start at boot time. Again, you must be root to change permissions on the startup scripts.

At a bare minimum, you will want to run "rc.cups" for the printer (only if you've installed cups and use it for printing) and "rc.inetd" (unless you installed xinetd and use that instead)




PS: Do _not_ edit rc.inet2 for making changes on whether a certain service is started or not at boot time. The correct procedure is to change the executable permissions on the script that runs the service. rc.inet2, as well as the other main starutp scripts, will first check to see if a particular rc script is executable or not and act accordingly............

Last edited by thegeekster; 07-01-2004 at 04:30 PM.
 
Old 07-01-2004, 04:22 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Startup scripts are in /etc/rc.d/, to simply avoid running sendmail you have to only make rc.sendmail there non-executable, chmod -x /etc/rc.d/rc.sendmail
same for other scripts.
All startup scripts are there, you can see them and see what they do, it's not difficult they are very well documented.
Another file to check is /etc/inetd.conf, that's inetd daemon config file, it'll startup services as needed read it, it's not difficult too understand too you just have to comment with a # the services you don't want.
Mounting floopy as non-root user is not a lilo stuff, but /etc/fstab thing. Just edit that file and in the line of the floppy change the word "owner" with "user" and it should be mounted by any user.
I dunno about the memory map stuff, i can't help u there

EDIT: forgot to say, /etc/rc.d/rc.M is in charge of calling the rest of scripts (rc.sendmail, rc.cups, etc)

Last edited by gbonvehi; 07-01-2004 at 04:23 PM.
 
Old 07-01-2004, 04:39 PM   #7
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
Re: New Questions...

Quote:
Originally posted by tubatodd
...
1b - Where in the lilo.conf file do I add this argument?

Here?

image = /boot/vmlinuz append="command"
root = /dev/hda1
label = Linux
read-only
...
The "append" command is on a separate line, like so:
Code:
image = /boot/vmlinuz
  root = /dev/hda1
  label = Linux
  read-only
  append = "command1" "command2" ...
As you can see, you can use more than one command on the "append" line.......

 
Old 07-01-2004, 05:03 PM   #8
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Thanks!!

Wow, talk about speed.

*I post a couple more questions.
*I leash up Biscuit (our Dog).
*I take Biscuit for a walk.
*I come back in the house.
*I check the LinuxQuestions.org

POOF....someone has already replied.

Thank you Thank you Thank you!! I tried all of the suggestions above and my problems have been solved. I'm sure I will have more questions soon.
 
  


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
Several Questions Concerning Slack Mercurius Slackware 5 10-07-2005 11:43 AM
Newbie just installed slack - quick questions ksl Slackware - Installation 3 07-04-2005 09:01 AM
slack newbie questions, vi, xorg 3button mouse, tripleboot with lilo darkleaf Slackware 7 02-24-2005 04:59 AM
Slack 10: 2 questions. Kyl3 Slackware 28 11-21-2004 03:22 AM
Slack 9.1-questions nightweaver Slackware 6 10-14-2003 10:48 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration