From: Petter Reinholdtsen Date: Mon, 3 Feb 2014 12:45:19 +0000 (+0000) Subject: Generated. X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/commitdiff_plain/d3f319e0157a9dfa6572c659e6f47a26cd4d13ad?ds=inline Generated. --- diff --git a/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html b/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html index fc93168bfb..6ac186594a 100644 --- a/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html +++ b/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html @@ -41,8 +41,8 @@ kvm internal DHCP server:

 settrans -fgap /dev/netdde /hurd/netdde 
-pkill pfinet
-pkill devnode
+kill -9 $(ps -ef|awk '/[p]finet/ { print $2}')
+kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}')
 dhclient -v /dev/eth0
 

diff --git a/blog/archive/2014/02/02.rss b/blog/archive/2014/02/02.rss new file mode 100644 index 0000000000..43a62aff64 --- /dev/null +++ b/blog/archive/2014/02/02.rss @@ -0,0 +1,118 @@ + + + + Petter Reinholdtsen - Entries from February 2014 + Entries from February 2014 + http://people.skolelinux.org/pere/blog/ + + + + Testing sysvinit from experimental in Debian Hurd + http://people.skolelinux.org/pere/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html + http://people.skolelinux.org/pere/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html + Mon, 3 Feb 2014 13:40:00 +0100 + <p>A few days ago I decided to try to help the Hurd people to get +their changes into sysvinit, to allow them to use the normal sysvinit +boot system instead of their old one. This follow up on the +<a href="https://teythoon.cryptobitch.de//categories/gsoc.html">great +Google Summer of Code work</a> done last summer by Justus Winter to +get Debian on Hurd working more like Debian on Linux. To get started, +I downloaded a prebuilt hard disk image from +<a href="http://ftp.debian-ports.org/debian-cd/hurd-i386/current/debian-hurd.img.tar.gz">http://ftp.debian-ports.org/debian-cd/hurd-i386/current/debian-hurd.img.tar.gz</a>, +and started it using virt-manager.</p> + +<p>The first think I had to do after logging in (root without any +password) was to get the network operational. I followed +<a href="https://www.debian.org/ports/hurd/hurd-install">the +instructions on the Debian GNU/Hurd ports page</a> and ran these +commands as root to get the machine to accept a IP address from the +kvm internal DHCP server:</p> + +<p><blockquote><pre> +settrans -fgap /dev/netdde /hurd/netdde +kill -9 $(ps -ef|awk '/[p]finet/ { print $2}') +kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}') +dhclient -v /dev/eth0 +</pre></blockquote></p> + +<p>After this, the machine had internet connectivity, and I could +upgrade it and install the sysvinit packages from experimental and +enable it as the default boot system in Hurd.</p> + +<p>But before I did that, I set a password on the root user, as ssh is +running on the machine it for ssh login to work a password need to be +set. Also, note that a bug somewhere in openssh on Hurd block +compression from working. Remember to turn that off on the client +side.</p> + +<p>Run these commands as root to upgrade and test the new sysvinit +stuff:</p> + +<p><blockquote><pre> +cat > /etc/apt/sources.list.d/experimental.list &lt;&lt;EOF +deb http://http.debian.net/debian/ experimental main +EOF +apt-get update +apt-get dist-upgrade +apt-get install -t experimental initscripts sysv-rc sysvinit \ + sysvinit-core sysvinit-utils +update-alternatives --config runsystem +</pre></blockquote></p> + +<p>To reboot after switching boot system, you have to use +<tt>reboot-hurd</tt> instead of just <tt>reboot</tt>, as there is not +yet a sysvinit process able to receive the signals from the normal +'reboot' command. After switching to sysvinit as the boot system, +upgrading every package and rebooting, the network come up with DHCP +after boot as it should, and the settrans/pkill hack mentioned at the +start is no longer needed. But for some strange reason, there are no +longer any login prompt in the virtual console, so I logged in using +ssh instead. + +<p>Note that there are some race conditions in Hurd making the boot +fail some times. No idea what the cause is, but hope the Hurd porters +figure it out. At least Justus said on IRC (#debian-hurd on +irc.debian.org) that they are aware of the problem. A way to reduce +the impact is to upgrade to the Hurd packages built by Justus by +adding this repository to the machine:</p> + +<p><blockquote><pre> +cat > /etc/apt/sources.list.d/hurd-ci.list &lt;&lt;EOF +deb http://darnassus.sceen.net/~teythoon/hurd-ci/ sid main +EOF +</pre></blockquote></p> + +<p>At the moment the prebuilt virtual machine get some packages from +http://ftp.debian-ports.org/debian, because some of the packages in +unstable do not yet include the required patches that are lingering in +BTS. This is the completely list of "unofficial" packages installed:</p> + +<p><blockquote><pre> +# aptitude search '?narrow(?version(CURRENT),?origin(Debian Ports))' +i emacs - GNU Emacs editor (metapackage) +i gdb - GNU Debugger +i hurd-recommended - Miscellaneous translators +i isc-dhcp-client - ISC DHCP client +i isc-dhcp-common - common files used by all the isc-dhcp* packages +i libc-bin - Embedded GNU C Library: Binaries +i libc-dev-bin - Embedded GNU C Library: Development binaries +i libc0.3 - Embedded GNU C Library: Shared libraries +i A libc0.3-dbg - Embedded GNU C Library: detached debugging symbols +i libc0.3-dev - Embedded GNU C Library: Development Libraries and Hea +i multiarch-support - Transitional package to ensure multiarch compatibilit +i A x11-common - X Window System (X.Org) infrastructure +i xorg - X.Org X Window System +i A xserver-xorg - X.Org X server +i A xserver-xorg-input-all - X.Org X server -- input driver metapackage +# +</pre></blockquote></p> + +<p>All in all, testing hurd has been an interesting experience. :) +X.org did not work out of the box and I never took the time to follow +the porters instructions to fix it. This time I was interested in the +command line stuff.<p> + + + + + diff --git a/blog/archive/2014/02/index.html b/blog/archive/2014/02/index.html new file mode 100644 index 0000000000..01c07efe0d --- /dev/null +++ b/blog/archive/2014/02/index.html @@ -0,0 +1,435 @@ + + + + + Petter Reinholdtsen: entries from February 2014 + + + + + + +
+

