1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <title>Petter Reinholdtsen
</title>
6 <link rel=
"stylesheet" type=
"text/css" media=
"screen" href=
"http://people.skolelinux.org/pere/blog/style.css">
7 <link rel=
"alternate" title=
"RSS Feed" href=
"http://people.skolelinux.org/pere/blog/index.rss" type=
"application/rss+xml">
14 <a href=
"http://people.skolelinux.org/pere/blog/">Petter Reinholdtsen
</a>
23 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Pornoskannerne_p___flyplassene_bedrer_visst_ikke_sikkerheten.html">Pornoskannerne på flyplassene bedrer visst ikke sikkerheten
</a></div>
24 <div class=
"date">2010-
12-
11 10:
45</div>
26 <p>Via
<a href=
"http://webmink.com/2010/12/10/links-for-2010-12-10/">en
27 blogpost fra Simon Phipps i går
</a>, fant jeg en referanse til
28 <a href=
"http://www.washingtontimes.com/news/2010/dec/9/exposed-tsas-x-rated-scanner-fraud/">en
29 artikkel i Washington Times
</a> som igjen refererer til en artikkel i
30 det fagfellevurderte tidsskriftet Journal of Transportation Security
32 "
<a href=
"http://springerlink.com/content/g6620thk08679160/fulltext.html">An
33 evaluation of airport x-ray backscatter units based on image
34 characteristics
</a>" som enkelt konstaterer at
35 <a href="http://www.dailysquib.co.uk/?a=
2389&c=
124">pornoscannerne</a>
36 som kler av reisende på flyplasser ikke er i stand til å avsløre det
37 produsenten og amerikanske myndigheter sier de skal avsløre. Kort
38 sagt, de bedrer ikke sikkerheten. Reisende må altså la ansatte på
39 flyplasser <a href="http://www.thousandsstandingaround.org/
">se dem
40 nakne eller la seg beføle i skrittet</a> uten grunn. Jeg vil
41 fortsette å nekte å bruke disse pornoskannerne, unngå flyplasser der
42 de er tatt i bruk, og reise med andre transportmidler enn fly hvis jeg
49 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/norsk
">norsk</a>, <a href="http://people.skolelinux.org/pere/blog/tags/personvern
">personvern</a>, <a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet
">sikkerhet</a>.
53 <div class="padding
"></div>
56 <div class="title
"><a href="http://people.skolelinux.org/pere/blog/Now_accepting_bitcoins___anonymous_and_distributed_p2p_crypto_money.html
">Now accepting bitcoins - anonymous and distributed p2p crypto-money</a></div>
57 <div class="date
">2010-12-10 08:20</div>
59 <p>With this weeks lawless
60 <a href="http://www.salon.com/news/opinion/glenn_greenwald/
2010/
12/
06/wikileaks/index.html
">governmental
61 attacks</a> on Wikileak and
62 <a href="http://www.salon.com/technology/dan_gillmor/
2010/
12/
06/war_on_speech
">free
63 speech</a>, it has become obvious that PayPal, visa and mastercard can
64 not be trusted to handle money transactions.
66 <a href="http://webmink.com/
2010/
12/
06/now-accepting-bitcoin/
">Simon
67 Phipps on bitcoin</a> reminded me about a project that a friend of
68 mine mentioned earlier. I decided to follow Simon's example, and get
69 involved with <a href="http://www.bitcoin.org/
">BitCoin</a>. I got
70 some help from my friend to get it all running, and he even handed me
71 some bitcoins to get started. I even donated a few bitcoins to Simon
72 for helping me remember BitCoin.</p>
74 <p>So, what is bitcoins, you probably wonder? It is a digital
75 crypto-currency, decentralised and handled using peer-to-peer
76 networks. It allows anonymous transactions and prohibits central
77 control over the transactions, making it impossible for governments
78 and companies alike to block donations and other transactions. The
79 source is free software, and while the key dependency wxWidgets 2.9
80 for the graphical user interface is missing in Debian, the command
81 line client builds just fine. Hopefully Jonas
82 <a href="http://bugs.debian.org/
578157">will get the package into
85 <p>Bitcoins can be converted to other currencies, like USD and EUR.
86 There are <a href="http://www.bitcoin.org/trade
">companies accepting
87 bitcoins</a> when selling services and goods, and there are even
88 currency "stock" markets where the exchange rate is decided. There
89 are not many users so far, but the concept seems promising. If you
90 want to get started and lack a friend with any bitcoins to spare,
92 <a href=
"https://freebitcoins.appspot.com/">some for free
</a> (
0.05
93 bitcoin at the time of writing). Use
94 <a href=
"http://www.bitcoinwatch.com/">BitcoinWatch
</a> to keep an eye
95 on the current exchange rates.
</p>
97 <p>As an experiment, I have decided to set up bitcoind on one of my
98 machines. If you want to support my activity, please send Bitcoin
99 donations to the address
100 <b>15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</b>. Thank you!
</p>
106 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian">debian
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/personvern">personvern
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet
</a>.
110 <div class=
"padding"></div>
113 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Martin_Bekkelund__En_stille_b__nn_om_Datalagringsdirektivet.html">Martin Bekkelund: En stille bønn om Datalagringsdirektivet
</a></div>
114 <div class=
"date">2010-
12-
09 21:
25</div>
116 <p><a href=
"http://www.bekkelund.net/">Martin Bekkelund
</a> ved
117 <a href=
"http://www.friprog.no/">friprog-senteret
</a> har skrevet
119 <a href=
"http://www.bekkelund.net/2010/12/09/en-stille-bonn/">korte
120 oppsummering
</a> rundt datalagringsdirektivet, som jeg videreformidler
123 <p><blockquote><strong>Det pågår i disse dager en intens diskusjon om
124 innføring av Datalagringsdirektivet (
<acronym
125 title=
"Datalagringsdirektivet">DLD
</acronym>) i norsk rett. Kanskje
126 har du gjort deg opp en mening, kanskje er du usikker. I begge
127 tilfeller ber jeg deg lese videre.
</strong></p>
129 <p>Samtlige fagmiljøer, både i Norge og EU, har konkludert med at
130 <acronym title=
"Datalagringsdirektivet">DLD
</acronym> ikke bør
131 innføres på nåværende tidspunkt. Den tekniske kvaliteten på direktivet
132 er dårlig, det griper uforholdsmessig inn i personvernet, det har
133 store mangler og viktige spørsmål som hvem som skal ha tilgang og
134 hvordan data skal lagres er fortsatt uavklart.
</p>
137 <li><a href=
"http://ikt-norge.no/norge-kan-slippe-datalagringsdirektivet/">EU-ekspertene sier
</a> at konsekvensene av å benytte vetoretten er minimale
</li>
138 <li><a href=
"http://www.regjeringen.no/pages/2281080/Deninternasjonalejuristkommisjon.pdf">Juristene påpeker
</a> at direktivet er i strid med EMK
</li>
139 <li><a href=
"http://www.dagbladet.no/2010/12/06/kultur/debatt/kronikk/dld/personvern/14594699/">Datatilsynet sier
</a> direktivet får store konsekvenser for personvernet og at direktivet er irreversibelt
</li>
140 <li><a href=
"http://www.bekkelund.net/?s=dld">Teknologene sier
</a> at sikker lagring ikke er mulig, at det er svært enkelt å omgå og mulig å manipulere data og produsere falske beviser
</li>
141 <li><a href=
"http://www.regjeringen.no/pages/2281080/NJ_247460_1_P.pdf">Pressen sier
</a> nei av hensyn til kildevernet
</li>
142 <li>Det er store
<a href=
"http://tetzschner.blogspot.com/2010/03/den-tyske-forfatningsdomstol.html">interne
</a> <a href=
"http://stoppdld.no/2010/03/02/datalagring-stoppet-av-tysk-forfatningsdomstol/">stridigheter
</a> i EU. Blant annet har den tyske forfatningsdomstolen funnet at måten
<acronym title=
"Datalagringsdirektivet">DLD
</acronym> er innført på er i strid med tysk grunnlov
</li>
143 <li>Alle de store
<a href=
"http://www.bekkelund.net/2010/12/08/lokasjonsdata-og-datalagringsdirektivet/">operatørene og tilbyderne sier nei
</a>, av tekniske og personvernmessige årsaker
</li>
146 <p>Jeg liker å tro at jeg er en hyggelig fyr. Jeg har et rent
147 rulleblad, og med unntak av to fartsbøter har jeg aldri vært en byrde
148 for samfunnet. Det akter jeg å fortsette med. Det er mange som meg,
149 lovlydige, pliktoppfyllende borgere som aldri vil utgjøre en trussel
150 mot noe som helst. Vi synes derfor det er trist og sårende at all vår
151 atferd skal overvåkes døgnkontinuerlig.
</p>
153 <p><strong>Understøttet av faglige vurderinger kan du trygt si nei til
154 <acronym title=
"Datalagringsdirektivet">DLD
</acronym>.
</strong></p>
156 <p><a href=
"http://www.bekkelund.net/kontakt/">Ta kontakt med meg
</a>
157 hvis du har spørsmål om
<acronym
158 title=
"Datalagringsdirektivet">DLD
</acronym>, uansett hva det måtte
161 <p class=
"info">Denne teksten er å anse som
<a
162 href=
"http://creativecommons.org/licenses/publicdomain/"><em>Public
163 Domain
</em></a>. Spre den videre til alle som kan ha nytte av
167 <p>Siste
<a href=
"http://www.nettavisen.no/it/article3043918.ece">melding
168 fra Nettavisen
</a> er at regjeringen planlegger å fremme sitt forslag
169 til implementering av datalagringsdirektivet i morgen, i ly av
170 fredprisutdelingen for å få minst mulig pressedekning om saken. Vi
171 får snart se om det stemmer.
</p>
177 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/norsk">norsk
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/personvern">personvern
</a>.
181 <div class=
"padding"></div>
184 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Student_group_continue_the_work_on_my_Reprap_3D_printer.html">Student group continue the work on my Reprap
3D printer
</a></div>
185 <div class=
"date">2010-
12-
09 19:
30</div>
187 <p>A few days ago, I was introduces to some students in the robot
188 student assosiation
<a href=
"http://www.robotica.no/">Robotica
189 Osloensis
</a> at the University of Oslo where I work, who planned to
190 get their own
3D printer. They wanted to learn from me based on my
191 work in the area. After having a short lunch meeting with them, I
192 offered them to borrow my reprap kit, as I never had time to complete
193 the build and this seem unlike to change any time soon. I look
194 forward to see how this goes. This monday their volunteer driver
195 picked up my kit and drove it to their lab, and tomorrow I am told the
196 last exam is over so they can start work on getting the
3D printer
199 <p>The robotic group have already build several robots on their own,
200 and seem capable of getting the reprap operational. I really look
201 forward to being able to print all the cool
3D designs published on
202 <a href=
"http://www.thingiverse.com/">Thingiverse
</a>. I even got
203 some
3D scans I got made during Dagen@IFI when one of the groups at
204 the computer science department at the university demonstrated their
205 very cool
3D scanner.
</p>
211 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/reprap">reprap
</a>.
215 <div class=
"padding"></div>
218 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Debian_Edu_development_gathering_and_General_Assembly_for_FRiSK.html">Debian Edu development gathering and General Assembly for FRiSK
</a></div>
219 <div class=
"date">2010-
11-
29 18:
40</div>
221 <p>On friday, the first Debian Edu / Skolelinux
222 <a href=
"http://www.friprogramvareiskolen.no/Gathering/2010-12-03-05-Oslo">development
223 gathering
</a> in a long time take place here in Oslo, Norway. I
224 really look forward to seeing all the good people working on the
225 Squeeze release. The gathering is open for everyone interested in
226 learning more about Debian Edu / Skolelinux.
</p>
228 <p>On Saturday, the Norwegian member organization taking care of
229 organizing these development gatherings, Fri Programvare i Skolen,
231 <a href=
"http://friprogramvareiskolen.no/Genfors/2010">General Assembly
232 for
2010</a>. Membership is open for all, and currently there are
388
233 people registered as members. Last year
32 members cast their vote in
234 the memberdb based election system. I hope more people find time to
241 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/nuug">nuug
</a>.
245 <div class=
"padding"></div>
248 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Why_isn_t_Debian_Edu_using_VLC_.html">Why isn't Debian Edu using VLC?
</a></div>
249 <div class=
"date">2010-
11-
27 11:
30</div>
251 <p>In the latest issue of Linux Journal, the readers choices were
252 presented, and the winner among the multimedia player were VLC.
253 Personally, I like VLC, and it is my player of choice when I first try
254 to play a video file or stream. Only if VLC fail will I drag out
255 gmplayer to see if it can do better. The reason is mostly the failure
256 model and trust. When VLC fail, it normally pop up a error message
257 reporting the problem. When mplayer fail, it normally segfault or
258 just hangs. The latter failure mode drain my trust in the program.
<p>
260 <p>But even if VLC is my player of choice, we have choosen to use
261 mplayer in
<a href=
"http://www.skolelinux.org/">Debian
262 Edu/Skolelinux
</a>. The reason is simple. We need a good browser
263 plugin to play web videos seamlessly, and the VLC browser plugin is
264 not very good. For example, it lack in-line control buttons, so there
265 is no way for the user to pause the video. Also, when I
266 <a href=
"http://wiki.debian.org/DebianEdu/BrowserMultimedia">last
267 tested the browser plugins
</a> available in Debian, the VLC plugin
268 failed on several video pages where mplayer based plugins worked. If
269 the browser plugin for VLC was as good as the gecko-mediaplayer
270 package (which uses mplayer), we would switch.
</P>
272 <p>While VLC is a good player, its user interface is slightly
273 annoying. The most annoying feature is its inconsistent use of
274 keyboard shortcuts. When the player is in full screen mode, its
275 shortcuts are different from when it is playing the video in a window.
276 For example, space only work as pause when in full screen mode. I
277 wish it had consisten shortcuts and that space also would work when in
278 window mode. Another nice shortcut in gmplayer is [enter] to restart
279 the current video. It is very nice when playing short videos from the
280 web and want to restart it when new people arrive to have a look at
281 what is going on.
</p>
287 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian">debian
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/video">video
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/web">web
</a>.
291 <div class=
"padding"></div>
294 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/DND_hedrer_overv__kning_av_barn_med_Rosingsprisen.html">DND hedrer overvåkning av barn med Rosingsprisen
</a></div>
295 <div class=
"date">2010-
11-
23 14:
15</div>
297 <p>Jeg registrerer med vond smak i munnen at Den Norske Dataforening
299 href=
"http://www.dataforeningen.no/hedret-med-rosingprisen.4849070-133913.html">hedrer
300 overvåkning av barn med Rosingsprisen for kreativitet i år
</a>. Jeg
301 er glad jeg nå er meldt ut av DND.
</p>
303 <p>Å elektronisk overvåke sine barn er ikke å gjøre dem en tjeneste,
304 men et overgrep mot individer i utvikling som bør læres opp til å ta
307 <p>For å sitere Datatilsynets nye leder, Bjørn Erik Thon, i
308 <a href=
"http://www.idg.no/computerworld/article174262.ece">et intervju
309 med Computerworld Norge
</A>:
</p>
312 - For alle som har barn, meg selv inkludert, er førstetanken at det
313 hadde vært fint å vite hvor barnet sitt er til enhver tid. Men ungene
314 har ikke godt av det. De er små individer som skal søke rundt og finne
315 sine små gjemmesteder og utvide horisonten, uten at foreldrene ser dem
316 i kortene. Det kan være fristende, men jeg ville ikke gått inn i
320 <p>Det er skremmende å se at DND mener en tjeneste som legger opp til
321 slike overgrep bør hedres. Å flytte oppveksten for barn inn i en
323 <a href=
"http://en.wikipedia.org/wiki/Panopticon">Panopticon
</a> er et
324 grovt overgrep og vil gjøre skade på barnenes utvikling, og foreldre
325 burde tenke seg godt om før de gir etter for sine instinkter her.
</p>
327 <p>Blipper-tjenesten får meg til å tenke på bøkene til
328 <a href=
"http://en.wikipedia.org/wiki/John_Twelve_Hawks">John Twelve
329 Hawks
</a>, som forbilledlig beskriver hvordan et totalitært
330 overvåkningssamfunn bygges sakte men sikkert rundt oss, satt sammen av
331 gode intensjoner og manglende bevissthet om hvilke prinsipper et
332 liberalt demokrati er fundamentert på. Jeg har hatt stor glede av å
333 lese alle de tre bøkene.
</p>
339 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/norsk">norsk
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/personvern">personvern
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet
</a>.
343 <div class=
"padding"></div>
346 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades_of_the_Gnome_and_KDE_desktop__now_with_apt_get_autoremove.html">Lenny-
>Squeeze upgrades of the Gnome and KDE desktop, now with apt-get autoremove
</a></div>
347 <div class=
"date">2010-
11-
22 14:
15</div>
349 <p>Michael Biebl suggested to me on IRC, that I changed my automated
350 upgrade testing of the
351 <a href=
"http://people.skolelinux.org/~pere/debian-upgrade-testing/">Lenny
352 Gnome and KDE Desktop
</a> to do
<tt>apt-get autoremove
</tt> when using apt-get.
353 This seem like a very good idea, so I adjusted by test scripts and
354 can now present the updated result from today:
</p>
356 <p>This is for Gnome:
</p>
358 <p>Installed using apt-get, missing with aptitude
</p>
372 freedesktop-sound-theme
374 gconf-defaults-service
389 gnome-desktop-environment
393 gnome-session-canberra
398 gstreamer0.10-fluendo-mp3
407 libaprutil1-dbd-sqlite3
410 libboost-date-time1.42
.0
411 libboost-python1.42
.0
412 libboost-thread1.42
.0
414 libchamplain-gtk-
0.4-
0
416 libclutter-gtk-
0.10-
0
423 libfreerdp-plugins-standard
438 libgnomepanel2.24-cil
443 libgtksourceview2.0-common
444 libmono-addins-gui0.2-cil
445 libmono-addins0.2-cil
447 libmono-corlib2.0-cil
448 libmono-i18n-west2.0-cil
450 libmono-security2.0-cil
451 libmono-sharpzip2.84-cil
452 libmono-system2.0-cil
455 libndesk-dbus-glib1.0-cil
466 libtelepathy-farsight0
475 nautilus-sendto-empathy
496 python-gtksourceview2
520 python-zope.interface
525 rhythmbox-plugin-cdrecorder
532 system-config-printer-udev
534 telepathy-mission-control-
5
547 <p>Installed using apt-get, removed with aptitude
</p>
555 fast-user-switch-applet
574 libgtksourceview2.0-
0
582 system-config-printer
589 <p>Installed using aptitude, missing with apt-get
</p>
592 gstreamer0.10-gnomevfs
595 <p>Installed using aptitude, removed with apt-get
</p>
601 <p>This is for KDE:
</p>
603 <p>Installed using apt-get, missing with aptitude
</p>
609 <p>Installed using apt-get, removed with aptitude
</p>
616 <p>Installed using aptitude, missing with apt-get
</p>
634 kdeartwork-theme-icon
638 kdebase-workspace-bin
639 kdebase-workspace-data
668 plasma-dataengines-workspace
670 plasma-desktopthemes-artwork
671 plasma-runners-addons
672 plasma-scriptengine-googlegadgets
673 plasma-scriptengine-python
674 plasma-scriptengine-qedje
675 plasma-scriptengine-ruby
676 plasma-scriptengine-webkit
678 plasma-wallpapers-addons
679 plasma-widget-folderview
680 plasma-widget-networkmanagement
684 xscreensaver-data-extra
686 xscreensaver-gl-extra
687 xscreensaver-screensaver-bsod
690 <p>Installed using aptitude, removed with apt-get
</p>
694 google-gadgets-common
717 libkonqsidebarplugin4a
726 libplasma-geolocation-interface4
728 libplasmagenericshell4
771 plasma-dataengines-addons
772 plasma-scriptengine-superkaramba
773 plasma-widget-lancelot
774 plasma-widgets-addons
775 plasma-widgets-workspace
779 update-notifier-common
782 <p>Running apt-get autoremove made the results using apt-get and
783 aptitude a bit more similar, but there are still quite a lott of
784 differences. I have no idea what packages should be installed after
785 the upgrade, but hope those that do can have a look.
</p>
791 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian">debian
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>.
795 <div class=
"padding"></div>
798 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Migrating_Xen_virtual_machines_using_LVM_to_KVM_using_disk_images.html">Migrating Xen virtual machines using LVM to KVM using disk images
</a></div>
799 <div class=
"date">2010-
11-
22 11:
20</div>
801 <p>Most of the computers in use by the
802 <a href=
"http://www.skolelinux.org/">Debian Edu/Skolelinux project
</a>
803 are virtual machines. And they have been Xen machines running on a
804 fairly old IBM eserver xseries
345 machine, and we wanted to migrate
805 them to KVM on a newer Dell PowerEdge
2950 host machine. This was a
806 bit harder that it could have been, because we set up the Xen virtual
807 machines to get the virtual partitions from LVM, which as far as I
808 know is not supported by KVM. So to migrate, we had to convert
809 several LVM logical volumes to partitions on a virtual disk file.
</p>
812 <a href=
"http://searchnetworking.techtarget.com.au/articles/35011-Six-steps-for-migrating-Xen-virtual-machines-to-KVM">a
813 nice recipe
</a> to do this, and wrote the following script to do the
814 migration. It uses qemu-img from the qemu package to make the disk
815 image, parted to partition it, losetup and kpartx to present the disk
816 image partions as devices, and dd to copy the data. I NFS mounted the
817 new servers storage area on the old server to do the migration.
</p>
823 # http://searchnetworking.techtarget.com.au/articles/
35011-Six-steps-for-migrating-Xen-virtual-machines-to-KVM
828 if [ -z "$
1" ] ; then
829 echo "Usage: $
0 <hostname
>"
835 if [ ! -e /dev/vg_data/$host-disk ] ; then
836 echo "error: unable to find LVM volume for $host"
840 # Partitions need to be a bit bigger than the LVM LVs. not sure why.
841 disksize=$( lvs --units m | grep $host-disk | awk '{sum = sum + $
4} END { print int(sum *
1.05) }')
842 swapsize=$( lvs --units m | grep $host-swap | awk '{sum = sum + $
4} END { print int(sum *
1.05) }')
843 totalsize=$(( ( $disksize + $swapsize ) ))
846 #dd if=/dev/zero of=$img bs=
1M count=$(( $disksize + $swapsize ))
847 qemu-img create $img ${totalsize}MMaking room on the Debian Edu/Sqeeze DVD
849 parted $img mklabel msdos
850 parted $img mkpart primary linux-swap
0 $disksize
851 parted $img mkpart primary ext2 $disksize $totalsize
852 parted $img set
1 boot on
855 losetup /dev/loop0 $img
858 dd if=/dev/vg_data/$host-disk of=/dev/mapper/loop0p1 bs=
1M
859 fsck.ext3 -f /dev/mapper/loop0p1 || true
860 mkswap /dev/mapper/loop0p2
863 losetup -d /dev/loop0
866 <p>The script is perhaps so simple that it is not copyrightable, but
867 if it is, it is licenced using GPL v2 or later at your discretion.
</p>
869 <p>After doing this, I booted a Debian CD in rescue mode in KVM with
870 the new disk image attached, installed grub-pc and linux-image-
686 and
871 set up grub to boot from the disk image. After this, the KVM machines
872 seem to work just fine.
</p>
878 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian">debian
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>.
882 <div class=
"padding"></div>
885 <div class=
"title"><a href=
"http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__apt_vs_aptitude_with_the_Gnome_and_KDE_desktop.html">Lenny-
>Squeeze upgrades, apt vs aptitude with the Gnome and KDE desktop
</a></div>
886 <div class=
"date">2010-
11-
20 22:
50</div>
888 <p>I'm still running upgrade testing of the
889 <a href=
"http://people.skolelinux.org/~pere/debian-upgrade-testing/">Lenny
890 Gnome and KDE Desktop
</a>, but have not had time to spend on reporting the
891 status. Here is a short update based on a test I ran
20101118.
</p>
893 <p>I still do not know what a correct migration should look like, so I
894 report any differences between apt and aptitude and hope someone else
895 can see if anything should be changed.
</p>
897 <p>This is for Gnome:
</p>
899 <p>Installed using apt-get, missing with aptitude
</p>
902 apache2.2-bin aptdaemon at-spi baobab binfmt-support
903 browser-plugin-gnash cheese-common cli-common cpp-
4.3 cups-pk-helper
904 dmz-cursor-theme empathy empathy-common finger
905 freedesktop-sound-theme freeglut3 gconf-defaults-service gdm-themes
906 gedit-plugins geoclue geoclue-hostip geoclue-localnet geoclue-manual
907 geoclue-yahoo gnash gnash-common gnome gnome-backgrounds
908 gnome-cards-data gnome-codec-install gnome-core
909 gnome-desktop-environment gnome-disk-utility gnome-screenshot
910 gnome-search-tool gnome-session-canberra gnome-spell
911 gnome-system-log gnome-themes-extras gnome-themes-more
912 gnome-user-share gs-common gstreamer0.10-fluendo-mp3
913 gstreamer0.10-tools gtk2-engines gtk2-engines-pixbuf
914 gtk2-engines-smooth hal-info hamster-applet libapache2-mod-dnssd
915 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
916 libart2.0-cil libatspi1.0-
0 libboost-date-time1.42
.0
917 libboost-python1.42
.0 libboost-thread1.42
.0 libchamplain-
0.4-
0
918 libchamplain-gtk-
0.4-
0 libcheese-gtk18 libclutter-gtk-
0.10-
0
919 libcryptui0 libcupsys2 libdiscid0 libeel2-data libelf1 libepc-
1.0-
2
920 libepc-common libepc-ui-
1.0-
2 libfreerdp-plugins-standard
921 libfreerdp0 libgail-common libgconf2.0-cil libgdata-common libgdata7
922 libgdl-
1-common libgdu-gtk0 libgee2 libgeoclue0 libgexiv2-
0 libgif4
923 libglade2.0-cil libglib2.0-cil libgmime2.4-cil libgnome-vfs2.0-cil
924 libgnome2.24-cil libgnomepanel2.24-cil libgnomeprint2.2-data
925 libgnomeprintui2.2-common libgnomevfs2-bin libgpod-common libgpod4
926 libgtk2.0-cil libgtkglext1 libgtksourceview-common
927 libgtksourceview2.0-common libmono-addins-gui0.2-cil
928 libmono-addins0.2-cil libmono-cairo2.0-cil libmono-corlib2.0-cil
929 libmono-i18n-west2.0-cil libmono-posix2.0-cil
930 libmono-security2.0-cil libmono-sharpzip2.84-cil
931 libmono-system2.0-cil libmtp8 libmusicbrainz3-
6
932 libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil libopal3.6
.8
933 libpolkit-gtk-
1-
0 libpt-
1.10.10-plugins-alsa
934 libpt-
1.10.10-plugins-v4l libpt2.6
.7 libpython2.6 librpm1 librpmio1
935 libsdl1.2debian libservlet2.4-java libsrtp0 libssh-
4
936 libtelepathy-farsight0 libtelepathy-glib0 libtidy-
0.99-
0
937 libxalan2-java libxerces2-java media-player-info mesa-utils
938 mono-
2.0-gac mono-gac mono-runtime nautilus-sendto
939 nautilus-sendto-empathy openoffice.org-writer2latex
940 openssl-blacklist p7zip p7zip-full pkg-config python-
4suite-xml
941 python-aptdaemon python-aptdaemon-gtk python-axiom
942 python-beautifulsoup python-bugbuddy python-clientform
943 python-coherence python-configobj python-crypto python-cupshelpers
944 python-cupsutils python-eggtrayicon python-elementtree
945 python-epsilon python-evolution python-feedparser python-gdata
946 python-gdbm python-gst0.10 python-gtkglext1 python-gtkmozembed
947 python-gtksourceview2 python-httplib2 python-louie python-mako
948 python-markupsafe python-mechanize python-nevow python-notify
949 python-opengl python-openssl python-pam python-pkg-resources
950 python-pyasn1 python-pysqlite2 python-rdflib python-serial
951 python-tagpy python-twisted-bin python-twisted-conch
952 python-twisted-core python-twisted-web python-utidylib python-webkit
953 python-xdg python-zope.interface remmina remmina-plugin-data
954 remmina-plugin-rdp remmina-plugin-vnc rhythmbox-plugin-cdrecorder
955 rhythmbox-plugins rpm-common rpm2cpio seahorse-plugins shotwell
956 software-center svgalibg1 system-config-printer-udev
957 telepathy-gabble telepathy-mission-control-
5 telepathy-salut tomboy
958 totem totem-coherence totem-mozilla totem-plugins
959 transmission-common xdg-user-dirs xdg-user-dirs-gtk xserver-xephyr
963 Installed using apt-get, removed with aptitude
966 arj bluez-utils cheese dhcdbd djvulibre-desktop ekiga eog
967 epiphany-extensions epiphany-gecko evolution-exchange
968 fast-user-switch-applet file-roller gcalctool gconf-editor gdm gedit
969 gedit-common gnome-app-install gnome-games gnome-games-data
970 gnome-nettool gnome-system-tools gnome-themes gnome-utils
971 gnome-vfs-obexftp gnome-volume-manager gnuchess gucharmap
972 guile-
1.8-libs hal libavahi-compat-libdnssd1 libavahi-core5
973 libavahi-ui0 libbind9-
50 libbluetooth2 libcamel1.2-
11 libcdio7
974 libcucul0 libcurl3 libdirectfb-
1.0-
0 libdmx1 libdvdread3
975 libedata-cal1.2-
6 libedataserver1.2-
9 libeel2-
2.20 libepc-
1.0-
1
976 libepc-ui-
1.0-
1 libexchange-storage1.2-
3 libfaad0 libgadu3
977 libgalago3 libgd2-noxpm libgda3-
3 libgda3-common libggz2 libggzcore9
978 libggzmod4 libgksu1.2-
0 libgksuui1.0-
1 libgmyth0 libgnome-desktop-
2
979 libgnome-pilot2 libgnomecups1.0-
1 libgnomeprint2.2-
0
980 libgnomeprintui2.2-
0 libgpod3 libgraphviz4 libgtk-vnc-
1.0-
0
981 libgtkhtml2-
0 libgtksourceview1.0-
0 libgtksourceview2.0-
0
982 libgucharmap6 libhesiod0 libicu38 libisccc50 libisccfg50 libiw29
983 libjaxp1.3-java-gcj libkpathsea4 liblircclient0 libltdl3 liblwres50
984 libmagick++
10 libmagick10 libmalaga7 libmozjs1d libmpfr1ldbl libmtp7
985 libmysqlclient15off libnautilus-burn4 libneon27 libnm-glib0
986 libnm-util0 libopal-
2.2 libosp5 libparted1.8-
10 libpisock9
987 libpisync1 libpoppler-glib3 libpoppler3 libpt-
1.10.10 libraw1394-
8
988 libsdl1.2debian-alsa libsensors3 libsexy2 libsmbios2 libsoup2.2-
8
989 libspeexdsp1 libssh2-
1 libsuitesparse-
3.1.0 libsvga1
990 libswfdec-
0.6-
90 libtalloc1 libtotem-plparser10 libtrackerclient0
991 libvoikko1 libxalan2-java-gcj libxerces2-java-gcj libxklavier12
992 libxtrap6 libxxf86misc1 libzephyr3 mysql-common rhythmbox seahorse
993 sound-juicer swfdec-gnome system-config-printer totem-common
994 totem-gstreamer transmission-gtk vinagre vino w3c-dtd-xhtml wodim
997 <p>Installed using aptitude, missing with apt-get
</p>
1000 gstreamer0.10-gnomevfs
1003 <p>Installed using aptitude, removed with apt-get
</p>
1009 <p>This is for KDE:
</p>
1011 <p>Installed using apt-get, missing with aptitude
</p>
1014 autopoint bomber bovo cantor cantor-backend-kalgebra cpp-
4.3 dcoprss
1015 edict espeak espeak-data eyesapplet fifteenapplet finger gettext
1016 ghostscript-x git gnome-audio gnugo granatier gs-common
1017 gstreamer0.10-pulseaudio indi kaddressbook-plugins kalgebra
1018 kalzium-data kanjidic kapman kate-plugins kblocks kbreakout kbstate
1019 kde-icons-mono kdeaccessibility kdeaddons-kfile-plugins
1020 kdeadmin-kfile-plugins kdeartwork-misc kdeartwork-theme-window
1021 kdeedu kdeedu-data kdeedu-kvtml-data kdegames kdegames-card-data
1022 kdegames-mahjongg-data kdegraphics-kfile-plugins kdelirc
1023 kdemultimedia-kfile-plugins kdenetwork-kfile-plugins
1024 kdepim-kfile-plugins kdepim-kio-plugins kdessh kdetoys kdewebdev
1025 kdiamond kdnssd kfilereplace kfourinline kgeography-data kigo
1026 killbots kiriki klettres-data kmoon kmrml knewsticker-scripts
1027 kollision kpf krosspython ksirk ksmserver ksquares kstars-data
1028 ksudoku kubrick kweather libasound2-plugins libboost-python1.42
.0
1029 libcfitsio3 libconvert-binhex-perl libcrypt-ssleay-perl libdb4.6++
1030 libdjvulibre-text libdotconf1.0 liberror-perl libespeak1
1031 libfinance-quote-perl libgail-common libgsl0ldbl libhtml-parser-perl
1032 libhtml-tableextract-perl libhtml-tagset-perl libhtml-tree-perl
1033 libio-stringy-perl libkdeedu4 libkdegames5 libkiten4 libkpathsea5
1034 libkrossui4 libmailtools-perl libmime-tools-perl
1035 libnews-nntpclient-perl libopenbabel3 libportaudio2 libpulse-browse0
1036 libservlet2.4-java libspeechd2 libtiff-tools libtimedate-perl
1037 libunistring0 liburi-perl libwww-perl libxalan2-java libxerces2-java
1038 lirc luatex marble networkstatus noatun-plugins
1039 openoffice.org-writer2latex palapeli palapeli-data parley
1040 parley-data poster psutils pulseaudio pulseaudio-esound-compat
1041 pulseaudio-module-x11 pulseaudio-utils quanta-data rocs rsync
1042 speech-dispatcher step svgalibg1 texlive-binaries texlive-luatex
1046 <p>Installed using apt-get, removed with aptitude
</p>
1049 amor artsbuilder atlantik atlantikdesigner blinken bluez-utils cvs
1050 dhcdbd djvulibre-desktop imlib-base imlib11 kalzium kanagram kandy
1051 kasteroids katomic kbackgammon kbattleship kblackbox kbounce kbruch
1052 kcron kdat kdemultimedia-kappfinder-data kdeprint kdict kdvi kedit
1053 keduca kenolaba kfax kfaxview kfouleggs kgeography kghostview
1054 kgoldrunner khangman khexedit kiconedit kig kimagemapeditor
1055 kitchensync kiten kjumpingcube klatin klettres klickety klines
1056 klinkstatus kmag kmahjongg kmailcvt kmenuedit kmid kmilo kmines
1057 kmousetool kmouth kmplot knetwalk kodo kolf kommander konquest kooka
1058 kpager kpat kpdf kpercentage kpilot kpoker kpovmodeler krec
1059 kregexpeditor kreversi ksame ksayit kshisen ksig ksim ksirc ksirtet
1060 ksmiletris ksnake ksokoban kspaceduel kstars ksvg ksysv kteatime
1061 ktip ktnef ktouch ktron kttsd ktuberling kturtle ktux kuickshow
1062 kverbos kview kviewshell kvoctrain kwifimanager kwin kwin4 kwordquiz
1063 kworldclock kxsldbg libakode2 libarts1-akode libarts1-audiofile
1064 libarts1-mpeglib libarts1-xine libavahi-compat-libdnssd1
1065 libavahi-core5 libavc1394-
0 libbind9-
50 libbluetooth2
1066 libboost-python1.34
.1 libcucul0 libcurl3 libcvsservice0
1067 libdirectfb-
1.0-
0 libdjvulibre21 libdvdread3 libfaad0 libfreebob0
1068 libgd2-noxpm libgraphviz4 libgsmme1c2a libgtkhtml2-
0 libicu38
1069 libiec61883-
0 libindex0 libisccc50 libisccfg50 libiw29
1070 libjaxp1.3-java-gcj libk3b3 libkcal2b libkcddb1 libkdeedu3
1071 libkdegames1 libkdepim1a libkgantt0 libkleopatra1 libkmime2
1072 libkpathsea4 libkpimexchange1 libkpimidentities1 libkscan1
1073 libksieve0 libktnef1 liblockdev1 libltdl3 liblwres50 libmagick10
1074 libmimelib1c2a libmodplug0c2 libmozjs1d libmpcdec3 libmpfr1ldbl
1075 libneon27 libnm-util0 libopensync0 libpisock9 libpoppler-glib3
1076 libpoppler-qt2 libpoppler3 libraw1394-
8 librss1 libsensors3
1077 libsmbios2 libssh2-
1 libsuitesparse-
3.1.0 libswfdec-
0.6-
90
1078 libtalloc1 libxalan2-java-gcj libxerces2-java-gcj libxtrap6 lskat
1079 mpeglib network-manager-kde noatun pmount tex-common texlive-base
1080 texlive-common texlive-doc-base texlive-fonts-recommended tidy
1081 ttf-dustin ttf-kochi-gothic ttf-sjfonts
1084 <p>Installed using aptitude, missing with apt-get
</p>
1087 dolphin kde-core kde-plasma-desktop kde-standard kde-window-manager
1088 kdeartwork kdebase kdebase-apps kdebase-workspace
1089 kdebase-workspace-bin kdebase-workspace-data kdeutils kscreensaver
1090 kscreensaver-xsavers libgle3 libkonq5 libkonq5-templates libnetpbm10
1091 netpbm plasma-widget-folderview plasma-widget-networkmanagement
1092 xscreensaver-data-extra xscreensaver-gl xscreensaver-gl-extra
1093 xscreensaver-screensaver-bsod
1096 <p>Installed using aptitude, removed with apt-get
</p>
1099 kdebase-bin konq-plugins konqueror
1106 Tags:
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian">debian
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu
</a>,
<a href=
"http://people.skolelinux.org/pere/blog/tags/english">english
</a>.
1110 <div class=
"padding"></div>
1112 <p style=
"text-align: right;"><a href=
"index.rss"><img src=
"http://people.skolelinux.org/pere/blog/xml.gif" alt=
"RSS feed" width=
"36" height=
"14"></a></p>
1126 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/01/">January (
2)
</a></li>
1128 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/02/">February (
1)
</a></li>
1130 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/03/">March (
3)
</a></li>
1132 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/04/">April (
3)
</a></li>
1134 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/05/">May (
9)
</a></li>
1136 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/06/">June (
14)
</a></li>
1138 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/07/">July (
12)
</a></li>
1140 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/08/">August (
13)
</a></li>
1142 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/09/">September (
7)
</a></li>
1144 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/10/">October (
9)
</a></li>
1146 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/11/">November (
13)
</a></li>
1148 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/12/">December (
4)
</a></li>
1155 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/01/">January (
8)
</a></li>
1157 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/02/">February (
8)
</a></li>
1159 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/03/">March (
12)
</a></li>
1161 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/04/">April (
10)
</a></li>
1163 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/05/">May (
9)
</a></li>
1165 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/06/">June (
3)
</a></li>
1167 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/07/">July (
4)
</a></li>
1169 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/08/">August (
3)
</a></li>
1171 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/09/">September (
1)
</a></li>
1173 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/10/">October (
2)
</a></li>
1175 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/11/">November (
3)
</a></li>
1177 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/12/">December (
3)
</a></li>
1184 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2008/11/">November (
5)
</a></li>
1186 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2008/12/">December (
7)
</a></li>
1197 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer (
13)
</a></li>
1199 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/amiga">amiga (
1)
</a></li>
1201 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/aros">aros (
1)
</a></li>
1203 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (
1)
</a></li>
1205 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (
10)
</a></li>
1207 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/debian">debian (
44)
</a></li>
1209 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (
52)
</a></li>
1211 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/english">english (
75)
</a></li>
1213 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (
1)
</a></li>
1215 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (
11)
</a></li>
1217 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/kart">kart (
5)
</a></li>
1219 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/ldap">ldap (
8)
</a></li>
1221 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/lenker">lenker (
4)
</a></li>
1223 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/ltsp">ltsp (
1)
</a></li>
1225 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (
11)
</a></li>
1227 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/norsk">norsk (
93)
</a></li>
1229 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/nuug">nuug (
114)
</a></li>
1231 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (
18)
</a></li>
1233 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/personvern">personvern (
29)
</a></li>
1235 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/reprap">reprap (
11)
</a></li>
1237 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/robot">robot (
4)
</a></li>
1239 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/rss">rss (
1)
</a></li>
1241 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (
21)
</a></li>
1243 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (
3)
</a></li>
1245 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/standard">standard (
16)
</a></li>
1247 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (
1)
</a></li>
1249 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/video">video (
16)
</a></li>
1251 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/vitenskap">vitenskap (
1)
</a></li>
1253 <li><a href=
"http://people.skolelinux.org/pere/blog/tags/web">web (
14)
</a></li>
1259 <p style=
"text-align: right">
1260 Created by
<a href=
"http://steve.org.uk/Software/chronicle">Chronicle v3.7
</a>