LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-11-2006, 03:38 PM   #1
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
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:
http://www.compugenic.com/slackscript.sh


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

Last edited by WindowBreaker; 03-11-2006 at 04:33 PM.
 
Old 03-11-2006, 07:01 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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...)
 
Old 03-11-2006, 09:17 PM   #3
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Original Poster
Rep: Reputation: 40
Quote:
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.
*******************************************
 
Old 03-11-2006, 09:25 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Looks pretty good. Will study abit more.....
 
Old 03-12-2006, 04:41 PM   #5
ArmOrAttAk
Member
 
Registered: May 2005
Location: NYC
Distribution: Slackware, Gentoo
Posts: 30

Rep: Reputation: 15
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..
 
Old 03-12-2006, 04:51 PM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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.
 
Old 03-12-2006, 04:52 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Just tried it on a blank box...Does a fine job
 
Old 03-12-2006, 05:09 PM   #8
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
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.

cheers,
 
Old 03-12-2006, 06:41 PM   #9
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

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

Updating Slackware
 
Old 03-16-2006, 01:45 PM   #10
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Original Poster
Rep: Reputation: 40
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:
Quote:
*******************************************
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:
http://www.compugenic.com/slackscript.sh

Hope somebody finds it useful (besides me).

Last edited by WindowBreaker; 03-16-2006 at 01:48 PM.
 
Old 03-19-2006, 03:44 AM   #11
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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
 
Old 03-19-2006, 04:01 AM   #12
danieldk
Member
 
Registered: Aug 2002
Posts: 150

Rep: Reputation: 15
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?
 
Old 03-30-2006, 10:52 AM   #13
Ed_Les_Mann
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian and Rocks
Posts: 10

Rep: Reputation: 0
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!

Thanks,
EdLesMann
 
Old 03-30-2006, 08:41 PM   #14
jordo1
LQ Newbie
 
Registered: Mar 2004
Distribution: Slack
Posts: 15

Rep: Reputation: 0
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.

http://www.cochiselinux.org/files/sy...ening-10.2.txt

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.
 
Old 03-30-2006, 10:08 PM   #15
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
You should add these ideas to this thread:
http://www.linuxquestions.org/questi...ackware+system
 
  


Reply

Tags
configuration, slackware


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
FC3 installation fails at post install configuration stage grstaker Fedora - Installation 8 06-20-2005 10:43 AM
Post installation configuration for KDE 3.4.1 under slackware 10.1 with kernel 2.6.10 Basel Slackware 1 06-15-2005 03:06 AM
Problems post-installation of Slackware 9.1 on a Dell Inspiron 1100 cddesjar Linux - Laptop and Netbook 1 06-27-2004 08:01 PM
Newbie questions of post-installation of Slackware ICO Slackware 15 12-24-2003 05:47 PM
[Mandrake] Post-installation and configuration thread Finalnight LinuxQuestions.org Member Success Stories 2 09-10-2003 08:51 PM

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

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