My FREESCO page | A FREESCO is born | My FREESCO box

My FREESCO box

This page describes the setup of my FREESCO. More or less it is a mix of what is described in the tutorials with some additional tweaks.

Preparation

I always start by creating a report from my current FREESCO installation. I save that report on my main box. Once I am done with the new installation I create a report on the new FREESCO and diff if with the report from the old box. This makes it easy to verify that the new box is set up just like the old one.

I prefer to set up my FREESCO by running the floppy image in a virtual machine. Once the floppy image is configured correctly, I write it to a floppy and install it to my 'real' box. For running FREESCO virtual, see this tutorial.

Basic setup

Once I have a virtual machine ready, I set it up using my tutorials:

Additional tweaks

FTP-server

I addition to what is said above, I also setup a public ftp server:

To access the ftp server, I set up a special ftp user (setting 32).

By default, the ftp-directory is owned by the super user (eg. root) and belong to the root group. This setting makes it impossible for an ordinary ftp user to upload stuff to the directory. To get around this I change group of the ftp directory so it belong to the ftp group. I also give the group write access to the directory:

$ ls -ald /home/ftp
drwxr-xr-x    2 root   root          512 Oct 11  2002 /home/ftp
$ chgrp ftp /home/ftp
$ chmod g+w /home/ftp
$ ls -ald /home/ftp
drwxrwxr-x    2 root   ftp           512 Oct 11  2002 /home/ftp

After doing this it should be possible for a ftp user to upload files. Note that on a floppy install, there won't be much space left on the floppy so you will probably not be able to upload anything.

Static IP and port forwarding

My local PC is given a static lease using setting 435. This is to ensure it always get the same IP, necessary to make port forwarding working. This can also be done using the web control panel.

I also do some port forwarding to my local machine to run some P2P clients:

tcp,6881,-6889,192.168.1.200  # BitTorrent
tcp,6969,6969,192.168.1.200   # BitTorrent tracker
tcp,4662,4662,192.168.1.200   # eMule TCP
udp,4672,4672,192.168.1.200   # eMule UDP

Testing the new installation

Now the floppy image is configured. I write it to a floppy and boot the machine to verify that it works as expected.

I also test the additional tweaks:

Installing on HD

When I am sure the floppy is configured correctly, I use it to install FREESCO on the real box. This is done as describe in part 6. After installing on HD I test the installation to verify it is OK.

Adding packages and Slackware binaries

Now I add the packages I want:

The hosts package is a bit tweaked. By default it sends all blocked addressed to 0.0.0.0. Under some circumstances this has confused my browsers, causing all kinds of strange problems. To get around this, I enable the web server in FREESCO and run in in secure mode. Then I modify the hosts package to send all blocked addresses to my router's IP, e.g. 192.168.1.1. This is quite simple, just replace all occurrences of '0.0.0.0' with '192.168.1.1' in rc_hosts. Finally, I've created /www/errors and put a tiny err404.html file.

I also add some Slackware binaries I find useful:

Final tweaks

As I run my box from RAM, there is no space to use if I want to ftp stuff to my box. For that purpose I use this small script that can be used to mount a partition of the HD:

#!/bin/sh
mount -t ext2 /dev/hda3 /home/ftp
chmod 777 /home/ftp

By now the installation is done. To be sure I have gotten everything correct I diff a report from the new installation with a report from the old installation.

As a final step I configure the box to run completely from ram (part 7).

[ Top ]


Page author: My email

Last modified: Mon May 5 20:42:28 CEST 2008

Valid HTML 4.01!