hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : VPS Tutorials : Slackware tutorial for crummy OpenVZ VPSes...
Reply

Forum Jump

Slackware tutorial for crummy OpenVZ VPSes...

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Junior Guru Wannabe
 
Join Date: Feb 2011
Location: Super Sunny SoCal USA
Posts: 42
Cool

Slackware tutorial for crummy OpenVZ VPSes...


OpenVZ is total crud. I thought about giving this thread the title, "No kernel no problem - no Brain no pain", but that really wouldn't help someone who purchased a crummy OpenVZ VPS from some cut-rate provider now would it?

There are plenty of freeshell providers out there who will give you a chroot'd environment or a BSD jail to work from - so why pay for some fake vps that claims to be its own machine when it's really just a container above a jail shell?

Well, I don't get it, but people buy them. I have to sleep at night and since I prefer to do so without having to take lots of valium I don't offer OpenVZ - Only Xen, KVM, and VMware VPS/Cloud services.

Oh, some people still want a dedicated physical server. I sell co-location too - not because I think it's hardly ever a good idea, but because it is a good, although expensive solution.

I understand the vanity of being able to say "Hey I own my own server in a rack somewhere", but not really the reason for it, unless they're going to use that server to host virtualization technologies LOL!

But I digress. This is a quick, down and dirty, cookbook tutorial for getting Slackware up and running on one of those cruddy OpenVZ VPS systems.

I'm writing this because we get a lot of folks asking why they're having so many problems with their Slackware, Gentoo, and firewalls for all kinds of distributions.

The reason in a nutshell is: No kernel no problem! um... no brain no pain! er... You're sharing your kernel and some other stuff with every other person on that box!!!!

Okay, here's what happens. your provider creates or downloads a "Minimal" template from somewhere. That's okay with the netinstall for CentOS and debian, but Slackware likes to have pretty much a full install.

Sure, you don't have to, but you'll end up installing all kinds of libs, one by one, until you hammer out the significance as to why you should, even though you're not going to use certain parts of it. But you will.

That's why Slackware is one of those, "It just works" distros. Because you have a huge amount of libraries to support most of what you are going to install, and unlike distros like CentOS, you're not hemmed into being two years behind the software curve, and then locked in.

Okay. Real quick. "Why doesn't my firewall work?" Answer: Don't install any mods as part of your firewall - just keep it simple, stupid, lame, and ineffectual. Sure, you're vulnerable, but that's okay because your machine doesn't have a brain, I mean, it's own kernel, anyway

You're limited to whatever the provider has compiled their kernel to support and that is it buddy!

Most of them won't tell you how they've set things up, but there are ways which you can glean this info (beyond the scope of this tutorial).

Let's begin.

You clicked on that SolusVM button in your VPS Control Panel that says, install OS...

You've given it a few minutes now and your dashboard is green. That's good! You now have a shiny new OS that people are already scanning and preparing to cr4ck.

You might want to think about that firewall now... And read my article on securing SSH too.

Since your providers template was a Slackware-minimal, it is quite likely that you don't even have the tools installed to install the tools you need! And you need Slackpkg to install the rest of your operating system before you start getting down to what you wanted to do with your box, like... maybe run an email and webserver?

The first thing you're probably going to need to get on your system is Curl. You're going to have to SCP that over. You can locate everything you need from HERE for Slackware and HERE for Slackware64. I'll focus on the 32bit version of Slackware for the purposes of this tutorial. After all, we're talking OpenVZ aren't we?

Just look in the file named, FILE_LIST and it will tell you exactly where you need to download your packages from.

