]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.rss
Generated.
[homepage.git] / blog / index.rss
index c75414270e783ea9893e6254b78c5f2160ed7163..60979bb25881ce094abeb2c84b6922f1dacebe5f 100644 (file)
@@ -6,6 +6,114 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
                 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
        
+       <item>
+               <title>Testing sysvinit from experimental in Debian Hurd</title>
+               <link>http://people.skolelinux.org/pere/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html</guid>
+                <pubDate>Mon, 3 Feb 2014 13:40:00 +0100</pubDate>
+               <description>&lt;p&gt;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
+&lt;a href=&quot;https://teythoon.cryptobitch.de//categories/gsoc.html&quot;&gt;great
+Google Summer of Code work&lt;/a&gt; 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
+&lt;a href=&quot;http://ftp.debian-ports.org/debian-cd/hurd-i386/current/debian-hurd.img.tar.gz&quot;&gt;http://ftp.debian-ports.org/debian-cd/hurd-i386/current/debian-hurd.img.tar.gz&lt;/a&gt;,
+and started it using virt-manager.&lt;/p&gt;
+
+&lt;p&gt;The first think I had to do after logging in (root without any
+password) was to get the network operational.  I followed
+&lt;a href=&quot;https://www.debian.org/ports/hurd/hurd-install&quot;&gt;the
+instructions on the Debian GNU/Hurd ports page&lt;/a&gt; and ran these
+commands as root to get the machine to accept a IP address from the
+kvm internal DHCP server:&lt;/p&gt;
+
+&lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
+settrans -fgap /dev/netdde /hurd/netdde 
+pkill pfinet
+pkill devnode
+dhclient -v /dev/eth0
+&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
+
+&lt;p&gt;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.&lt;/p&gt;
+
+&lt;p&gt;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.&lt;/p&gt;
+
+&lt;p&gt;Run these commands as root to upgrade and test the new sysvinit
+stuff:&lt;/p&gt;
+
+&lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
+cat &gt; /etc/apt/sources.list.d/experimental.list &amp;lt;&amp;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
+&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
+
+&lt;p&gt;To reboot after switching boot system, you have to use
+&lt;tt&gt;reboot-hurd&lt;/tt&gt; instead of just &lt;tt&gt;reboot&lt;/tt&gt;, as there is not
+yet a sysvinit process able to receive the signals from the normal
+&#39;reboot&#39; 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.
+
+&lt;p&gt;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:&lt;/p&gt;
+
+&lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
+cat &gt; /etc/apt/sources.list.d/hurd-ci.list &amp;lt;&amp;lt;EOF
+deb http://darnassus.sceen.net/~teythoon/hurd-ci/ sid main
+EOF
+&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
+
+&lt;p&gt;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 &quot;unofficial&quot; packages installed:&lt;/p&gt;
+
+&lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
+# aptitude search &#39;?narrow(?version(CURRENT),?origin(Debian Ports))&#39;
+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
+#
+&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
+
+&lt;p&gt;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.&lt;p&gt;
+</description>
+       </item>
+       
        <item>
                <title>A fist full of non-anonymous Bitcoins</title>
                <link>http://people.skolelinux.org/pere/blog/A_fist_full_of_non_anonymous_Bitcoins.html</link>
@@ -85,7 +193,7 @@ is anonymous.  It isn&#39;t really a good fit for illegal activites.  Use
 cash if you need to stay anonymous, at least until regular DNA
 sampling of notes and coins become the norm. :)&lt;/p&gt;
 
-&lt;p&gt;As usual, if you use bitcoin and want to show your support of my
+&lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
 activities, please send Bitcoin donations to my address
 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&amp;label=PetterReinholdtsenBlog&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
 </description>
@@ -731,56 +839,5 @@ Scraperwiki for de som vil grave dypere.&lt;/p&gt;
 </description>
        </item>
        
-       <item>
-               <title>All drones should be radio marked with what they do and who they belong to</title>
-               <link>http://people.skolelinux.org/pere/blog/All_drones_should_be_radio_marked_with_what_they_do_and_who_they_belong_to.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/All_drones_should_be_radio_marked_with_what_they_do_and_who_they_belong_to.html</guid>
-                <pubDate>Thu, 21 Nov 2013 15:40:00 +0100</pubDate>
-               <description>&lt;p&gt;Drones, flying robots, are getting more and more popular.  The most
-know ones are the killer drones used by some government to murder
-people they do not like without giving them the chance of a fair
-trial, but the technology have many good uses too, from mapping and
-forest maintenance to photography and search and rescue.  I am sure it
-is just a question of time before &quot;bad drones&quot; are in the hands of
-private enterprises and not only state criminals but petty criminals
-too.  The drone technology is very useful and very dangerous.  To have
-some control over the use of drones, I agree with Daniel Suarez in his
-TED talk
-&quot;&lt;a href=&quot;https://archive.org/details/DanielSuarez_2013G&quot;&gt;The kill
-decision shouldn&#39;t belong to a robot&lt;/a&gt;&quot;, where he suggested this
-little gem to keep the good while limiting the bad use of drones:&lt;/p&gt;
-&lt;blockquote&gt;
-
-&lt;p&gt;Each robot and drone should have a cryptographically signed
-I.D. burned in at the factory that can be used to track its movement
-through public spaces. We have license plates on cars, tail numbers on
-aircraft. This is no different. And every citizen should be able to
-download an app that shows the population of drones and autonomous
-vehicles moving through public spaces around them, both right now and
-historically. And civic leaders should deploy sensors and civic drones
-to detect rogue drones, and instead of sending killer drones of their
-own up to shoot them down, they should notify humans to their
-presence. And in certain very high-security areas, perhaps civic
-drones would snare them and drag them off to a bomb disposal facility.&lt;/p&gt;
-
-&lt;p&gt;But notice, this is more an immune system than a weapons system. It
-would allow us to avail ourselves of the use of autonomous vehicles
-and drones while still preserving our open, civil society.&lt;/p&gt;
-
-&lt;/blockquote&gt;
-
-&lt;p&gt;The key is that &lt;em&gt;every citizen&lt;/em&gt; should be able to read the
-radio beacons sent from the drones in the area, to be able to check
-both the government and others use of drones.  For such control to be
-effective, everyone must be able to do it.  What should such beacon
-contain?  At least formal owner, purpose, contact information and GPS
-location.  Probably also the origin and target position of the current
-flight.  And perhaps some registration number to be able to look up
-the drone in a central database tracking their movement.  Robots
-should not have privacy.  It is people who need privacy.&lt;/p&gt;
-</description>
-       </item>
-       
         </channel>
 </rss>