LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-15-2004, 09:58 AM   #1
devit
Member
 
Registered: Jan 2004
Distribution: Slackware 9.1
Posts: 82

Rep: Reputation: 15
configuring Slackware


I have a Slackware 9.1 system with 2.6.1 kernel. I open this tread for making a small tutorial about how to optimize a system such as mine.
What I did to make it work faster and with less memory:
- a new kernel: I recompiled the 2.6.1 kernel from zero for my system and now it works great.
- Configuring services: edited /etc/rc.d/rc.M and /etc/rc.d/rc.inet2 but disabled only PCMCIA, ssh, sendmail, mysql and httpd(I will start those just when I need), Samba.
Unfortunately I don't know what to do mare than that so opened this thread hoping our posts will help ma and others to configure Slackware to run faster as a workstation(in my case).

Thanks!
 
Old 03-15-2004, 11:57 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
edit /etc/inetd.conf also
 
Old 03-15-2004, 03:37 PM   #3
dslboy
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware -current
Posts: 157

Rep: Reputation: 30
nice problemsolver, this will be great for people like me, wanting to optimize the system.
Good work guys!
 
Old 03-17-2004, 11:08 PM   #4
bashrc2
Member
 
Registered: Feb 2004
Distribution: slackware 9.1
Posts: 106

Rep: Reputation: 15
after installing slack, upgraded kernel 2.6.4, and assuming everything works fine.. I installed dropline and upgraded almost everything. installed swaret.

chmod 666 /etc/profile.d/bsd* #disables the stupid annoying fortune everytime you logon.
added clear to /etc/rc.d/rc.local

ohh yeah.. also installed core-utils, and got rid of unkowns in uname command.

im gonna think of what else I did and maybe post it later...

good thread, I wonder why nobody is answering to this?
slack users contribute what you know!
 
Old 03-18-2004, 04:39 PM   #5
hp_tux
Member
 
Registered: Mar 2004
Location: Germany
Distribution: Slackware 14
Posts: 87

Rep: Reputation: 15
Hello,

well, KDE 3.1.x is a snail; KDE 3.2.1 is much faster and has less bugs. I disabled ksplash in "startkde" and finally built "qt-3.3.1" from scratch: now KDE is a rocket!

cu

hp_tux
 
Old 03-18-2004, 06:19 PM   #6
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
Is editing the content of files in /etc/rc.d in order to prevent boot-time startup of certain daemons really the best way? Perhaps I'm missing something, but why not just chmod -x the unwanted rc-file? Like, chmod -x rc.sshd. That way is faster and also makes re-enabling the daemon at boot (should you want that) easier.

As for some general configuration tips, one can turn to for instance Simply Linux or Slackware Tips & Tricks, and of course The Unofficial Revised Slackware Book. And I hear this one is a killer!
 
Old 03-18-2004, 09:23 PM   #7
Atmchicago
Member
 
Registered: Apr 2003
Location: Baltimore
Distribution: Fedora
Posts: 220

Rep: Reputation: 32
Slackware uses BSD-style init scripts. I think that explains why you don't chmod individual files.

The fortune pops up if you install the classic games thing. I never play those, so I didn't install it.

Get checkinstall to make slackware packages after compiling from source - VERY useful.

I also added an hdparm for my hard disks to make em run faster. I added this in rc.S before it checks for errors:

echo "Running hdparm on hda: -X69 -d1 -u1 -m16 -c3"
hdparm -X69 -d1 -u1 -m16 -c3 /dev/hda

Do a man hdparm for what those do, I have relatively modern hard drives. Don't use those settings without making sure your hard drive supports them!
 
Old 03-18-2004, 09:48 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Some things are separate scripts, though. It's just that they're called from other scripts instead of with the symlink/directory rigamarole. And it's mostly a few clean core scripts. But you can turn some stuff off with a chmod of the script. inet2 looks for /etc/rc.d/rc.sshd and you can kill fortune by chmod'ing /etc/profile.d/bsd-games-login-fortune.sh. Or cut the lines that invoke them out of the main scripts - whichever.

Optimization tips - do not install KDE or Gnome. And (exactly, Atmchicago) do compile from source with checkinstall.

But I don't worry much with optimizing. Slack's pretty fast regardless.
 
Old 03-18-2004, 10:11 PM   #9
bashrc2
Member
 
Registered: Feb 2004
Distribution: slackware 9.1
Posts: 106

Rep: Reputation: 15
lol@ nvn... you got me there! hahahaha "killer"
 