Code:
drwxr-xr-x 17 root root      4096 2012-02-11 02:45 .
-rw-r--r--  1 root root    210923 2012-02-11 02:45 ./CHECKSUMS.md5
-rw-r--r--  1 root root       198 2012-02-11 02:45 ./CHECKSUMS.md5.asc
-rw-r--r--  1 root root    265256 2012-02-11 02:43 ./FILE_LIST
-rw-r--r--  1 root root   2463676 2012-02-11 02:45 ./MANIFEST.bz2
lrwxrwxrwx  1 root root        15 2003-10-02 23:39 ./PACKAGES.TXT -> ../PACKAGES.TXT
-rw-r--r--  1 root root       242 2002-06-13 03:46 ./README.TXT
drwxr-xr-x  2 root root     20480 2012-02-08 01:29 ./a
-rw-r--r--  1 root root       327 2011-03-25 18:37 ./a/aaa_base-13.37-i486-3.txt
-rw-r--r--  1 root root     10468 2011-03-25 18:37 ./a/aaa_base-13.37-i486-3.txz
-rw-r--r--  1 root root       198 2011-03-25 18:37 ./a/aaa_base-13.37-i486-3.txz.asc
-rw-r--r--  1 root root       568 2011-04-22 17:25 ./a/aaa_elflibs-13.37-i486-7.txt
-rw-r--r--  1 root root   4538208 2011-04-22 17:25 ./a/aaa_elflibs-13.37-i486-7.txz
-rw-r--r--  1 root root       198 2011-04-22 17:25 ./a/aaa_elflibs-13.37-i486-7.txz.asc
-rw-r--r--  1 root root       505 2011-03-07 20:53 ./a/aaa_terminfo-5.8-i486-1.txt
-rw-r--r--  1 root root     43852 2011-03-07 20:53 ./a/aaa_terminfo-5.8-i486-1.txz
-rw-r--r--  1 root root       198 2011-03-07 20:53 ./a/aaa_terminfo-5.8-i486-1.txz.asc
-rw-r--r--  1 root root       416 2011-04-18 19:00 ./a/acl-2.2.50-i486-1.txt
-rw-r--r--  1 root root    133988 2011-04-18 19:00 ./a/acl-2.2.50-i486-1.txz
-rw-r--r--  1 root root       198 2011-04-18 19:00 ./a/acl-2.2.50-i486-1.txz.asc
-rw-r--r--  1 root root       471 2011-04-16 04:15 ./a/acpid-2.0.9-i486-1.txt
-rw-r--r--  1 root root     38012 2011-04-16 04:15 ./a/acpid-2.0.9-i486-1.txz
-rw-r--r--  1 root root       198 2011-04-16 04:15 ./a/acpid-2.0.9-i486-1.txz.asc
-rw-r--r--  1 root root       554 2011-04-11 06:24 ./a/apmd-3.2.2-i486-3.txt
-rw-r--r--  1 root root     53788 2011-04-11 06:24 ./a/apmd-3.2.2-i486-3.txz
-rw-r--r--  1 root root       198 2011-04-11 06:24 ./a/apmd-3.2.2-i486-3.txz.asc
-rw-r--r--  1 root root       608 2011-04-18 19:00 ./a/attr-2.4.45-i486-1.txt
-rw-r--r--  1 root root     71372 2011-04-18 19:00 ./a/attr-2.4.45-i486-1.txz
-rw-r--r--  1 root root       198 2011-04-18 19:00 ./a/attr-2.4.45-i486-1.txz.asc
-rw-r--r--  1 root root       510 2011-03-11 04:45 ./a/bash-4.1.010-i486-1.txt
-rw-r--r--  1 root root    904856 2011-03-11 04:45 ./a/bash-4.1.010-i486-1.txz
-rw-r--r--  1 root root       198 2011-03-11 04:45 ./a/bash-4.1.010-i486-1.txz.asc
-rw-r--r--  1 root root       227 2007-02-02 06:29 ./a/bin-11.1-i486-1.txt
-rw-r--r--  1 root root     41608 2007-02-02 06:29 ./a/bin-11.1-i486-1.txz
-rw-r--r--  1 root root       197 2007-02-02 06:29 ./a/bin-11.1-i486-1.txz.asc
As you can see, Bash in in the "a" directory, directly below where you are.

Okay let's get Curl okay?

Code:
-rw-r--r--  1 root root       555 2011-03-29 20:36 ./n/curl-7.21.4-i486-1.txt
-rw-r--r--  1 root root    742784 2011-03-29 20:36 ./n/curl-7.21.4-i486-1.txz
-rw-r--r--  1 root root       198 2011-03-29 20:36 ./n/curl-7.21.4-i486-1.txz.asc
Kewl! Curl is located at:

Code:
http://slackware.osuosl.org/slackware-current/slackware/n/curl-7.21.4-i486-1.txz
Here's the problem. You don't have wget. you don't have lynx, elinks, you don't even have the crypt libs that you need to use wget and run Slackpkg to get the rest of your OS.

So you're going to have to get creative. Download it to another box (along with a few other things in the list below) and then scp it on over. Then you can use curl to get the rest until you have enough to run wget and Slackpkg.

Code:
# scp you@some_other_remote_box.sld.tld:/home/you/stuff/curl-7.21.4-i486-1.txz .
You get the idea. Let's move on...



