summaryrefslogtreecommitdiff
path: root/hurd/running/debian/after_install.mdwn
blob: 5c998c949009e67f64ac27b3279a3e3c7be8fd8d (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
First steps after installation.

So you have managed to get past the first `native-install` runs in single-user
mode?

Time to get to work.

[[toc ]]


### Get Networking Running

[[Network]].

Check if your NIC was detected by GNU Mach:

    # devprobe eth0

`devprobe` (run as user *root*) will print `eth0` on successful detection.  If
it doesn't, your NIC was not detected correctly.  You can then try to do the
following (also as user *root*) for getting details:

    # cat /dev/klog > ~/klog
    [Wait a second, then press `Ctrl-C'.]

Now examine the `~/klog` file.

If the NIC was detected:

    # settrans -fgap /servers/socket/2 /hurd/pfinet -i eth0 -a 192.168.1.3 -g 192.168.1.1 -m 255.255.255.0


# Setup GRUB

You surely want grub to have a nice menu entry able to boot GNU, instead of
typing a boring arcane.  There are Debian-specific scripts that may help
you.  See the [[GrubNotes]] for this.


# Setup `apt-get`

Sometimes getting `apt-get` to work is not straightforward.  Good mirrors to
put in `/etc/apt/sources.list` are (as of Jan 2007):

    deb http://mirrors.kernel.org/debian unstable main contrib
    deb-src http://mirrors.kernel.org/debian unstable main contrib
    deb http://ftp.gnuab.org/debian unreleased main
    deb-src http://ftp.gnuab.org/debian unreleased main

`apt-get` update a couple of times if some file fails to download.

<!-- As long as I am around (which is as off February 2005) I never ever had to
do such following frobbing.  Should we remove this?  --[[tschwinge]] -->

If when doing your first `apt-get`, `dpkg` complains of missing programs, [try
to cheat it this
way](http://lists.debian.org/debian-hurd/1999/05/msg00187.html):

    # ln -s /sbin/ldconfig /bin/ldconfig
    # ln -s /bin/true /bin/update-rc.d
    # ln -s /bin/true /bin/start-stop-daemon
    # ln -s /bin/true /bin/install-info
    # ln -s /bin/true /bin/update-alternatives

Installing packages without having a network connection is described
[[Distrib/DebianAptOffline]].


# [[translator/Random]]

You often need `scp` and `ssh`.  Sadly the Debian GNU/Hurd does not yet come
with any default random translator package installed.  See
[[translator/random]] for details, the following is just a quick recap.

    cd && mkdir tmp && cd tmp
    wget http://kilobug.free.fr/hurd/random-64.tar.gz
    tar xvfz random-64.tar.gz
    cp random /hurd/

    settrans -c /dev/random /hurd/random \
               --seed-file /var/run/random-seed --secure
    settrans -c /dev/urandom /hurd/random \
               --seed-file /var/run/urandom-seed --fast
    chmod 0644 /dev/random /dev/urandom

    apt-get install ssh


# [[Console]]

The latest Hurd package in Debian, plus the `native-install` script, creates
all necessary device nodes and other magic.  You just need to edit
`/etc/default/hurd-console` to tune the parameters and tell it to start at
bootup.

You can also call the Hurd console manually with the proper arguments:

    console -d vga -d pc_kbd --repeat=kbd -d pc_mouse --repeat=mouse \
            -d generic_speaker -c /dev/vcs

    cd /dev
    ln -s cons/kbd .
    ln -s cons/mouse .


# [[Hurd/DebianXorg]]

You first must have setup the virtual console.  See above.

Assuming you've installed WindowMaker and have tried running `startx` already:

    [/etc/X11/XF86Config-4]

    Section "Module"
    #        Load           "dri"
    #        Load           "speedo"
             .
             .
             .
    EndSection

    Section "InputDevice"
            Identifier      "Configured Mouse"
            Driver          "mouse"
            Option          "CorePointer"
            Option          "Device"                "/dev/mouse"
            Option          "Protocol"              "osmouse"
    EndSection

Make sure not to have the `Emulate3Buttons` and `ZAxisMapping` settings set, as
they lead to problems with e.g. dragging windows around.

    [/etc/profile]
    LD_LIBRARY_PATH=/X11R6/lib:$LD_LIBRARY_PATH

# What about package XYZ?

See if you can find a useful tip in [[package_troubleshooting]].