<?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 linux)</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>Fri, 15 Aug 2025 22:48:00 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>Disable WiFi Power Management on Raspbian 12 (Network Manager)</title>
    <link>https://blog.crox.net/archives/129-Disable-WiFi-Power-Management-on-Raspbian-12-Network-Manager.html</link>
    
    <comments>https://blog.crox.net/archives/129-Disable-WiFi-Power-Management-on-Raspbian-12-Network-Manager.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=129</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    &lt;a href=&quot;https://blog.crox.net/archives/106-How-to-solve-Edimax-EW-7612UAn-v2-73927822-power-management-issues-on-Raspberry-Pi-Raspbian-WiFi-disconnect.html&quot; title=&quot;How to solve Edimax EW-7612UAn v2 (7392:7822) power management issues on Raspberry Pi (Raspbian WiFi disconnect)&quot;&gt;8 years later&lt;/a&gt; there are still issues on Raspberry Pi / Raspbian with WiFi power management causing disconnects and generally bad performance.&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a reliable method to disable WiFi Power Management for the on-board WiFi chip (brcmfmac) here: &lt;a href=&quot;https://gist.github.com/jcberthon/ea8cfe278998968ba7c5a95344bc8b55&quot; title=&quot;NetworkManager WiFi Power Saving&quot;&gt;NetworkManager WiFi Power Saving&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 15 Aug 2025 22:48:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/129-guid.html</guid>
    <category>debian</category>
<category>linux</category>
<category>raspberry pi</category>
<category>wlan</category>

</item>
<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>libheif1 &gt;= 1.18 on debian 12 bookworm (installing packages from backport in debian stable)</title>
    <link>https://blog.crox.net/archives/127-libheif1-1.18-on-debian-12-bookworm-installing-packages-from-backport-in-debian-stable.html</link>
    
    <comments>https://blog.crox.net/archives/127-libheif1-1.18-on-debian-12-bookworm-installing-packages-from-backport-in-debian-stable.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=127</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Add this line to &lt;tt&gt;/etc/apt/sources.list&lt;/tt&gt;:&lt;pre&gt;deb http://deb.debian.org/debian bookworm-backports main&lt;/pre&gt;Run:&lt;pre&gt;# apt-get update&lt;br/&gt;# apt install -t bookworm-backports libheif1&lt;/pre&gt;&lt;br /&gt;
This solves the issues encountered when decoding HEIF (.heic) files produced by iPhone / iOS 18, causing for instance rendering in Nextcloud to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://backports.debian.org/Instructions/&quot; title=&quot;debian backports instructions&quot;&gt;This page&lt;/a&gt; has more details on using Backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 02 May 2025 18:08:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/127-guid.html</guid>
    <category>debian</category>
<category>heic</category>
<category>heif</category>
<category>linux</category>
<category>nextcloud</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>Find large files in a BackupPC transfer log (sort files in XferLOG by size)</title>
    <link>https://blog.crox.net/archives/119-Find-large-files-in-a-BackupPC-transfer-log-sort-files-in-XferLOG-by-size.html</link>
    
    <comments>https://blog.crox.net/archives/119-Find-large-files-in-a-BackupPC-transfer-log-sort-files-in-XferLOG-by-size.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=119</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    When your backups suddenly takes much longer to complete, it could be because large files that were previously excluded from the backup were renamed or relocated elsewhere. In order to identify those files, or just to sort the list of files by size, I use the following code (bash):&lt;br /&gt;
&lt;pre&gt;cd /tmp/&lt;br/&gt;BackupPC_zcat /var/lib/backuppc/pc/mypc/XferLOG.99.z &gt; xlog&lt;br/&gt;for S in `cat xlog | sed -e &#039;s/^[^/]*\/[0-9]*[ ]*//&#039; | cut -f1 -d\  | egrep &#039;^[0-9]+$&#039; | egrep &#039;[0-9]{9,}&#039; | sort -n | uniq ` ; do fgrep &quot; $S &quot; xlog ; done&lt;/pre&gt;This will show the list of files bigger than 99999999 bytes (100 MB). Remove &quot;&lt;tt&gt;| egrep &#039;[0-9]{9,}&#039;&lt;/tt&gt;&quot; to just list all instead.&lt;br /&gt;
&lt;br /&gt;
Note: on Debian, &lt;tt&gt;BackupPC_zcat&lt;/tt&gt; is in &lt;tt&gt;/usr/share/backuppc/bin/&lt;/tt&gt;. I&#039;ve added a symlink in &lt;tt&gt;/usr/local/bin/&lt;/tt&gt; so that I don&#039;t need to look for it every time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 13 Mar 2021 14:40:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/119-guid.html</guid>
    <category>backup</category>
