summaryrefslogtreecommitdiff
path: root/public_hurd_boxen
diff options
context:
space:
mode:
Diffstat (limited to 'public_hurd_boxen')
-rw-r--r--public_hurd_boxen/bddebian.mdwn21
-rw-r--r--public_hurd_boxen/installation.mdwn102
-rw-r--r--public_hurd_boxen/installation/flubber.mdwn25
-rw-r--r--public_hurd_boxen/installation/snubber.mdwn61
-rw-r--r--public_hurd_boxen/xen_handling.mdwn49
-rw-r--r--public_hurd_boxen/zenhost.mdwn18
6 files changed, 276 insertions, 0 deletions
diff --git a/public_hurd_boxen/bddebian.mdwn b/public_hurd_boxen/bddebian.mdwn
new file mode 100644
index 00000000..82fb0b8c
--- /dev/null
+++ b/public_hurd_boxen/bddebian.mdwn
@@ -0,0 +1,21 @@
+[[!meta copyright="Copyright © 2009, 2010 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]]."]]"""]]
+
+# IP addresses
+
+ * [[zenhost]]: 192.168.10.60
+ * blubber: 192.168.10.61
+ * flubber: 192.168.10.50
+ * grubber: 192.168.10.63
+ * snubber: 192.168.10.62
+
+At least anything in the .60 range can be used.
+
+Registered in zenhost's `/etc/hosts`.
diff --git a/public_hurd_boxen/installation.mdwn b/public_hurd_boxen/installation.mdwn
new file mode 100644
index 00000000..67878f1a
--- /dev/null
+++ b/public_hurd_boxen/installation.mdwn
@@ -0,0 +1,102 @@
+[[!meta copyright="Copyright © 2009, 2010 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]]."]]"""]]
+
+This page documents how installation of a new machine is being done on
+[[zenhost]].
+
+This method uses
+*[install_crosshurd](http://git.savannah.gnu.org/cgit/hurd/incubator.git/log/?h=install_crosshurd)*.
+
+Another option might be switching to <http://www.informatik.uni-koeln.de/fai/>
+or a equivalent system.
+
+Steps for *install_crosshurd*:
+
+ * Enable loggin with screen (`C-a H`).
+
+ * \# lvcreate ...
+
+ * machines/[MACHINE]
+
+ * \# MACHINE=[MACHINE] TARGET=/dev/zenhost/[MACHINE]-root ./install_crosshurd
+
+ * TODO
+
+ 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? --
+ <http://lists.gnu.org/archive/html/bug-hurd/2009-11/msg00094.html>
+
+ * \# sudo umount /tmp/*/target
+
+ * /etc/xen/[MACHINE]
+
+ * \# xm create -c [MACHINE]
+
+ * \# /install
+
+ * TODO
+
+ Unpacking debconf (from .../debconf_1.5.28_all.deb) ...
+ + debconf-set-selections
+ warning: Unknown type error, skipping line 9
+
+ * TODO
+
+ +---------------------------Configuring grub-pc------------------------------+
+
+ Make it not install GRUB packages.
+
+ Likewise, the *gnumach* package need not be installed.
+
+ * If needed:
+
+ \# cd /dev/ && ./MAKEDEV hd2
+ \# mkfs.ext2 -I 128 -b 4096 /dev/hd2 # TAKE CARE!
+ \# 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
+
+ * Until [[open_issues/screen]] is fixed:
+
+ * Install `flubber:~tschwinge/screen_4.0.3-11_hurd-i386.deb` instead.
+
+ * \# printf 'screen\thold\n' | dpkg --set-selections
+
+ * add line to zenhost's `/etc/hosts`
+
+ * system-specific:
+
+ * [[flubber]]
+ * [[snubber]]
diff --git a/public_hurd_boxen/installation/flubber.mdwn b/public_hurd_boxen/installation/flubber.mdwn
new file mode 100644
index 00000000..66a01c3c
--- /dev/null
+++ b/public_hurd_boxen/installation/flubber.mdwn
@@ -0,0 +1,25 @@
+[[!meta copyright="Copyright © 2010 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]]."]]"""]]
+
+# *git daemon*
+
+## `/etc/rc.local`
+
+ [...]
+ # runit doesn't work yet...
+ LC_ALL=C date >> /var/log/git-daemon
+ git daemon --verbose --user-path >> /var/log/git-daemon 2>&1 &
+ [...]
+
+Should [[fix runit|open issues/runit]] and use Debian's `git-daemon-run`
+package instead.
+
+
+# *polipo*
diff --git a/public_hurd_boxen/installation/snubber.mdwn b/public_hurd_boxen/installation/snubber.mdwn
new file mode 100644
index 00000000..957a73fb
--- /dev/null
+++ b/public_hurd_boxen/installation/snubber.mdwn
@@ -0,0 +1,61 @@
+[[!meta copyright="Copyright © 2010 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]]."]]"""]]
+
+# Additional Packages
+
+Before 2010-08-12, we've been using apache2-mpm-worker, but that brought
+the system to its knees too often, leading to a un-syncable rootfs, etc.
+Let's see how apache2-mpm-prefork behaves.
+
+ apache2-mpm-prefork build-essential git-core gitweb ikiwiki inetutils-inetd
+ less libtext-csv-perl netcat nullmailer perlmagick screen texinfo
+
+Yet more:
+
+ * libemail-send-perl (for my *sendmail vs. ikiwiki* patch)
+
+## [[open_issues/syslog]]
+
+ $ 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
+
+
+# `/var/www/robots.txt`
+
+This file used to contain:
+
+ User-agent: *
+ Disallow: /gitweb/
+ Disallow: /cgi-bin/
+
+... which I've now changed to:
+
+ User-agent: *
+ Disallow: /
+
+The goal is that robots rather index the official pages,
+<http://www.gnu.org/software/hurd/>, instead of the staging area on
+<http://www.bddebian.com:8888/~hurd-web/>.
+
+
+# Restore Backup
+
+## `/etc/apache2/mods-enabled/`
+
+`rewrite.load`, `userdir.conf`, `userdir.load`
diff --git a/public_hurd_boxen/xen_handling.mdwn b/public_hurd_boxen/xen_handling.mdwn
new file mode 100644
index 00000000..47d92c43
--- /dev/null
+++ b/public_hurd_boxen/xen_handling.mdwn
@@ -0,0 +1,49 @@
+[[!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]]."]]"""]]
+
+# listing running domUs
+
+ $ sudo xm list
+
+ $ sudo xm top
+
+# handling running domUs
+
+Forcefully killing a domU (that has crashed or is busy-looping, etc.):
+
+ $ sudo xm destroy [domU]
+
+As for (re-)starting a domU, read below in *domU consoles*.
+
+Using `xm shutdown [domU]` to gracefully shut down a running domU does not yet
+work -- this is not yet implemented in the [[Xen port of GNU
+Mach|microkernel/mach/gnumach/ports/xen]] ([[!taglink open_issue_xen]]).
+
+# domU consoles
+
+To avoid any complications with people trying to use the same console at the
+same time, please use this command for attaching to a domU's console (this
+command line will also start the domU in case that it isn't running already):
+
+ $ host=[domU] && sudo screen -DRRS console-$host sh -c "xm console $host || xm create -c $host"
+
+Otherwise, if one attaches to the same console twice, the second instance will
+in fact forward input to the domU (possibly infering with what the person is
+doing on the first instance), but the output won't be sent back to the second
+instance.
+
+After having typed this once, Bash's `reverse-search-history` (`C-r`), followed
+by typing in `host=flubber`, for example, will be enough to get access to
+that machine's console.
+
+/!\ TODO: How does one get the environment variables `COLUMNS` and `LINES` set
+properly when using `xm console`? This is relevant for everything using
+`(n)curses` -- for interactive console applications. Using `export COLUMNS=143
+LINES=44` does work, but is a manual process.
diff --git a/public_hurd_boxen/zenhost.mdwn b/public_hurd_boxen/zenhost.mdwn
new file mode 100644
index 00000000..b828b8e9
--- /dev/null
+++ b/public_hurd_boxen/zenhost.mdwn
@@ -0,0 +1,18 @@
+[[!meta copyright="Copyright © 2009, 2010 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]]
+
+
+# [[Installation of new machines|installation]]