+-----------------------+
| slackpkg installation |
+-----------------------+

On some installs, perhaps like one might find when using OpenVZ templates, it maybe necessary to install slackpkg and a few dependencies.

Here's one way to do that.

1.) download and install the following with installpkg:

curl-7.21.4-i486-1.txz
gnupg-1.4.11-i486-1.txz
gnupg2-2.0.17-i486-1.txz
gnutls-2.12.7-i486-1.txz
libgcrypt-1.4.6-i486-1.txz
libgpg-error-1.9-i486-1.txz
sbopkg-0.35.0-noarch-1_cng.tgz
slackpkg-2.82.0-noarch-2.tgz
wget-1.13-i486-1.txz
which-2.20-i486-1.txz

i.e.,
Code:
# installpkg curl-7.21.4-i486-1.txz
etc...

2.) set DIALOG=off in /etc/slackpkg/slackpkg.conf and pick one mirror in /etc/slackpkg/mirrors. Uncomment all of the kernel packages in /etc/slackpkg/blacklist so newer versions ARE NOT installed.

3.) Run the following:

# slackpkg update,
# slackpkg update-gpg
# slackpkg install-new
# slackpkg updrade-all
# slackpkg clean-system

If you want a complete installation, installing all uninstalled packages, use:

# slackpkg install slackware


=========================================================

4.) sbopkg

+--------------------+
| sbokg installation |
+--------------------+

wget the sbopkg package from sbopkg.org. typically,

# mkdir -p /usr/local/slackbuilds
# mkdir -p /usr/local/packages; cd /usr/local/packages

# wget -N --no-cache http://sbopkg.googlecode.com/files/s...arch-1_cng.tgz

# upgradepkg --install-new --verbose sbopkg*

Now we need to configure and prepare sbopkg for usage.

edit /etc/sbopkg/sbopkg.conf and change the following:

export OUTPUT=${OUTPUT:-/tmp}

to

export OUTPUT=${OUTPUT:-/usr/local/packages}

Now run sbopkg from the command line,
accept the creation of the new dirs by entering 'c'.
Once that has finished, allow a sync with the SBo repo.

You can quickly install software with a single flick of the wrist by typing:

Code:
# sbopkg -i bmon
And bmon will automagically be installed!

use '-s' if you want to search for something by name, without installing it, and '-g' to search with a little bit of fuzzy logic. Running sbopkg by itself opens an interactive graphical session and you can search and queue up several packages, but that is another tutorial, and probably more appropriate for another forum other than a VPS tutorial that explains how to finish installing your operating system once you buy your OpenVZ VPS (Like this tutorial does!).

Anyway, now you have a fully installed, complete, and current Slackware Linux Operating system

Enjoy!

.

__________________
Bradley D. Thornton - http://NorthTech.US - Registered Linux User #190795

- "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.



Sponsored Links
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pakdevs - 1Gbit Openvz and Xen Vpses - NL starts from $5 mhamza VPS Hosting Offers 5 12-05-2011 07:29 AM
Looking for some 256M OpenVZ VPSes in US inso VPS Hosting 7 09-27-2011 10:44 PM
OpenVZ/SolusVM VPSes in Varna, Bulgaria - 50% off for the first month rds100 VPS Hosting Offers 3 02-26-2011 12:14 PM
[Starting at $5 / mo] On a budget? Chicago OpenVZ based VPSes 50% off the first month JPC-Curtis VPS Hosting Offers 0 02-01-2011 09:45 AM
OpenVZ with CentOS, Debian, Fedora, Gentoo, Slackware, Ubuntu(IRC ALLOW) jenok VPS Hosting Offers 0 12-30-2008 01:27 AM

Related posts from TheWhir.com
Title Type Date Posted
AQUA Networks Limited Listing 2014-12-10 12:46:14
Web Hosting Sales and Promos Roundup – August 30, 2013 Web Hosting News 2014-05-23 15:42:50
Web Hosting Sales and Promos Roundup - August 23, 2013 Web Hosting News 2014-05-23 15:42:50
Inerol Solutions Launches XEN VPS Hosting Service Web Hosting News 2014-05-23 15:46:53
Blacknight Lends a Hand to Users of Retiring Blog Platform Posterous Web Hosting News 2013-02-22 13:56:35


Tags
openvz, openvz tutorial, slackware, slackware tutorial, slackware64, vps tutorial

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?