How To Install A Debian Based Distro On An EasySpeedy Server
How To Install A Debian Based Distro On An EasySpeedy ServerIntroductionThis is a copy & paste howto. The easiest way to follow this tutorial is to copy paste the commands directly into your ssh client. Be careful when you're required to provide your own custom data, like IP addresses, hostnames or passwords. The following tutorial is a detailed description of how to install a Debian based distro (Debian Etch in this example) on an EasySpeedy server. EasySpeedy offers dedicated server hosting with the ability for customers to perform remote recovery and maintenance over ssh. This is exactly what we need to install our debian based distro from scratch, using debootstrap. I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal and there are no guarantees that this howto will work for you.
The ServerI will be using a standard EasySpeedy server:
Processor AMD Athlon 64 3500+ After you've logged in to your server control panel on the EasySpeedy website, you're presented with an automated system for installing several linux distributions. Although this is very handy, I wanted Debian Etch on my server. Sadly, it hasn't been added yet to the list of available distributions for automated installation. Because of this, I decided to try the Debian Sarge installation and then dist-upgrade to Etch. This should have been fairly easy to do, but the default partition scheme that came with Sarge didn't meet my needs.
The Handy Rescue SystemTo install Debian Etch using deboostrap we're going to use one of the rescue systems that EasySpeedy provides. The one I chose for doing this, is described as follows: "This is our Forensic Recovery Tool. It boots a minimal Linux distro into RAM, and allows SSH login. Using this recovery tool it is possible to perform most recovery operations, as well as more complex forensic tasks. It includes a complete build environment, and is capable of using slackware packages. It also includes a pre-built version of chkrootkit (from the slackware project)." As it provided a build environment, I thought this tool was the best one for this task. Select the Forensic Recovery Tool and press the install button. An email will be sent to you after the system is rebooted and ready to use. This process takes no time. We need to log in to our little rescue friend now. If you don't have an ssh client, you can install it with aptitude or apt-get. aptitude install openssh-client Now let's connect to the rescue system: ssh 82.103.XXX.XXX
The Partition SchemeAt this point, we need to plan a partition scheme for our new Etch system. What we're going to do now is to delete the existing partition scheme and create a new one. We're going to do so with fdisk. First of all, this is the partition scheme I had in mind: / => /dev/sda5 Now lets execute fdisk on /dev/sda: fdisk /dev/sda We need to erase the existing partitions. To do this, you must press d and then enter the partition number for the partition you want to delete. You'll have to delete all partitions.
Command (m for help): d
Command (m for help): d
Command (m for help): d
Command (m for help): d Now that you have erased your existing partitions, you need to create your new partition scheme. Press n and then enter e to make a new extended partition. Answer 1 when you're required to enter a partition number. Next, you'll be asked about what should be the first cylinder for the extended partition. Default value is 1. Accept it and press enter. Then, you will be asked for the last cylinder. Accept the default value too, and press enter. This will make a new extended partition starting at cylinder 1 to the last cylinder. When you've done this, you'll have to create logical partitions for sda5 through sda10, though sda10 will be our swap. For setting up the size of the partitions you can answer with cylinders or with size in MB. For answering with MB size, you use the following syntax: for example, 10000M would be 10GB. In this tutorial I use the cylinder approach, but you're free to use the M approach also. Please notice that the first command I enter is p. This should show an empty partition set, as is shown now:
Command (m for help): p No we create the extended partition.
Command (m for help): n To create the logical partitions, press n key, and then l. Accept default first cylinder and then for the last cylinder you can either enter the size like in 10000M, or specify the exact last cylinder number. I will enter cylinder numbers.
Command (m for help): n Now you must change /dev/sda10 to Linux swap / Solaris. To accomplish this press t, and select the partition number (10). Then enter 82. This should make /dev/sda10 a swap.
Command (m for help): t To save changes to the disk, press w key.
Command (m for help): w At this point, we're finished with fdisk. You can exit fdisk with q: Command (m for help): q This is what my partition scheme looked like when I finished:
Device Boot Start End Blocks Id System
|



Recent comments
1 day 8 hours ago
1 day 10 hours ago
1 day 22 hours ago
2 days 1 hour ago
2 days 5 hours ago
2 days 12 hours ago
2 days 21 hours ago
2 days 23 hours ago
3 days 7 hours ago
3 days 8 hours ago