LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Quesions about Slackware Command. (https://www.linuxquestions.org/questions/slackware-14/quesions-about-slackware-command-529260/)

snowball0916 02-15-2007 07:13 AM

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?:confused:

snowball

stormtracknole 02-15-2007 07:17 AM

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.

reddazz 02-15-2007 07:19 AM

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.

stormtracknole 02-15-2007 07:26 AM

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.

reddazz 02-15-2007 07:31 AM

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.

snowball0916 02-15-2007 08:07 AM

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 ?

simcox1 02-15-2007 08:11 AM

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.

simcox1 02-15-2007 08:12 AM

All packages are listed in /var/log/packages.

reddazz 02-15-2007 11:28 AM

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. ;)

uselpa 02-15-2007 01:44 PM

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.

H_TeXMeX_H 02-15-2007 03:52 PM

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)

reddazz 02-16-2007 03:27 AM

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.

snowball0916 02-16-2007 05:56 AM

Thanks reddazz ,
You give me a lamp.
I will read it first before asking.

onebuck 02-16-2007 06:54 AM

Hi,

Welcome to Slackware!

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


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