LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-04-2011, 10:19 PM   #1
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
Lightbulb Slack script to take a min install and make it usable, is it possible?


I have been gone a long time and in the face of coming back into saddle I decided I wanted a vps. Yes I know a vps why? Well I wanted something to play with and dedi's cost way too much for just play so I went vps. Found an awesome deal and they even had Slackware so I figured why not. I went ahead and bought it had it setup only to discover it is a slack min install. I thought no biggie I will install what I need and/or want. That has gotten old really fast as I had to start with wget and go from there.

Then an idea came to me would it be possible to make a script that could be run on a slack min install to install all these packages? I mean just upload the script and run it and it would go get the packages and install them.
Is this even possible? Can it be done without installing wget manually? Has this type of thing been done before?

I have noticed most hosts say we have Slack but can not tell you the first thing about it. They usually use a Slack min install and let you hang. My programming skills are lacking sad to say. Even if I did do this project would there be a call for it?

Just some things I wanted to run by you guys and get your opinions.
 
Old 10-05-2011, 05:56 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,460

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Erm.... Just follow your own advice in your signature!

The great thing about VPS is that they are pretty likely to give you a "Reinstall O/S" button that will return your VPS to the state it was when you signed up.

I'm not sure how Slack distributes updates but I would think that it would be highly possible to script an install of the packages you need, although, as you say, you may have to install wget manually first.

Give it a try and report back!
 
Old 10-05-2011, 02:51 PM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by AuroraZero View Post
I have been gone a long time and in the face of coming back into saddle I decided I wanted a vps. Yes I know a vps why? Well I wanted something to play with and dedi's cost way too much for just play
15 euros a month for a full-blown dedicated server is too much? The french provider Online has a "Dedibox SC" dedicated server. Only - minor - drawback is Slackware is not in the list of Linux distributions on offer, there's only Ubuntu, Debian, CentOS and Mandriva.

I rented one machine anyway, launched the Ubuntu Live Rescue console and... used it to install Slackware. Had to fiddle the best part of a sunny afternoon, but now, everything works fine, and Slackware64 13.37 is running fine on this box.

Here's my documentation:

Code:
$ svn co svn://svn.tuxfamily.org/svnroot/microlinux/slackware
Take a look in the 13.37/Linux-HOWTOS directory, the document is "Root-Server-HOWTO". Enjoy!
 
Old 10-05-2011, 03:08 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I would think that all you need is to get slackpkg running, anything else can be installed with that. I don't know about it dependencies, but you can simply begin with downloading the package with wget and install it with installpkg. I think you will get error-messages about missing dependencies.
Once you figured out which packages you need it should be really easy to make a script of that action.
 
Old 10-05-2011, 03:09 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,060

Rep: Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139
Tobi is right, thanks to slackpkg, to have a full install everything should be as simple as configure a mirror in /etc/slackpkg/mirrors and then
Code:
slackpkg update
slackpkg install slackware
last should be "slackpkg install slackware64" if you are using slackware64.
Then you can also select what to install or not.

but first maybe you want to upgrade the (packages of the) slackware version you got? or do they give you 13.37?

Last edited by ponce; 10-05-2011 at 03:18 PM. Reason: added "to have a full install" and selection stuff
 
Old 10-05-2011, 03:15 PM   #6
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Assuming they installed Slackware using the tagfiles at Slack-Minimal, it should be fairly simple to write a shell script that downloads and extracts that tagfiles tarball, compares the packages installed by them with the tagfiles installed by a default install:

Code:
for i in a ap d e f k kde kdei l n t tcl x xap y; do wget -O/tmp/tagfile.$i ftp://ftp.slackware.com/pub/slackware/slackware-13.37/slackware/$i/tagfile; done
and which then downloads and installs the missing packages with `upgradepkg --install-new`. It would be a good idea to find out which tagfiles they used during the installation of the VPS though - there's no saying for sure that they were the ones at Slack-Minimal. You could always

Code:
ls -1 /var/log/packages
as an alternative.

Last edited by CTM; 10-05-2011 at 03:18 PM.
 
Old 10-05-2011, 06:16 PM   #7
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by kikinovak View Post
15 euros a month for a full-blown dedicated server is too much? The french provider Online has a "Dedibox SC" dedicated server. Only - minor - drawback is Slackware is not in the list of Linux distributions on offer, there's only Ubuntu, Debian, CentOS and Mandriva. e rub

I rented one machine anyway, launched the Ubuntu Live Rescue console and... used it to install Slackware. Had to fiddle the best part of a sunny afternoon, but now, everything works fine, and Slackware64 13.37 is running fine on this box.

Here's my documentation:

Code:
$ svn co svn://svn.tuxfamily.org/svnroot/microlinux/slackware
Take a look in the 13.37/Linux-HOWTOS directory, the document is "Root-Server-HOWTO". Enjoy!
For me yeah that is too much. The vps I have has 2 gb of ram (guarranteed not burstable) 50 gig hd 2tb of transfer and 2 usable cores for 7.00 a month U.S. They gave me slack 13.37 I assume also they used the min install script as well. It was NOT the reqs for slack minimal. At least not the site posted.

Wget is not the rub the prereqs for slackpkg have been. When I say minimal I mean minimal. I am surprised ssh is even on this thing. 131.54 MB of 50 GB Used / 49.87 GB Free that is the Slack min install they have.

I plan to try this anyways I just wanted some opinions and to see if there maybe a call for it. I know a lot of people prefer Centos or the like for servers but to those of us who Slack well you all know once you go Slack you can never go back lol.

Last edited by AuroraZero; 10-05-2011 at 06:47 PM. Reason: updated information
 
  


Reply

Tags
scripting, servers, slackware 13.37


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
LXer: Hacking to make things Usable LXer Syndicated Linux News 0 06-27-2011 06:02 PM
Hi, I'd like to do my best to make Unices more usable (with smart foundations) izakharyaschev LinuxQuestions.org Member Intro 0 04-10-2011 01:52 AM
[SOLVED] Can't make a usable dvd of linuxmint 32bit garrydb Linux Mint 3 11-14-2010 04:42 PM
LXer: Glipper will make GNOME much more usable LXer Syndicated Linux News 0 12-19-2006 03:21 AM
3.8 Gb Suse 10.1 slow install in 1h30 min. Mandriva 2006 was less than 40 min Emmanuel_uk Linux - Distributions 2 06-15-2006 09:27 AM

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

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