[[!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
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? --
* \# 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]]