From eb02cdb3f877d0bb5778d8713319e8afa15dc7d0 Mon Sep 17 00:00:00 2001 From: jd823592 Date: Wed, 9 Jun 2010 12:53:55 +0000 Subject: --- hurd/running/dde_guide.mdwn | 126 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 hurd/running/dde_guide.mdwn (limited to 'hurd/running/dde_guide.mdwn') diff --git a/hurd/running/dde_guide.mdwn b/hurd/running/dde_guide.mdwn new file mode 100644 index 00000000..ab192606 --- /dev/null +++ b/hurd/running/dde_guide.mdwn @@ -0,0 +1,126 @@ +[[!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]]."]]"""]] + +I am in hurry right now, so just like this. + +install hurd to partition +get grub image +boot hurd in single user (change grub entry accordingly to the installed partition) + +> $ export TERM=mach +> $ ./native-install + +reboot to other debian + +suppose hurd partition is hdd1 + +as root + +> $ mount /dev/hdd1 /mnt -t ext2 +> $ cd /mnt/etc/apt +> $ echo "deb http://ftp.debian-ports.org/debian unreleased main" >> sources.list +> $ echo "deb-src http://ftp.debian-ports.org/debian unreleased main" >> sources.list +> $ echo "deb http://ftp.uk.debian.org/debian unstable main" >> sources.list +> $ echo "deb-src http://ftp.uk.debian.org/debian unstable main" >> sources.list +> $ wget http://www.gnu.org/software/hurd/hurd/running/debian/DebianAptOffline/apt.conf.offline +> $ cd /mnt +> $ apt-get -c etc/apt/apt.conf.offline update +> $ apt-get -c etc/apt/apt.conf.offline upgrade +> $ apt-get -c etc/apt/apt.conf.offline install git-core +> $ apt-get -c etc/apt/apt.conf.offline build-dep hurd gnumach +> $ apt-get -c etc/apt/apt.conf.offline install build-essential libpciaccess-dev libpcap0.8-dev +> $ cd /mnt/home +> $ git clone git://git.sv.gnu.org/hurd/incubator.git -b dde hurd_dde +> $ git clone git://git.sv.gnu.org/hurd/gnumach.git -b master-user_level_drivers gnumach_dde + +suppose you need forcedeth driver + +Download http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.29.y.git;a=blob_plain;f=drivers/net/forcedeth.c;hb=HEAD from mozilla like +browser to /mnt/home as forcedeth.c +Download http://pastebin.com/RJAJT2MR the same way and rename it to 0001-Fix-up-DDE-paths.patch + +reboot back to hurd (multiuser) + +login as root + +> $ passwd + +change your password + +> $ nano /etc/default/hurd-console + +change ENABLE='false' to ENABLE='true', uncomment KBD_REPEAT, MOUSE, MOUSE_REPEAT, SPEAKER + +> $ nano /etc/hostname + +change the hostname for example to hurd + +> $ nano /etc/hosts + +change the 127.0.0.1 line to: 127.0.0.1 hurd localhost + +> $ apt-get update +> $ apt-get upgrade +> $ apt-get install git-core +> $ apt-get build-dep hurd gnumach +> $ apt-get install build-essential libpciaccess-dev libpcap0.8-dev + +> $ cd /home/gnumach_dde +> $ autoreconf -i && ./configure --enable-kdb --enable-device-drivers=none --enable-lpr --enable-floppy --enable-ide +> $ make + +> $ cd ../hurd_dde +> $ git am ../0001-Fix-up-DDE-paths.patch +> $ cp -r dde_pcnet32 dde_forcedeth +> $ cd dde_forcedeth +> $ rm pcnet32.c +> $ cp /home/forcedeth.c ./ +> $ sed -i 's/pcnet32/forcedeth/g' Makefile +> $ sed -i 's/pcnet32/forcedeth/g' .gitignore +> $ sed -i 's:-lhurd-slab:../libhurd-slab/libhurd-slab.a:' Makefile +> $ sed -i 's:-I/include:-I..:' Makefile +> $ nano forcedeth.c + +add these 2 lines after the last #include +#include +void get_random_byter(void *buf, int nbytes) { } + +> $ cd .. +> $ git add dde_forcedeth +> $ git commit -a -m 'Add forcedeth driver' +> $ autoreconf -i && ./configure +> $ mkdir -p hurd/include/ddekit +> $ make libddekit libmachdev devnode pfinet +> $ cd libdde_linux26 +> $ make +> $ cd ../dde_forcedeth +> $ make + +If the make fails it might be necassary to replace some of the -l options (or all) in Makefile with the real path to the library objects (example: change *-lhurd-slab* to *../libhurd-slab/libhurd-slab.a*) + +> $ cp /home/gnumach_dde/gnumach /boot/gnumach_dde +> $ mkdir /hurd/dde +> $ cp /home/hurd_dde/devnode/devnode /hurd/dde +> $ cp /home/hurd_dde/pfinet/pfinet /hurd/dde +> $ cp /home/hurd_dde/dde_forcedeth/dde_forcedeth /hurd/dde/forcedeth + +reboot to hurd with the new gnumach_dde + +> $ settrans -c /dev/forcedeth /hurd/dde/forcedeth +> $ settrans -c /dev/eth0 /hurd/dde/devnode -M /dev/forcedeth eth0 +> $ settrans -c /servers/socket/2 /hurd/dde/pfinet -i /dev/eth0 -a 192.168.1.194 -g 192.168.1.254 -m 255.255.255.0 + +replace the ip, gateway and mask with your own ones + +> $ nano /etc/resolv.conf + +add line: nameserver 192.168.1.254 + +DONE -- cgit v1.2.3 From ad9a35718d8a50555b93cf682b8c57b7e43f60a9 Mon Sep 17 00:00:00 2001 From: jd823592 Date: Wed, 9 Jun 2010 13:00:35 +0000 Subject: forgot new lines --- hurd/running/dde_guide.mdwn | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'hurd/running/dde_guide.mdwn') diff --git a/hurd/running/dde_guide.mdwn b/hurd/running/dde_guide.mdwn index ab192606..08f82c99 100644 --- a/hurd/running/dde_guide.mdwn +++ b/hurd/running/dde_guide.mdwn @@ -15,6 +15,7 @@ get grub image boot hurd in single user (change grub entry accordingly to the installed partition) > $ export TERM=mach + > $ ./native-install reboot to other debian @@ -24,26 +25,43 @@ suppose hurd partition is hdd1 as root > $ mount /dev/hdd1 /mnt -t ext2 + > $ cd /mnt/etc/apt + > $ echo "deb http://ftp.debian-ports.org/debian unreleased main" >> sources.list + > $ echo "deb-src http://ftp.debian-ports.org/debian unreleased main" >> sources.list + > $ echo "deb http://ftp.uk.debian.org/debian unstable main" >> sources.list + > $ echo "deb-src http://ftp.uk.debian.org/debian unstable main" >> sources.list + > $ wget http://www.gnu.org/software/hurd/hurd/running/debian/DebianAptOffline/apt.conf.offline + > $ cd /mnt + > $ apt-get -c etc/apt/apt.conf.offline update + > $ apt-get -c etc/apt/apt.conf.offline upgrade + > $ apt-get -c etc/apt/apt.conf.offline install git-core + > $ apt-get -c etc/apt/apt.conf.offline build-dep hurd gnumach + > $ apt-get -c etc/apt/apt.conf.offline install build-essential libpciaccess-dev libpcap0.8-dev + > $ cd /mnt/home + > $ git clone git://git.sv.gnu.org/hurd/incubator.git -b dde hurd_dde + > $ git clone git://git.sv.gnu.org/hurd/gnumach.git -b master-user_level_drivers gnumach_dde + suppose you need forcedeth driver Download http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.29.y.git;a=blob_plain;f=drivers/net/forcedeth.c;hb=HEAD from mozilla like browser to /mnt/home as forcedeth.c + Download http://pastebin.com/RJAJT2MR the same way and rename it to 0001-Fix-up-DDE-paths.patch reboot back to hurd (multiuser) @@ -67,56 +85,91 @@ change the hostname for example to hurd change the 127.0.0.1 line to: 127.0.0.1 hurd localhost > $ apt-get update + > $ apt-get upgrade + > $ apt-get install git-core + > $ apt-get build-dep hurd gnumach + > $ apt-get install build-essential libpciaccess-dev libpcap0.8-dev + > $ cd /home/gnumach_dde + > $ autoreconf -i && ./configure --enable-kdb --enable-device-drivers=none --enable-lpr --enable-floppy --enable-ide + > $ make > $ cd ../hurd_dde + > $ git am ../0001-Fix-up-DDE-paths.patch + > $ cp -r dde_pcnet32 dde_forcedeth + > $ cd dde_forcedeth + > $ rm pcnet32.c + > $ cp /home/forcedeth.c ./ + > $ sed -i 's/pcnet32/forcedeth/g' Makefile + > $ sed -i 's/pcnet32/forcedeth/g' .gitignore + > $ sed -i 's:-lhurd-slab:../libhurd-slab/libhurd-slab.a:' Makefile + > $ sed -i 's:-I/include:-I..:' Makefile + > $ nano forcedeth.c add these 2 lines after the last #include + #include + void get_random_byter(void *buf, int nbytes) { } > $ cd .. + > $ git add dde_forcedeth + > $ git commit -a -m 'Add forcedeth driver' + > $ autoreconf -i && ./configure + > $ mkdir -p hurd/include/ddekit + > $ make libddekit libmachdev devnode pfinet + > $ cd libdde_linux26 + > $ make + > $ cd ../dde_forcedeth + > $ make If the make fails it might be necassary to replace some of the -l options (or all) in Makefile with the real path to the library objects (example: change *-lhurd-slab* to *../libhurd-slab/libhurd-slab.a*) > $ cp /home/gnumach_dde/gnumach /boot/gnumach_dde + > $ mkdir /hurd/dde + > $ cp /home/hurd_dde/devnode/devnode /hurd/dde + > $ cp /home/hurd_dde/pfinet/pfinet /hurd/dde + > $ cp /home/hurd_dde/dde_forcedeth/dde_forcedeth /hurd/dde/forcedeth reboot to hurd with the new gnumach_dde > $ settrans -c /dev/forcedeth /hurd/dde/forcedeth + > $ settrans -c /dev/eth0 /hurd/dde/devnode -M /dev/forcedeth eth0 + > $ settrans -c /servers/socket/2 /hurd/dde/pfinet -i /dev/eth0 -a 192.168.1.194 -g 192.168.1.254 -m 255.255.255.0 + replace the ip, gateway and mask with your own ones > $ nano /etc/resolv.conf -- cgit v1.2.3 From 373cbd2c532fbcaad6cde0df8fab29d52b3f952a Mon Sep 17 00:00:00 2001 From: "http://amade.myopenid.com/" Date: Wed, 9 Jun 2010 13:38:15 +0000 Subject: --- hurd/running/dde_guide.mdwn | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'hurd/running/dde_guide.mdwn') diff --git a/hurd/running/dde_guide.mdwn b/hurd/running/dde_guide.mdwn index 08f82c99..03a09703 100644 --- a/hurd/running/dde_guide.mdwn +++ b/hurd/running/dde_guide.mdwn @@ -125,9 +125,8 @@ change the 127.0.0.1 line to: 127.0.0.1 hurd localhost add these 2 lines after the last #include -#include - -void get_random_byter(void *buf, int nbytes) { } + #include + void get_random_byter(void *buf, int nbytes) { } > $ cd .. -- cgit v1.2.3 From 7e29e23625bb1d4e1539abfe48b6b3a396625b02 Mon Sep 17 00:00:00 2001 From: jd823592 Date: Fri, 11 Jun 2010 17:29:31 +0000 Subject: deleted completely dde-unrelated steps --- hurd/running/dde_guide.mdwn | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'hurd/running/dde_guide.mdwn') diff --git a/hurd/running/dde_guide.mdwn b/hurd/running/dde_guide.mdwn index 03a09703..6518e0e4 100644 --- a/hurd/running/dde_guide.mdwn +++ b/hurd/running/dde_guide.mdwn @@ -8,9 +8,7 @@ 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]]."]]"""]] -I am in hurry right now, so just like this. - -install hurd to partition +If you haven't: install hurd to partition get grub image boot hurd in single user (change grub entry accordingly to the installed partition) @@ -66,24 +64,6 @@ Download http://pastebin.com/RJAJT2MR the same way and rename it to 0001-Fix-up- reboot back to hurd (multiuser) -login as root - -> $ passwd - -change your password - -> $ nano /etc/default/hurd-console - -change ENABLE='false' to ENABLE='true', uncomment KBD_REPEAT, MOUSE, MOUSE_REPEAT, SPEAKER - -> $ nano /etc/hostname - -change the hostname for example to hurd - -> $ nano /etc/hosts - -change the 127.0.0.1 line to: 127.0.0.1 hurd localhost - > $ apt-get update > $ apt-get upgrade -- cgit v1.2.3