-   Slackware (
-   -   Here's my post-installation slackware configuration script (great for newbies) (

WindowBreaker 03-11-2006 03:38 PM

This is how I do it all . . . with a script.
I created a post-install script for slackware 10.2, which makes it easy to configure certain aspects of slackware in about 1 minute.

The script is available at:

The reason was that I followed (and liked) shilo's guide for post-install every time I reinstalled and got tired of doing it manually.

There are some improvements however.
My script gives the option of:
*Running updatedb
*Enabling CUPS
*Configuring sound with ALSA
*Enabling FTP
*Enabling POP3
*Enabling IMAP
*Enabling Apache
*Enabling PHP in Apache
*Enabling MySql
*Creating initial permissions tables for MySQL
*Option of enabling network access to MySQL
*Installing postfix by removing sendmail and downloading/installing postfix slackpack
*Configuring postfix by answering some basic questions
*Setup a non-root user account

I use this script everytime I install slack. I hope it helps some people with configuring their slackware systems (especially newbies).

cwwilson721 03-11-2006 07:01 PM

Great idea.

Only one caveat: If you don't use or need some of the things done in the script, you can comment them out (I use only one of my boxes for a mailserver, and use Qmail for that, and do not use MySQL at all, so I comment those sections out...Hate being asked about stuff I have no use for).

Looks like you're trying one for lilo too....That could be interesting....

But remember, folks, this is a starting script. Use it, but use all the other things you need to properly use the associated program.(Read the associated conf files, read the how-to's, etc...)

WindowBreaker 03-11-2006 09:17 PM


Hate being asked about stuff I have no use for.
Good point. That's why I just rewrote the script and made modular. It now presents the user with the following menu:

Select an option"

1. Initialize search database.
2. Configure CUPS printing system.
3. Configure ALSA sound system.
4. Configure FTP server (proftpd).
5. Enable POP3 server.
6. Enable IMAP server.
7. Enable/Configure apache web server.
8. Enable MySQL database server.
9. Install postfix SMTP server.
10. Configure postfix SMTP server.
11. Create a user account.

q for quit.

cwwilson721 03-11-2006 09:25 PM

Looks pretty good. Will study abit more.....

ArmOrAttAk 03-12-2006 04:41 PM

That's a very nice script. I will use it next time. How long did it take you to put it together? Have you sent it to Patrick Volkerding? Maybe he'll include it with the distro..

Alien_Hominid 03-12-2006 04:51 PM

Oh. That's good for analysing how to setup system and for learning sh. You should have spent a lot of hours making it. Thanks.

cwwilson721 03-12-2006 04:52 PM

Just tried it on a blank box...Does a fine job

odevans 03-12-2006 05:09 PM

How about adding vsFTPd to the ftp section? I think Slack will pick it over proFTPd in a non "full" install. I'm guessing this is because it grew out of your personal preferences though.

It's a nice little script. I have a horrible feeling there's a re-install in my near future <shudder/> and fully intend to let it loose on a fresh install.

Thank you for your efforts.


Woodsman 03-12-2006 06:41 PM

Although not a handy-dandy script, the following might help too:

Updating Slackware

WindowBreaker 03-16-2006 01:45 PM

Updated the script (now includes vsftpd)
Updated my script, making it run smoother, and adding option for VSFTPD.

Menu presented to user looks as follows:

Select an option

1. Initialize search database.
2. Enable CUPS printing system.
3. Configure ALSA sound system.
4. Enable proftpd FTP server.
5. Enable POP3 server.
6. Enable IMAP server.
7. Enable Apache server.
8. Enable MySQL database server.
9. Enable Postfix SMTP server.
10. Configure Postfix SMTP server.
11. Create new user account.
12. Enable vsftpd FTP server.
13. Configure vfstpd to:
->a. Disable anonymous access.
->b. Enable only valid users.
->c. Enabling sane settings.

q for quit.
Get it at:

Hope somebody finds it useful (besides me).

Alien_Hominid 03-19-2006 03:44 AM

Ok. Some suggestions here:
1) Ability to set mysql root password after mysqld setup
2) Changing ServerName not only in httpd.conf but also in mod_ssl.conf, also changing ServerAdmin email in both confs
3) Generating and signing own certificates after apache with mod_ssl setup
4) Some simple firewall setup

danieldk 03-19-2006 04:01 AM

I haven't tried the script, but a suggestion nonetheless ;): maybe you could use the 'dialog' program to create the menu, giving it a Slack touch?

Ed_Les_Mann 03-30-2006 10:52 AM

Window Breaker,
You are now my hero of the week!
I have been forced to use a Mandrake box for a specific project and we have been fighting with Postfix for about 5 hours (Mandrake and I tend to fight alot). We just needed to send mail from a script and we were jumping into Postfix blind (neither had a need to use it directly before), however, we had it running on Debian distro in about 20 min (my fav distro) but couldnt get Mandrake working.

A google search found your script, so I cut out the info for postfix, ran it, answered the questions and IT WORKED! I dont fully understand what the difference was between the two and why some tags worked on one distro but not the other, but honestly I dont care cause its working:-D We are able to send email from scripts and continue the project.

Anyway, just had to give you props on this script and to thank you for it!
Even non-Slackware people are benifiting!


jordo1 03-30-2006 08:41 PM

I totally agree with everyone saying that this is a nice little script. Props to ya hombre. This is something of what I'm looking for except to secure a post full-installation of Slackware instead of open it up for business. I've found this little text that I'm following and trying to incorporate as you have done into a little script for myself.

I thought this was a decent setup for a fairly secure box. At least it gets a newbie like myself into the system a bit more anyway.

Linux.tar.gz 03-30-2006 10:08 PM

You should add these ideas to this thread:

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