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 November
2014</title>
5 <description>Entries from November
2014</description>
6 <link>http://www.hungry.com/~pere/blog/
</link>
10 <title>How to stay with sysvinit in Debian Jessie
</title>
11 <link>http://www.hungry.com/~pere/blog/How_to_stay_with_sysvinit_in_Debian_Jessie.html
</link>
12 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/How_to_stay_with_sysvinit_in_Debian_Jessie.html
</guid>
13 <pubDate>Sat,
22 Nov
2014 01:
00:
00 +
0100</pubDate>
14 <description><p
>By now, it is well known that Debian Jessie will not be using
15 sysvinit as its boot system by default. But how can one keep using
16 sysvinit in Jessie? It is fairly easy, and here are a few recipes,
18 <a href=
"http://www.vitavonni.de/blog/
201410/
2014102101-avoiding-systemd.html
">Erich
19 Schubert
</a
> and
20 <a href=
"http://smcv.pseudorandom.co.uk/
2014/still_universal/
">Simon
23 <p
>If you already are using Wheezy and want to upgrade to Jessie and
24 keep sysvinit as your boot system, create a file
25 <tt
>/etc/apt/preferences.d/use-sysvinit
</tt
> with this content before
26 you upgrade:
</p
>
28 <p
><blockquote
><pre
>
32 </pre
></blockquote
><p
>
34 <p
>This file content will tell apt and aptitude to not consider
35 installing systemd-sysv as part of any installation and upgrade
36 solution when resolving dependencies, and thus tell it to avoid
37 systemd as a default boot system. The end result should be that the
38 upgraded system keep using sysvinit.
</p
>
40 <p
>If you are installing Jessie for the first time, there is no way to
41 get sysvinit installed by default (debootstrap used by
42 debian-installer have no option for this), but one can tell the
43 installer to switch to sysvinit before the first boot. Either by
44 using a kernel argument to the installer, or by adding a line to the
45 preseed file used. First, the kernel command line argument:
47 <p
><blockquote
><pre
>
48 preseed/late_command=
"in-target apt-get install --purge -y sysvinit-core
"
49 </pre
></blockquote
><p
>
51 <p
>Next, the line to use in a preseed file:
</p
>
53 <p
><blockquote
><pre
>
54 d-i preseed/late_command string in-target apt-get install -y sysvinit-core
55 </pre
></blockquote
><p
>
57 <p
>One can of course also do this after the first boot by installing
58 the sysvinit-core package.
</p
>
60 <p
>I recommend only using sysvinit if you really need it, as the
61 sysvinit boot sequence in Debian have several hardware specific bugs
62 on Linux caused by the fact that it is unpredictable when hardware
63 devices show up during boot. But on the other hand, the new default
64 boot system still have a few rough edges I hope will be fixed before
65 Jessie is released.
</p
>
67 <p
>Update
2014-
11-
26: Inspired by
68 <ahref=
"https://www.mirbsd.org/permalinks/wlog-
10-tg_e20141125-tg.htm#e20141125-tg_wlog-
10-tg
">a
69 blog post by Torsten Glaser
</a
>, added --purge to the preseed
75 <title>Hvordan vurderer regjeringen H
.264-patentutfordringen?
</title>
76 <link>http://www.hungry.com/~pere/blog/Hvordan_vurderer_regjeringen_H_264_patentutfordringen_.html
</link>
77 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Hvordan_vurderer_regjeringen_H_264_patentutfordringen_.html
</guid>
78 <pubDate>Sun,
16 Nov
2014 10:
30:
00 +
0100</pubDate>
79 <description><p
>For en stund tilbake spurte jeg Fornyingsdepartementet om hvilke
80 juridiske vurderinger rundt patentproblemstillingen som var gjort da
81 H
.264 ble tatt inn i
<a href=
"http://standard.difi.no/
">statens
82 referansekatalog over standarder
</a
>. Stig Hornnes i FAD tipset meg
83 om følgende som står i oppsumeringen til høringen om
84 referansekatalogen versjon
2.0, som jeg siden ved hjelp av en
85 innsynsforespørsel fikk tak i
86 <a href=
"http://wiki.nuug.no/uttalelser/
200901-standardkatalog-v2?action=AttachFile
&do=get
&target=kongelig-resolusjon.pdf
">PDF-utgaven av
</a
>
87 datert
2009-
06-
03 (saksnummer
200803291, saksbehandler Henrik
90 <p
>Der står det følgende om problemstillingen:
</p
>
92 <p
><blockquote
>
93 <strong
>4.4 Patentproblematikk
</strong
>
95 <p
>NUUG og Opera ser det som særlig viktig at forslagene knyttet til
96 lyd og video baserer seg på de royalty-frie standardene Vorbis, Theora
99 <p
>Kommentarene relaterer seg til at enkelte standarder er åpne, men
100 inneholder tekniske prosedyrer som det i USA (og noen andre land som
101 Japan) er gitt patentrettigheter til. I vårt tilfelle berører dette
102 spesielt standardene Mp3 og H
.264, selv om Politidirektoratet peker på
103 at det muligens kan være tilsvarende problematikk også for Theora og
104 Vorbis. Dette medfører at det i USA kan kreves royalties for bruk av
105 tekniske løsninger knyttet til standardene, et krav som også
106 håndheves. Patenter kan imidlertid bare hevdes i de landene hvor
107 patentet er gitt, så amerikanske patenter gjelder ikke andre steder
110 <p
>Spesielt for utvikling av fri programvare er patenter
111 problematisk. GPL, en
"grunnleggende
" lisens for distribusjon av fri
112 programvare, avviser at programvare kan distribueres under denne
113 lisensen hvis det inneholder referanser til patenterte rutiner som
114 utløser krav om royalties. Det er imidlertid uproblematisk å
115 distribuere fri programvareløsninger under GPL som benytter de
116 aktuelle standardene innen eller mellom land som ikke anerkjenner
117 patentene. Derfor finner vi også flere implementeringer av Mp3 og
118 H
.264 som er fri programvare, lisensiert under GPL.
</p
>
120 <p
>I Norge og EU er patentlovgivningen langt mer restriktiv enn i USA,
121 men det er også her mulig å få patentert metoder for løsning av et
122 problem som relaterer seg til databehandling. Det er AIF bekjent ikke
123 relevante patenter i EU eller Norge hva gjelder H
.264 og Mp3, men
124 muligheten for at det finnes patenter uten at det er gjort krav om
125 royalties eller at det senere vil gis slike patenter kan ikke helt
128 <p
>AIF mener det er et behov for å gi offentlige virksomheter mulighet
129 til å benytte antatt royaltyfrie åpne standarder som et likeverdig
130 alternativ eller i tillegg til de markedsledende åpne standardene.
</p
>
132 </blockquote
></p
>
134 <p
>Det ser dermed ikke ut til at de har vurdert patentspørsmålet i
135 sammenheng med opphavsrettsvilkår slik de er formulert for f.eks.
136 Apple Final Cut Pro, Adobe Premiere Pro, Avid og Sorenson-verktøyene,
137 der det kreves brukstillatelse for patenter som ikke er gyldige i
138 Norge for å bruke disse verktøyene til annet en personlig og ikke
139 kommersiell aktivitet når det gjelder H
.264-video. Jeg må nok lete
140 videre etter svar på det spørsmålet.
</p
>
145 <title>A Debian package for SMTP via Tor (aka SMTorP) using exim4
</title>
146 <link>http://www.hungry.com/~pere/blog/A_Debian_package_for_SMTP_via_Tor__aka_SMTorP__using_exim4.html
</link>
147 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/A_Debian_package_for_SMTP_via_Tor__aka_SMTorP__using_exim4.html
</guid>
148 <pubDate>Mon,
10 Nov
2014 13:
40:
00 +
0100</pubDate>
149 <description><p
>The right to communicate with your friends and family in private,
150 without anyone snooping, is a right every citicen have in a liberal
151 democracy. But this right is under serious attack these days.
</p
>
153 <p
>A while back it occurred to me that one way to make the dragnet
154 surveillance conducted by NSA, GCHQ, FRA and others (and confirmed by
155 the whisleblower Snowden) more expensive for Internet email,
156 is to deliver all email using SMTP via Tor. Such SMTP option would be
157 a nice addition to the FreedomBox project if we could send email
158 between FreedomBox machines without leaking metadata about the emails
159 to the people peeking on the wire. I
160 <a href=
"http://lists.alioth.debian.org/pipermail/freedombox-discuss/
2014-October/
006493.html
">proposed
161 this on the FreedomBox project mailing list in October
</a
> and got a
162 lot of useful feedback and suggestions. It also became obvious to me
163 that this was not a novel idea, as the same idea was tested and
164 documented by Johannes Berg as early as
2006, and both
165 <a href=
"https://github.com/pagekite/Mailpile/wiki/SMTorP
">the
166 Mailpile
</a
> and
<a href=
"http://dee.su/cables
">the Cables
</a
> systems
167 propose a similar method / protocol to pass emails between users.
</p
>
169 <p
>To implement such system one need to set up a Tor hidden service
170 providing the SMTP protocol on port
25, and use email addresses
171 looking like username@hidden-service-name.onion. With such addresses
172 the connections to port
25 on hidden-service-name.onion using Tor will
173 go to the correct SMTP server. To do this, one need to configure the
174 Tor daemon to provide the hidden service and the mail server to accept
175 emails for this .onion domain. To learn more about Exim configuration
176 in Debian and test the design provided by Johannes Berg in his FAQ, I
177 set out yesterday to create a Debian package for making it trivial to
178 set up such SMTP over Tor service based on Debian. Getting it to work
179 were fairly easy, and
180 <a href=
"https://github.com/petterreinholdtsen/exim4-smtorp
">the
181 source code for the Debian package
</a
> is available from github. I
182 plan to move it into Debian if further testing prove this to be a
183 useful approach.
</p
>
185 <p
>If you want to test this, set up a blank Debian machine without any
186 mail system installed (or run
<tt
>apt-get purge exim4-config
</tt
> to
187 get rid of exim4). Install tor, clone the git repository mentioned
188 above, build the deb and install it on the machine. Next, run
189 <tt
>/usr/lib/exim4-smtorp/setup-exim-hidden-service
</tt
> and follow
190 the instructions to get the service up and running. Restart tor and
191 exim when it is done, and test mail delivery using swaks like
194 <p
><blockquote
><pre
>
195 torsocks swaks --server dutlqrrmjhtfa3vp.onion \
196 --to fbx@dutlqrrmjhtfa3vp.onion
197 </pre
></blockquote
></p
>
199 <p
>This will test the SMTP delivery using tor. Replace the email
200 address with your own address to test your server. :)
</p
>
202 <p
>The setup procedure is still to complex, and I hope it can be made
203 easier and more automatic. Especially the tor setup need more work.
204 Also, the package include a tor-smtp tool written in C, but its task
205 should probably be rewritten in some script language to make the deb
206 architecture independent. It would probably also make the code easier
207 to review. The tor-smtp tool currently need to listen on a socket for
208 exim to talk to it and is started using xinetd. It would be better if
209 no daemon and no socket is needed. I suspect it is possible to get
210 exim to run a command line tool for delivery instead of talking to a
211 socket, and hope to figure out how in a future version of this
214 <p
>Until I wipe my test machine, I can be reached using the
215 <tt
>fbx@dutlqrrmjhtfa3vp.onion
</tt
> mail address, deliverable over