Old 03-19-2004, 12:17 AM   #10
vnpenguin
LQ Newbie
 
Registered: Mar 2004
Location: LinuxCountry
Distribution: CentOS/RHEL
Posts: 2

Rep: Reputation: 0
Wink

Quote:
Originally posted by Atmchicago
I also added an hdparm for my hard disks to make em run faster. I added this in rc.S before it checks for errors:
echo "Running hdparm on hda: -X69 -d1 -u1 -m16 -c3"
hdparm -X69 -d1 -u1 -m16 -c3 /dev/hda
If you like RH-style for rc.* output :
http://vnphp.sourceforge.net/wikini/...wiki=BootSlack
 
Old 03-19-2004, 07:32 PM   #11
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
i usually like to delete some users and some groups from /etc/passwd and /etc/group ... i will never use them and it gives me a warm fuzzy feeling to not have lots of extra stuff hanging around that can be used for logins ... remember to chown any files that those deleted users and groups used to own.

i also always put in /etc/hosts.deny
ALL: ALL PARANOID
this blocks all access to everyone from my inetd services then i add in the users i need to be able to connect to me to /etc/hosts.allow

i also change /etc/hosts.conf to
hosts bind,hosts
multi on
nospoof on

make a firewall ... i use dhcp but a lot of programs depend on the /etc/hosts file. so i make a script to update my ip address to that file.

I change /usr/X11/bin/startx so that
defaultclientargs="-nolisten tcp"
defaultserverargs="-nolisten tcp"
is in there becuase i dont want my X connected to by remote clients even if i allow access to it in my firewall.

i typically make a backup of all of /sbin /usr/sbin and backup some of /bin and /usr/bin ... make a script to check the md5s of these files regularly to check for changes ... just remember that if you upgrade a package in there to get a new md5sum of the files and reback them up. this gives a basic tripwire and if you accidentaly delete something you can easily and quickly restore it.

i always edit /etc/issue and /etc/issue.net because i feel they give out to much information.

I dont like /etc/cron.daily /etc/cron.hourly directories sitting around having anything and everything being run from them with basically not discretion so i always move the files out somewhere and add the individual jobs to crontab.

i really dislike getting stupid error msgs from syslog about not being able to load char-major-10-134 and such as that so i add these type services to /etc/modules.conf or find where they are coming from and disable them.

i edit securetty to deny root access.

take a look at login.defs for some more stuff.

add a line to syslog so you can log everything to a tty ... this makes watching for log stuff easier then try to cat log files ... but sucks if you need to go back and look for something.

Life without a login fortune message would just plain suck but i dont really want those bsd games so i always get the fortune package and install it without all the other bsd games. I feel this is a must for any linux user and should not be skipped for any reason. Fortune is the greatest program ever and forever!!!
 
Old 03-20-2004, 12:53 PM   #12
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
I dunno about the rest but I second this!
Quote:
Fortune is the greatest program ever and forever!!!
Adam
 
Old 03-21-2004, 04:35 PM   #13
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Rep: Reputation: 30
My husband, who can barely figure out how to send an email or type a url address, calls me at work to read me his fortunes when he logs in... We love the fortunes! Off-topic, sorry.
 
Old 03-22-2004, 04:45 PM   #14
harrygraham
Member
 
Registered: Apr 2001
Location: Ottawa, Canada
Posts: 157

Rep: Reputation: 18
Wink hostname

I cannot tell if giving the machine a proper name and DNS number with aliases etc. improves performance. Benchmarking after every little change can drive you crazy. All I know is that it works very well now.

Also I have recompiled the kernel many times and find that compiling the most important or most used code into the kernel speeds things up. The number of modules that comes with the standard kernel is ridiculous. It uses a lot of processor power loading those modules, and my old 333 has none to spare! The kernel is a little larger but the amount of time seeking to find the modules is reduced. Your mileage may vary though.

Last edited by harrygraham; 03-22-2004 at 04:57 PM.
 
  


Reply



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
configuring shorewall on slackware b0nd Linux - Newbie 7 09-02-2005 05:12 AM
configuring php in Slackware 10.1 ankscorek Linux - Software 7 08-15-2005 08:16 PM
I need help in configuring internet in slackware 10.0 cyto Slackware 8 08-27-2004 04:14 AM
Configuring slackware behind a router jelth Linux - Software 3 02-14-2004 11:35 AM
configuring X in Slackware 8 Colonel Panic Linux - General 2 09-28-2001 07:18 PM

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

All times are GMT -5. The time now is 08:18 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