<category>debian</category>
<category>linux</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>IPv6 Neighbor discovery</title>
    <link>https://blog.crox.net/archives/110-IPv6-Neighbor-discovery.html</link>
    
    <comments>https://blog.crox.net/archives/110-IPv6-Neighbor-discovery.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=110</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Discover/list other hosts:&lt;pre&gt;ping6 -I eth0 ff02::1&lt;br/&gt;ip -6 neigh show&lt;/pre&gt;&lt;br /&gt;
To connect to a host using the link-local address you need to specify which interface to use (see &quot;&lt;a href=&quot;https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses&quot;&gt;zone index&lt;/a&gt;&quot;):&lt;pre&gt;ssh -6 fe80::a00:aaaa:bbbb:cccc%eth0&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Wed, 11 Jul 2018 06:12:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/110-guid.html</guid>
    <category>ipv6</category>
<category>linux</category>
<category>network</category>

</item>
<item>
    <title>backuppc &quot;no ping response&quot; when ping works fine</title>
    <link>https://blog.crox.net/archives/109-backuppc-no-ping-response-when-ping-works-fine.html</link>
    
    <comments>https://blog.crox.net/archives/109-backuppc-no-ping-response-when-ping-works-fine.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=109</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    It took me some time to figure this out, maybe it can be useful to someone else...&lt;br /&gt;
&lt;br /&gt;
I kept getting &quot;no ping&quot; error for unknown reasons. It turned out that I had enabled DumpPreUserCmd and UserCmdCheckStatus for that specific host to check for an encrypted partition being mounted.&lt;br /&gt;
&lt;br /&gt;
Due to some changes on the host after an upgrade, the script triggered by DumpPreUserCmd was returning an error... And for some reason this showed as a ping error in the web interface.&lt;br /&gt;
&lt;br /&gt;
I eventually figured it out by checking the last lines of the LOG.** file in the pc/[host] directory, which looked like this:&lt;pre&gt;2018-05-08 19:15:45 Output from DumpPreUserCmd: /[partition] is not mounted&lt;br /&gt;2018-05-08 19:15:45 DumpPreUserCmd returned error status 256... exiting&lt;/pre&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Tue, 08 May 2018 17:20:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/109-guid.html</guid>
    <category>backup</category>
<category>linux</category>

</item>
<item>
    <title>How to solve Edimax EW-7612UAn v2 (7392:7822) power management issues on Raspberry Pi (Raspbian WiFi disconnect)</title>
    <link>https://blog.crox.net/archives/106-How-to-solve-Edimax-EW-7612UAn-v2-73927822-power-management-issues-on-Raspberry-Pi-Raspbian-WiFi-disconnect.html</link>
    
    <comments>https://blog.crox.net/archives/106-How-to-solve-Edimax-EW-7612UAn-v2-73927822-power-management-issues-on-Raspberry-Pi-Raspbian-WiFi-disconnect.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=106</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    &lt;ul&gt;&lt;li&gt;On Raspbian, you don&#039;t need to install the 8192cu driver manually, as it comes with the distribution&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;To avoid disconnection issues, you need however to disable power management. This needs to be done in two places. First, this is what I have in /etc/modprobe.d/8192cu.conf:&lt;pre&gt;options 8192cu rtw_power_mgnt=0 rtw_enusbss=0&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;This alone did not prevent the issue. I also had to add this entry to /etc/network/interfaces:&lt;pre&gt;auto wlan0&lt;br /&gt;allow-hotplug wlan0&lt;br /&gt;iface wlan0 inet dhcp&lt;br /&gt;wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;&lt;b&gt;wireless-power off&lt;/b&gt;&lt;br /&gt;iface default inet dhcp&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
