LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-13-2006, 02:00 PM   #1
sklitzz
Member
 
Registered: Feb 2006
Location: Croatia, Split
Distribution: Ubuntu 7.10
Posts: 93

Rep: Reputation: 15
Newbie and tuning


Hi,
I installed slackware a month ago and since then I've learned a lot of stuff about linux in general. My Slack is working everything I asked it to do. Now I would like to speed it up by shutting down processes that I don't need(also securing the system). Could you give me some pointers on how to shutdown processes and how to know if I need some process?

TIA
 
Old 02-13-2006, 03:41 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Shutting down a process can be done several ways. As an example, an easy way to stop ssh that uses the startup scripts is:
Code:
/etc/rc.d/rc.sshd stop
To completely disable ssh:
Code:
chmod -x /etc/rc.d/rc.sshd
As far as which ones you need goes - can you post the list of files in /etc/rc.d that have the executable bit set? They are the scripts that start your system services.
 
Old 02-13-2006, 03:53 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
A number of services are also started from /etc/inetd.conf, you might want to look in there as well.
 
Old 02-14-2006, 03:27 AM   #4
sklitzz
Member
 
Registered: Feb 2006
Location: Croatia, Split
Distribution: Ubuntu 7.10
Posts: 93

Original Poster
Rep: Reputation: 15
Thank yu for your replies but could you point me to a site where I can see some more info about those processes and their descriptions so know if I'm gonna use them.
 
Old 02-14-2006, 07:42 AM   #5
SaintsOfTheDiamond
Member
 
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139

Rep: Reputation: 15
Shilo's site has some good general info. There's nothing about specific applications but it's a starting point if nothing else.
 
Old 02-14-2006, 09:03 AM   #6
nonades
Member
 
Registered: Sep 2005
Location: VTC, VT
Distribution: Fedora 11
Posts: 46

Rep: Reputation: 15
I was actually thinking about posting something along these lines. Like what services to disable on startup (from a pretty much stock 10.2 install)? I know I can do without ssh but thats about it.

I'll check out that site SotD (and if its good, props to Shilo).
 
Old 02-14-2006, 10:13 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,982
Blog Entries: 46

Rep: Reputation: 3203Reputation: 3203Reputation: 3203Reputation: 3203Reputation: 3203Reputation: 3203Reputation: 3203Reputation: 3203Reputation: 3203Reputation: 3203Reputation: 3203
Quote:
Originally Posted by sklitzz
Hi,
I installed slackware a month ago and since then I've learned a lot of stuff about linux in general. My Slack is working everything I asked it to do. Now I would like to speed it up by shutting down processes that I don't need(also securing the system). Could you give me some pointers on how to shutdown processes and how to know if I need some process?

TIA
Hi,

Services that YOU (express the you) need will indeed depend on what you want to do with your system. You should do a little reading about how the process really works! If you are concerned about security that is another matter. But to shutdown a process that you feel will increase system speed is not good reason that will produce the results you expect.

Several good references in my sig. Do some google on what a process is and how it is handled. Even search on multitasking and you will get some interesting results.

As for the services that you can shutdown, any that you will not be using!

HTH!
 
Old 02-14-2006, 03:22 PM   #8
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
This short How-To does not directly address your question, but does provide a recommended minimal list of which services to maintain:

Getting Started

That is, users can disable many services and still have a bootable box. The next question is which services can be disabled and yet provide a usable box. Answering that question is defined by each user.

When I first started tinkering with this stuff I maintained only the minimal number of services necessary. As I progressed in my journey and knowledge I slowly added additional services. However, do know that I was in no rush to install networking, internet access, printers, etc. I was content to progress slowly and deliberately. An inexpensive second-hand box is useful in this respect because one can learn while not impacting the primary production box.

I dislike the general approach among distro vendors to try to guess which services a user might need or, simply enabling all services. I would much rather see distros packaged with just about all services disabled. Users will quickly learn which services to enable when they try to perform various functions with their box. But that is only my opinion.
 
Old 02-15-2006, 01:19 AM   #9
sklitzz
Member
 
Registered: Feb 2006
Location: Croatia, Split
Distribution: Ubuntu 7.10
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Woodsman
...I would much rather see distros packaged with just about all services disabled. Users will quickly learn which services to enable when they try to perform various functions with their box. But that is only my opinion.
I couldn't agree more! This way I(as a newbie) have a lot of services running and most of them I don't know what they do. If I wanted something to with that service I would just go and start it, and on the way learn something about it.
 
Old 02-15-2006, 11:08 AM   #10
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
if you run pkgtool as root, among other things, you can reconfigure statup services. the method above (chmod -x the scripts) is better when you know what your doing, but pkgtool is great to see what is actually booting and what isnt, and lets you change that and tons of other stuff from its menus.
 
Old 02-15-2006, 09:08 PM   #11
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Originally Posted by Kahless
the method above (chmod -x the scripts) is better when you know what your doing, but pkgtool is great to see what is actually booting and what isnt
Generally:

Code:
ls /etc/rc.d
Green ones boot. Others don't

If you don't have color

Code:
ls -l /etc/rc.d
Ones with "x"s boot. Others don't.

Now, you know what you're doing.
 
  


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
Tuning kernel mudasir Red Hat 0 12-07-2005 05:01 AM
server tuning mufy Linux - General 1 01-04-2005 05:02 AM
ATI-tuning theonebeyond Linux - Hardware 3 10-07-2004 05:18 AM
Tuning Linux... hkxx9 Linux - Newbie 5 09-16-2004 07:30 AM
tuning mysql nakkaya Linux - Software 2 03-20-2003 05:28 AM

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

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

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
Open Source Consulting | Domain Registration