+ Petter Reinholdtsen + +

+ +
+ + +

Entries from February 2014.

+ +
+ +
+ 3rd February 2014 +
+
+

A few days ago I decided to try to help the Hurd people to get +their changes into sysvinit, to allow them to use the normal sysvinit +boot system instead of their old one. This follow up on the +great +Google Summer of Code work done last summer by Justus Winter to +get Debian on Hurd working more like Debian on Linux. To get started, +I downloaded a prebuilt hard disk image from +http://ftp.debian-ports.org/debian-cd/hurd-i386/current/debian-hurd.img.tar.gz, +and started it using virt-manager.

+ +

The first think I had to do after logging in (root without any +password) was to get the network operational. I followed +the +instructions on the Debian GNU/Hurd ports page and ran these +commands as root to get the machine to accept a IP address from the +kvm internal DHCP server:

+ +

+settrans -fgap /dev/netdde /hurd/netdde 
+kill -9 $(ps -ef|awk '/[p]finet/ { print $2}')
+kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}')
+dhclient -v /dev/eth0
+

+ +

After this, the machine had internet connectivity, and I could +upgrade it and install the sysvinit packages from experimental and +enable it as the default boot system in Hurd.

+ +

But before I did that, I set a password on the root user, as ssh is +running on the machine it for ssh login to work a password need to be +set. Also, note that a bug somewhere in openssh on Hurd block +compression from working. Remember to turn that off on the client +side.

+ +

Run these commands as root to upgrade and test the new sysvinit +stuff:

+ +

+cat > /etc/apt/sources.list.d/experimental.list <<EOF
+deb http://http.debian.net/debian/ experimental main
+EOF
+apt-get update
+apt-get dist-upgrade
+apt-get install -t experimental initscripts sysv-rc sysvinit \
+    sysvinit-core sysvinit-utils 
+update-alternatives --config runsystem
+

+ +

To reboot after switching boot system, you have to use +reboot-hurd instead of just reboot, as there is not +yet a sysvinit process able to receive the signals from the normal +'reboot' command. After switching to sysvinit as the boot system, +upgrading every package and rebooting, the network come up with DHCP +after boot as it should, and the settrans/pkill hack mentioned at the +start is no longer needed. But for some strange reason, there are no +longer any login prompt in the virtual console, so I logged in using +ssh instead. + +

Note that there are some race conditions in Hurd making the boot +fail some times. No idea what the cause is, but hope the Hurd porters +figure it out. At least Justus said on IRC (#debian-hurd on +irc.debian.org) that they are aware of the problem. A way to reduce +the impact is to upgrade to the Hurd packages built by Justus by +adding this repository to the machine:

+ +

+cat > /etc/apt/sources.list.d/hurd-ci.list <<EOF
+deb http://darnassus.sceen.net/~teythoon/hurd-ci/ sid main
+EOF
+

+ +

At the moment the prebuilt virtual machine get some packages from +http://ftp.debian-ports.org/debian, because some of the packages in +unstable do not yet include the required patches that are lingering in +BTS. This is the completely list of "unofficial" packages installed:

+ +

+# aptitude search '?narrow(?version(CURRENT),?origin(Debian Ports))'
+i   emacs                   - GNU Emacs editor (metapackage)
+i   gdb                     - GNU Debugger
+i   hurd-recommended        - Miscellaneous translators
+i   isc-dhcp-client         - ISC DHCP client
+i   isc-dhcp-common         - common files used by all the isc-dhcp* packages
+i   libc-bin                - Embedded GNU C Library: Binaries
+i   libc-dev-bin            - Embedded GNU C Library: Development binaries
+i   libc0.3                 - Embedded GNU C Library: Shared libraries
+i A libc0.3-dbg             - Embedded GNU C Library: detached debugging symbols
+i   libc0.3-dev             - Embedded GNU C Library: Development Libraries and Hea
+i   multiarch-support       - Transitional package to ensure multiarch compatibilit
+i A x11-common              - X Window System (X.Org) infrastructure
+i   xorg                    - X.Org X Window System
+i A xserver-xorg            - X.Org X server
+i A xserver-xorg-input-all  - X.Org X server -- input driver metapackage
+#
+

+ +

All in all, testing hurd has been an interesting experience. :) +X.org did not work out of the box and I never took the time to follow +the porters instructions to fix it. This time I was interested in the +command line stuff.

