29. That should output the new host name. Congratulations, you have successfully installed Debian on your LinkStation. Now wasn't that easy?

29. That should output the new host name. Congratulations, you have successfully installed Debian on your LinkStation. Now wasn't that easy?

−

−

[http://www.mac-how.net how to restore a mac]

Latest revision as of 09:09, 29 October 2010

This article
Based on work by andre, Thorongil and frontalot.
Originally by frontalot.
at Linkstationwiki.org

I have no free IDE port in my workstation?

It is also possible to use an external USB IDE case, which you open, connect to the linkstation's disk, power on and connect to your workstation. If you use an USB IDE case, you must use "/dev/sdx" instead of "/dev/hdx", also be sure to prevent your distribution from mounting it automatically on your desktop or elsewhereto

WARNING!

This article describes how to install Debian on the Kurobox on a Linkstation. It was created before FreeLink existed. To install Freelink using the Flash Installer (without opening the Linkstation), follow this link.

5. Run fix_ext2_magic to repair the partition information and make the hard drive mountable. Use the command, where x is the hard drive name:

./fix_ext2_magic --fix /dev/hdx1

6. Mount the LinkStation hard drive. Use the command:

mount /dev/hdx1 /mnt/hdx1

7. Unmount the LinkStation hard drive. Use the command:

unmount /dev/hdx1

8. Partition the LinkStation hard drive according to your preferences. A good choice is a 2GB partition 1 (main), a 512MB partition 2 (swap), and the remaining hard drive space partition 3. Use:

What is hdx?

Replace "x" with whatever letter you have mounted the hard drive as (such as "a" or "b.")

fdisk /dev/hdx

9. Build an ext3 file system on partitions 1 and 3. Use the commands:

mke2fs -j /dev/hdx1; mke2fs -j /dev/hdx3

10. Turn off the file system check timers since partitions 1 and 3 are ext3 with journals. Use the commands:

tune2fs -i0 -c0 /dev/hdx1; tune2fs -i0 -c0 /dev/hdx3

11. Build the swap space. Use the command:

mkswap /dev/hdx2

12. Mount partition 1. Use the command:

mount /dev/hdx1 /mnt/hdx1

13. Extract the LinkStation Debian tar. Use the commands:

cd /mnt/hdx1; tar -zxvf ./debian_package_date_dist.tgz

14. Previous versions of this tutorial directed you to replace the kernel modules folder with the updated version available here. The updated kernel modules now come pre-installed in the latest Debian distribution.

15. Correct the networking files so you can connect to the Linkstation. Edit /etc/network/interfaces, /etc/resolv.conf, /etc/hosts, /etc/hosts.allow, and /etc/hosts.deny to your network settings. It is recommended to change /etc/hosts.deny to ALL : PARANOID.

19. Now be sure that swap space is activated (your linkstation may fail on you when doing heavy work because of filled up RAM), run "top", it shows you in the upper left corner the available swap space. If it's zero, run:

mkswap /dev/hda2swapon -a

20. Edit /etc/apt/sources.list so that it contains the following lines:

24. Log in to the LinkStation via telnet and su to root. Make a new user. Use the command:

adduser yournewusername

25. Logout, log back using the new username, and su to root. Then remove the default tmp-kun user. Use the command:

deluser tmp-kun

26. Set a new root password. This is very important. Use the command:

passwd root

27. And enter your new password. Lastly let's change the hostname from the default KURO-BOX to one of your choice. Use the command:

hostname yourhostname

28. However, the changes won't be saved unless we edit 2 more files. First open up /etc/hostname and replace KURO-BOX with the hostname of your choice. Then open up /etc/hosts and again replace KURO-BOX with the hostname of your choice. Reboot your LinkStation and verify the changes by typing the command:

hostname

29. That should output the new host name. Congratulations, you have successfully installed Debian on your LinkStation. Now wasn't that easy?