Difference between revisions of "Debian install"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
Line 1: Line 1:
<p style="border:dashed 1px red;background:Lemonchiffon;text-align:center;margin:0 5px">
<p style="border:dashed 1px red;background:Lemonchiffon;text-align:center;margin:0 5px">
'''Backup ANY Data, because during the installation all partitions will be deleted and your DATA WILL BE LOST. Use this guide at your own risk!'''
'''Backup ANY Data, because during the installation all partitions will be deleted and your DATA WILL BE LOST.  
<br>Use this guide at your own risk!'''

Revision as of 21:39, 24 March 2006

Backup ANY Data, because during the installation all partitions will be deleted and your DATA WILL BE LOST.
Use this guide at your own risk!

This is a small Guide to replace the original Linux (and its WebInterface) with a Debian 3.0 Woody Installation

Get an Debian image

Get an Debian image from one of the following locations:

Prepare the harddisk

  • Put you Kurobox in EM mode
  • When you just installed a harddisk, the box will start automatically in EM mode
  • Push the red button on the back of the unit while turning it on to go into EM mode
  • Telnet into your box and follow the these steps
  • Delete ALL partitions and data with the command
# mfdisk -e /dev/hda 
  • Then recreate partitions manually via the command
# mfdisk -c /dev/hda 
  (this is the menue-driven interactive mode) 
Our goal is to create the following partiton-table:
/dev/hda1 Bootable Typ 83(Linux) 2GB 
/dev/hda2 Typ 82(LinuxSwap) 256MB 
/dev/hda3 Typ 83(Linux) the rest of the Disk 
All new partitions which will be created with the "n" command are Typ 83.
For hda1 use the first default sector and give as size +2048M (for 2GB). 
For hda2 use the first default sector after hda1 and give as size +256M (for 256MB). 
For hda3 use the first default sector after hda2 and use the default last sector for using the rest of the disk. 
Set the hda the bootable flag (see the menu via the "m" help) and
Change the type for hda2 to 82 via the "t" command.
Now you should have the wanted table of partitions and you could write him to Disk via the "w" command.
  • Now its time to make the filesystems:
# mkfs -j /dev/hda1 
# mkfs -j /dev/hda3 

# mkswap /dev/hda2 
# mount /dev/hda1 /mnt 

Prepare Debian

  • Transfer the fetched Debian image via FTP from another computer to the directory /mnt on the Kuro.
  • Back in the Telnet session
# cd /mnt 
# tar xvfz debian_2004_12_26_dist.tgz 

# write_ok (This is IMPORTANT! Kurobox will not leave EM mode on reboot unless you do this command)
# reboot
  • Now is a good time to change some settings
  • Network settings
# vi etc/network/interfaces
Example of static address interface settings
iface eth0 inet static 
iface lo inet loopback 
Example of dynamic address interface settings
iface eth0 inet dhcp 
iface lo inet loopback 
  • If a static address is used, you might want to change resolv,conf
# vi etc/resolv.conf
nameserver <DNS ip address> 
  • Change your hostname:
# vi etc/host
  • Have a look at the hosts.allow file to make sure you will not be able to login again
# vi etc/hosts.allow
There you should add your network :
ALL : 192.168.x.0/ 
ALL : 

The first boot of debian:

Because of the user root has no right to telnet in you have to use the user tmp-kun with the password tmp-kun. After you logged in as tmp-kun you may su to the root-user and the password root

For editing and some lowend terminal you should set your terminal-enviroment to vt100

# export TERM=vt100 

For security-reasons you should add your own personal user with

# adduser 

delete the standard-user tmp-kun with

# deleteuser tmp-kun 

Set a new password for root while you are logged in as root

# passwd 

Now you could update the debian-package list via

#apt-get update 

and then update your currently installed packages via

#apt-get upgrade 

Debian seems to use a little amount of memory in the Kurobox:

14:04:40 up 1:06, 1 user, load average: 0.00, 0.00, 0.00 
23 processes: 22 sleeping, 1 running, 0 zombie, 0 stopped 
CPU states: 1.0% user, 1.4% system, 0.0% nice, 97.6% idle 
Mem: 127088K total, 61644K used, 65444K free, 1508K buffers 
Swap: 265064K total, 0K used, 265064K free, 48800K cached