LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-18-2004, 02:14 PM   #1
intense
LQ Newbie
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware / Ubuntu
Posts: 25

Rep: Reputation: 15
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

Last edited by intense; 03-18-2004 at 02:26 PM.
 
Old 03-18-2004, 04:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
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
 
Old 03-19-2004, 12:06 AM   #3
intense
LQ Newbie
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware / Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
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

Last edited by intense; 03-19-2004 at 12:14 AM.
 
Old 03-19-2004, 12:37 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
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
 
Old 03-19-2004, 01:19 AM   #5
bashrc2
Member
 
Registered: Feb 2004
Distribution: slackware 9.1
Posts: 106

Rep: Reputation: 15
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.
 
Old 03-19-2004, 01:30 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
Old 03-19-2004, 02:12 AM   #7
bashrc2
Member
 
Registered: Feb 2004
Distribution: slackware 9.1
Posts: 106

Rep: Reputation: 15
ok I forgot /etc/sysconfig/network is for another distro.... my bad.

just type: netconfig
and follow the steps..

are you statisfied now tinkster?
 
Old 03-19-2004, 09:09 AM   #8
intense
LQ Newbie
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware / Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
Everything works great now, thanks for helping me out

greetz
 
  


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
Debian run MySQL on Startup baandar Linux - Software 3 09-02-2004 01:45 AM
Getting MySql to run on startup jriis Debian 8 03-16-2004 12:20 PM
I want MySQL to run at startup WorldBuilder Linux - General 12 06-14-2003 01:45 AM
Apache and MySQL servers won't run at startup! dday007 Linux - Newbie 2 02-07-2003 04:01 PM
Apache server and MySQL server won't run at startup! dday007 Linux - General 2 02-07-2003 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:09 AM.

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