Sources: &lt;a href=&quot;https://github.com/xbianonpi/xbian/issues/217&quot;&gt;https://github.com/xbianonpi/xbian/issues/217&lt;/a&gt;, &lt;a href=&quot;https://www.kuerbis.org/2016/03/raspberry-pi-3-kurztipps-wlan-sleep-mode-verhindern/&quot;&gt;https://www.kuerbis.org/2016/03/raspberry-pi-3-kurztipps-wlan-sleep-mode-verhindern/&lt;/a&gt; 
    </content:encoded>

    <pubDate>Sun, 12 Nov 2017 19:04:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/106-guid.html</guid>
    <category>debian</category>
<category>linux</category>
<category>raspberry pi</category>
<category>wlan</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>Linux - extract data from an &quot;OLE Compound&quot; file</title>
    <link>https://blog.crox.net/archives/99-Linux-extract-data-from-an-OLE-Compound-file.html</link>
    
    <comments>https://blog.crox.net/archives/99-Linux-extract-data-from-an-OLE-Compound-file.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=99</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    As seen &lt;a href=&quot;http://blogmal.42.org/tidbits/ole-compound-file.story&quot;&gt;here&lt;/a&gt;, 7-Zip can extract the contents:&lt;br /&gt;
&lt;pre&gt;$ file PGPexch.ole&lt;br /&gt;PGPexch.ole: Composite Document File V2 Document, No summary info&lt;br /&gt;$ 7z x PGPexch.ole&lt;br /&gt;&lt;br /&gt;7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18&lt;br /&gt;p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)&lt;br /&gt;&lt;br /&gt;Processing archive: PGPexch.ole&lt;br /&gt;&lt;br /&gt;Extracting  [1]CompObj&lt;br /&gt;Extracting  [1]Ole&lt;br /&gt;Extracting  CONTENTS&lt;br /&gt;Extracting  [3]ObjInfo&lt;br /&gt;Extracting  [2]OlePres000&lt;br /&gt;Extracting  [3]MailStream&lt;br /&gt;&lt;br /&gt;Everything is Ok&lt;br /&gt;&lt;br /&gt;Files: 6&lt;br /&gt;Size:       104336&lt;br /&gt;Compressed: 108544&lt;br /&gt;$ file CONTENTS&lt;br /&gt;CONTENTS: PDF document, version 1.5&lt;br /&gt;$ &lt;/pre&gt;(If the OLE data is hidden in a WINMAIL.DAT file, you may have to extract it with &lt;a href=&quot;https://github.com/verdammelt/tnef&quot;&gt;tnef&lt;/a&gt; first.)&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Mon, 05 Oct 2015 20:17:18 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/99-guid.html</guid>
    <category>linux</category>
<category>mail</category>
<category>microsoft</category>
<category>outlook</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>OSMC NFS mount</title>
    <link>https://blog.crox.net/archives/97-OSMC-NFS-mount.html</link>
    
    <comments>https://blog.crox.net/archives/97-OSMC-NFS-mount.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=97</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    It looks like you need some systemd &quot;magic&quot; to successfully mount an NFS share on &lt;a href=&quot;https://osmc.tv/&quot; title=&quot;OSMC&quot;&gt;OSMC&lt;/a&gt;. Adding &quot;&lt;tt&gt;x-systemd.automount,noauto&lt;/tt&gt;&quot; to the mount options in &lt;tt&gt;/etc/fstab&lt;/tt&gt; did the trick for me.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 02 Aug 2015 14:19:46 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/97-guid.html</guid>
    <category>linux</category>
<category>network</category>
<category>nfs</category>
<category>osmc</category>
<category>raspberry pi</category>
<category>systemd</category>

</item>
<item>
    <title>Enable IPv6 on OSMC (wired and wireless)</title>
    <link>https://blog.crox.net/archives/96-Enable-IPv6-on-OSMC-wired-and-wireless.html</link>
    
    <comments>https://blog.crox.net/archives/96-Enable-IPv6-on-OSMC-wired-and-wireless.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=96</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    Despite having read the opposite, it looks like IPv6 is disabled by default on the latest &lt;a href=&quot;https://osmc.tv/&quot; title=&quot;OSMC&quot;&gt;OSMC&lt;/a&gt; release (2015.06-1). I&#039;ve tried adding a sysctl.d file to set /proc/sys/net/ipv6/conf/eth0/disable_ipv6 to 0, but this did not help. It worked only when I ran the command manually. By going through numerous forum posts I eventually found out that you need to use the &lt;tt&gt;connmanctl&lt;/tt&gt; CLI tool:&lt;pre&gt;root@osmc:~# connmanctl&lt;br /&gt;connmanctl&gt; services&lt;br /&gt;*AO Wired                ethernet_b827ebaabbcc_cable&lt;br /&gt;connmanctl&gt; config ethernet_b827ebaabbcc_cable --ipv6 auto preferred&lt;br /&gt;connmanctl&gt; quit&lt;br /&gt;root@osmc:~# &lt;/pre&gt;This enables IPv6 with &lt;a href=&quot;https://en.wikipedia.org/wiki/IPv6#Stateless_address_autoconfiguration_.28SLAAC.29&quot; title=&quot;SLAAC&quot;&gt;autoconfiguration&lt;/a&gt;, turns on &lt;a href=&quot;https://en.wikipedia.org/wiki/IPv6#Privacy&quot; title=&quot;IPv6 Privacy Extensions&quot;&gt;Privacy Extensions&lt;/a&gt; and prefers these ephemeral addresses over the autoconfigured ones.&lt;br /&gt;
&lt;br /&gt;
The same command works for wireless as well, you just need to select the appropriate interface (the service name will start with &lt;tt&gt;wifi_&lt;/tt&gt;).&lt;br /&gt;
&lt;br /&gt;
&quot;&lt;tt&gt;help&lt;/tt&gt;&quot; will display basic usage info.&lt;br /&gt;
&lt;br /&gt;
If for some reason you would like to disable IPv6, the command would be &quot;&lt;tt&gt;config ... --ipv6 off&lt;/tt&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 01 Aug 2015 22:14:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/96-guid.html</guid>
    <category>ipv6</category>
<category>linux</category>
<category>network</category>
<category>osmc</category>
<category>raspberry pi</category>

</item>
<item>
    <title>BackupPC rsync error message &quot;Internal hashtable error: illegal key supplied!&quot;</title>
    <link>https://blog.crox.net/archives/95-BackupPC-rsync-error-message-Internal-hashtable-error-illegal-key-supplied!.html</link>
    
    <comments>https://blog.crox.net/archives/95-BackupPC-rsync-error-message-Internal-hashtable-error-illegal-key-supplied!.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=95</wfw:comment>

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

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    While trying to restore two files with &lt;a href=&quot;http://backuppc.sourceforge.net/&quot;&gt;BackupPC&lt;/a&gt; I got the following error message:&lt;br /&gt;
&lt;pre&gt;Remote[1]: Internal hashtable error: illegal key supplied!&lt;br /&gt;Remote[1]: rsync error: errors with program diagnostics (code 13) at hashtable.c(65) [Receiver=3.0.9]&lt;br /&gt;Read EOF: &lt;br /&gt;Tried again: got 0 bytes&lt;br /&gt;Done: 2 files, 760646 bytes&lt;br /&gt;restore failed: Unable to read 4 bytes&lt;/pre&gt;Other restores worked flawlessly. All hosts involved were running the same version of Debian Linux, with the same version of rsync. The same two files could be restored as a zip file from the BackupPC web front-end.&lt;br /&gt;
&lt;br /&gt;
After spending some time on the issue with a colleague we eventually found the explanation, albeit not the solution: one of the files was a hard link. It looks like we hit a bug similar to what is described here: &lt;a href=&quot;http://sourceforge.net/p/backuppc/mailman/message/20762995/&quot;&gt;http://sourceforge.net/p/backuppc/mailman/message/20762995/&lt;/a&gt;&lt;br /&gt;
&lt;blockquote&gt;&amp;gt; This results in one subtle bug that can&#039;t be easily fixed: if you&lt;br /&gt;&amp;gt; switch the Xfer method from tar to rsync, old backups that have&lt;br /&gt;&amp;gt; hardlinks stored with tar won&#039;t be correctly restored with rsync.&lt;br /&gt;&amp;gt; &lt;b&gt;The workaround is generate a tar file and extract it&lt;/b&gt;, or switch&lt;br /&gt;&amp;gt; the Xfer method back to tar before you do the restore.&lt;/blockquote&gt;We did not switch Xfer method (we&#039;ve always used rsync over ssh). Possibly the issue was caused by attempting to restore two hard links to the same file at once - more testing would be required to confirm this.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 25 Jun 2015 09:08:03 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/95-guid.html</guid>
    <category>backup</category>
<category>linux</category>

</item>

</channel>
</rss>
