LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   hostname, modprobe, run apache + mysql on startup (https://www.linuxquestions.org/questions/slackware-14/hostname-modprobe-run-apache-mysql-on-startup-159497/)

intense 03-18-2004 02:14 PM

hostname, modprobe, run apache + mysql on startup
 
1)first of all everytime I reboot my pc my hostname gets reset to "(none)"
I don't know why this is happening, but there probably is a config file where I can set the hostname permanently.

2) I would also like to automaticly modprobe my netwerkcard on boot, but don't know how.

3) I also have a lite-on JLMS XJ-HD166S DVD-rom/CD-rom drive wich isn't recognized, so if anybody knows wich module it needs that would be a big help.

4) I would also like to start apache and mysql on startup but I cant find the dir /etc/init.d so I suppose Slackware works different.



greetz

Tinkster 03-18-2004 04:41 PM

Ad 2.)
Which version of Slack is that?

Ad 3)
What exactly does "not recognised" mean?

Ad 4)
I don't know about MySQL, but apache
should be started automagically if you installed
the Slack-pack ...
In Slack, that entire process is handled by
the scripts in /etc/rc.d

Specifically, rc.M looks for /etc/rc.d/rc.httpd,
and whether it's executable .. if so, it's being
started.



Cheers,
Tink

intense 03-19-2004 12:06 AM

Slackware 9.1

and with not recognized i mean that when I installed Slack I only have one cd-drive while I have actually two in my computer.
there is only one cdrom in /dev

Tinkster 03-19-2004 12:37 AM

Any reference to the second device in
the output of
dmesg
?

Maybe somewhere under
/proc/ide/*/model
?
Code:

find /proc/ide -iname "*model*" -exec cat {} \;

Cheers,
Tink

bashrc2 03-19-2004 01:19 AM

1. type: hostname "yourhostname"
without ""
then edit /etc/hosts and add "yourhostname" there.
edit /etc/sysconfig/network and change the default hostname to "yourhostname".

2. under /etc/rc.d/rc.modules and a line:
/sbin/modprobe "yourNIC"
without ""

3. it must be /dev/cdrom0 or /dev/cdrom1 or /dev/hdb or /dev/hdc or /dev/hdd or /dev/sr0. these are usually your cdroms.

4. apache and mysql. check /etc/rc.d/
rc.httpd and rc.mysqld are there.
make sure they are executable.

Tinkster 03-19-2004 01:30 AM

Quote:

Originally posted by bashrc2
edit
/etc/sysconfig/network
In which version step did Pat adopt that DeadRat feature?!


Cheers,
Tink

bashrc2 03-19-2004 02:12 AM

ok I forgot /etc/sysconfig/network is for another distro.... my bad.

just type: netconfig
and follow the steps..

are you statisfied now tinkster?

intense 03-19-2004 09:09 AM

Everything works great now, thanks for helping me out

greetz


All times are GMT -5. The time now is 11:34 PM.