<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>blog.crox.net (Entries tagged as ubuntu)</title>
    <link>https://blog.crox.net/</link>
    <description></description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.5.0 - http://www.s9y.org/</generator>
    <pubDate>Sun, 04 May 2025 19:37:05 GMT</pubDate>

    <image>
    <url>https://blog.crox.net/templates/2k11/img/s9y_banner_small.png</url>
    <title>RSS: blog.crox.net - </title>
    <link>https://blog.crox.net/</link>
    <width>100</width>
    <height>21</height>
</image>

<item>
    <title>Ensuring the EFI partition is mirrored on an Ubuntu install with root on software RAID 1</title>
    <link>https://blog.crox.net/archives/128-Ensuring-the-EFI-partition-is-mirrored-on-an-Ubuntu-install-with-root-on-software-RAID-1.html</link>
    
    <comments>https://blog.crox.net/archives/128-Ensuring-the-EFI-partition-is-mirrored-on-an-Ubuntu-install-with-root-on-software-RAID-1.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=128</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=128</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    I found a working procedure &lt;a href=&quot;https://unix.stackexchange.com/questions/621942/mirroring-efi-system-partition-esp-on-ubuntu&quot; title=&quot;Mirroring EFI System Partition (ESP) on Ubuntu&quot;&gt;here&lt;/a&gt;:&lt;br /&gt;
&lt;br /&gt;
- Make sure both EFI partitions are mounted from &lt;tt&gt;/etc/fstab&lt;/tt&gt;, eg. using &lt;tt&gt;/boot/eficopy&lt;/tt&gt; in addition to &lt;tt&gt;/boot/efi&lt;/tt&gt;. (Both partitions need to have the proper partition type GUID, i.e. &lt;tt&gt;C12A7328-F81F-11D2-BA4B-00A0C93EC93B&lt;/tt&gt; or &quot;EFI System&quot;.)&lt;br /&gt;
&lt;br /&gt;
- Run &lt;tt&gt;dpkg-reconfigure grub-efi-amd64&lt;/tt&gt; and include both partitions when prompted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 04 May 2025 19:28:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/128-guid.html</guid>
    <category>linux</category>
<category>raid</category>
<category>ubuntu</category>

</item>
<item>
    <title>Ubuntu Server 24.04, software raid as boot device (with EFI)</title>
    <link>https://blog.crox.net/archives/125-Ubuntu-Server-24.04,-software-raid-as-boot-device-with-EFI.html</link>
    
    <comments>https://blog.crox.net/archives/125-Ubuntu-Server-24.04,-software-raid-as-boot-device-with-EFI.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=125</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=125</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Everything you need in this excellent article: &lt;a href=&quot;https://alexskra.com/blog/ubuntu-20-04-with-software-raid1-and-uefi/&quot; title=&quot;Ubuntu 24.04 with software RAID1 and UEFI&quot;&gt;https://alexskra.com/blog/ubuntu-20-04-with-software-raid1-and-uefi/&lt;/a&gt;. 
    </content:encoded>

    <pubDate>Sun, 09 Feb 2025 21:59:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/125-guid.html</guid>
    <category>mdadm</category>
<category>raid</category>
<category>ubuntu</category>

</item>
<item>
    <title>BackupPC - binary garbage in XferLog.z / XferLog.z getting huge</title>
    <link>https://blog.crox.net/archives/122-BackupPC-binary-garbage-in-XferLog.z-XferLog.z-getting-huge.html</link>
    
    <comments>https://blog.crox.net/archives/122-BackupPC-binary-garbage-in-XferLog.z-XferLog.z-getting-huge.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=122</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=122</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    I run a &lt;a href=&quot;https://backuppc.github.io/backuppc/&quot; title=&quot;BackupPC&quot;&gt;BackupPC&lt;/a&gt; instance that is still on Debian 10 / buster. The latest rsync package for Debian 10 has version number 3.1.3-6.&lt;br /&gt;
