1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from February
2014</title>
5 <description>Entries from February
2014</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>New home and release
1.0 for netgroup and innetgr (aka ng-utils)
</title>
11 <link>http://people.skolelinux.org/pere/blog/New_home_and_release_1_0_for_netgroup_and_innetgr__aka_ng_utils_.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/New_home_and_release_1_0_for_netgroup_and_innetgr__aka_ng_utils_.html
</guid>
13 <pubDate>Sat,
22 Feb
2014 21:
40:
00 +
0100</pubDate>
14 <description><p
>Many years ago, I wrote a GPL licensed version of the netgroup and
15 innetgr tools, because I needed them in
16 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
>. I called the project
17 ng-utils, and it has served me well. I placed the project under the
18 <a href=
"http://www.hungry.com/
">Hungry Programmer
</a
> umbrella, and it was maintained in our CVS
19 repository. But many years ago, the CVS repository was dropped (lost,
20 not migrated to new hardware, not sure), and the project have lacked a
21 proper home since then.
</p
>
23 <p
>Last summer, I had a look at the package and made a new release
24 fixing a irritating crash bug, but was unable to store the changes in
25 a proper source control system. I applied for a project on
26 <a href=
"https://alioth.debian.org/
">Alioth
</a
>, but did not have time
27 to follow up on it. Until today. :)
</p
>
29 <p
>After many hours of cleaning and migration, the ng-utils project
30 now have a new home, and a git repository with the highlight of the
31 history of the project. I published all release tarballs and imported
32 them into the git repository. As the project is really stable and not
33 expected to gain new features any time soon, I decided to make a new
34 release and call it
1.0. Visit the new project home on
35 <a href=
"https://alioth.debian.org/projects/ng-utils/
">https://alioth.debian.org/projects/ng-utils/
</a
>
36 if you want to check it out. The new version is also uploaded into
37 Debian Unstable.
</p
>
42 <title>Testing sysvinit from experimental in Debian Hurd
</title>
43 <link>http://people.skolelinux.org/pere/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html
</link>
44 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html
</guid>
45 <pubDate>Mon,
3 Feb
2014 13:
40:
00 +
0100</pubDate>
46 <description><p
>A few days ago I decided to try to help the Hurd people to get
47 their changes into sysvinit, to allow them to use the normal sysvinit
48 boot system instead of their old one. This follow up on the
49 <a href=
"https://teythoon.cryptobitch.de//categories/gsoc.html
">great
50 Google Summer of Code work
</a
> done last summer by Justus Winter to
51 get Debian on Hurd working more like Debian on Linux. To get started,
52 I downloaded a prebuilt hard disk image from
53 <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
>,
54 and started it using virt-manager.
</p
>
56 <p
>The first think I had to do after logging in (root without any
57 password) was to get the network operational. I followed
58 <a href=
"https://www.debian.org/ports/hurd/hurd-install
">the
59 instructions on the Debian GNU/Hurd ports page
</a
> and ran these
60 commands as root to get the machine to accept a IP address from the
61 kvm internal DHCP server:
</p
>
63 <p
><blockquote
><pre
>
64 settrans -fgap /dev/netdde /hurd/netdde
65 kill $(ps -ef|awk
'/[p]finet/ { print $
2}
')
66 kill $(ps -ef|awk
'/[d]evnode/ { print $
2}
')
68 </pre
></blockquote
></p
>
70 <p
>After this, the machine had internet connectivity, and I could
71 upgrade it and install the sysvinit packages from experimental and
72 enable it as the default boot system in Hurd.
</p
>
74 <p
>But before I did that, I set a password on the root user, as ssh is
75 running on the machine it for ssh login to work a password need to be
76 set. Also, note that a bug somewhere in openssh on Hurd block
77 compression from working. Remember to turn that off on the client
80 <p
>Run these commands as root to upgrade and test the new sysvinit
83 <p
><blockquote
><pre
>
84 cat
> /etc/apt/sources.list.d/experimental.list
&lt;
&lt;EOF
85 deb http://http.debian.net/debian/ experimental main
89 apt-get install -t experimental initscripts sysv-rc sysvinit \
90 sysvinit-core sysvinit-utils
91 update-alternatives --config runsystem
92 </pre
></blockquote
></p
>
94 <p
>To reboot after switching boot system, you have to use
95 <tt
>reboot-hurd
</tt
> instead of just
<tt
>reboot
</tt
>, as there is not
96 yet a sysvinit process able to receive the signals from the normal
97 'reboot
' command. After switching to sysvinit as the boot system,
98 upgrading every package and rebooting, the network come up with DHCP
99 after boot as it should, and the settrans/pkill hack mentioned at the
100 start is no longer needed. But for some strange reason, there are no
101 longer any login prompt in the virtual console, so I logged in using
104 <p
>Note that there are some race conditions in Hurd making the boot
105 fail some times. No idea what the cause is, but hope the Hurd porters
106 figure it out. At least Justus said on IRC (#debian-hurd on
107 irc.debian.org) that they are aware of the problem. A way to reduce
108 the impact is to upgrade to the Hurd packages built by Justus by
109 adding this repository to the machine:
</p
>
111 <p
><blockquote
><pre
>
112 cat
> /etc/apt/sources.list.d/hurd-ci.list
&lt;
&lt;EOF
113 deb http://darnassus.sceen.net/~teythoon/hurd-ci/ sid main
115 </pre
></blockquote
></p
>
117 <p
>At the moment the prebuilt virtual machine get some packages from
118 http://ftp.debian-ports.org/debian, because some of the packages in
119 unstable do not yet include the required patches that are lingering in
120 BTS. This is the completely list of
"unofficial
" packages installed:
</p
>
122 <p
><blockquote
><pre
>
123 # aptitude search
'?narrow(?version(CURRENT),?origin(Debian Ports))
'
124 i emacs - GNU Emacs editor (metapackage)
126 i hurd-recommended - Miscellaneous translators
127 i isc-dhcp-client - ISC DHCP client
128 i isc-dhcp-common - common files used by all the isc-dhcp* packages
129 i libc-bin - Embedded GNU C Library: Binaries
130 i libc-dev-bin - Embedded GNU C Library: Development binaries
131 i libc0.3 - Embedded GNU C Library: Shared libraries
132 i A libc0.3-dbg - Embedded GNU C Library: detached debugging symbols
133 i libc0.3-dev - Embedded GNU C Library: Development Libraries and Hea
134 i multiarch-support - Transitional package to ensure multiarch compatibilit
135 i A x11-common - X Window System (X.Org) infrastructure
136 i xorg - X.Org X Window System
137 i A xserver-xorg - X.Org X server
138 i A xserver-xorg-input-all - X.Org X server -- input driver metapackage
140 </pre
></blockquote
></p
>
142 <p
>All in all, testing hurd has been an interesting experience. :)
143 X.org did not work out of the box and I never took the time to follow
144 the porters instructions to fix it. This time I was interested in the
145 command line stuff.
<p
>