LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 02-15-2007, 07:13 AM   #1
snowball0916
Member
 
Registered: Mar 2006
Location: China
Distribution: CentOS
Posts: 89

Rep: Reputation: 15
Question Quesions about Slackware Command.


Hi,folks

These days,I just finished the installation of slackware 11.And before this I use Fedora and Centos.When came to the world that make by slackware,I am very excited about its speed.But the its commands drive me crazy.

The question is I don't know how to get some commands to let it work.For instance,I used "service vsftpd start" to open the vsftp,but it can't work.And I tried to initialized the rp-pppoe,but "adsl-setup" can't work too,then I know "pppoe-setup" will work in Slackware.

So,could you guys can give me some suggestions on how to learn it's commands?

snowball
 
Old 02-15-2007, 07:17 AM   #2
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 779

Rep: Reputation: 103Reputation: 103
The equivalent to Fedora's service commands will be to look at the /etc/rc.d/ directory. In there, you will see the scripts to start samba, apache, nfs, etc. Since Slackware doesn't use init.d, all you have to do is chmod -x to prevent a service from starting or chmod +x to allow it. To start a service on the fly, do /etc/rc.d/rc.(service) start - stop - restart.

I hope this helps.
 
Old 02-15-2007, 07:19 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You can start services on Slackware (and any Linux distro) by doing something like
Code:
#/etc/init.d/service start
so for vsftpd, you would do
Code:
#/etc/init.d/vsftpd start
The "service" command is a Redhat (and derivatives) thing so doesn't work on other distros.
 
Old 02-15-2007, 07:26 AM   #4
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 779

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by reddazz
You can start services on Slackware (and any Linux distro) by doing something like
Code:
#/etc/init.d/service start
so for vsftpd, you would do
Code:
#/etc/init.d/vsftpd start
The "service" command is a Redhat (and derivatives) thing so doesn't work on other distros.
I don't think there is an actual /etc/init.d/ directory in Slackware.
 
Old 02-15-2007, 07:31 AM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by stormtracknole
I don't think there is an actual /etc/init.d/ directory in Slackware.
/etc/init.d should be available on all Linux distros. Its a standard that all distros should follow and most modern distros fully comply with it. Maybe Slackware has not done this one their distro but others like Redhat, Suse, Debian, Gentoo etc all comply by this convention.
 
Old 02-15-2007, 08:07 AM   #6
snowball0916
Member
 
Registered: Mar 2006
Location: China
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: 15
Thanks,
but if i want to check if a package is installed?what should i do?
how you guys learn that?
I wanna some methods that i can access the slackware quickly.
any good doc about the slackware command ?
 
Old 02-15-2007, 08:11 AM   #7
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Two problems here.

Firstly, there is no /etc/init.d on Slackware. I'm sure reddaz should know that. Services are in /etc/rc.d as stated. However, the second problem is that there is no /etc/rc.d/rc.vsftpd.

To start the ftp service, open /etc/inetd.conf in a text editor, and uncomment the following line:

#ftp stream tcp nowait root /usr/bin/tcpd vsftpd

Reboot to initialise it.
 
Old 02-15-2007, 08:12 AM   #8
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
All packages are listed in /var/log/packages.
 
Old 02-15-2007, 11:28 AM   #9
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by simcox1
Two problems here.

Firstly, there is no /etc/init.d on Slackware. I'm sure reddaz should know that.
I know Slack follows BSD conventions, but like I mentioned above, all Linux distros should now have services in /etc/init.d so I thought that Slack would have caught up by now (and hence my suggestion above). Anyway thanks for posting the solution.
 
Old 02-15-2007, 01:44 PM   #10
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Quote:
Originally Posted by simcox1
Reboot to initialise it.
No need to reboot. A simple "killall -HUP inetd" forces inetd to re-read its conf file.
 
Old 02-15-2007, 03:52 PM   #11
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Quote:
Originally Posted by reddazz
I know Slack follows BSD conventions, but like I mentioned above, all Linux distros should now have services in /etc/init.d so I thought that Slack would have caught up by now (and hence my suggestion above). Anyway thanks for posting the solution.
So, because of this, all the other distros are ahead of Slackware ? Or is it that Slackware does it the BSD way, and all the others do it the other way ?

Personally, I couldn't care less what the other distros do, I've tried them all, and I can tell you, this is absolutely and completely irrelevant and meaningless with respect to everything.

I chose Slackware because ...
Quote:
Since its first release in April of 1993, the Slackware Linux Project has aimed at producing the most "UNIX-like" Linux distribution out there. Slackware complies with the published Linux standards, such as the Linux File System Standard. We have always considered simplicity and stability paramount, and as a result Slackware has become one of the most popular, stable, and friendly distributions available.
http://www.slackware.com/info/

it is the most, if not one of the most standards compliant distros in existence. And, it just works. And it's set up in a way that makes sense, and is easy to configure (at least for me).

Hey, if you don't like it, don't use it.

@ snowball0916
Read the Slackbook (link in my sig)

Last edited by H_TeXMeX_H; 02-15-2007 at 03:54 PM.
 
Old 02-16-2007, 03:27 AM   #12
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I think you misinterpreted what I was saying above. It is now a standard in Linux distros that services should be in /etc/init.d. Most distros that have been released over the last few years now follow this convention (but many still keep their old way of managing services as well,), so I thought that the same would apply for newer versions of Slackware. I wasn't implying that Slackware was behind other distros in terms of features just because they are using a non standard way of managing services. And there is nowhere in my posts that would suggest that I don't like Slackware.

Anyway the OP has received help from others who are up to date with Slackware and there is no point in engaging in discussions that deviate from the original question.
 
Old 02-16-2007, 05:56 AM   #13
snowball0916
Member
 
Registered: Mar 2006
Location: China
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: 15
Thanks reddazz ,
You give me a lamp.
I will read it first before asking.
 
Old 02-16-2007, 06:54 AM   #14
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,882
Blog Entries: 1

Rep: Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307
Hi,

Welcome to Slackware!

You could look at my sig for some good online reference.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Few lame quesions.......... b0nd Linux - Newbie 5 01-27-2005 08:32 AM
The command to install slackware 9.1 Skeletor666 Slackware - Installation 0 11-01-2004 03:46 PM
Various Linux newbie quesions. BBB Linux - Newbie 2 09-17-2004 09:00 PM
Couple Quesions about Hardware/software issues apocolipse Slackware 1 11-14-2003 08:34 PM
Quesions about SCSI devices using AHA-1510 jaylee Linux - General 11 06-18-2003 05:08 AM


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

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