&lt;br /&gt;
I recently noticed infrequent issues when backing up hosts that are either on Debian 11 / bullseye, or on Ubuntu 22.04 (which both ship rsync 3.2.3). The symptoms are as follows:&lt;br /&gt;
&lt;br /&gt;
- backups take much longer than usual&lt;br/&gt;- XferLog.z starts &quot;normally&quot;, but after a certain point contains a lot of binary garbage, and gets much bigger than usual (hundreds of MB, or even in one case up to 12 GB)&lt;br /&gt;
&lt;br /&gt;
After investigating and looking for information online, I came across these bug reports, which contain the explanation as well as a workaround: &lt;a href=&quot;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969463&quot;&gt;Debian Bug report #969463&lt;/a&gt; and &lt;a href=&quot;https://github.com/backuppc/backuppc/issues/369&quot;&gt;BackupPC issue #369&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
=&gt; The issue is caused by a combination of a change of default behaviour introduced with rsync 3.2.3, and a bug in File::RsyncP.&lt;br /&gt;
&lt;br /&gt;
The solution that works for me (pending an update to Debian 11 and BackupPC 4) is to add the following line in the individual server config for each of the affected hosts:&lt;pre&gt;$Conf{RsyncArgsExtra} = [&#039;--no-msgs2stderr&#039;];&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 30 Dec 2022 18:32:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/122-guid.html</guid>
    <category>backup</category>
<category>debian</category>
<category>linux</category>
<category>ubuntu</category>

</item>
<item>
    <title>Add HEIF support to Ubuntu Linux 18.04 (thumbnails / gimp) - preview and open HEIC files from iPhone directly in Ubuntu</title>
    <link>https://blog.crox.net/archives/114-Add-HEIF-support-to-Ubuntu-Linux-18.04-thumbnails-gimp-preview-and-open-HEIC-files-from-iPhone-directly-in-Ubuntu.html</link>
    
    <comments>https://blog.crox.net/archives/114-Add-HEIF-support-to-Ubuntu-Linux-18.04-thumbnails-gimp-preview-and-open-HEIC-files-from-iPhone-directly-in-Ubuntu.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=114</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=114</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Since Apple moved from &lt;a href=&quot;https://en.wikipedia.org/wiki/JPEG&quot; title=&quot;JPEG&quot;&gt;JPEG&lt;/a&gt; to &lt;a href=&quot;https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format&quot; title=&quot;HEIF&quot;&gt;HEIF&lt;/a&gt; as default format about two years ago, there has been a lot of progress.&lt;br /&gt;
&lt;br /&gt;
There is a very straightforward way to add minimal HEIC/HEIF support to Ubuntu:&lt;pre&gt;sudo add-apt-repository ppa:strukturag/libheif&lt;br/&gt;sudo apt-get install heif-gdk-pixbuf heif-gimp-plugin heif-thumbnailer&lt;/pre&gt;&lt;br /&gt;
That&#039;s it! You don&#039;t even need to logout or restart, the new functionality is available immediately.&lt;br /&gt;
&lt;br /&gt;
More details &lt;a href=&quot;https://github.com/strukturag/libheif&quot; title=&quot;github/strukturag&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://launchpad.net/~strukturag/+archive/ubuntu/libheif&quot; title=&quot;strukturag PPA&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Mon, 16 Mar 2020 22:10:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/114-guid.html</guid>
    <category>gimp</category>
<category>heic</category>
<category>heif</category>
<category>iphone</category>
<category>linux</category>
<category>photo</category>
<category>ubuntu</category>

</item>
<item>
    <title>Accessing iPhone (iOS 10.2.1) pictures from Ubuntu</title>
    <link>https://blog.crox.net/archives/104-Accessing-iPhone-iOS-10.2.1-pictures-from-Ubuntu.html</link>
    
    <comments>https://blog.crox.net/archives/104-Accessing-iPhone-iOS-10.2.1-pictures-from-Ubuntu.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=104</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=104</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Recent changes introduced with iOS 10 prevent you from mounting an iPhone on a regular Ubuntu installation.&lt;br /&gt;
&lt;br /&gt;
The PPA by Martin Salbaba used to fix the &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/libimobiledevice/+bug/1623666&quot;&gt;issue&lt;/a&gt;, but it hasn&#039;t been updated in a while, and now when I connect my iPhone (running iOS 10.2.1) the pictures are no longer accessible, although the documents are still there.&lt;br /&gt;
&lt;br /&gt;
This solution worked for me (Ubuntu 16.04):&lt;br /&gt;
&lt;br /&gt;
- install libimobiledevice6 + dependencies from this PPA: &lt;a href=&quot;https://launchpad.net/~martin-salbaba/+archive/ubuntu/ppa+libimobiledevice&quot;&gt;https://launchpad.net/~martin-salbaba/+archive/ubuntu/ppa+libimobiledevice&lt;/a&gt; (follow the instructions there)&lt;br /&gt;
&lt;br /&gt;
- install newer libimobiledevice version according to the &quot;recipe&quot; by A.B. here: &lt;a href=&quot;http://askubuntu.com/questions/598940/libimobiledevice-1-2-ios-8-support-for-ubuntu-14-04-trusty&quot;&gt;http://askubuntu.com/questions/598940/libimobiledevice-1-2-ios-8-support-for-ubuntu-14-04-trusty&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
- install ifuse according to the same method:&lt;pre&gt;cd ~/src/&lt;br /&gt;git clone https://github.com/libimobiledevice/ifuse.git&lt;br /&gt;cd ifuse/&lt;br /&gt;sudo apt-get install libfuse2 libfuse-dev&lt;br /&gt;./autogen.sh &lt;br /&gt;make&lt;br /&gt;sudo checkinstall&lt;/pre&gt;&lt;br /&gt;
You can now mount your iPhone like this:&lt;pre&gt;mkdir ~/mnt&lt;br /&gt;ifuse ~/mnt&lt;/pre&gt;I assume the same procedure would work for an iPad too.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 12 Mar 2017 15:40:03 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/104-guid.html</guid>
    <category>ios</category>
<category>iphone</category>
<category>linux</category>
<category>phone</category>
<category>photo</category>
<category>ubuntu</category>

</item>
<item>
    <title>Add Ubuntu alongside a pre-installed Windows on an HP laptop (convert primary partition to extended/logical)</title>
    <link>https://blog.crox.net/archives/98-Add-Ubuntu-alongside-a-pre-installed-Windows-on-an-HP-laptop-convert-primary-partition-to-extendedlogical.html</link>
    
    <comments>https://blog.crox.net/archives/98-Add-Ubuntu-alongside-a-pre-installed-Windows-on-an-HP-laptop-convert-primary-partition-to-extendedlogical.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=98</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=98</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Recently I wanted to install Ubuntu next to a pre-installed Windows on a brand-new HP EliteBook.&lt;br /&gt;
&lt;br /&gt;
The notebook came with four primary partitions, with Windows installed on the biggest one:&lt;br /&gt;
&lt;br /&gt;
- sda1 (1 GB, NTFS, label=SYSTEM)&lt;br /&gt;
- sda2 (457 GB, NTFS)&lt;br /&gt;
- sda3 (16 GB, NTFS, label=HP_RECOVERY)&lt;br /&gt;
- sda4 (2 GB, FAT32)&lt;br /&gt;
&lt;br /&gt;
In order to install Ubuntu it&#039;s not enough to resize the Windows partition, as you cannot have more than four primary partitions. Removing one of the other partitions is a bad idea according to several reports, as it might render the system unable to start, or prevent BIOS updates. So the idea is to convert the Windows partition to a logical one in addition to resizing it. Fortunately everything you need to do that is already included on the Ubuntu installation image.&lt;br /&gt;
&lt;br /&gt;
1. Use gparted to resize and move the Windows partition. I resized it to 100 GB and added 10 MB free space before it (to leave some space to create the extended partition later on). This will take a while, depending on the performance of your hard drive.&lt;br /&gt;
&lt;br /&gt;
2. Use fixparts to convert sda2 to a logical partition:&lt;pre&gt;# fixparts /dev/sda&lt;/pre&gt;Type &lt;ff&gt;&lt;b&gt;l&lt;/b&gt;&lt;/ff&gt; then &lt;ff&gt;&lt;b&gt;2&lt;/b&gt;&lt;/ff&gt;, write the changes to the disk with &lt;ff&gt;&lt;b&gt;w&lt;/b&gt;&lt;/ff&gt;.&lt;br /&gt;
&lt;br /&gt;
3. Restart the computer without the Ubuntu install media so that Windows fixes itself. This will take even longer than the partition resize, be patient. Restart once more to make sure the Windows install is fine.&lt;br /&gt;
&lt;br /&gt;
4. Proceed with installing Ubuntu, choose the option to &quot;install Ubuntu alongside Windows&quot;.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 03 Oct 2015 09:49:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/98-guid.html</guid>
    <category>gparted</category>
<category>linux</category>
<category>microsoft</category>
<category>ubuntu</category>
<category>windows</category>

</item>
<item>
    <title>Keyboard does not work properly in Virtualbox remote desktop session (fixing rdesktop-vrdp &quot;Failed to open keymap&quot; error)</title>
    <link>https://blog.crox.net/archives/84-Keyboard-does-not-work-properly-in-Virtualbox-remote-desktop-session-fixing-rdesktop-vrdp-Failed-to-open-keymap-error.html</link>
    
    <comments>https://blog.crox.net/archives/84-Keyboard-does-not-work-properly-in-Virtualbox-remote-desktop-session-fixing-rdesktop-vrdp-Failed-to-open-keymap-error.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=84</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=84</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    This has been bugging me for quite some time...&lt;br /&gt;
&lt;br /&gt;
The solution:&lt;pre&gt;$ sudo ln -s /usr/share/virtualbox /opt/VirtualBox&lt;/pre&gt;&lt;br /&gt;
Found &lt;a href=&quot;https://www.virtualbox.org/ticket/12066&quot; title=&quot;VirtualBox Ticket #12066&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Mon, 13 Jan 2014 22:52:17 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/84-guid.html</guid>
    <category>linux</category>
<category>ubuntu</category>
<category>virtualbox</category>

</item>
<item>
    <title>vim instead of nano (Ubuntu / Debian)</title>
    <link>https://blog.crox.net/archives/82-vim-instead-of-nano-Ubuntu-Debian.html</link>
    
    <comments>https://blog.crox.net/archives/82-vim-instead-of-nano-Ubuntu-Debian.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=82</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=82</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    &lt;pre&gt;apt-get install vim&lt;br/&gt;update-alternatives --config editor&lt;/pre&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 19 May 2013 20:52:22 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/82-guid.html</guid>
    <category>debian</category>
<category>linux</category>
<category>ubuntu</category>

</item>
<item>
    <title>Getting the Trust 18187 Bluetooth 4.0 USB adapter (0a5c:21e8) to work with Linux</title>
    <link>https://blog.crox.net/archives/81-Getting-the-Trust-18187-Bluetooth-4.0-USB-adapter-0a5c21e8-to-work-with-Linux.html</link>
    
    <comments>https://blog.crox.net/archives/81-Getting-the-Trust-18187-Bluetooth-4.0-USB-adapter-0a5c21e8-to-work-with-Linux.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=81</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=81</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    This is how I got a &lt;a href=&quot;http://en.wikipedia.org/wiki/Bluetooth_low_energy&quot; title=&quot;Bluetooth low energy&quot;&gt;Bluetooth low energy (BLE)&lt;/a&gt; adapter to work on a Linux laptop running Ubuntu 12.04.&lt;br /&gt;
&lt;br /&gt;
First, as suggested by several websites, I created the file /etc/modprobe.d/trust-btusb.conf with the following contents:&lt;pre&gt;install usb:v0A5Cp21E8d*dc*dsc*dp*ic*isc*ip* /sbin/modprobe btusb; echo 0a5c 21e8 &gt; /sys/bus/usb/drivers/btusb/new_id&lt;/pre&gt;&lt;br /&gt;
After having restarted the computer and inserted the adapter, dmesg told me the following:&lt;pre&gt;Bluetooth: can&#039;t load firmware, may not work correctly&lt;/pre&gt;&lt;br /&gt;
To get the proper firmware, I downloaded the Windows 8 driver (18187_02.exe) from &lt;a href=&quot;http://www.trust.com/18187&quot;&gt;http://www.trust.com/18187&lt;/a&gt;. The driver files can be extracted from the .exe with &quot;unrar x 18187_02.exe&quot;.&lt;br /&gt;
&lt;br /&gt;
Then I looked for the vendor id (0x0a5c) and product id (0x21e8) in the various .inf files, and found this in 18187_02/Win32/bcbtums-win7x86-brcm.inf:&lt;pre&gt;%BRCM20702.DeviceDesc%=RAMUSB21E8,      USB\VID_0A5C&amp;PID_21E8                                   ; 20702A1 dongles&lt;/pre&gt;&lt;br /&gt;
Further down in the inf file there is a RAMUSB21E8 section which contains the following line:&lt;pre&gt;HKR,,%RAMPatchFileName%,0x00000, &quot;BCM20702A1_001.002.014.0187.0188.hex&quot;&lt;/pre&gt;&lt;br /&gt;
The .hex &quot;RAM Patch&quot; file can be found in 18187_02/Win32/. Before it can be used with btusb, it needs to be converted to hcd format. This can be done with &lt;a href=&quot;http://github.com/jessesung/hex2hcd&quot; title=&quot;hex2hcd&quot;&gt;hex2hcd&lt;/a&gt;. Finally, the hcd file needs to be moved/copied to /lib/firmware/fw-0a5c_21e8.hcd. Here are the steps to get and compile hex2hcd:&lt;pre&gt;$ git clone https://github.com/jessesung/hex2hcd.git&lt;br /&gt;$ cd hex2hcd/&lt;br /&gt;$ make&lt;/pre&gt;&lt;br /&gt;
The resulting executable can be used to convert the .hex firmware file to .hcd, which is then copied to the right destination:&lt;pre&gt;$ ./hex2hcd BCM20702A1_001.002.014.0187.0188.hex BCM20702A1_001.002.014.0187.0188.hcd&lt;br /&gt;$ sudo cp -p BCM20702A1_001.002.014.0187.0188.hcd /lib/firmware/fw-0a5c_21e8.hcd&lt;br /&gt;$ sudo chown root:root /lib/firmware/fw-0a5c_21e8.hcd&lt;/pre&gt;&lt;br /&gt;
The adapter can now be used:&lt;pre&gt;$ sudo hcitool -i hci1 lescan&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Update, 2014-09-08:&lt;/u&gt;&lt;ul&gt;&lt;li&gt;The first step is no longer necessary with Ubuntu 14.04, I directly receive the &quot;may not work&quot; message.&lt;/li&gt;&lt;li&gt;I was able to extract the firmware from 18187_05.exe (latest W8 driver) using this command: &quot;7z x 18187_05.exe&quot;&lt;/li&gt;&lt;li&gt;The correct .hex file is BCM20702A1_001.002.014.0449.0515.hex&lt;/li&gt;&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Tue, 16 Apr 2013 22:57:51 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/81-guid.html</guid>
    <category>ble</category>
<category>bluetooth</category>
<category>kernel</category>
<category>linux</category>
<category>ubuntu</category>

</item>
<item>
    <title>Enabling IPv6 Privacy Extensions on all interfaces (Ubuntu Linux, may work for other distros too)</title>
    <link>https://blog.crox.net/archives/75-Enabling-IPv6-Privacy-Extensions-on-all-interfaces-Ubuntu-Linux,-may-work-for-other-distros-too.html</link>
    
    <comments>https://blog.crox.net/archives/75-Enabling-IPv6-Privacy-Extensions-on-all-interfaces-Ubuntu-Linux,-may-work-for-other-distros-too.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=75</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=75</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    According to the &lt;a href=&quot;http://en.wikipedia.org/wiki/IPv6&quot;  title=&quot;IPv6&quot;&gt;Wikipedia IPv6 article&lt;/a&gt;, &lt;i&gt;Privacy extensions are, except for the Windows platform and Mac OS X since 10.7 as well as iOS since version 4.3, not enabled by default&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
In theory, one can enable the IPv6 Privacy Extensions on all interfaces at once using sysctl like this:&lt;pre&gt;sudo sysctl net.ipv6.conf.all.use_tempaddr=2&lt;/pre&gt;&lt;br /&gt;
However, this currently doesn&#039;t work as expected, so I&#039;m using this one-liner in /etc/rc.local:&lt;pre&gt;for IF in `/bin/ls /proc/sys/net/ipv6/conf/*/use_tempaddr` ; do echo 2 &gt; $IF ; done&lt;/pre&gt;&lt;br /&gt;
This also sets &quot;use_tempaddr&quot; for &quot;default&quot;, which means it should also apply to interfaces added to the system afterwards.&lt;br /&gt;
&lt;br /&gt;
A simple check to verify that the new configuration is working: &lt;a href=&quot;http://ipv6-test.com/&quot;  title=&quot;ipv6-test.com&quot;&gt;ipv6-test.com&lt;/a&gt; will print your MAC address when available...&lt;br /&gt;
&lt;br /&gt;
See also: &lt;a href=&quot;https://bugzilla.kernel.org/show_bug.cgi?id=11655&quot; &gt;Linux Kernel Bug 11655&lt;/a&gt;&lt;br /&gt;
&lt;br/&gt; 
    </content:encoded>

    <pubDate>Sun, 22 Jan 2012 23:22:01 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/75-guid.html</guid>
    <category>ipv6</category>
<category>kernel</category>
<category>linux</category>
<category>network</category>
<category>ubuntu</category>

</item>
<item>
    <title>VaudTax 2010 avec Ubuntu linux 64-bit</title>
    <link>https://blog.crox.net/archives/74-VaudTax-2010-avec-Ubuntu-linux-64-bit.html</link>
    
    <comments>https://blog.crox.net/archives/74-VaudTax-2010-avec-Ubuntu-linux-64-bit.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=74</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=74</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    &lt;a href=&quot;http://www.vd.ch/fileadmin/user_upload/organisation/dfin/aci/fichiers_pdf/Tutoriel-Linux-Mozilla_2010.pdf&quot; &gt;Les instructions pour Linux fournies sur le site officiel&lt;/a&gt; ne fonctionnent pas pour moi (Maverick / Ubuntu 10.10 desktop amd64).&lt;br /&gt;
&lt;br /&gt;
Il semble qu&#039;il ne soit toujours pas possible d&#039;importer des fichiers sauvegardés dans une version 32 bit de VaudTax avec la version 64 bits, et vice-versa (crash de VaudTax avec une erreur cryptique [1]). Deux options, soit recommencer sa déclaration sans importer les données de l&#039;année précédente, soit faire tourner VaudTax avec une JVM 32-bits ([2]). Pour l&#039;instant j&#039;ai toujours opté pour la deuxième variante. Jusqu&#039;à l&#039;année passée (VaudTax2009), on pouvait télécharger une version incluant une JVM (32-bits), cette option n&#039;est plus disponible mais il est toujours possible d&#039;arriver au même résultat :&lt;br /&gt;
&lt;br /&gt;
1ère étape, avant de commencer le processus d&#039;installation :&lt;pre&gt;$ sudo update-alternatives --config java&lt;br /&gt;There are 3 choices for the alternative java (providing /usr/bin/java).&lt;br /&gt;&lt;br /&gt;  Selection    Path                                       Priority   Status&lt;br /&gt;------------------------------------------------------------&lt;br /&gt;* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java    1061      auto mode&lt;br /&gt;  1            /usr/lib/jvm/ia32-java-6-sun/jre/bin/java   63        manual mode&lt;br /&gt;  2            /usr/lib/jvm/java-6-openjdk/jre/bin/java    1061      manual mode&lt;br /&gt;  3            /usr/lib/jvm/java-6-sun/jre/bin/java        63        manual mode&lt;br /&gt;&lt;br /&gt;Press enter to keep the current choice[*], or type selection number: 1&lt;br /&gt;update-alternatives: using /usr/lib/jvm/ia32-java-6-sun/jre/bin/java to provide /usr/bin/java (java) in manual mode.&lt;/pre&gt;&lt;br /&gt;
(si l&#039;option JVM 32-bits n&#039;apparaît pas, il faut d&#039;abord installer le paquet ia32-sun-java6-bin)&lt;br /&gt;
&lt;br /&gt;
Une fois VaudTax installé, il faut télécharger et décompacter xulrunner :&lt;pre&gt;$ cd $HOME/VaudTax2010&lt;br /&gt;$ wget http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.2.16/runtimes/xulrunner-1.9.2.16.en-US.linux-i686.tar.bz2&lt;br /&gt;$ tar -xpf xulrunner-*&lt;/pre&gt;&lt;br /&gt;
Finalement, il faut encore modifier le fichier VaudTax2010 en ajoutant ces deux lignes juste après `VM_SEARCH_PATH=&quot;$PATH&quot;&#039; :&lt;pre&gt;export MOZILLA_FIVE_HOME=$HOME/VaudTax2010/xulrunner&lt;br /&gt;export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME}&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Note : une fois VaudTax2010 installé, on peut exécuter à nouveau &quot;sudo update-alternatives --config java&quot; pour rétablir la configuration initiale - les paramètres sont en effet enregistrés dans le fichier VaudTax2010.lax&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[1] &lt;pre&gt;The program &#039;SWT&#039; received an X Window System error.&lt;br /&gt;This probably reflects a bug in the program.&lt;br /&gt;The error was &#039;RenderBadPicture (invalid Picture parameter)&#039;.&lt;br /&gt;  (Details: serial 5455 error_code 161 request_code 149 minor_code 7)&lt;br /&gt;  (Note to programmers: normally, X errors are reported asynchronously;&lt;br /&gt;   that is, you will receive the error a while after causing it.&lt;br /&gt;   To debug your program, run it with the --sync command line&lt;br /&gt;   option to change this behavior. You can then get a meaningful&lt;br /&gt;   backtrace from your debugger if you break on the gdk_x_error() function.)&lt;/pre&gt;&lt;br /&gt;
[2] la troisième variante serait d&#039;étudier le format de fichier produit par chacune des versions pour créer un outil de conversion 
    </content:encoded>

    <pubDate>Mon, 18 Apr 2011 15:07:21 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/74-guid.html</guid>
    <category>linux</category>
<category>ubuntu</category>
<category>vaudtax</category>

</item>
<item>
    <title>Linux: enable encrypted swap (Ubuntu / Debian)</title>
    <link>https://blog.crox.net/archives/71-Linux-enable-encrypted-swap-Ubuntu-Debian.html</link>
    
    <comments>https://blog.crox.net/archives/71-Linux-enable-encrypted-swap-Ubuntu-Debian.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=71</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=71</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    1. create and enable a &quot;regular&quot; swap partition (fdisk / mkswap / swapon)&lt;br /&gt;
&lt;br /&gt;
2. install ecryptfs-utils and run ecryptfs-setup-swap&lt;br /&gt;
&lt;pre&gt;sudo apt-get install ecryptfs-utils&lt;br /&gt;sudo ecryptfs-setup-swap&lt;/br&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Mon, 15 Nov 2010 21:40:37 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/71-guid.html</guid>
    <category>encryption</category>
<category>linux</category>
<category>ubuntu</category>

</item>
<item>
    <title>Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl)</title>
    <link>https://blog.crox.net/archives/64-Scanner-permissions-in-Ubuntu-Karmic-udev-libusb-saned-problem-with-udev-acl.html</link>
    
    <comments>https://blog.crox.net/archives/64-Scanner-permissions-in-Ubuntu-Karmic-udev-libusb-saned-problem-with-udev-acl.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=64</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=64</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    In Ubuntu Karmic (and possibly Jaunty ?), when you install libsane, it adds a file /lib/udev/rules.d/40-libsane.rules which contains rules that match on supported scanners and set the environment variable &quot;libsane_matched&quot; to &quot;yes&quot;.&lt;br /&gt;
&lt;br /&gt;
This in turn triggers the following in /lib/udev/rules.d/70-acl.rules:&lt;br /&gt;
&lt;pre&gt;# USB scanners&lt;br /&gt;ENV{libsane_matched}==&quot;yes&quot;, ENV{ACL_MANAGE}=&quot;1&quot;&lt;br /&gt;
&amp;lt;snip&amp;gt;&lt;br /&gt;
# apply ACL for all locally logged in users&lt;br /&gt;LABEL=&quot;acl_apply&quot;, ENV{ACL_MANAGE}==&quot;?*&quot;, TEST==&quot;/var/run/ConsoleKit/database&quot;, \&lt;br /&gt;  RUN+=&quot;udev-acl --action=$env{ACTION} --device=$env{DEVNAME}&quot;&lt;/pre&gt;&lt;br /&gt;
In the end, the result is that an ACL is created for the device, which allows locally logged in users to use it (read/write permission). eg for my scanner:&lt;br /&gt;
&lt;pre&gt;~# lsusb&lt;br /&gt;Bus 001 Device 005: ID 04b8:011c Seiko Epson Corp. Perfection 3200&lt;br /&gt;~# ls -l /dev/bus/usb/001/005&lt;br /&gt;crw-rw-r--+ 1 root root 189, 4 2009-12-28 00:11 /dev/bus/usb/001/005&lt;br /&gt;~# getfacl /dev/bus/usb/001/005&lt;br /&gt;getfacl: Removing leading &#039;/&#039; from absolute path names&lt;br /&gt;# file: dev/bus/usb/001/005&lt;br /&gt;# owner: root&lt;br /&gt;# group: root&lt;br /&gt;user::rw-&lt;br /&gt;user:crox:rw-&lt;br /&gt;group::rw-&lt;br /&gt;mask::rw-&lt;br /&gt;other::r--&lt;br /&gt;~#&lt;/pre&gt;&lt;br /&gt;
However, I also wanted to allow access to the scanner from other workstations through saned. In older Ubuntu versions, you could just add saned (or whatever user the service runs as) to the scanner group. This no longer works since the device belongs to root:root, and ACLs are added for specific users. The solution that works for me is to create a file /etc/udev/rules.d/99-sane-group.rules with the following contents:&lt;br /&gt;
&lt;pre&gt;# change group to scanner for sane devices&lt;br /&gt;ENV{libsane_matched}==&quot;yes&quot;, GROUP=&quot;scanner&quot;&lt;/pre&gt;&lt;br /&gt;
Then you just need to run &lt;pre&gt;sudo udevadm trigger&lt;/pre&gt; and the group of the device magically changes to scanner.&lt;br /&gt;
&lt;br /&gt;
Of course you could also add a similar rule specifically for a certain device instead, in my case this would work too:&lt;br /&gt;
&lt;pre&gt;ATTRS{idVendor}==&quot;1d6b&quot;, ATTRS{idProduct}==&quot;0002&quot;, GROUP=&quot;scanner&quot;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
To check that it worked, run the following: &lt;pre&gt;sudo su -s /bin/bash -c &#039;scanimage -L&#039; saned&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 27 Dec 2009 23:13:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/64-guid.html</guid>
    <category>linux</category>
<category>scanner</category>
<category>ubuntu</category>

</item>
<item>
    <title>Making a Dell computer running Linux silent (Dell Precision noise problem)</title>
    <link>https://blog.crox.net/archives/60-Making-a-Dell-computer-running-Linux-silent-Dell-Precision-noise-problem.html</link>
    
    <comments>https://blog.crox.net/archives/60-Making-a-Dell-computer-running-Linux-silent-Dell-Precision-noise-problem.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=60</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=60</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Faced with a noisy Dell Precision 490 computer running Ubuntu Karmic, I found an easy way to reduce the noise level to an acceptable threshold. (fancontrol did not help since it seems not to be compatible with the chipset used by Dell at least on this computer.)&lt;br /&gt;
&lt;br /&gt;
Step 1, install i8kutils:&lt;pre&gt;sudo apt-get install i8kutils&lt;/pre&gt;&lt;br /&gt;
Step 2, add i8k to /etc/modules: &lt;pre&gt;sudo sh -c &#039;echo i8k &gt;&gt; /etc/modules&#039;&lt;/pre&gt;&lt;br /&gt;
Step 3, edit /etc/default/i8kmon so that it looks like this:&lt;br /&gt;
&lt;pre&gt;# /etc/default/i8kmon&lt;br /&gt;
&lt;br /&gt;
# Change to one enable i8kmon&lt;br /&gt;
ENABLED=1&lt;br /&gt;
I8KMON_ARGS=&quot;--daemon --nouserconfig --auto&quot;&lt;br /&gt;
&lt;/pre&gt;&lt;br /&gt;
Step 4, reboot and enjoy!&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 10 Dec 2009 20:05:09 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/60-guid.html</guid>
    <category>dell</category>
<category>linux</category>
<category>ubuntu</category>

</item>
<item>
    <title>Installing Ubuntu Netbook Remix over the network (UNR netboot - PXE install)</title>
    <link>https://blog.crox.net/archives/54-Installing-Ubuntu-Netbook-Remix-over-the-network-UNR-netboot-PXE-install.html</link>
    
    <comments>https://blog.crox.net/archives/54-Installing-Ubuntu-Netbook-Remix-over-the-network-UNR-netboot-PXE-install.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=54</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=54</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    There is actually at least one very straightforward way to install Ubuntu Netbook Remix without a USB key, without even downloading the image, over the network.&lt;br /&gt;
&lt;br /&gt;
Just follow the instructions in &lt;a href=&quot;http://blog.crox.net/archives/39-Install-Ubuntu-without-cd-rom-over-the-network-Ubuntu-netboot-install,-works-for-CF-or-USB-too.html&quot; &gt;my previous article&lt;/a&gt; to get a working Ubuntu Installer over PXE. By default this installer will only setup a very minimal Ubuntu system, without any server or desktop packages.&lt;br /&gt;
&lt;br /&gt;
At some point during the installation, you are offered the possibility to install additional software packages. At this stage you can just tick the box in front of &quot;Ubuntu Network Remix&quot; and that&#039;s it! You don&#039;t need to select any other package (eg Ubuntu Desktop) for a fully working UNR install. Personally I added &quot;OpenSSH Server&quot; because I want to be able to login remotely. Of course you could also add those packages later on.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 03 Jul 2009 16:26:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/54-guid.html</guid>
    <category>linux</category>
<category>netboot</category>
<category>ubuntu</category>

</item>

</channel>
</rss>
