Slackware 10.0

From LinodeWiki

Jump to: navigation, search

Contents

[edit] How to set up your Linode with Slackware 10.0

By Mark Grimes Peculiarities

[edit] Introduction

Slackware is one of the veteran distributions. It is extremely stable and very small. For those who have used it for a while, there is no substitute.

[edit] Set up the package manager

The semi-official package manager of Slackware is slackpkg. It can be found in the extra/ directory of the Slackware mirrors. Pull it from your favorite mirror and install it with the standard Slackware installpkg utility.

       wget http://slackware.osuosl.org/slackware-10.0/extra/slackpkg/slackpkg-1.2.2-noarch-4.tgz
       installpkg slackpkg-1.2.2-noarch-4.tgz

Then configure slackpkg to use your favorite mirror:

       echo "http://slackware.osuosl.org/slackware-10.0/" >> /etc/slackpkg/mirrors     

Finally, update the package lists:

       slackpkg update

You should be able to install packages with slackpkg install now.

[edit] Add a New Users

You probably shouldn't login as root very often. It is best to create a new user to handle just about everything. Use sudo when you need root privileges. So add a user with (obviously replace NEWUSERID with your preferred username):

       adduser NEWUSERID

[edit] Install the sudo Package

The sudo package enables selected users to run commands as root. Install the sudo package with:

       slackpkg install sudo

Then you need to edit the /etc/sudoers file:

       cd /etc
       visudo

Refer to the sudo manual to set this up, but something along the lines of adding the following should work.

       User_Alias      OWNERS = NEWUSERID
       OWNERS          ALL=NOPASSWD: ALL

Now logout as root and back in as NEWUSERID. You should be able to execute commands as root with sudo [command].

[edit] Set up Your Hostname

You will need to set up your hostname in order to get apache (and probably other apps) to work. Find YOURIPADDRESS and YOURHOSTNAME on the Network Information page under Members at [www.linode.com linode]. Either use the default hostname provided by Linode (i.e., ????.members.linode.com) or a registered name that already points to YOURIPADDRESS. Then execute the following commands:

       hostname YOURHOSTNAME
       `hostname` > /etc/HOSTNAME

Edit the /etc/hosts file to replace the localhost add a line with:

       YOURIPADDRESS    YOURHOSTNAME

[edit] Install Apache

You probably want a webserver, so install apache:

       sudo slackpkg install apache

Edit /etc/apache/httpd.conf. At a minimum you want to edit ServerAdmin. Then start the daemon and enable the rc file to restart it whenever your server boots:

       sudo chmod +x /etc/rc.d/rc.httpd
       sudo /etc/rc.d/rc.httpd start

Check the installation by pointing a browser to http://YOURHOSTNAME/. Your web files are in /var/www/htdocs.

[edit] Install Basic Packages

Optional. The following will install what I consider to be basic packages that you would want to run your linode server. You may or may not need these packages:

       sudo slackpkg install screen
       sudo slackpkg install cvs
       sudo removepkg elvis
       sudo slackpkg install vim

[edit] Conclusion

As I mentioned, Slackware is lean. The initial image took up 221M on my install. After adding these packages, etc. it took up 246M.

Good luck with the new server.

-Mark

Personal tools