<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>blog.johanv.org (Berichten over arch)</title><link>https://blog.johanv.org/</link><description></description><atom:link href="https://blog.johanv.org/categories/arch.xml" rel="self" type="application/rss+xml"></atom:link><language>nl</language><copyright>Contents © 2025 &lt;a href="https://blog.johanv.org/pages/contact/"&gt;Johan Vervloet&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Wed, 29 Oct 2025 18:31:22 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Raspberry Pi as print server without server side driver</title><link>https://blog.johanv.org/posts/old/node-195/</link><dc:creator>Johan Vervloet</dc:creator><description>&lt;div&gt;&lt;p&gt;I bought myself a &lt;a class="reference external" href="http://www.raspberrypi.org/"&gt;Raspberry Pi&lt;/a&gt; and I
am using it as print server right now. It required some hacking to make
it work, so I might as well blog about it.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.johanv.org/posts/old/node-195/"&gt;Lees verder…&lt;/a&gt; (2 min resterende leestijd )&lt;/p&gt;&lt;/div&gt;</description><category>arch</category><category>cups</category><category>linux</category><guid>https://blog.johanv.org/posts/old/node-195/</guid><pubDate>Fri, 29 Jun 2012 12:40:57 GMT</pubDate></item><item><title>Packages I install on my Arch Linux system</title><link>https://blog.johanv.org/posts/old/node-187/</link><dc:creator>Johan Vervloet</dc:creator><description>&lt;div&gt;&lt;p&gt;Last weekend, I installed Arch Linux for the second time (I messed
up my first installation). After the installation process, I found
myself in a command line system (as expected), so I had to install a lot
of applications by hand.&lt;/p&gt;
&lt;p&gt;Just as a reference, I will list the
packages I installed, so that I have them for if I ever have to
reinstall Arch from scratch again.&lt;/p&gt;
&lt;p&gt;Some basic command line
tools:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;lynx&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;openssh&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;mutt&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;pwgen&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Services&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;ntp&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;cups&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;networkmanager (interesting for laptop; replace standard network service by networkmanager)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sound&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;pulseaudio&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;pulseaudio-alsa&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;lib32-libpulse&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;lib32-alsa-plugins&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;alsa-utils&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Xorg&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;xorg-server&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;xorg-xinit&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;xorg-utils&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;xorg-server-utils&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;mesa&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;mesa-demos&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The freedom hating nvidia driver&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;nvidia&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;nvidia-utils&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Xorg testing&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;xorg-twm&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;xorg-xclock&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;xterm&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ttf-dejavu&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Basic gnome&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;gnome&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;gdm&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;gnome-utils&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Basic development&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;fakeroot&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;subversion&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;patch&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;python&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;pygtk&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;General desktop apps&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;gvim&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;evince&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;eog&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;gimp&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;network-manager-applet&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;firefox&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;gstreamer0.10-plugins&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;vlc&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;mplayer&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;flashplugin&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;heybuddy&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;xchat&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;droidcam&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;google-talkplugin&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;LibreOffice&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;libreoffice&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;libreoffice-gnome&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;libreoffice-calc&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;libreoffice-writer&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I am a wannabe Android developer (see Arch wiki for additional
packages to install)&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;eclipse&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;android-sdk&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;android-udev&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;android-sdk-platform-tools&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tools which allow me to use Arch at work&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;twinkle (SIP phone)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;rdesktop (for terminal services)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;sudo&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;paprefs (I use a dedicated account for virtualbox, I start it with
sudo, but I want sound)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;virtualbox (run Windows)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;virtualbox-additions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;qt (fot the virtualbox gui)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;thunderbird (plugins allow me to combine Google calendar and Exchange
calendar)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><category>arch</category><category>linux</category><guid>https://blog.johanv.org/posts/old/node-187/</guid><pubDate>Thu, 06 Oct 2011 19:09:16 GMT</pubDate></item><item><title>Arch Linux with encrypted LVM on 2 physical volumes</title><link>https://blog.johanv.org/posts/old/node-179/</link><dc:creator>Johan Vervloet</dc:creator><description>&lt;div&gt;&lt;p&gt;In this howto, I explain how I installed Arch Linux, with an
encrypted LVM setup. The tricky part is that I have 2 physical volumes
for my volume group, which required some hacking to get it
working.&lt;/p&gt;
&lt;p&gt;(I did all this on a virtual machine, as a proof of
concept. I want to do something similar on my laptop, which already has
an encrypted LVM system, and on which I want to install Arch beside the
other installed OS'es.)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;disclaimer:&lt;/strong&gt; I am an Arch newbie. This
is the first time a setup Arch, so I might explain things wrong. I've
used LVM on other distributions though, and I have used encrypted LVM on
Fedora (where the installer did al the work for me, without me
completely understanding how it worked.)&lt;/p&gt;
&lt;h3&gt;Setting up the encrypted LVM system&lt;/h3&gt;
&lt;p&gt;Boot your machine from the installation iso, and use e.g. cfdisk
to create the partitions.&lt;/p&gt;
&lt;p&gt;My partitioning scheme looks like
this:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  sda1  510 MB ext2 (boot)
  sda5 2048 MB Linux LVM
  sda6 6029 MB Linux LVM
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The
boot partition cannot be inside LVM, and cannot be encrypted either,
because it should be accessable by grub. All other file systems will be
on logical LVM volumes, which will be in one volume group. I set this up
like
this:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  modprobe dm-mod
   
  cryptsetup -y -c aes-xts-plain -s 512 luksFormat /dev/sda5
  cryptsetup -y -c aes-xts-plain -s 512 luksFormat /dev/sda6
   
  cryptsetup luksOpen /dev/sda5 crypt1
  cryptsetup luksOpen /dev/sda6 crypt2
   
  pvcreate /dev/mapper/crypt1
  pvcreate /dev/mapper/crypt2
   
  vgcreate vgroup /dev/mapper/crypt1
  vgextend vgroup /dev/mapper/crypt2
   
  lvcreate -L 1G -n swap vgroup
  lvcreate -L 6G -n root vgroup
  lvcreate -l 100%FREE -n home vgroup
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The
&lt;code&gt;aes-xts-plain&lt;/code&gt; defines the used encryption method. I don't know
anything about that, so I just copied something from yet another howto.
&lt;code&gt;crypt1&lt;/code&gt; and &lt;code&gt;crypt2&lt;/code&gt; are just arbitrary names, which allow access
to the unecrypted partitions on &lt;code&gt;/dev/mapper/crypt1&lt;/code&gt; and
&lt;code&gt;/dev/mapper/crypt2&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Reactivating the LVM volumes after reboot&lt;/h3&gt;
&lt;p&gt;At this point, you can just start the installation procedure. But,
if something goes wrong, and you have to reboot, you obviously don't
have to recreate your encrypted partitions. This is how you can
reactivate
them:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  modprobe dm-mod
  cryptsetup luksOpen /dev/sda5 crypt1
  cryptsetup luksOpen /dev/sda5 crypt2
   
  vgchange -ay
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;(The
last line just activates all available logical volumes.)&lt;/p&gt;
&lt;h3&gt;Setting up arch&lt;/h3&gt;
&lt;p&gt;To setup arch, just run &lt;code&gt;/arch/setup&lt;/code&gt;, as usual. For the step
‘prepare hard drive’, choose option 3: manually configure block devices,
file systems, mount points.&lt;/p&gt;
&lt;p&gt;Choose the physical partition as boot
partition, and the correct logical partitions for root, home, swap, or
whatever partitions you created.&lt;/p&gt;
&lt;p&gt;In order to use two (or more)
encrypted physical volumes, you have to apply a hack to the encrypt
hook. You do this when the installer shows you the different
configuration files you can edit. At this point, just press CTRL+ALT+F2,
log in as root again, and apply the changes in this
patch to &lt;code&gt;/mnt/lib/initcpio/hooks/encrypt&lt;/code&gt;. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; It seems the patch got lost in a migration of my blog
😢. But I obviously didn't invent the patch
myself, I just shamelessly stole it from &lt;a href="https://bbs.archlinux.org/viewtopic.php?pid=827495#p828784"&gt;this post on the arch linux
forums&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Once
you've done that, press CTRL+ALT+F1 again, to switch back to the
installer.
Edit &lt;code&gt;rc.conf&lt;/code&gt;: change &lt;code&gt;USELVM="no"&lt;/code&gt; into
&lt;code&gt;USELVM="yes"&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Edit &lt;code&gt;mkinitcpio.conf&lt;/code&gt;: search for
&lt;code&gt;HOOKS&lt;/code&gt;, and add &lt;code&gt;encrypt lvm2&lt;/code&gt; directly before &lt;code&gt;filesystems&lt;/code&gt;. In
my case, the HOOKS-line looks like
this:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  HOOKS="base udev autodetect pata scsi sata encrypt lvm2 filesystems"
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;That's
all you have to change in the configuration files. Continue the
installation until the step you have to configure grub. For the menu
entries 'Arch Linux' and 'Arch Linux Fallback' you should make sure that
the kernel line looks as
follows:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;  kernel /vmlinuz27 root=/dev/mapper/vgroup-root cryptdevice=/dev/sda5:crypt1,/dev/sda6:crypt2 ro
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Of
course you should change &lt;code&gt;vgroup-root&lt;/code&gt; to the name of your root
volume, and choose the correct partitions after &lt;code&gt;cryptdevice=&lt;/code&gt;. I
chose the same names for the unencrypted devices (&lt;code&gt;crypt1&lt;/code&gt; and
&lt;code&gt;crypt2&lt;/code&gt;) as above, but I am not sure this is a
requirement.&lt;/p&gt;
&lt;p&gt;Adding two partitions after &lt;code&gt;cryptdevice=&lt;/code&gt; is
non-standard, this is why you had to hack the &lt;code&gt;encrypt&lt;/code&gt;
hook.&lt;/p&gt;
&lt;p&gt;That's all. It should work. During bootup, you will be
asked for the passphrases to decrypt your physical LVM partition. After
entering these, your system will boot.&lt;/p&gt;
&lt;h3&gt;Things to be done&lt;/h3&gt;
&lt;p&gt;Although this setup works, it isn't perfect yet. In my situation,
both encrypted partitions can be unlocked with the same password. It
would be nice if entering the password one time, would decrypt both
partitions at once; this is e.g. the case with Fedora.&lt;/p&gt;
&lt;p&gt;I guess I
will have to modify the encrypt hook again, such that it would try the
first entered password for decrypting all the volumes. Only if this
fails, it should ask to enter another password. This should be perfectly
doable, but I wasn't able to try this out. Yet. ;-)&lt;/p&gt;
&lt;h3&gt;References&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;https://bbs.archlinux.org/viewtopic.php?pid=827495#p828784&lt;/li&gt;
&lt;li&gt;https://wiki.archlinux.org/index.php/System_Encryption_with_LUKS#LVM.26dm-crypt_manually_.28short_version.29&lt;/li&gt;
&lt;li&gt;http://www.pindarsign.de/webblog/?p=767&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><category>arch</category><category>beveiliging</category><category>linux</category><guid>https://blog.johanv.org/posts/old/node-179/</guid><pubDate>Fri, 10 Jun 2011 14:28:03 GMT</pubDate></item></channel></rss>