summaryrefslogtreecommitdiff
path: root/public_hurd_boxen/zenhost.mdwn
blob: e13c49b1a6baff993ef787495eca516324129d94 (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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[[!meta copyright="Copyright © 2009 Free Software Foundation, Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]

*zenhost* is a Xen dom0 (hosted by [[bddebian]]) which is hosting several domUs
(see the table on [[public hurd boxen]] for a list).


[[!inline pages=public_hurd_boxen/xen_handling feeds=no]]


# Installing

  * Enable loggin with screen (`C-a H`).

  * lvcreate ...

  * ~tschwinge/machines/MACHINE

  * ~tschwinge/install_crosshurd

      * MACHINE

      * /dev/zenhost/...-root

  * /etc/xen/MACHINE

  * xm create -c MACHINE

      * /install

      * If needed:

          * cd /dev/ && ./MAKEDEV hd2

              * mkfs.ext2 -I 128 -b 4096 /dev/hd2

          * mkdir /media/data && settrans /media/data /hurd/ext2fs /dev/hd2

          * rmdir /home && ln -s media/data/home /

              * mkdir /media/data/home

      * If needed: restore (parts of) some files

          * /etc/fstab

          * /etc/{passwd,shadow,group,gshadow}

              * adduser ... sudo

              * passwd root

          * /etc/ssh/ssh_host_*key*

            Can do this here or have to move after install_packages due to the
            files being overwritten again (don't think so)?

      * syncfs -s; halt

  * xm create -c MACHINE

      * /install_packages

  * add line to zenhost's `/etc/hosts`

## TODO

### crosshurd

    I: Extracting /var/cache/apt/archives/dash_0.5.5.1-3_hurd-i386.deb...
    tar: ./bin/sh: Cannot create symlink to `dash': File exists
    tar: ./usr/share/man/man1/sh.1.gz: Cannot create symlink to `dash.1.gz': File exists
    tar: Exiting with failure status due to previous errors

Ignore?

### /install

    Unpacking debconf (from .../debconf_1.5.28_all.deb) ...
    + debconf-set-selections
    warning: Unknown type error, skipping line 7

Fix.

    Configuring dash
    ----------------
    
    The system shell is the default command interpreter for shell scripts.
    
    Using dash as the system shell will improve the system's overall performance. It
    does not alter the shell presented to interactive users.
    
    Use dash as the default system shell (/bin/sh)? yes

Automate.

    Configuring libpam-runtime
    --------------------------
    
    Pluggable Authentication Modules (PAM) determine how authentication, 
    authorization, and password changing are handled on the system, as well as 
    allowing configuration of additional actions to take when starting user 
    sessions.
    
    Some PAM module packages provide profiles that can be used to automatically 
    adjust the behavior of all PAM-using applications on the system.  Please 
    indicate which of these behaviors you wish to enable.
    
      1. Unix authentication
    
    (Enter the items you want to select, separated by spaces.)
    
    PAM profiles to enable: 1

Automate.

     +---------------------------Configuring grub-pc------------------------------+

Add grub*- somewhere.

      +---------------------ca-certificates configuration------------------------+
      | Trust new certificates from certificate authorities?                     |

Used to be configured later -- move seeding forward.

---

# snubber

  * apache2-mpm-worker build-essential git-core gitweb ikiwiki inetutils-inetd
    less libtext-csv-perl netcat nullmailer perlmagick screen texinfo

      * `find /etc/rc*/ | grep syslog | sudo xargs rm`

  * `~hurd-web/`

      * `mkdir hurd-web && GIT_DIR=hurd-web git init`

  * `~tschwinge/`

      * `mkdir tmp/backup && chmod 0733 tmp/backup`

  * restore backup

      * `/etc/apache2/mods-enabled/`

          * `rewrite.load`, `userdir.conf`, `userdir.load`