Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-11-2006, 04:38 PM
|
#1
|
Member
Registered: Oct 2005
Distribution: Slackware
Posts: 228
Rep:
|
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 05:33 PM.
|
|
|
03-11-2006, 08:01 PM
|
#2
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
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...)
|
|
|
03-11-2006, 10:17 PM
|
#3
|
Member
Registered: Oct 2005
Distribution: Slackware
Posts: 228
Original Poster
Rep:
|
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.
*******************************************
|
|
|
03-11-2006, 10:25 PM
|
#4
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Looks pretty good. Will study abit more.....
|
|
|
03-12-2006, 05:41 PM
|
#5
|
Member
Registered: May 2005
Location: NYC
Distribution: Slackware, Gentoo
Posts: 30
Rep:
|
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..
|
|
|
03-12-2006, 05:51 PM
|
#6
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
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.
|
|
|
03-12-2006, 05:52 PM
|
#7
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Just tried it on a blank box...Does a fine job
|
|
|
03-12-2006, 06:09 PM
|
#8
|
Member
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246
Rep:
|
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,
|
|
|
03-12-2006, 07:41 PM
|
#9
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
Although not a handy-dandy script, the following might help too:
Updating Slackware
|
|
|
03-16-2006, 02:45 PM
|
#10
|
Member
Registered: Oct 2005
Distribution: Slackware
Posts: 228
Original Poster
Rep:
|
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 02:48 PM.
|
|
|
03-19-2006, 04:44 AM
|
#11
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
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
|
|
|
03-19-2006, 05:01 AM
|
#12
|
Member
Registered: Aug 2002
Posts: 150
Rep:
|
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?
|
|
|
03-30-2006, 11:52 AM
|
#13
|
LQ Newbie
Registered: Sep 2005
Distribution: Debian and Rocks
Posts: 10
Rep:
|
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
|
|
|
03-30-2006, 09:41 PM
|
#14
|
LQ Newbie
Registered: Mar 2004
Distribution: Slack
Posts: 15
Rep:
|
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.
|
|
|
03-30-2006, 11:08 PM
|
#15
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep:
|
|
|
|
All times are GMT -5. The time now is 03:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|