LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-05-2012, 11:43 AM   #1
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
How to set up barebones Slackware server


How do you set up a barebones server with no compiler or package manager?

I originally set it up by copying the necessary files from my home computer, but now the time has come to make some changes, and I'm hoping there's a better way.

Thanks!
 
Old 03-05-2012, 12:23 PM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Is your decision to eliminate compiler and package-manager relative to disk space or what?
 
Old 03-05-2012, 12:29 PM   #3
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Sorry, maybe I should have been more clear.

The server is with Linode, and it comes with a "barebones" setup which does not include a compiler. I prefer Slackware for my distribution (there are others to choose from), which does not include a package manager.
 
Old 03-05-2012, 12:33 PM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
When you perform the installation, go through the long form and de-select the options that you don't want. You can also do this via the installation menu, but it will probably be a tedious task.
 
Old 03-05-2012, 12:42 PM   #5
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
When you perform the installation
I don't do the installation and have no control over what software comes pre-installed. I can only choose the OS.
 
Old 03-05-2012, 02:20 PM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
That is too bad. This leaves you with a few options:
1 - slackpkg remove will manually remove the application you specify. For example, if you have firefox installed, slackpkg remove firefox will let you remove it.
2 - slackpkg clean-system:
Quote:
Remove all the packages that don't belong to a standard Slackware installation (packages that are not in the official package set). With this option, you can clean up your system, removing third-party packages as well as those packages that were removed from the official Slackware package set.
If you have some third party packages that you would like to keep, you can temporarily add them to the list of blacklisted packages before you run the "clean-system" command.
3 - pkgtool: a curses menu based utility that will list the installed packages and let you select which ones to remove.

If you have any doubt about what packages you really need for a minimal install, look at slackware mirrors. There should be a couple of options for mini installations that you could mirror. If I recall correctly, the documentation (slackbook) also stipulates which package groups you *need* during an install. You could remove everything but the items listed in that particular group.

In any case, I wouldn't be over zealous in any one step. You could remove something and then find you can't reboot, so be careful.
 
Old 03-05-2012, 02:21 PM   #7
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
First, find a machine with the same Slackware version you have in your Linode virtual machine.
Second, use scp to copy the desired packages to Linode machine.
Third, ssh in to Linode machine and installpkg the packages you previously copied.

For an idea on what packages you need to get slackpkg working, check here.
Once you get slackpkg working, use it to install more packages from the repository (even the full distro if you want).
 
Old 03-05-2012, 02:33 PM   #8
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Hi Norway2, thanks for the response.

Quote:
That is too bad.
This is certainly less customizable than running your own server, but at least you don't have to be responsible for the hardware. IME, this kind of barebones setup is the norm with servers like this.

Quote:
slackpkg remove will manually remove the application you specify.
Maybe I wasn't clear enough in my initial responses... the issue isn't that there is too much software, the issue is that there is not enough. I don't need to remove anything, I need to add the normal server software (ie, apache, mysql, etc) without a compiler or package manager.

Quote:
If you have any doubt about what packages you really need for a minimal install, look at slackware mirrors. There should be a couple of options for mini installations that you could mirror.
Again, I will not be doing the installation, nor will I have any control over what software is installed when I gain control of it.
 
Old 03-05-2012, 02:36 PM   #9
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by Slax-Dude View Post
First, find a machine with the same Slackware version you have in your Linode virtual machine.
Second, use scp to copy the desired packages to Linode machine.
Third, ssh in to Linode machine and installpkg the packages you previously copied.

For an idea on what packages you need to get slackpkg working, check here.
Once you get slackpkg working, use it to install more packages from the repository (even the full distro if you want).
Thanks, Slax-Dude. I was under the impression that installpkg and slackpkg required a compiler. I generally install things from source, so I don't have any experience with them. I will try your steps.

What about slapt-get... will that work without a compiler?
 
Old 03-05-2012, 03:02 PM   #10
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I am not so sure about slapt-get, I haven't used it, but it looks like it has a glibc dependency which might mean compilation. It is supposed to be a lot more "apt" like in dependency resolving. In reality, this isn't too big of a problem and the dependencies are usually resolved with one or two quick installs. Normally, I would recommend the slackbuilds repository as I too usually build from source on Slackware and being a "source based" distro is one of the things that I like about it.

To be honest, I completely misunderstood your requirement as they would have installed a full install of slackware and you were trying to pare it back to a minimal one, not that you had too little stuff. Sorry.

The slackware mirrors should have binaries you can install (.tgz format) and use installpkg to add them. You may also want to look at alien bob's repository as it contains a lot of things that aren't in the standard mirrors and are not building from source.
 
Old 03-19-2012, 10:09 PM   #11
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Thanks for the help everyone. I have verified that the server has slackpkg installed. I haven't had the time to set it up yet, but I think this will solve my issue.
 
Old 04-02-2012, 09:03 PM   #12
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Just another update, I set up the server yesterday, and slackpkg worked great. The only snag was with httpd.. there were a number of dependencies I also had to install. After some research to figure out which Slackware package contained each missing lib, it now runs fine.
 
  


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
Home server - fix the hanging or buy a new barebones? Dan Gravell Linux - Hardware 10 03-31-2011 09:36 AM
How do you set DNS server adresses in Slackware nin10dofan1 Slackware 14 06-02-2008 04:14 PM
How do I set up an TFTP server in Slackware 9.1? moger Slackware 11 02-06-2008 11:54 PM
Barebones Server johnc711 Linux - Hardware 2 09-25-2004 09:07 PM
can't set up dial-in server on slackware 9.1 NuLLiFiEd Slackware 2 05-20-2004 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:39 AM.

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