+ +

+
+ + + Tags: bootsystem, debian, english. + + +
+
+
+ +

RSS Feed

+ +

+ Created by Chronicle v4.6 +

+ + + diff --git a/blog/index.html b/blog/index.html index e34efcf53d..08011d466b 100644 --- a/blog/index.html +++ b/blog/index.html @@ -41,8 +41,8 @@ kvm internal DHCP server:

 settrans -fgap /dev/netdde /hurd/netdde 
-pkill pfinet
-pkill devnode
+kill -9 $(ps -ef|awk '/[p]finet/ { print $2}')
+kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}')
 dhclient -v /dev/eth0
 

diff --git a/blog/index.rss b/blog/index.rss index 60979bb258..11e2da831e 100644 --- a/blog/index.rss +++ b/blog/index.rss @@ -30,8 +30,8 @@ kvm internal DHCP server:</p> <p><blockquote><pre> settrans -fgap /dev/netdde /hurd/netdde -pkill pfinet -pkill devnode +kill -9 $(ps -ef|awk '/[p]finet/ { print $2}') +kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}') dhclient -v /dev/eth0 </pre></blockquote></p> diff --git a/blog/tags/bootsystem/bootsystem.rss b/blog/tags/bootsystem/bootsystem.rss index 5ef576384e..34049adf00 100644 --- a/blog/tags/bootsystem/bootsystem.rss +++ b/blog/tags/bootsystem/bootsystem.rss @@ -30,8 +30,8 @@ kvm internal DHCP server:</p> <p><blockquote><pre> settrans -fgap /dev/netdde /hurd/netdde -pkill pfinet -pkill devnode +kill -9 $(ps -ef|awk '/[p]finet/ { print $2}') +kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}') dhclient -v /dev/eth0 </pre></blockquote></p> diff --git a/blog/tags/bootsystem/index.html b/blog/tags/bootsystem/index.html index bb1bdd554a..8d4de48726 100644 --- a/blog/tags/bootsystem/index.html +++ b/blog/tags/bootsystem/index.html @@ -47,8 +47,8 @@ kvm internal DHCP server:

 settrans -fgap /dev/netdde /hurd/netdde 
-pkill pfinet
-pkill devnode
+kill -9 $(ps -ef|awk '/[p]finet/ { print $2}')
+kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}')
 dhclient -v /dev/eth0
 

diff --git a/blog/tags/debian/debian.rss b/blog/tags/debian/debian.rss index 3dfc77d23a..45484dfdec 100644 --- a/blog/tags/debian/debian.rss +++ b/blog/tags/debian/debian.rss @@ -30,8 +30,8 @@ kvm internal DHCP server:</p> <p><blockquote><pre> settrans -fgap /dev/netdde /hurd/netdde -pkill pfinet -pkill devnode +kill -9 $(ps -ef|awk '/[p]finet/ { print $2}') +kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}') dhclient -v /dev/eth0 </pre></blockquote></p> diff --git a/blog/tags/debian/index.html b/blog/tags/debian/index.html index 3b9155808f..dcb3f0755c 100644 --- a/blog/tags/debian/index.html +++ b/blog/tags/debian/index.html @@ -47,8 +47,8 @@ kvm internal DHCP server:

 settrans -fgap /dev/netdde /hurd/netdde 
-pkill pfinet
-pkill devnode
+kill -9 $(ps -ef|awk '/[p]finet/ { print $2}')
+kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}')
 dhclient -v /dev/eth0
 

diff --git a/blog/tags/english/english.rss b/blog/tags/english/english.rss index 62c5a1a976..86a9325a29 100644 --- a/blog/tags/english/english.rss +++ b/blog/tags/english/english.rss @@ -30,8 +30,8 @@ kvm internal DHCP server:</p> <p><blockquote><pre> settrans -fgap /dev/netdde /hurd/netdde -pkill pfinet -pkill devnode +kill -9 $(ps -ef|awk '/[p]finet/ { print $2}') +kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}') dhclient -v /dev/eth0 </pre></blockquote></p> diff --git a/blog/tags/english/index.html b/blog/tags/english/index.html index 4fe36720ca..14be03289d 100644 --- a/blog/tags/english/index.html +++ b/blog/tags/english/index.html @@ -47,8 +47,8 @@ kvm internal DHCP server:

 settrans -fgap /dev/netdde /hurd/netdde 
-pkill pfinet
-pkill devnode
+kill -9 $(ps -ef|awk '/[p]finet/ { print $2}')
+kill -9 $(ps -ef|awk '/[d]evnode/ { print $2}')
 dhclient -v /dev/eth0