summaryrefslogtreecommitdiff
path: root/unsorted/InstallTips.mdwn
blob: 46b485ec7a9d328eac8a440a433a16aebb78de1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
## <a name="1_Setting_up_the_filesystems"> 1. Setting up the filesystems </a>

You will need to boot a linux capable of internet access and creating/mounting ext2 partitions. I recommend [tomsrtbt](http://www.toms.net/rb/) linux which fits nicely onto a floppy and although a bit old will work well.

Once in linux, you will need to create the partitions with fdisk. If you need to reboot, you will be notified. Make sure your partitions are not more than 2gig, or not even close. I learned this the hard way. This is for version 9-17-2004, newer versions should not have this problem.

Assuming your root partition is on the first partition of the primary master run:

    mke2fs -o hurd /dev/hda1

If you do not have enough memory to do this, you will need to create a swap partition using mkswap and enable it with swapon before running mke2fs.

## <a name="2_Getting_online"> 2. Getting online </a>

Now you will need to get online to download the needed base system. To do this check to see if you are already online.

If not, check the network by issuing ifconfig. If you have a device but it is not listed correctly, refer to the documentation on ifconfig to set it correctly. Even if you have dhcp you can usually issue a static ip that is in the correct range. An example may read:

    ifconfig eth0 up 192.168.1.9 netmask 255.255.255.0

Now setup the default gateway replace with your gateway

    route add default gw 192.168.1.1

you may need to issue "route del default" a few times to remove incorrect routings.

Now just edit /etc/resolv.conf and put in your nameserver and you should be set.

## <a name="3_Downloading_the_tar"> 3. Downloading the tar </a>

Mount the filesystem to a directory (/mnt works) and cd to this directory.

Download the latest tar of the debian system <http://eu.hurd.gnuab.org/pub/debian/base/> or another working link, the file will probably be in the format: debian-gnu-hurd-yyyy.mm.dd.tar.gz

use wget for the full path

now assuming tomsrtbt linux issue:

    gzip -d<debian-gnu-hurd-yyyy.mm.dd.tar.gz|tar -xvf -

replacing yyyy.mm.dd appropriately

## <a name="4_Configuring_GRUB"> </a> 4. Configuring GRUB

Download the floppy image of grub with ext2fs support to a temporary directory, it can be found here: <ftp://alpha.gnu.org/gnu/grub/> write it to a blank floppy

    dd if=image of=/dev/fd0

now mount the floppy and copy the files to your partition

    mount /dev/fd0 /fl
    cd /fl/boot
    cp -R grub /mnt/boot

you may also wish to put my menu.lst file in your grub directory which can be obtained here <ftp://firethroat.com/hurd/menu.lst> you will need to edit it to include a -s at the end of the line starting with kernel. Be sure modify the partition numbers, my system is using the third partition of the second harddrive.

More detailed samples for GRUB config files can be found at the [[GRUB]] page.

To install grub reboot using the grub floppy and issue:

    root (hd1,2)
    setup (hd0)

this will use the grub installed on the third partition of the second harddrive and install it to the master boot record of the first hard drive.

Now reboot without the floppy, be sure to use the option -s at the end of the grub line starting with kernel= to start in single user mode.

## <a name="5_Booting_GNU"> </a> 5. Booting GNU

You should have booted the kernel now, check output to see if it detects your network card. My smc card did not work so I switched to a 3com card.

## <a name="6_Final_notes"> 6. Final notes </a>

Be sure to issue

    apt-get update
    apt-get upgrade

Before running x run the console

    console -d vga -d pc_kbd --repeat=kbd -c /dev/cons /dev/vcs

This forwards the keyboard device so x can use it. It also gives you 6 virtual terminals. I have had problems using it to forward the mouse, the system would lock. To exit issue ctrl+alt+backspace

To get a sample XF86Config-4 issue:

    X -configure

My file is available <ftp://firethroat.com/hurd/XF86Config-4> but it uses a serial mouse. You can use settrans to get mouse input (this is the prefered method) or accessing it directly works.

## <a name="7_Works_Cited_Referenced_Materia"> 7. Works Cited - Referenced Materials </a>

[Grub Install Guide](http://www.gnu.org/software/grub/manual/html_node/Installing-GRUB-natively.html)

[tomsrtbt linux](http://www.toms.net/rb/) a general purpose linux distribution on 1 floppy.

A lot of help in the chat room [[IRC]].

----

## <a name="Licensing"> Licensing </a>

The license for this info work is under the [GNU GPL](http://web.walfield.org/papers/hurd-installation-guide/COPYING). However, in the Hurd Wiki license all content under the GNU FDL. (Unless the topic is mostly code or otherwise stated in the text.)

-- [[Main/SeanDEpagnier]] - 25 Dec 2004