equal
deleted
inserted
replaced
1 Zuerst machen wir ein sparse Image für unsere später CF-Card |
1 Wie bekommen wir ein stinknormales Debian auf so ein kleines |
2 und partitionieren dies. |
2 Alix-Board? |
|
3 ------------------------------------------------------------- |
|
4 |
|
5 Die Dinger booten von der CF-Karte und über PXE. PXE wollte ich nicht, |
|
6 zumal es später auch von der Karte booten soll. |
|
7 |
|
8 Hilfreich, damit man das Alix-Board (ich habe das Alix.2D13, 2x USB, 3x |
|
9 Ethernet, AMD Geode 500Mhz, 256MB RAM) beim Booten beobachten kann, ist |
|
10 ein Nullmodem-Kabel und ein serieller Port am eigenen Rechner (oder |
|
11 USB-Seriell-Adapter (ich habe hier einen FT232)). |
|
12 |
|
13 Zuerste messen (/proc/partitions) wir unsere CF-Card aus und machen uns |
|
14 ein „sparse Image“, mit dem wir alles vorbereiten und welches wir dann |
|
15 später auf die Card kopieren. Dieses Image partitionieren wir natürlich: |
3 |
16 |
4 $ dd of=<IMAGE> bs=1K count=0 seek=<BLOCKS of CF> |
17 $ dd of=<IMAGE> bs=1K count=0 seek=<BLOCKS of CF> |
5 $ parted -a optimal -s -- <IMAGE> mklabel msdos |
18 $ parted -a optimal -s -- <IMAGE> mklabel msdos |
6 $ parted -a optimal -s -- <IMAGE> mkpart primary ext4 1 -1 |
19 $ parted -a optimal -s -- <IMAGE> mkpart primary ext4 1 -1 |
7 |
20 |
47 |
60 |
48 # http_proxy=http://localhost:3128/ debootstrap \ |
61 # http_proxy=http://localhost:3128/ debootstrap \ |
49 --arch i386 stable \ |
62 --arch i386 stable \ |
50 <TARGET> http://ftp.de.debian.org/debian |
63 <TARGET> http://ftp.de.debian.org/debian |
51 |
64 |
|
65 Und nun die eientliche Einrichtung vornehmen: |
|
66 |
52 # echo [%HOSTNAME%] > <TARGET>/etc/hostname |
67 # echo [%HOSTNAME%] > <TARGET>/etc/hostname |
53 # cat ROOT/etc/environment >> <TARGET>/etc/environment |
68 # cat ROOT/etc/environment >> <TARGET>/etc/environment |
54 |
69 |
55 # cp ROOT/root/.bashrc <TARGET>/root/ |
70 # cp ROOT/root/.bashrc <TARGET>/root/ |
56 # cp ROOT/etc/udev/rules.d/10-alix.rules <TARGET>/etc/udev/rules.d/ |
71 # cp ROOT/etc/udev/rules.d/10-alix.rules <TARGET>/etc/udev/rules.d/ |
57 # cp ROOT/etc/apt/apt.conf.d/10-alix <TARGET>/etc/apt/apt.conf.d/ |
72 # cp ROOT/etc/apt/apt.conf.d/10-alix <TARGET>/etc/apt/apt.conf.d/ |
|
73 # cp ROOT/etc/apt/sources.list <TARGET>/etc/apt/sources.list |
58 |
74 |
59 # [edit] <TARGET>/etc/default/rcS |
75 # [edit] <TARGET>/etc/default/rcS |
60 RAMRUN=yes |
76 RAMRUN=yes |
61 RAMLOCK=yes |
77 RAMLOCK=yes |
62 RAMTMP=yes |
78 RAMTMP=yes |
74 # chroot <TARGET> ln -s /var/run/resolv.conf /etc/ |
90 # chroot <TARGET> ln -s /var/run/resolv.conf /etc/ |
75 # chroot <TARGET> passwd root |
91 # chroot <TARGET> passwd root |
76 # chroot <TARGET> aptitude update |
92 # chroot <TARGET> aptitude update |
77 # chroot <TARGET> aptitude purge isc-dhcp-client |
93 # chroot <TARGET> aptitude purge isc-dhcp-client |
78 # chroot <TARGET> aptitude install linux-image-686 openssh-server udhcpc ifplugd |
94 # chroot <TARGET> aptitude install linux-image-686 openssh-server udhcpc ifplugd |
79 # chroot <TARGET> aptitude install vim ferm |
95 # chroot <TARGET> aptitude install vim ferm rdate |
|
96 (# chroot <TARGET> aptitude install avahi-daemon) |
80 # chroot <TARGET> dpkg-reconfigure tzdata |
97 # chroot <TARGET> dpkg-reconfigure tzdata |
81 |
98 |
82 # -> die folgenden vielleicht in der VM installieren, da sonst |
99 # -> die folgenden vielleicht in der VM installieren, da sonst |
83 # gemeckert wird |
100 # gemeckert wird |
84 # chroot <TARGET> aptitude install busybox-syslogd chrony |
101 # chroot <TARGET> aptitude install busybox-syslogd chrony |
91 - eine normale lassen (für Simulation in kvm) |
108 - eine normale lassen (für Simulation in kvm) |
92 # [edit] <TARGET>/etc/default/ifplugd |
109 # [edit] <TARGET>/etc/default/ifplugd |
93 # [edit] <TARGET>etc/logrotate.conf |
110 # [edit] <TARGET>etc/logrotate.conf |
94 # [edit] <TARGET>etc/logrotate.d/* |
111 # [edit] <TARGET>etc/logrotate.d/* |
95 # [edit] <TARGET>/etc/default/ferm [cache=no] |
112 # [edit] <TARGET>/etc/default/ferm [cache=no] |
|
113 # [edit] <TARGET>/etc/ferm/ferm.conf [avahi: 5353/udp] |
96 |
114 |
97 # umount <TARGET> |
115 # umount <TARGET> |
98 # kpartx -d <IMAGE> |
116 # kpartx -d <IMAGE> |
99 # buffer -z 32K -i image -o <CFCARD> |
117 # buffer -z 32K -i image -o <CFCARD> |
100 |
118 |
|
119 Später dann: |
|
120 |
|
121 # rdate -s time.fu-berlin.de |
|
122 # hwclock -wu |
|
123 |
101 --- |
124 --- |
102 [] vi etc/default/apache2 |
125 [] vi etc/default/apache2 |
103 mkdir /var/log/apache2 |
126 mkdir /var/log/apache2 |
104 |
127 |