<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Self Hosting on Wimpy's World</title><link>https://blog.wimpys.world/categories/self-hosting/</link><description>Recent content in Self Hosting on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Tue, 13 Dec 2016 17:17:00 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/categories/self-hosting/rss.xml" rel="self" type="application/rss+xml"/><item><title>Raspberry Pi 3 Nextcloud Box running on Ubuntu Core</title><link>https://blog.wimpys.world/posts/raspberry-pi-3-nextcloud-box-running-on-ubuntu-core/</link><pubDate>Tue, 13 Dec 2016 17:17:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/raspberry-pi-3-nextcloud-box-running-on-ubuntu-core/</guid><description>&lt;p&gt;I recently bought the &lt;a href="https://nextcloud.com/box/"&gt;Nextcloud Box&lt;/a&gt;. When
it came to setting it up I ran into a problem, I only had Raspberry Pi 3
computers available and at the time of writing the microSDHC card
provided with the Nextcloud Box only supports the Raspberry Pi 2. &lt;em&gt;Bummer!&lt;/em&gt;&lt;/p&gt;
&lt;h1 id="overview"&gt;Overview&lt;/h1&gt;
&lt;p&gt;This guide outlines how to use &lt;a href="https://www.ubuntu.com/core"&gt;Ubuntu Core&lt;/a&gt;
on the &lt;a href="https://www.raspberrypi.org/"&gt;Raspberry Pi 3&lt;/a&gt; to run &lt;a href="https://nextcloud.com/"&gt;Nextcloud&lt;/a&gt;
provided as a &lt;a href="http://snapcraft.io"&gt;snap&lt;/a&gt; from the Ubuntu store.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re not familiar with Ubuntu Core, here&amp;rsquo;s a quote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Ubuntu Core is a tiny, transactional version of Ubuntu for IoT devices and large container deployments. It runs a new breed of super-secure, remotely upgradeable Linux app packages known as snaps&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;After following this guide Ubuntu Core and any installed snaps (and
their data) will reside on the SD card and the 1TB hard disk in the
Nextcloud box will be available for file storage. This
guide explains how to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Install and configure Ubuntu Core 16 for the Raspberry Pi 3&lt;/li&gt;
&lt;li&gt;Format the 1TB hard disk in the Nextcloud Box and auto-mount it&lt;/li&gt;
&lt;li&gt;Install the Nextcloud snap and connect the &lt;code&gt;removable-media&lt;/code&gt; interface to allow access to the hard disk&lt;/li&gt;
&lt;li&gt;Activate and configure the Nextcloud &lt;em&gt;External Storage&lt;/em&gt; app so the hard disk can be used to store files&lt;/li&gt;
&lt;li&gt;Optional configuration of Email and HTTPS for Nextcloud&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="prepare-a-microsdhc-card"&gt;Prepare a microSDHC card&lt;/h2&gt;
&lt;p&gt;I explained the main steps in this post but you &lt;em&gt;really should&lt;/em&gt; read and
follow the &lt;a href="https://developer.ubuntu.com/en/snappy/start/raspberry-pi-2/"&gt;Get started with a Raspberry Pi 2 or 3&lt;/a&gt;
page as it fully explains how to use a desktop computer to download an
Ubuntu Core image for your Raspberry Pi 2 or 3 and copy it to an SD card
ready to boot.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s how to create an Ubuntu Core microSDHC card for the Raspberry Pi
3 using an Ubuntu desktop:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Download &lt;a href="http://releases.ubuntu.com/ubuntu-core/16/ubuntu-core-16-pi3.img.xz"&gt;Ubuntu Core 16 image for Raspberry Pi 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Insert the microSDHC card into your PC
&lt;ul&gt;
&lt;li&gt;Use &lt;a href="apt://gnome-disk-utility"&gt;GNOME Disks&lt;/a&gt; and its &lt;em&gt;Restore Disk Image&amp;hellip;&lt;/em&gt; option, which &lt;strong&gt;natively supports XZ compressed images.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Select your SD card from the panel on the left&lt;/li&gt;
&lt;li&gt;Click the &amp;ldquo;burger menu&amp;rdquo; on the right and Select &lt;em&gt;Restore Disk Image&amp;hellip;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Making sure the SD card is still selected, click the Power icon on the right.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Eject the SD card physically from your PC.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="text-center"&gt;&lt;img src="GNOME-Disks-Restore-Disk-Image.png" class="img-fluid" alt="GNOME Disks - Restore Disk Image" /&gt;&lt;/div&gt;
&lt;h2 id="ubuntu-core-first-boot"&gt;Ubuntu Core first boot&lt;/h2&gt;
&lt;p&gt;An Ubuntu SSO account is required to setup the first user on Ubuntu Core:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Start by creating an &lt;a href="https://login.ubuntu.com/"&gt;Ubuntu SSO account&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Import an &lt;a href="https://login.ubuntu.com/ssh-keys"&gt;SSH Key into your Ubuntu SSO account&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Here are &lt;a href="https://help.ubuntu.com/community/SSH/OpenSSH/Keys"&gt;instructions to generate an SSH Key&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;You&amp;rsquo;ll need a keyboard and monitor connected to the Raspberry Pi 3 to go complete the first boot process and device configuration.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Insert the Ubuntu Core microSHDC into the Raspberry Pi, which should be
in the &lt;a href="https://nextcloud.com/wp-content/themes/next/assets/files/Box-Assembly-Guide.pdf?x16328"&gt;assembled Nextcloud Box&lt;/a&gt;
with a keyboard and monitor connected. Plug in the power.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The system will boot then become ready to configure&lt;/li&gt;
&lt;li&gt;The device will display the prompt &lt;em&gt;&amp;ldquo;Press enter to configure&amp;rdquo;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Press enter then select &lt;em&gt;&amp;ldquo;Start&amp;rdquo;&lt;/em&gt; to begin configuring your network and an administrator account. Follow the instructions on the screen, you will be asked to configure your network and enter your Ubuntu SSO credentials&lt;/li&gt;
&lt;li&gt;At the end of the process, you will see your credentials to access your Ubuntu Core machine:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;This device is registered to &amp;lt;Ubuntu SSO email address&amp;gt;.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Remote access was enabled via authentication with the SSO user &amp;lt;Ubuntu SSO user name&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Public SSH keys were added to the device for remote access.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="login"&gt;Login&lt;/h3&gt;
&lt;p&gt;Once setup is done, you can login to Ubuntu Core using ssh, from a
computer on the same network, using the following command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ssh &amp;lt;Ubuntu SSO user name&amp;gt;@&amp;lt;device IP address&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The user name is your Ubuntu SSO user name.&lt;/p&gt;
&lt;h3 id="reconfiguring-network"&gt;Reconfiguring network&lt;/h3&gt;
&lt;p&gt;Should you need to reconfigure the network at a later stage you can do
so with:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo console-conf
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="prepare-1tb-hard-disk"&gt;Prepare 1TB hard disk&lt;/h2&gt;
&lt;p&gt;Log in to your Raspberry Pi 3 running Ubuntu Core via ssh.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ssh &amp;lt;Ubuntu SSO user name&amp;gt;@&amp;lt;device IP address&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="partition-and-format-the-nextcloud-box-hard-disk"&gt;Partition and format the Nextcloud Box hard disk&lt;/h3&gt;
&lt;p&gt;This will create a single partition formatted with the ext4 filesystem.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo fdisk /dev/sda
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Do the following to create the partition:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Command (m for help): o
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Created a new DOS disklabel with disk identifier 0x253fea38.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Command (m for help): n
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Partition type
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; p primary (0 primary, 0 extended, 4 free)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; e extended (container for logical partitions)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Select (default p): p
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Partition number (1-4, default 1): 1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;First sector (2048-1953458175, default 2048):
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Last sector, +sectors or +size{K,M,G,T,P} (2048-1953458175, default 1953458175):
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Created a new partition 1 of type &amp;#39;Linux&amp;#39; and of size 931.5 GiB.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Command (m for help): w
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now format the partition and give it the label &lt;strong&gt;data&lt;/strong&gt;. This label will
be used to reference it for mounting later:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mkfs.ext4 -L data /dev/sda1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="automatically-mount-the-partition"&gt;Automatically mount the partition&lt;/h3&gt;
&lt;p&gt;Most of the Ubuntu Core root file system is read-only, so it is not
possible to edit &lt;code&gt;/etc/fstab&lt;/code&gt;. Therefore we&amp;rsquo;ll use &lt;a href="https://www.freedesktop.org/wiki/Software/systemd/"&gt;systemd&lt;/a&gt;
to achieve that.&lt;/p&gt;
&lt;p&gt;Be aware of one of the &lt;code&gt;systemd.mount&lt;/code&gt; pitfalls:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Mount units must be named after the mount point directories they control. Example: the mount point /home/lennart must be configured in a unit file home-lennart.mount.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Yes that&amp;rsquo;s right! &lt;strong&gt;The unit filename must match the mount point path&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Create the &lt;code&gt;media-data.mount&lt;/code&gt; unit:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo vi /writable/system-data/etc/systemd/system/media-data.mount
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the following content:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-systemd" data-lang="systemd"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Unit]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;Description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Mount unit for data&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Mount]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;What&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/dev/disk/by-label/data&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/media/data&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;ext4&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Install]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;WantedBy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;multi-user.target&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Reload systemd, scanning for new or changed units:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl daemon-reload
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Start the &lt;code&gt;media-data.mount&lt;/code&gt; unit, which will mount the volume, and also
enable it so it will be automatically mounted on boot.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl start media-data.mount
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; media-data.mount
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And just like any other unit, you can view its status using
&lt;code&gt;systemctl status&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl status media-data.mount
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="update-ubuntu-core"&gt;Update Ubuntu Core&lt;/h2&gt;
&lt;p&gt;Make sure Ubuntu Core is up-to-date and reboot.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo snap refresh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo reboot
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After the reboot, make sure &lt;code&gt;/media/data&lt;/code&gt; is mounted. If not double
check the steps above.&lt;/p&gt;
&lt;h2 id="install-nextcloud"&gt;Install Nextcloud&lt;/h2&gt;
&lt;p&gt;The Nextcloud snap uses the &lt;code&gt;removable-media&lt;/code&gt; interface, which grants
access to &lt;code&gt;/media/*&lt;/code&gt;, and requires manual connection:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo snap install nextcloud
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo snap connect nextcloud:removable-media core:removable-media
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Browse to the Nextcloud IP address and create the admin user account,
for example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://nextcloud.local/"&gt;http://nextcloud.local/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="nextcloud-configuration"&gt;Nextcloud configuration&lt;/h2&gt;
&lt;p&gt;In the examples below replace &lt;code&gt;nextcloud.local&lt;/code&gt; with the IP address or
hostname of your Nextcloud Box and replace &lt;code&gt;example.org&lt;/code&gt; with your domain.&lt;/p&gt;
&lt;h3 id="external-storage"&gt;External Storage&lt;/h3&gt;
&lt;p&gt;Enable the External Storge app via:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://nextcloud.local/index.php/settings/apps?category=disabled#"&gt;http://nextcloud.local/index.php/settings/apps?category=disabled#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Configure External Storage app via:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://nextcloud.local/index.php/settings/admin/externalstorages"&gt;http://nextcloud.local/index.php/settings/admin/externalstorages&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Use these settings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Folder name: &lt;em&gt;data&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;External storage: &lt;em&gt;Local&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Authentication: &lt;em&gt;None&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Configuration: &lt;code&gt;/media/data&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Available for: &lt;em&gt;All&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="email"&gt;Email&lt;/h3&gt;
&lt;p&gt;Configure your outgoing email settings via:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://nextcloud.local/index.php/settings/admin/additional"&gt;http://nextcloud.local/index.php/settings/admin/additional&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I use &lt;a href="https://sendgrid.com/"&gt;Sendgrid&lt;/a&gt; for sending email alerts from my
servers and devices. These are the settings that work for me:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Send mode: &lt;em&gt;SMTP&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Encryption: &lt;em&gt;STARTTLS&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;From address: &lt;em&gt;&lt;a href="mailto:nextcloud@example.org"&gt;nextcloud@example.org&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Authentication method: &lt;em&gt;Plain&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Authentication required: &lt;em&gt;Yes&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Server address: &lt;em&gt;smtp.sendgrid.net:587&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Username: &lt;code&gt;apikey&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Password: &lt;code&gt;theactualapikey&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="enabling-https"&gt;Enabling HTTPS&lt;/h3&gt;
&lt;p&gt;It is strongly recommend that you use HTTPS if you intend to expose your
Nextcloud to the Internet.&lt;/p&gt;
&lt;p&gt;First do a test to see if you can install a Let&amp;rsquo;s Encrypt certificate:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo nextcloud.enable-https -d
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Answer the questions:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Have you met these requirements? (y/n) y
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Please enter an email address (for urgent notices or key recovery): name@example.org
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Please enter your domain name(s) (space-separated): nextcloud.example.org
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Attempting to obtain certificates... done
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Looks like you&amp;#39;re ready for HTTPS!
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If everything went well, then install the certificate&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo nextcloud.enable-https
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Answer the questions again:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Have you met these requirements? (y/n) y
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Please enter an email address (for urgent notices or key recovery): name@example.org
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Please enter your domain name(s) (space-separated): nextcloud.example.org
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Attempting to obtain certificates... done
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Restarting apache... done
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If Let&amp;rsquo;s Encrypt didn&amp;rsquo;t work for you, you can always use Nextcloud with
a self-signed certificate.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo nextcloud.enable-https -s
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="manual-configuration-changes"&gt;Manual configuration changes&lt;/h3&gt;
&lt;p&gt;If you need to make any tweaks to the Nextcloud configuration file you
can edit it like so:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo vi /var/snap/nextcloud/current/nextcloud/config/config.php
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If you have manually edited the Nextcloud configuration you may need to
restart nextcloud:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo snap disable nextcloud
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo snap &lt;span class="nb"&gt;enable&lt;/span&gt; nextcloud
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="conclusion"&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;So there it is, Nextcloud running on Ubuntu Core powered by a Raspberry
Pi 3. The performance is reasonable, obviously not stellar, but certainly
good enough to move some cloud services for a small family away from the
likes of Google and Dropbox. Now go and install some
&lt;a href="https://nextcloud.com/install/#install-clients"&gt;Nextcloud clients for your desktops and devices&lt;/a&gt; :-)&lt;/p&gt;</description><summary>Creating a Pi 3 powered Nextcloud Box with Ubuntu Core</summary></item><item><title>HP Microserver N54L power saving and performance tuning using Debian</title><link>https://blog.wimpys.world/posts/hp-microserver-n54l-power-saving-and-performance-tuning-using-debian/</link><pubDate>Wed, 16 Dec 2015 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/hp-microserver-n54l-power-saving-and-performance-tuning-using-debian/</guid><description>&lt;p&gt;I&amp;rsquo;ve installed &lt;a href="http://www.openmediavault.org/"&gt;Open Media Vault&lt;/a&gt;
on a &lt;a href="http://www8.hp.com/uk/en/products/proliant-servers/product-detail.html?oid=5336624"&gt;HP ProLiant MicroServer G7 N54L&lt;/a&gt;
and use it as media server for the house. OpenMediaVault (OMV) is a
network attached storage (NAS) solution based on &lt;a href="http://www.debian.org"&gt;Debian&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I want to minimise power consumption but maximise performance. Here are
some tweaks reduce power consumption and improve network performance.&lt;/p&gt;
&lt;h1 id="power-saving"&gt;Power Saving&lt;/h1&gt;
&lt;p&gt;Install the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install amd64-microcode firmware-linux firmware-linux-free &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;firmware-linux-nonfree pciutils powertop radeontool
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And for ACPI.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install acpi acpid acpi-support acpi-support-base
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="aspm-and-acpi"&gt;ASPM and ACPI&lt;/h2&gt;
&lt;p&gt;First I enabled PCIE ASPM in the BIOS and forced the kernel to use it and
ACPI via &lt;code&gt;grub&lt;/code&gt; by changing &lt;code&gt;GRUB_CMDLINE_LINUX_DEFAULT&lt;/code&gt; in &lt;code&gt;/etc/default/grub&lt;/code&gt;,
so it looks like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;GRUB_CMDLINE_LINUX_DEFAULT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;quiet acpi=force pcie_aspm=force nmi_watchdog=0&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then update &lt;code&gt;grub&lt;/code&gt; and reboot.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;update-grub
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;reboot
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="enable-power-saving-via-udev"&gt;Enable Power Saving via udev&lt;/h2&gt;
&lt;p&gt;The following rules file &lt;code&gt;/etc/udev/rules.d/90-local-n54l.rules&lt;/code&gt; enables
power saving modes for all PCI, SCSI and USB devices and ASPM. Futher
the internal Radeon card power profile is set to low as there is rarely
a monitor connected. The file contains the following:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;module&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;KERNEL&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;pcie_aspm&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;add&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;parameters/policy&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;parameters/policy&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;powersave&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;i2c&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;add&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;power/control&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;power/control&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;auto&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;pci&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;add&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;power/control&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;power/control&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;auto&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;usb&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;add&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;power/control&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;power/control&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;auto&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;usb&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;add&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;power/autosuspend&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;power/autosuspend&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;2&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;scsi&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;add&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;power/control&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;power/control&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;auto&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;spi&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;add&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;power/control&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;power/control&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;auto&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;drm&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;KERNEL&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;card*&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;add&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;DRIVERS&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;radeon&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;power/control&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;device/power_method&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;device/power_method&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;profile&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;device/power_profile&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;low&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBSYSTEM&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;scsi_host&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;KERNEL&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;host*&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;ACTION&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;add&amp;#34;&lt;/span&gt;, &lt;span class="nv"&gt;TEST&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;link_power_management_policy&amp;#34;&lt;/span&gt;, ATTR&lt;span class="o"&gt;{&lt;/span&gt;link_power_management_policy&lt;span class="o"&gt;}=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;min_power&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add this to &lt;code&gt;/erc/rc.local&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;1500&amp;#39;&lt;/span&gt; &amp;gt; &lt;span class="s1"&gt;&amp;#39;/proc/sys/vm/dirty_writeback_centisecs&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="hard-disk-spindown"&gt;Hard disk spindown&lt;/h2&gt;
&lt;p&gt;Using the Open Media Vault web interface got to &lt;code&gt;Storage -&amp;gt; Physical Disks&lt;/code&gt;,
select each disk in turn and click &lt;code&gt;Edit&lt;/code&gt; then set:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Advanced Power Management:&lt;/strong&gt; Intermediate power usage with standby&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Automatic Acoustic Management:&lt;/strong&gt; Minimum performance, Minimum acoustic output&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Spindown time:&lt;/strong&gt; 20 minutes&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="performance-tuning"&gt;Performance Tuning&lt;/h1&gt;
&lt;h2 id="network"&gt;Network&lt;/h2&gt;
&lt;p&gt;The following tweaks improve network performance ,but &lt;strong&gt;I have a
&lt;a href="http://www.hiwifi.co.uk/"&gt;HP NC360T PCI Express Dual Port Gigabit Server Adapter&lt;/a&gt;&lt;/strong&gt;
in my N54L so these settings may not be applicable to the onboard NIC.&lt;/p&gt;
&lt;p&gt;Add this to &lt;code&gt;/erc/rc.local&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ethtool -G eth0 rx &lt;span class="m"&gt;4096&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ethtool -G eth1 rx &lt;span class="m"&gt;4096&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ethtool -G eth0 tx &lt;span class="m"&gt;4096&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ethtool -G eth1 tx &lt;span class="m"&gt;4096&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ifconfig eth0 txqueuelen &lt;span class="m"&gt;1000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ifconfig eth1 txqueuelen &lt;span class="m"&gt;1000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the following to &lt;code&gt;/etc/sysctl.d/local.conf&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fs.file-max &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;100000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.core.netdev_max_backlog &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;50000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.core.optmem_max &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;40960&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.core.rmem_default &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;16777216&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.core.rmem_max &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;16777216&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.core.wmem_default &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;16777216&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.core.wmem_max &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;16777216&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.conf.all.accept_redirects &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.conf.all.accept_source_route &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.conf.all.log_martians &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.conf.all.send_redirects &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.ip_local_port_range &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;10000&lt;/span&gt; &lt;span class="m"&gt;65000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_fin_timeout &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_max_syn_backlog &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;30000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_max_tw_buckets &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;2000000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_rfc1337 &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_rmem &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;4096&lt;/span&gt; &lt;span class="m"&gt;87380&lt;/span&gt; &lt;span class="m"&gt;16777216&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_sack&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_slow_start_after_idle &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_timestamps&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_tw_reuse &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.tcp_wmem &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;4096&lt;/span&gt; &lt;span class="m"&gt;65536&lt;/span&gt; &lt;span class="m"&gt;16777216&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.udp_rmem_min &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;8192&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;net.ipv4.udp_wmem_min &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;8192&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;vm.swappiness &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="conclusion"&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;With these settings applied &lt;code&gt;powertop&lt;/code&gt; reports everything that can be in
a power saving mode is and the room temperature is measurably cooler.
More importantly, with four 4TB drives in a RAID-5 configuration
formatted with XFS and dual bonded gigabit ethernet, I am able to backup
data to the server at a sustained rate of 105MB/s, which is 0.85 Gbit.&lt;/p&gt;
&lt;p&gt;Not too shabby for an AMD Turion II Neo N54L (2.2GHz) :slight_smile:&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.wgdd.de/2013/08/hp-n54l-microserver-energy-efficiency.html?m=1"&gt;http://www.wgdd.de/2013/08/hp-n54l-microserver-energy-efficiency.html?m=1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gareth.halfacree.co.uk/2014/02/tuning-an-hp-proliant-microserver"&gt;http://gareth.halfacree.co.uk/2014/02/tuning-an-hp-proliant-microserver&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.scottalanmiller.com/linux/2011/06/20/working-with-nic-ring-buffers/"&gt;http://www.scottalanmiller.com/linux/2011/06/20/working-with-nic-ring-buffers/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gist.github.com/dstroot/2785263"&gt;https://gist.github.com/dstroot/2785263&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Configure HP Microserver N54L Power Saving on Debian</summary></item><item><title>subSonic on Debian</title><link>https://blog.wimpys.world/posts/subsonic-on-debian/</link><pubDate>Sat, 12 Jul 2014 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/subsonic-on-debian/</guid><description>&lt;p&gt;Last year I removed all my music from Google Play Music and created my own
&lt;a href="http://www.subsonic.org/"&gt;subSonic&lt;/a&gt; server. I really like subSonic but don&amp;rsquo;t
use it a huge amount, mostly for syncing some music to my phone prior to going
on holiday or business. Therefore, I&amp;rsquo;ve made a single one time donation to the
project rather than the ongoing monthly usage fee.&lt;/p&gt;
&lt;h1 id="installing-subsonic-on-debian"&gt;Installing subSonic on Debian&lt;/h1&gt;
&lt;p&gt;This is how I install subSonic on Debian Wheezy.&lt;/p&gt;
&lt;h2 id="install-tomcat"&gt;Install Tomcat.&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install tomcat7
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="install-subsonic"&gt;Install subSonic.&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install ffmpeg
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mkdir /var/subsonic
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chown tomcat7: /var/subsonic
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo wget -c https://github.com/KHresearch/subsonic/releases/download/v4.9-kang/subsonic.war
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo cp subsonic.war /var/lib/tomcat7/webapps
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Restart Tomcat.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo service tomcat7 restart
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Login to subSonic by visiting &lt;a href="http://server.example.org:8080/subsonic"&gt;http://server.example.org:8080/subsonic&lt;/a&gt; and
login with the credentials &lt;code&gt;admin&lt;/code&gt; and &lt;code&gt;admin&lt;/code&gt;. Make sure you change the
password straight away.&lt;/p&gt;
&lt;p&gt;Right, that is it. You can stop here and start filling subSonic with your
music.&lt;/p&gt;
&lt;h1 id="subsonic-clients"&gt;subSonic clients&lt;/h1&gt;
&lt;p&gt;On the rare occasions that I listen to music via subSonic I use
&lt;a href="https://play.google.com/store/apps/details?id=com.thejoshwa.ultrasonic.androidapp"&gt;UltraSonic&lt;/a&gt;
for Android and &lt;a href="https://www.clementine-player.org/"&gt;Clementine&lt;/a&gt; on my Arch Linux
workstations.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.subsonic.org/pages/installation.jsp"&gt;http://www.subsonic.org/pages/installation.jsp&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/KHresearch/subsonic/"&gt;https://github.com/KHresearch/subsonic/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Setting up subSonic music streaming on Debian</summary></item><item><title>Headless cloudprint server on Debian for MFC-7360N</title><link>https://blog.wimpys.world/posts/headless-cloudprint-server-on-debian-for-mfc-7360n/</link><pubDate>Sat, 05 Jul 2014 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/headless-cloudprint-server-on-debian-for-mfc-7360n/</guid><description>&lt;p&gt;I have a Brother MFC-7360N printer at home and there is also one at work.
I wanted to to get &lt;a href="http://www.google.co.uk/cloudprint/learn/"&gt;Cloudprint&lt;/a&gt;
working with Android devices rather than use the Android app Brother
provide, which is great when it works but deeply frustrating (for my wife)
when it doesn&amp;rsquo;t.&lt;/p&gt;
&lt;p&gt;What I describe below is how to Cloudprint enable &amp;ldquo;Classic printers&amp;rdquo; using
Debian Wheezy.&lt;/p&gt;
&lt;h1 id="install-cups"&gt;Install CUPS&lt;/h1&gt;
&lt;p&gt;Install CUPS and the Cloudprint requirements.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install cups python-cups python-daemon python-pkg-resources
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 id="install-the-mfc-7360n-drivers"&gt;Install the MFC-7360N Drivers&lt;/h1&gt;
&lt;p&gt;I used the URL below to access the &lt;code&gt;.deb&lt;/code&gt; files required.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://support.brother.com/g/b/downloadlist.aspx?c=gb&amp;amp;lang=en&amp;amp;prod=mfc7360n_all&amp;amp;os=128"&gt;http://support.brother.com/g/b/downloadlist.aspx?c=gb&amp;amp;lang=en&amp;amp;prod=mfc7360n_all&amp;amp;os=128&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you&amp;rsquo;re running a 64-bit Debian, then install &lt;code&gt;ia32-libs&lt;/code&gt; first.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install ia32-libs
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Download and install the MFC-7360N drivers.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget -c http://download.brother.com/welcome/dlf006237/mfc7360nlpr-2.1.0-1.i386.deb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget -c http://download.brother.com/welcome/dlf006239/cupswrapperMFC7360N-2.0.4-2.i386.deb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo dpkg -i --force-all mfc7360nlpr-2.1.0-1.i386.deb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo dpkg -i --force-all cupswrapperMFC7360N-2.0.4-2.i386.deb
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="configure-cups"&gt;Configure CUPS&lt;/h2&gt;
&lt;p&gt;Edit the CUPS configuration file commonly located in &lt;code&gt;/etc/cups/cupsd.conf&lt;/code&gt;
and make the section that looks like this&amp;hellip;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Only listen for connections from the local machine.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Listen localhost:631
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Listen /var/run/cups/cups.sock
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&amp;hellip;is changed to look like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Listen on all interfaces
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Port 631
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Listen /var/run/cups/cups.sock
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Modify the Apache specific directives to allow connections from everywhere as
well. Find the follow section in &lt;code&gt;/etc/cups/cupsd.conf&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-apacheconf" data-lang="apacheconf"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;Location&lt;/span&gt; &lt;span class="s"&gt;/&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;# Restrict access to the server...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Order&lt;/span&gt; allow,deny
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/Location&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;# Restrict access to the admin pages...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;Location&lt;/span&gt; &lt;span class="s"&gt;/admin&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Order&lt;/span&gt; allow,deny
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/Location&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;# Restrict access to the configuration files...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;Location&lt;/span&gt; &lt;span class="s"&gt;/admin/conf&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;AuthType&lt;/span&gt; Default
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Require&lt;/span&gt; &lt;span class="k"&gt;user&lt;/span&gt; @SYSTEM
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Order&lt;/span&gt; allow,deny
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/Location&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add &lt;code&gt;Allow All&lt;/code&gt; after each &lt;code&gt;Order allow,deny&lt;/code&gt; so it looks like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-apacheconf" data-lang="apacheconf"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;Location&lt;/span&gt; &lt;span class="s"&gt;/&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;# Restrict access to the server...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Order&lt;/span&gt; allow,deny
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Allow&lt;/span&gt; &lt;span class="k"&gt;All&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/Location&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;# Restrict access to the admin pages...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;Location&lt;/span&gt; &lt;span class="s"&gt;/admin&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Order&lt;/span&gt; allow,deny
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Allow&lt;/span&gt; &lt;span class="k"&gt;All&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/Location&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;# Restrict access to the configuration files...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;Location&lt;/span&gt; &lt;span class="s"&gt;/admin/conf&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;AuthType&lt;/span&gt; Default
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Require&lt;/span&gt; &lt;span class="k"&gt;user&lt;/span&gt; @SYSTEM
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Order&lt;/span&gt; allow,deny
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;Allow&lt;/span&gt; &lt;span class="k"&gt;All&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/Location&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="add-the-mfc-7360n-to-cups"&gt;Add the MFC-7360N to CUPS&lt;/h2&gt;
&lt;p&gt;If your MFC-7360N is connected to your server via USB then you should be
all set. Login to the CUPS administration interface on &lt;a href="http://yourserver:631"&gt;http://yourserver:631&lt;/a&gt;
and modify the MFC7360N printer (if one was created when the drivers where installed)
then &lt;strong&gt;make sure you can print a test page via CUPS before proceeding.&lt;/strong&gt;&lt;/p&gt;
&lt;h1 id="install-cloudprint-and-cloudprint-service"&gt;Install Cloudprint and Cloudprint service&lt;/h1&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget -c http://davesteele.github.io/cloudprint-service/deb/cloudprint_0.11-5.1_all.deb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget -c http://davesteele.github.io/cloudprint-service/deb/cloudprint-service_0.11-5.1_all.deb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo dpkg -i cloudprint_0.11-5.1_all.deb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo dpkg -i cloudprint-service_0.11-5.1_all.deb
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="authenticate"&gt;Authenticate&lt;/h2&gt;
&lt;p&gt;Google accounts with 2 step verification enabled need to use an
application-specific password.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.google.com/support/accounts/bin/static.py?page=guide.cs&amp;amp;guide=1056283&amp;amp;topic=1056286"&gt;http://www.google.com/support/accounts/bin/static.py?page=guide.cs&amp;amp;guide=1056283&amp;amp;topic=1056286&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Authenticate &lt;code&gt;cloudprintd&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo service cloudprintd login
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You should see something like this.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Accounts with 2 factor authentication require an application-specific password
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Google username: you@example.org
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Password:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Added Printer MFC7360N
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Start the Cloudprint daemon.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo service cloudprintd start
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If everything is working correctly you should see your printer the
following page:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.google.com/cloudprint#printers"&gt;https://www.google.com/cloudprint#printers&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="printing-from-mobile-devices"&gt;Printing from mobile devices&lt;/h1&gt;
&lt;h2 id="android"&gt;Android&lt;/h2&gt;
&lt;p&gt;Add the &lt;a href="https://play.google.com/store/apps/details?id=com.google.android.apps.cloudprint"&gt;Google Cloud Print&lt;/a&gt;
app to Android devices and you&amp;rsquo;ll be able to configure your printer
preferences and print from Android..&lt;/p&gt;
&lt;h2 id="chrome-and-chromium"&gt;Chrome and Chromium&lt;/h2&gt;
&lt;p&gt;When printing from within Google Chrome and Chromium you can now select
Cloudprint as the destination and choose your printer.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/armooo/cloudprint"&gt;https://github.com/armooo/cloudprint&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://davesteele.github.io/cloudprint-service/"&gt;http://davesteele.github.io/cloudprint-service/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/davesteele/cloudprint-service"&gt;https://github.com/davesteele/cloudprint-service&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://injustfiveminutes.com/2013/11/07/remote-access-to-cups-admin-inter/"&gt;http://injustfiveminutes.com/2013/11/07/remote-access-to-cups-admin-inter/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=1794179"&gt;http://ubuntuforums.org/showthread.php?t=1794179&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://support.google.com/a/answer/2906017?hl=en"&gt;https://support.google.com/a/answer/2906017?hl=en&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Create a headless Cloudprint server on Debian for MFC-7360N</summary></item><item><title>Integrating Dropbox photo syncing with Open Media Vault and Plex</title><link>https://blog.wimpys.world/posts/integrating-dropbox-photo-syncing-with-open-media-vault-and-plex/</link><pubDate>Sat, 28 Jun 2014 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/integrating-dropbox-photo-syncing-with-open-media-vault-and-plex/</guid><description>&lt;p&gt;&lt;strong&gt;This how-to was updated for Open Media Vault 2.x and 3.x on 22nd August 2016.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve installed &lt;a href="http://www.openmediavault.org/"&gt;Open Media Vault&lt;/a&gt;
on a &lt;a href="http://www8.hp.com/uk/en/products/proliant-servers/product-detail.html?oid=5336624"&gt;HP ProLiant MicroServer G7 N54L&lt;/a&gt;
and use it as media server for the house. OpenMediaVault (OMV) is a network
attached storage (NAS) solution based on &lt;a href="http://www.debian.org"&gt;Debian&lt;/a&gt; Linux.&lt;/p&gt;
&lt;p&gt;I use a free Dropbox account to sync photos from mine and my wife&amp;rsquo;s Android
phones and wanted to automate to import of these photo upload into Plex, which
is also running on Open Media Vault.&lt;/p&gt;
&lt;h1 id="installing-dropbox-on-open-media-vault"&gt;Installing Dropbox on Open Media Vault&lt;/h1&gt;
&lt;p&gt;I looked for a Dropbox Plugin for Open Media Vault and found this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/lordldx/openmediavault-dropbox"&gt;https://github.com/lordldx/openmediavault-dropbox&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sadly, at the time of writing, it is unfinished and I didn&amp;rsquo;t have the time to
go and learn the Open Media Vault plugin API.&lt;/p&gt;
&lt;p&gt;The Open Media Vault forum does include a &lt;a href="http://forums.openmediavault.org/viewtopic.php?f=13&amp;amp;t=70"&gt;Dropbox HOW-TO&lt;/a&gt;
which is very similar to how &lt;a href="https://blog.wimpys.world/posts/dropbox-is-my-nikola-publish-button/"&gt;I&amp;rsquo;ve run Dropbox on headless Linux servers&lt;/a&gt;
in the past. So, I decided to adapt my existing notes to Open Media Vault.&lt;/p&gt;
&lt;h2 id="create-a-dropbox-share"&gt;Create a Dropbox Share&lt;/h2&gt;
&lt;p&gt;Create a Dropbox share via the OMV WebUI.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Access Right Management -&amp;gt; Shared Folders&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I gave my the name &amp;ldquo;Dropbox&amp;rdquo;. I know, very original.&lt;/p&gt;
&lt;h2 id="installing-dropbox-on-a-headless-server"&gt;Installing Dropbox on a headless server&lt;/h2&gt;
&lt;p&gt;Download and extract the latest Dropbox stable release.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~ &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; wget -O - &lt;span class="s2"&gt;&amp;#34;https://www.dropbox.com/download?plat=lnx.x86_64&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; tar xzf -
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;chown -Rv &lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;USER&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;: ~/.dropbox-dist
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo ln -s ~/.dropbox-dist/dropboxd /usr/local/bin/
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Run &lt;code&gt;dropboxd&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;~/.dropbox-dist/dropboxd
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You should see output like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;This client is not linked to any account... Please visit https://www.dropbox.com/cli_link?host_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx to link this machine.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Visit the URL, login with your Dropbox account and link the account. You
should see the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Client successfully linked, Welcome Web!
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;dropboxd&lt;/code&gt; will now create a &lt;code&gt;~/Dropbox&lt;/code&gt; folder and start synchronizing. Stop
&lt;code&gt;dropboxd&lt;/code&gt; with CTRL+C.&lt;/p&gt;
&lt;h2 id="symlink-the-dropbox-share"&gt;Symlink the Dropbox share&lt;/h2&gt;
&lt;p&gt;Login to the OMV server as &lt;code&gt;root&lt;/code&gt; and sym-link the Dropbox share you created
earlier to the Dropbox directory in the root home directory.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mv ~/Dropbox ~/Dropbox-old
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ln -s /media/&amp;lt;UUID&amp;gt;/Dropbox ~/Dropbox
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;rsync -a -W --progress ~/Dropbox-old/ ~/Dropbox/
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="initd---open-media-vault-2x"&gt;init.d - Open Media Vault 2.x&lt;/h3&gt;
&lt;p&gt;If you are using Open Media Vault 2.x (based on Debian wheezy) the
you&amp;rsquo;ll need to create an init script.&lt;/p&gt;
&lt;p&gt;To run Dropbox as daemon with init.d. Create &lt;code&gt;/etc/init.d/dropbox&lt;/code&gt; with the
following content.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;#!/bin/sh
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;### BEGIN INIT INFO&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Provides: dropbox&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Required-Start: $local_fs $remote_fs $network $syslog $named&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Required-Stop: $local_fs $remote_fs $network $syslog $named&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Default-Start: 2 3 4 5&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Default-Stop: 0 1 6&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# X-Interactive: false&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Short-Description: dropbox service&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;### END INIT INFO&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DROPBOX_USERS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;user_a&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DAEMON&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;.dropbox-dist/dropboxd
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;start&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Starting dropbox...&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;for&lt;/span&gt; dbuser in &lt;span class="nv"&gt;$DROPBOX_USERS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;HOMEDIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;getent passwd &lt;span class="nv"&gt;$dbuser&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; cut -d: -f6&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -x &lt;span class="nv"&gt;$DAEMON&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$HOMEDIR&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; start-stop-daemon -b -o -c &lt;span class="nv"&gt;$dbuser&lt;/span&gt; -S -u &lt;span class="nv"&gt;$dbuser&lt;/span&gt; -x &lt;span class="nv"&gt;$HOMEDIR&lt;/span&gt;/&lt;span class="nv"&gt;$DAEMON&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;stop&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Stopping dropbox...&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;for&lt;/span&gt; dbuser in &lt;span class="nv"&gt;$DROPBOX_USERS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;HOMEDIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;getent passwd &lt;span class="nv"&gt;$dbuser&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; cut -d: -f6&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -x &lt;span class="nv"&gt;$HOMEDIR&lt;/span&gt;/&lt;span class="nv"&gt;$DAEMON&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; start-stop-daemon -o -c &lt;span class="nv"&gt;$dbuser&lt;/span&gt; -K -u &lt;span class="nv"&gt;$dbuser&lt;/span&gt; -x &lt;span class="nv"&gt;$HOMEDIR&lt;/span&gt;/&lt;span class="nv"&gt;$DAEMON&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;status&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;for&lt;/span&gt; dbuser in &lt;span class="nv"&gt;$DROPBOX_USERS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;dbpid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;pgrep -u &lt;span class="nv"&gt;$dbuser&lt;/span&gt; dropbox&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -z &lt;span class="nv"&gt;$dbpid&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;dropboxd for USER &lt;/span&gt;&lt;span class="nv"&gt;$dbuser&lt;/span&gt;&lt;span class="s2"&gt;: not running.&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;else&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;dropboxd for USER &lt;/span&gt;&lt;span class="nv"&gt;$dbuser&lt;/span&gt;&lt;span class="s2"&gt;: running (pid &lt;/span&gt;&lt;span class="nv"&gt;$dbpid&lt;/span&gt;&lt;span class="s2"&gt;)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; in
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; start&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; start
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; stop&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; stop
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; restart&lt;span class="p"&gt;|&lt;/span&gt;reload&lt;span class="p"&gt;|&lt;/span&gt;force-reload&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; stop
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; start
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; status&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; status
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; *&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Usage: /etc/init.d/dropbox {start|stop|reload|force-reload|restart|status}&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;esac&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enable the init.d script.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chmod +x /etc/init.d/dropbox
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo update-rc.d dropbox defaults
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="starting-and-stopping-the-dropbox-daemon"&gt;Starting and Stopping the Dropbox daemon&lt;/h2&gt;
&lt;p&gt;Use &lt;code&gt;/etc/init.d/dropbox start&lt;/code&gt; to start and &lt;code&gt;/etc/init.d/dropbox stop&lt;/code&gt; to stop.&lt;/p&gt;
&lt;h3 id="systemd---openmediavault-3x"&gt;systemd - OpenMediaVault 3.x&lt;/h3&gt;
&lt;p&gt;If you are using Open Media Vault 3.x (based on Debian jessie) then
you&amp;rsquo;ll need to create a systemd unit. Create the systemd service file.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo nano /lib/systemd/system/dropbox.service
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-systemd" data-lang="systemd"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Unit]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;Description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Dropbox&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;After&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;local-fs.target network.target&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Service]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;simple&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;WorkingDirectory&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;%h/.dropbox-dist&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;ExecStart&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/usr/local/bin/dropboxd&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;ExecReload&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/bin/kill -HUP $MAINPID&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;KillMode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;process&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;Restart&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;on-failure&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;User&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;%I&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Install]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;WantedBy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;multi-user.target&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enable the dropbox service for a given user.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; dropbox@user_a
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Start the service.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl start dropbox@user_a
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="dropbox-client"&gt;Dropbox client&lt;/h2&gt;
&lt;p&gt;It is recommended to download the official Dropbox client to configure
Dropbox and get its status.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget &lt;span class="s2"&gt;&amp;#34;http://www.dropbox.com/download?dl=packages/dropbox.py&amp;#34;&lt;/span&gt; -O dropbox
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chmod &lt;span class="m"&gt;755&lt;/span&gt; dropbox
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mv dropbox /usr/local/bin/
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can check on Dropbox status by running the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;dropbox status
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For usage instructions run &lt;code&gt;dropbox help&lt;/code&gt;.&lt;/p&gt;
&lt;h1 id="photo-importing"&gt;Photo importing&lt;/h1&gt;
&lt;p&gt;So, the reason for doing all this is that I now have a Dropbox instance
running on my home file server and everyday it runs a script, that I wrote,
to automatically import new photos into a directory that Plex monitors.
I&amp;rsquo;ll post details about my photo sorting script, &lt;a href="https://github.com/flexiondotorg/Phort"&gt;Phort&lt;/a&gt;,
at a later date.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.dropboxwiki.com/Text_Based_Linux_Install"&gt;http://www.dropboxwiki.com/Text_Based_Linux_Install&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Integrating Dropbox on a headless Open Media Vault server.</summary></item><item><title>OpenMediaVault on Debian</title><link>https://blog.wimpys.world/posts/openmediavault-on-debian/</link><pubDate>Sun, 22 Jun 2014 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/openmediavault-on-debian/</guid><description>&lt;p&gt;At the time of writing &lt;a href="http://www.openmediavault.org/"&gt;OpenMediaVault&lt;/a&gt; 0.6 is
pre-release. But it is possible to install OpenMediaVault on Debian Wheezy in
order to get some testing done.&lt;/p&gt;
&lt;p&gt;Install Debian Wheezy on your target VM or test server. Go with the defaults
until the &amp;lsquo;Software selection&amp;rsquo; dialogue. Make sure everything is unselected, like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] Debian desktop environment
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] Web server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] Print server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] SQL database
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] DNS Server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] File server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] Mail server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] SSH server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] Laptop
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ ] Standard system utilities
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After the install is complete, reboot and login to the new Debian system
as &lt;code&gt;root&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Update the repository sources and add the &lt;code&gt;contrib&lt;/code&gt; and &lt;code&gt;non-free&lt;/code&gt;
repositories.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nano /etc/apt/sources.list
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It should look something like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb http://ftp.uk.debian.org/debian/ wheezy main contrib non-free
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb-src http://ftp.uk.debian.org/debian/ wheezy main contrib non-free
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb http://security.debian.org/ wheezy/updates main contrib non-free
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb-src http://security.debian.org/ wheezy/updates main contrib non-free
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# wheezy-updates, previously known as &amp;#39;volatile&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb-src http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now add the OpenMediaVault repository.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;deb http://packages.openmediavault.org/public kralizec main&amp;#34;&lt;/span&gt; &amp;gt; /etc/apt/sources.list.d/openmediavault.list
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Update.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get update
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Install the OpenMediaVault repository key and Postfix.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install openmediavault-keyring postfix
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;When the &amp;lsquo;Postfix Configuration&amp;rsquo; dialogue is displayed choose &lt;code&gt;No configuration&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Update again and install OpenMediaVault.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install openmediavault
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;When the &amp;lsquo;Configuring mdadm&amp;rsquo; dialogue is displayed enter &lt;code&gt;none&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Do you want to start MD arrays automatically? &lt;code&gt;YES&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;When the &amp;lsquo;ProFTPD configuration&amp;rsquo; dialogue is displayed choose
&lt;code&gt;standalone&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Initialise OpenMediaVault and reboot.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;omv-initsystem
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;reboot
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After the reboot you should be able to connect to the OpenMediaVault WebUI and
login as &lt;code&gt;admin&lt;/code&gt; with the password of &lt;code&gt;openmediavault&lt;/code&gt;. That&amp;rsquo;s it. Get testing.&lt;/p&gt;</description><summary>Manually installing OpenMediaVault on Debian Wheezy</summary></item><item><title>Setting up BitSync on Debian</title><link>https://blog.wimpys.world/posts/setting-up-bitsync-on-debian/</link><pubDate>Sat, 21 Jun 2014 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/setting-up-bitsync-on-debian/</guid><description>&lt;p&gt;I&amp;rsquo;ve replaced Dropbox with &lt;a href="http://www.bittorrent.com/sync"&gt;BitTorrent Sync&lt;/a&gt;.
In order to do this I&amp;rsquo;ve have &lt;code&gt;btsync&lt;/code&gt; running on a VPS (2CPU, 2GB, 400GB), my
home server and assorted Arch Linux workstations.&lt;/p&gt;
&lt;p&gt;I had a couple of reasons for migrating away from Dropbox.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Dropbox was costing $100 per year.&lt;/li&gt;
&lt;li&gt;Dropbox encryption model is weak and I have data security/privacy.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The VPS I am running BitTorrent Sync on costs $50 per year and provides four
times the storage. I run &lt;code&gt;btsync&lt;/code&gt; on a VPS so that there is always a server
&lt;em&gt;&amp;ldquo;in the cloud&amp;rdquo;&lt;/em&gt; that is available to sync with so that my setup emulates what
Dropbox used to do.&lt;/p&gt;
&lt;p&gt;All my servers are running Debian and this is how I install &lt;code&gt;btsync&lt;/code&gt; on
Debian.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sh -c &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;curl -fsSL http://debian.yeasoft.net/add-btsync-repository.sh&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install btsync
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is how I respond to the prompts:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Do you want to define a default BitTorrent Sync instance? : YES
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* BitTorrent Sync Daemon Credentials: yourusername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* BitTorrent Sync Daemon Group: yourusername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Niceness of the BitTorrent Sync Daemon: 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* On which portnumber should BitTorrent Sync listen? 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* BitTorrent Sync Listen Port: 12345
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Do you want BitTorrent Sync to request port mapping via UPNP? NO
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Download Bandwith Limit: 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Upload Bandwith Limit: 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Web Interface Bind IP Address: 0.0.0.0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* Web Interface Listen Port: 8888
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* The username for accessing the web interface: yourusername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;* The password for accessing the web interface: yourpassword
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;As you&amp;rsquo;ll see, I don&amp;rsquo;t use UPNP on my VPS. I elect a specific port (not
actually 12345 by the way) and open that port up with &lt;code&gt;ufw&lt;/code&gt;. I also only
allow access to the WebUI port from another server I own which reverse
proxies via &lt;code&gt;nginx&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;btsync&lt;/code&gt; works really well, I have it syncing hundreds of thousands of
files that amount to several hundred gigabytes of data. On my Arch Linux
workstations I use the brilliant &lt;a href="http://www.yeasoft.com/site/projects:btsync-deb:btsync-gui"&gt;btsync-gui&lt;/a&gt;
and &lt;a href="https://play.google.com/store/apps/details?id=com.bittorrent.sync"&gt;BitTorrent Sync is also available for Android&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;That said, I still use a free Dropbox account to sync photos from mine and my
wife&amp;rsquo;s Android phones. I have a Dropbox instance running on my home file server
and everyday it runs a script to automatically import these photos into Plex.&lt;/p&gt;
&lt;p&gt;Such a shame, that at the time of writing, &lt;code&gt;btsync&lt;/code&gt; is closed source :-(
Maybe that will change but if it doesn&amp;rsquo;t &lt;a href="http://syncthing.net/"&gt;syncthing&lt;/a&gt;
may well be the answer when it has matured a little.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.yeasoft.com/site/projects:btsync-deb:btsync-server"&gt;http://www.yeasoft.com/site/projects:btsync-deb:btsync-server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://forum.bittorrent.com/topic/18974-debian-and-ubuntu-server-packages-for-bittorrent-sync/"&gt;http://forum.bittorrent.com/topic/18974-debian-and-ubuntu-server-packages-for-bittorrent-sync/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Setting up BitTorrent Sync on Debian</summary></item><item><title>BIP IRC proxy</title><link>https://blog.wimpys.world/posts/bip-irc-proxy/</link><pubDate>Wed, 16 Apr 2014 07:07:09 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/bip-irc-proxy/</guid><description>&lt;p&gt;&lt;strong&gt;I switched from BIP to &lt;a href="http://wiki.znc.in/ZNC"&gt;ZNC&lt;/a&gt;, and &lt;a href="https://blog.wimpys.world/posts/znc-irc-proxy/"&gt;recommend you use ZNC instead&lt;/a&gt;!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bip.milkypond.org/"&gt;BIP&lt;/a&gt; is an IRC proxy that maintains a persistent
connection(s) to a list of IRC channels. You can then point your IRC client to
BIP each time you log in and playback the conversations that took place while
you were away.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve found bBIP to be so useful that I now &lt;a href="https://www.archlinux.org/packages/community/x86_64/bip/"&gt;maintain BIP for Arch Linux&lt;/a&gt;,
although I now run my BIP proxy on Debian because my new VPS provider doesn&amp;rsquo;t
offer Arch Linux as an option.&lt;/p&gt;
&lt;h2 id="installing-bip"&gt;Installing BIP&lt;/h2&gt;
&lt;p&gt;Installing BIP is simple for both Arch Linux and Debian.&lt;/p&gt;
&lt;h3 id="debian"&gt;Debian&lt;/h3&gt;
&lt;p&gt;I run BIP on Debian Wheezy with the backport repository enabled.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get -t wheezy-backports install bip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo sed -i &lt;span class="s1"&gt;&amp;#39;s/ENABLED=0/ENABLED=1/&amp;#39;&lt;/span&gt; /etc/default/bip
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arch-linux"&gt;Arch Linux&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pacman -S bip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; bip
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="create-a-user"&gt;Create a user&lt;/h2&gt;
&lt;p&gt;The next thing to do is create a username and password and BIP provides it&amp;rsquo;s
own utility for doing this called &lt;code&gt;bipmkpw&lt;/code&gt;. Replace &amp;lsquo;username&amp;rsquo; with whatever
you want your BIP &amp;lsquo;username&amp;rsquo; to be. This name has no relation to any IRC
usernames so it can be anything.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bipmkpw username
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enter a password when prompted. The password will then be output as a hash.
Make a note of both the hashed and un-hashed values somewhere, you will need
them later.&lt;/p&gt;
&lt;h2 id="create-a-certificate"&gt;Create a certificate&lt;/h2&gt;
&lt;p&gt;We don&amp;rsquo;t want the username and password being sent as clear-text, so we will
create an SSL certificate for BIP to use.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;openssl req -new -newkey rsa:4096 -nodes -x509 -keyout bip.pem -out bip.pem
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Move the certificate to &lt;code&gt;/var/lib/bip&lt;/code&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mv bip.pem /var/lib/bip
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Change ownership and permissions of the certificate to the user &lt;code&gt;bip&lt;/code&gt; which was
created automatically when the package was installed.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chown bip:bip /var/lib/bip/bip.pem
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chmod &lt;span class="m"&gt;600&lt;/span&gt; /var/lib/bip/bip.pem
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="configure-bip"&gt;Configure BIP&lt;/h2&gt;
&lt;p&gt;Here is example configuration for BIP. Copy it to &lt;code&gt;/etc/bip.conf&lt;/code&gt;, modify it
accordingly and then change the ownership and permissions.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chown bip:bip /etc/bip.conf
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chmod &lt;span class="m"&gt;640&lt;/span&gt; /etc/bip.conf
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="example-configuration"&gt;Example configuration&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# bip default config file.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Thou shoult change thy password
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ip = &amp;#34;0.0.0.0&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# To connect a client to bip, try the port below, and
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# be sure to set the password to the value
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# specified in the network you want to connect to.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;port = 7778;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# If you set this to true, you&amp;#39;ll only be able to connect to bip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# with a SSL capable IRC client. Be sure to generate a certificate
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# for bip with &amp;#39;make cert&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;client_side_ssl = true;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;log_level = 3;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pid_file=&amp;#34;/var/run/bip/bip.pid&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# This is where logs go. Channel and private messages will use that
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# configuration value as a prefix, and then log_format to determine
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# full log filename.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;log_root = &amp;#34;/var/log/bip/&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Log format allows you to make log filenames depend on the log line&amp;#39;s
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# attributes. Here&amp;#39;s a list :
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# %u -&amp;gt; user name
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# %n -&amp;gt; network name
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# %Y -&amp;gt; 4 digit year
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# %m -&amp;gt; 2 digit month
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# %d -&amp;gt; 2 digit day
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# %c -&amp;gt; destination (#chan, privates, ...)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#log_format = &amp;#34;%n/%Y-%m/%c.%d.log&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Sets the frequency (in seconds) of log syncing (real write to kernel)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#log_sync_interval = 5;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Makes bip send the log of each channel and privates while
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# you were not connected to the proxy upon connection.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;backlog = true; # enable backlog
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;backlog_lines = 0; # number of lines in backlog, 0 means no limit
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;backlog_always = false; # backlog even lines already backlogged
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# If blreset_on_talk talking on an irc network has the same effect of issuing
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# /bip blreset, meaning that stuffed logged before the command won&amp;#39;t be read
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# back on backlog
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;blreset_on_talk = true;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Network definition, a name and server info
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;network {
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; name = &amp;#34;freenode&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; server { host = &amp;#34;chat.freenode.net&amp;#34;; port = 6667; };
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;network {
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; name = &amp;#34;blitzed&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; server { host = &amp;#34;irc.blitzed.org&amp;#34;; port = 6667; };
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Configuration example with one user who connects to two irc networks
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# To use the multi-server feature:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# - define the connections
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# - chose and setup a different login for each connection
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# on your irc client:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# - Use the multi server feature of your client, the server being each time
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# the server where bip is running. In your client setup server password to:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# username:password:connectionname
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# - do not store the password in clear here, use the bipmkpw util to generate
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# a hash
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# User structure is grouping information for a given user
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;user {
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # The name in bip of the user
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # This is used by bip only
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; name = &amp;#34;USERNAME; #BIP User account created with bipmkpw
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; password = &amp;#34;00000000000000000000000000000000000000&amp;#34;; # the hash bipmkpw created
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ssl_check_mode = &amp;#34;none&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # These will be the default for each connections
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; default_nick = &amp;#34;NICKNAME&amp;#34;; #IRC Nick
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; default_user = &amp;#34;IRCUSERNAME&amp;#34;; #IRC User
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; default_realname = &amp;#34;REALNAME&amp;#34;; #IRC Real Name
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; admin = true;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; backlog_msg_only = true; # When true,
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # A user can have mutiple connections to irc networks.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # define a connection:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; connection {
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; name = &amp;#34;freenode&amp;#34;; # used by bip only
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; network = &amp;#34;freenode&amp;#34;; # which ircnet to connect to
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # these will be sent to the real IRC server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; user = &amp;#34;IRCUSERNAME&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; realname = &amp;#34;IRCREALNAME&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; password = &amp;#34;serverpassword&amp;#34;; #can be commented out if not needed
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # Some options:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; follow_nick = true;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ignore_first_nick = false;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; #on_connect_send = &amp;#34;PRIVMSG NickServ :IDENTIFY nspassword&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # Autojoined channels:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; channel { name = &amp;#34;#cat&amp;#34;; }; # Join #cat
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; channel { name = &amp;#34;#dog&amp;#34;; backlog = false; }; # Join #dog but don&amp;#39;t backlog it.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; channel { name = &amp;#34;#pig&amp;#34;; key = &amp;#34;01nk01nk&amp;#34;; }; # Join #pig that has a password.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; };
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; connection {
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; name = &amp;#34;blitzed&amp;#34;; # used by bip only
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; network = &amp;#34;blitzed&amp;#34;; # which ircnet to connect to
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # these will be sent to the real IRC server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; user = &amp;#34;IRCUSERNAME&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; realname = &amp;#34;IRCREALNAME&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; password = &amp;#34;serverpassword&amp;#34;; #can be commented out if not needed
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # Some options:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; follow_nick = true;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ignore_first_nick = false;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; #on_connect_send = &amp;#34;PRIVMSG NickServ :IDENTIFY nspassword&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; # Autojoined channels:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; channel { name = &amp;#34;#bar&amp;#34;; };
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; channel { name = &amp;#34;#foo&amp;#34;; };
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; };
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If you require any clarification about what the configuration options do then
&lt;code&gt;man bip.conf&lt;/code&gt; is your friend.&lt;/p&gt;
&lt;h2 id="start-bip"&gt;Start BIP&lt;/h2&gt;
&lt;p&gt;Now that BIP is configured, it can be started.&lt;/p&gt;
&lt;h3 id="debian-1"&gt;Debian&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo /etc/init.d/bip start
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arch-linux-1"&gt;Arch Linux&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl start bip
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="client-configuration"&gt;Client configuration&lt;/h2&gt;
&lt;p&gt;I use &lt;a href="http://hexchat.github.io/"&gt;HexChat&lt;/a&gt;, but other IRC clients are available.
I add a new Network to HexChat for each of the IRC networks I defined in
&lt;code&gt;/etc/bip.conf&lt;/code&gt;. The screen shot below shows how I configure a BIP network in
HexChat.&lt;/p&gt;
&lt;p&gt;&lt;img src="BIP-freenode.png" alt="HexChat BIP Configuration" title="Example HexChat Network Configuration to a BIP proxy"&gt;&lt;/p&gt;
&lt;h3 id="password-format"&gt;Password format&lt;/h3&gt;
&lt;p&gt;The Password is the most important and confusing item. &lt;strong&gt;This is for BIP,
not for any IRC network&lt;/strong&gt;. Remember the unhashed password? That goes here but
with a twist. The format for the password is:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bipusername:unhashedbippassword:bipnetwork
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Bipnetwork? What is that? It is from the following section of &lt;code&gt;/etc/bip.conf&lt;/code&gt;
on the server?&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;network {
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; name = &amp;#34;freenode&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; server { host = &amp;#34;chat.freenode.net&amp;#34;; port = 6667; };
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;A more practical example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;myuser:S3cr3tP@$$w0rd:freenode
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="conclusion"&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;And that&amp;rsquo;s it! We are now perpetually connected to IRC, can connect to BIP
proxy from multiple devices in a completely transparent and seamless manner.
Moreover, the logs for all channels are saved and automatically rotated on the
server.&lt;/p&gt;
&lt;p&gt;If you looking for an alternative to BIP, then try &lt;a href="http://wiki.znc.in/ZNC"&gt;ZNC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wiki.linaro.org/Resources/HowTo/BIP"&gt;https://wiki.linaro.org/Resources/HowTo/BIP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://nerderati.com/2010/11/perpetual-irc-the-proxy-edition/"&gt;http://nerderati.com/2010/11/perpetual-irc-the-proxy-edition/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://stevengorrell.com/bip-irc-proxy/"&gt;http://stevengorrell.com/bip-irc-proxy/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Installing BIP IRC Proxy on Debian Wheezy &amp;amp; Arch Linux</summary></item><item><title>Plex Media Server on Open Media Vault</title><link>https://blog.wimpys.world/posts/plex-media-server-on-open-media-vault/</link><pubDate>Tue, 27 Aug 2013 21:11:43 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/plex-media-server-on-open-media-vault/</guid><description>&lt;p&gt;I&amp;rsquo;ve recently started using &lt;a href="http://www.plexapp.com"&gt;Plex Media Server&lt;/a&gt; to
handle most media streaming duties around the house. I run in on
&lt;a href="http://www.openmediavault.org"&gt;Open Media Vault&lt;/a&gt; 0.5.x. At the time of writing
Open Media Vault is based on &lt;a href="http://www.debian.org"&gt;Debian&lt;/a&gt; (Squeeze) 6.0.&lt;/p&gt;
&lt;h1 id="plex-media-server"&gt;Plex Media Server&lt;/h1&gt;
&lt;p&gt;Anyway, it turns out that installing Plex Media Server on Open Media Vault is
super simple thanks to the &lt;a href="http://forums.plexapp.com/index.php/topic/51427-plex-media-server-for-debian/"&gt;hard work of Christian Svedin&lt;/a&gt;
who has packaged everything and made it available via an &lt;code&gt;apt&lt;/code&gt; repository.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install curl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;deb http://shell.ninthgate.se/packages/debian squeeze main&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; sudo tee -a /etc/apt/sources.list.d/plexmediaserver.list
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl http://shell.ninthgate.se/packages/shell-ninthgate-se-keyring.key &lt;span class="p"&gt;|&lt;/span&gt; sudo apt-key add -
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install plexmediaserver
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The instructions above also work for Debian Wheezy, just change &lt;code&gt;squeeze&lt;/code&gt; to
&lt;code&gt;wheezy&lt;/code&gt; in &lt;code&gt;/etc/apt/sources.list.d/plexmediaserver.list&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;When the install is complete point your browser at Plex/Web, for example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://plex.example.org:32400/web"&gt;http://plex.example.org:32400/web&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Replace &lt;code&gt;plex.example.org&lt;/code&gt; with your Plex Media Server hostname/ip address.&lt;/p&gt;
&lt;p&gt;If you have PlexPass then head over to the &lt;a href="http://forums.plexapp.com/index.php/topic/48865-debian-package/"&gt;Preview Releases for Debian&lt;/a&gt;
and download and install the latest &lt;code&gt;.deb&lt;/code&gt;.&lt;/p&gt;
&lt;h1 id="plex-clients"&gt;Plex Clients&lt;/h1&gt;
&lt;p&gt;I use the Plex Client for Android on phone and tablet, a Roku 2 XS in the lounge
and Roku 2 LT in the bedroom.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve successfully tested Plex Home Theatre on Ubuntu 12.04 and Raspbmc with
the PleXBMC plug-in on Raspberry Pi.&lt;/p&gt;
&lt;h3 id="references"&gt;References&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://forums.plexapp.com/index.php/topic/51427-plex-media-server-for-debian/"&gt;http://forums.plexapp.com/index.php/topic/51427-plex-media-server-for-debian/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://forums.plexapp.com/index.php/topic/48865-debian-package/"&gt;http://forums.plexapp.com/index.php/topic/48865-debian-package/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Installing Plex Media Server on Open Media Vault (Squeeze) 6.0</summary></item><item><title>Setting up MiniDLNA on Open Media Vault</title><link>https://blog.wimpys.world/posts/setting-up-minidlna-on-open-media-vault/</link><pubDate>Mon, 26 Aug 2013 21:49:09 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/setting-up-minidlna-on-open-media-vault/</guid><description>&lt;p&gt;I have &lt;a href="http://www.openmediavault.org/"&gt;Open Media Vault&lt;/a&gt; running on a
&lt;a href="http://www8.hp.com/uk/en/products/proliant-servers/product-detail.html?oid=5336624"&gt;HP ProLiant MicroServer G7 N54L&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;OpenMediaVault (OMV) is a network attached storage (NAS) solution based on
&lt;a href="http://www.debian.org"&gt;Debian&lt;/a&gt; Linux. At the time of writing OMV 0.5.x is
based on Debian 6.0 (Squeeze).&lt;/p&gt;
&lt;p&gt;In recent months &lt;a href="http://www.plexapp.com"&gt;Plex&lt;/a&gt; has taken over just about all
media streaming duties in our house, with the expectation of streaming music
because Plex music playback and streaming is seriously lacking (no playlists!).
So, &lt;a href="http://sourceforge.net/projects/minidlna/"&gt;MiniDLNA&lt;/a&gt; is still required for
serving up music around the house.&lt;/p&gt;
&lt;h1 id="install-minidlna-on-omv"&gt;Install MiniDLNA on OMV&lt;/h1&gt;
&lt;p&gt;There is a 3rd party plugin repository for Open Media Vault which includes
packages to install MiniDLNA and a WebUI plugin for managing MiniDLNA via OMV.
I upgraded to OMV 0.5.x this morning. and with the 0.5.x the Plugin API changed
and as of the time of writing none of the 3rd party plugins had not been migrated
to OMV 0.5.x. That said, MiniDLNA is super simple to configure so a WebUI is
not a requirement for me.&lt;/p&gt;
&lt;p&gt;MiniDLNA is not currently packaged for Debian Squeeze in the official repositories but
&lt;a href="http://blog.steve.org.uk/minidlna_is_now_packaged.html"&gt;Steve Kemp&lt;/a&gt; has packaged
a fairly up-to-date version of MiniDLNA for Squeeze. Brilliant! Do the following as
&lt;code&gt;root&lt;/code&gt; to install MiniDLNA.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget http://packages.steve.org.uk/minidlna/apt-key.pub
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-key add apt-key.pub
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; deb http://packages.steve.org.uk/minidlna/squeeze/ ./&lt;span class="s2"&gt;&amp;#34; &amp;gt; /etc/apt/sources.list.d/minidlna.list
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;echo &amp;#34;&lt;/span&gt;deb-src http://packages.steve.org.uk/minidlna/squeeze/ ./&lt;span class="s2"&gt;&amp;#34; &amp;gt;&amp;gt; /etc/apt/sources.list.d/minidlna.list
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Once you&amp;rsquo;ve done that run the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install minidlna
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The MiniDLNA defaults in Steve&amp;rsquo;s package assume you have your music in
&lt;code&gt;/srv/music&lt;/code&gt;. So you&amp;rsquo;ll probably need to modify &lt;code&gt;/etc/minidlna/minidlna.conf&lt;/code&gt;
accordingly. From this point &lt;code&gt;man minidlna&lt;/code&gt; and &lt;code&gt;man minidlna.conf&lt;/code&gt; will
guide you.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blog.steve.org.uk/minidlna_is_now_packaged.html"&gt;http://blog.steve.org.uk/minidlna_is_now_packaged.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://packages.steve.org.uk/minidlna/"&gt;http://packages.steve.org.uk/minidlna/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://sourceforge.net/projects/minidlna/"&gt;http://sourceforge.net/projects/minidlna/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Music streaming with MiniDLNA on Open Media Vault</summary></item><item><title>Setting up Open Media Vault on the HP MicroServer N54L</title><link>https://blog.wimpys.world/posts/setting-up-open-media-vault-on-the-hp-microserver-n54l/</link><pubDate>Wed, 07 Aug 2013 21:21:09 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/setting-up-open-media-vault-on-the-hp-microserver-n54l/</guid><description>&lt;p&gt;I&amp;rsquo;ve installed &lt;a href="http://www.openmediavault.org/"&gt;Open Media Vault&lt;/a&gt; (OMV)
on my new &lt;a href="http://www8.hp.com/uk/en/products/proliant-servers/product-detail.html?oid=5336624"&gt;HP ProLiant MicroServer G7 N54L&lt;/a&gt;
to replace my aging, and lackluster, &lt;a href="http://www.readynas.com"&gt;ReadyNAS&lt;/a&gt; NV.&lt;/p&gt;
&lt;p&gt;OpenMediaVault (OMV) is a network attached storage (NAS) solution based on
&lt;a href="http://www.debian.org"&gt;Debian&lt;/a&gt; Linux. At the time of writing OMV 0.5.x is
based on Debian 6.0 (Squeeze).&lt;/p&gt;
&lt;p&gt;This blog post is not going to cover the extremely simple OMV installation
procedure, it assumes OMV 0.5.x is already installed. This post explains
how to upgrade the kernel, install some addtional plugins and some hackery
to update &lt;a href="http://www.transmissionbt.com/"&gt;Transmission&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This blog post is basically the essential notes I need to recreate my server setup.&lt;/p&gt;
&lt;h1 id="n54l-custom-bios"&gt;N54L Custom BIOS&lt;/h1&gt;
&lt;p&gt;I&amp;rsquo;ve installed one of the custom BIOS mods for the N54L.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.avforums.com/forums/networking-nas/1521657-hp-n36l-n40l-n54l-microserver-updated-ahci-bios-support.html"&gt;HP N36L/N40L/N54L Microserver Updated AHCI BIOS Support&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I selected the BIOS mod above because the guy who created was an HP engineer and
this BIOS mod only enables additional features that the N54L can actually support.
Using this BIOS mod I&amp;rsquo;ve been able to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enable AHCI for the Optical Disk Drive (ODD) port.&lt;/li&gt;
&lt;li&gt;Enable AHCI and port multiplier for the the e-SATA port.&lt;/li&gt;
&lt;li&gt;Make all drives hot-pluggable.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The 250GB hard drive that came with N54L is now relocated in the optical drive day
and being used as the OS drive, leaving all 4 bays for data.&lt;/p&gt;
&lt;p&gt;As some point in the future I may want to hook up a 4 bay e-SATA enclosure and this
BIOS mod makes that possible.&lt;/p&gt;
&lt;h1 id="open-media-vault"&gt;Open Media Vault&lt;/h1&gt;
&lt;p&gt;Once Open Media Vault is installed, I do the following.&lt;/p&gt;
&lt;h2 id="enable-ssh"&gt;Enable SSH&lt;/h2&gt;
&lt;p&gt;OMV actually has a really good WebUI that can be used to accomplish most
update/upgrade tasks but I can&amp;rsquo;t help myself. I must have shell access. From
the OMV WebUI:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Services -&amp;gt; SSH&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;Put a tick in &lt;code&gt;Enable&lt;/code&gt; and click the &lt;code&gt;OK&lt;/code&gt; button.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="shell-tools"&gt;Shell Tools&lt;/h2&gt;
&lt;p&gt;Things crave when at the a shell.&lt;/p&gt;
&lt;p&gt;Login to your OMV server as &lt;code&gt;root&lt;/code&gt; using SSH and then do the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install less lsb-release rsync screen tree
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 id="omv-plugins"&gt;OMV Plugins&lt;/h1&gt;
&lt;p&gt;OMV has a number of built-in plugins and a &lt;a href="http://omv-plugins.org"&gt;third party repository of plugins&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="built-in-plugins"&gt;Built-in Plugins&lt;/h2&gt;
&lt;p&gt;Update the built-in plugins.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;System -&amp;gt; Plugins&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;Click the &lt;code&gt;Check&lt;/code&gt; icon.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="logical-volume-manager"&gt;Logical Volume Manager&lt;/h3&gt;
&lt;p&gt;I use LVM. There, I said it. Enable the LVM2 plugin as follows from the OMV WebUI.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;System -&amp;gt; Plugins&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;Highlight the &lt;code&gt;openmediavault-lvm2&lt;/code&gt; plugin.&lt;/li&gt;
&lt;li&gt;Click the &lt;code&gt;Install&lt;/code&gt; icon and then &lt;code&gt;Yes&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;When the install is &lt;code&gt;Done ...&lt;/code&gt;, click &lt;code&gt;Close&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="3rd-party-omv-plugins"&gt;3rd Party OMV-Plugins&lt;/h2&gt;
&lt;p&gt;Follow the instructions on the following page to enable the OMV-Extras plugin repository.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://omv-extras.org/simple/index.php?id=how-to-install-omv-extras-plugin"&gt;http://omv-extras.org/simple/index.php?id=how-to-install-omv-extras-plugin&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="backports-32-kernel"&gt;Backports 3.2 Kernel&lt;/h3&gt;
&lt;p&gt;I updated the Kernel to 3.2 because it better supports the N54L hardware, in
particular the embedded graphics controller. The Linux 3.2 kernel can be
installed via OMV-Extras.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;System -&amp;gt; OMV-Extras.org -&amp;gt; Install Backports 3.2 kernel&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="plex-media-server"&gt;Plex Media Server&lt;/h3&gt;
&lt;p&gt;Plex Media Server is available as a plugin once the OMV-Extras plugin
repository is enabled. Plex is managed via the OMV WebUI.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Services -&amp;gt; Plex&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="transmission"&gt;Transmission&lt;/h3&gt;
&lt;p&gt;Transmission is available as a plugin once the OMV-Extras plugin repository is
enabled. Transmission is managed via the OMV WebUI.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Services -&amp;gt; BitTorrent -&amp;gt; Server&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It&amp;rsquo;s all very straight forward. I use the following block list.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://list.iblocklist.com/?list=bt_level1&amp;amp;fileformat=p2p&amp;amp;archiveformat=gz"&gt;http://list.iblocklist.com/?list=bt_level1&amp;amp;fileformat=p2p&amp;amp;archiveformat=gz&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That pretty much covers the stuff I won&amp;rsquo;t remember in the future. I&amp;rsquo;m considering
adding LXC and Dropbox in the coming that will require some manual steps.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://thekentishman.wordpress.com/guides-2/open-media-vault-set-up/"&gt;http://thekentishman.wordpress.com/guides-2/open-media-vault-set-up/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://myhpmicroserver.com/wiki/Main_Page"&gt;http://myhpmicroserver.com/wiki/Main_Page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Open Media Vault on the HP ProLiant MicroServer G7 N54L</summary></item><item><title>NFS and CIFS mounts with systemd</title><link>https://blog.wimpys.world/posts/nfs-and-cifs-mounts-with-systemd/</link><pubDate>Fri, 26 Jul 2013 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/nfs-and-cifs-mounts-with-systemd/</guid><description>&lt;p&gt;I have an NFS server at home and at work we have Windows (not Samba) servers.
When I first switched to &lt;code&gt;systemd&lt;/code&gt; I noticed that boot and shutdown were
seriously delayed while NFS and CIFS were mounted/unmounted. &lt;code&gt;systemd&lt;/code&gt; was
designed to eliminate those kinds of delays, so I did some research to find
out how to correctly mount NFS and CIFS using &lt;code&gt;systemd&lt;/code&gt;.&lt;/p&gt;
&lt;h1 id="systemd-friendly-fstab"&gt;systemd friendly fstab&lt;/h1&gt;
&lt;p&gt;Below are some example &lt;code&gt;/etc/fstab&lt;/code&gt; entries for NFS and CIFS mounts that are
&lt;code&gt;systemd&lt;/code&gt; friendly, the pertinent mount options are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;noauto,x-systemd.automount,_netdev&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I found that &lt;code&gt;noauto,x-systemd.automount&lt;/code&gt; improved the boot performance and
&lt;code&gt;_netdev&lt;/code&gt; improved the shutdown performance.&lt;/p&gt;
&lt;h2 id="nfs"&gt;NFS&lt;/h2&gt;
&lt;p&gt;This is typically what I have use for mounting my home NAS.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nfs-server:/SomeData /media/SomeData nfs defaults,noauto,x-systemd.automount,_netdev,noatime 0 0
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="cifs"&gt;CIFS&lt;/h2&gt;
&lt;p&gt;This is what I use at work to work correctly with Windows Server.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;//cifs-server/MoreData /media/MoreData cifs defaults,noauto,x-systemd.automount,_netdev,rw,noperm,credentials=/home/username/.smb-credentials 0 0
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The contents of the credentials file looks something like this.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-ini" data-lang="ini"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;yourusername&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;password&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;yourpassword&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;domain&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;COMPANYDOMAIN&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="references"&gt;References&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wiki.archlinux.org/index.php/Systemd#Filesystem_mounts"&gt;https://wiki.archlinux.org/index.php/Systemd#Filesystem_mounts&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Wait for network when mounting NFS and CIFS volumes</summary></item><item><title>Headless Debian 6.0 Torrent Server</title><link>https://blog.wimpys.world/posts/headless-debian-6.0-torrent-server/</link><pubDate>Thu, 21 Mar 2013 17:35:22 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/headless-debian-6.0-torrent-server/</guid><description>&lt;p&gt;I recently switched ISPs at home and now have unlimited high speed broadband.&lt;/p&gt;
&lt;p&gt;Finally I can participate in torrenting Linux .ISO images. I always download
the latest distros using &lt;a href="http://en.wikipedia.org/wiki/BitTorrent"&gt;BitTorrent&lt;/a&gt;
and can now contribute to the community by seeding the distros I&amp;rsquo;ve downloaded.&lt;/p&gt;
&lt;p&gt;I have a small (in size and resources) &lt;a href="http://www.debian.org"&gt;Debian&lt;/a&gt; 6.0
headless server at home that I wanted to turn into a torrent box. I&amp;rsquo;m a big fan
of &lt;a href="http://www.transmissionbt.com/"&gt;Transmission&lt;/a&gt; since it can be managed from
the shell, web and Android phone/tablet. Sadly, the Transmission packages in the
official Debain squeeze repositories are quite old, 2.03 at the time of writing,
and there are no Transmission packages in &lt;a href="http://backports-master.debian.org/"&gt;Debian Backports&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;However after flexing my &lt;em&gt;google-fu&lt;/em&gt; I found a &lt;a href="http://apt.balocco.name/changelog.txt"&gt;3rd party Debian Squeeze
repository&lt;/a&gt; that includes fairly current
(2.73 at the time of writing) Transmission packages specifically for headless use.
Yah!&lt;/p&gt;
&lt;h2 id="install-transmission-daemon"&gt;Install Transmission Daemon&lt;/h2&gt;
&lt;p&gt;First become root.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo -s -H
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the repository key.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-key adv --keyserver keyserver.ubuntu.com --recv-key 92B84A1E
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the repository.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;deb http://apt.balocco.name squeeze main&amp;#34;&lt;/span&gt; &amp;gt; /etc/apt/sources.list.d/balocco.list
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Update the package list.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get update
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Install Transmission.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install transmission-cli transmission-daemon transmission-webinterface
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="basic-configuration"&gt;Basic Configuration&lt;/h2&gt;
&lt;p&gt;The Transmission settings can be found in &lt;code&gt;/etc/transmission-daemon/settings.json&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If &lt;code&gt;transmission-daemon&lt;/code&gt; is running when you make changes to &lt;code&gt;settings.json&lt;/code&gt;
the changes you make will be discarded the next time &lt;code&gt;transmission-daemon&lt;/code&gt; is started.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Therefore either stop &lt;code&gt;transmission-daemon&lt;/code&gt; before you make any changes or you can make
the daemon reload &lt;code&gt;settings.json&lt;/code&gt; by sending it the SIGHUP signal.&lt;/p&gt;
&lt;h3 id="connect-from-anywhere"&gt;Connect from anywhere&lt;/h3&gt;
&lt;p&gt;If you want to be able to connect to Transmission from anywhere on the Internet
stop &lt;code&gt;transmission-daemon&lt;/code&gt;, make the following changes to &lt;code&gt;settings.json&lt;/code&gt; and
then start &lt;code&gt;transmission-daemon&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;rpc-password&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;YourPlainTextPassword&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;rpc-username&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;YourUsername&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;rpc-whitelist-enabled&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The &lt;code&gt;rpc-username&lt;/code&gt; field will need adding but you can edit the existing entry
for &lt;code&gt;rpc-password&lt;/code&gt;. Enter the &lt;code&gt;rpc-password&lt;/code&gt; as a plain text string, Transmission
will automatically convert the password to a hash the next time it is started.&lt;/p&gt;
&lt;h2 id="connect-via-a-browser"&gt;Connect via a browser&lt;/h2&gt;
&lt;p&gt;You should now be able to access the Transmission web interface via
&lt;code&gt;http://yourhost.example.org:9091&lt;/code&gt;. If you didn&amp;rsquo;t change the username and password
(you really should) the defaults are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Username : &lt;code&gt;transmission&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Password : &lt;code&gt;transmission&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="connect-via-android"&gt;Connect via Android&lt;/h2&gt;
&lt;p&gt;I have an Android phone and an Android tablet. I use
&lt;a href="https://play.google.com/store/apps/details?id=com.neogb.rtac"&gt;Remote Transmission&lt;/a&gt;
on my Android devices to manage my torrent box.&lt;/p&gt;
&lt;h2 id="connect-via-the-shell"&gt;Connect via the shell&lt;/h2&gt;
&lt;p&gt;If, like me, you spend the majority of you time at the shell. Then
&lt;a href="https://github.com/fagga/transmission-remote-cli"&gt;transmission-remote-cli&lt;/a&gt; is
probably for you. All my workstation run &lt;a href="http://www.archlinux.org"&gt;Arch Linux&lt;/a&gt; so
I install &lt;code&gt;transmission-remote-cli&lt;/code&gt; as follows.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo pacman -S transmission-remote-cli
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See the GitHub project page for &lt;code&gt;tramission-remote-cli&lt;/code&gt; for instructions on how
to connect to a remote Transmission daemon.&lt;/p&gt;
&lt;h2 id="block-list"&gt;Block List&lt;/h2&gt;
&lt;p&gt;Regardless of how you intend to use Transmission you should enable a block list,
this can be done via &lt;code&gt;settings.json&lt;/code&gt; and the web interface. The following block
lists are a good start.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://list.iblocklist.com/?list=bt_level1&amp;amp;fileformat=p2p&amp;amp;archiveformat=gz"&gt;http://list.iblocklist.com/?list=bt_level1&amp;amp;fileformat=p2p&amp;amp;archiveformat=gz&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.bluetack.co.uk/config/level1.gz"&gt;http://www.bluetack.co.uk/config/level1.gz&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That covers the basics for getting Transmission running on headless Debian 6.0 and
how to connect to it from just about anywhere and on any device. I recommend reading
the &lt;a href="https://trac.transmissionbt.com/wiki"&gt;Trasmission Wiki&lt;/a&gt; as Transmission is
capable of so much more than I have covered in this blog post.&lt;/p&gt;
&lt;p&gt;Happy torrenting.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://apt.balocco.name/changelog.txt"&gt;http://apt.balocco.name/changelog.txt&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.lowendtalk.com/discussion/1001/squeeze-repository"&gt;http://www.lowendtalk.com/discussion/1001/squeeze-repository&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://trac.transmissionbt.com/wiki/EditConfigFiles"&gt;https://trac.transmissionbt.com/wiki/EditConfigFiles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/fagga/transmission-remote-cli"&gt;https://github.com/fagga/transmission-remote-cli&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.iblocklist.com/"&gt;http://www.iblocklist.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Installing Transmission daemon on headless Debian (Squeeze) 6.0</summary></item><item><title>Install nginx on Debian</title><link>https://blog.wimpys.world/posts/install-nginx-on-debian/</link><pubDate>Thu, 14 Mar 2013 18:09:21 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/install-nginx-on-debian/</guid><description>&lt;p&gt;My webserver of choice is &lt;a href="http://nginx.org/"&gt;nginx&lt;/a&gt;, it&amp;rsquo;s resource friendly,
fast, reliable and versatile.&lt;/p&gt;
&lt;p&gt;I have a resource constrained Debian 6.0 &amp;ldquo;server&amp;rdquo; and wanted to deploy nginx on
it for testing. Sadly, the nginx package in the Squeeze repositories is very old.
Fortunately, the nginx team maintain a Debian package repository.&lt;/p&gt;
&lt;p&gt;Add the nginx repository.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo nano /etc/apt/sources.list.d/nginx.list
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="squeeze"&gt;Squeeze&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb http://nginx.org/packages/debian/ squeeze nginx
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb-src http://nginx.org/packages/debian/ squeeze nginx
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="wheezy"&gt;Wheezy&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb http://nginx.org/packages/debian/ wheezy nginx
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;deb-src http://nginx.org/packages/debian/ wheezy nginx
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Download the nginx package signing key.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget http://nginx.org/keys/nginx_signing.key
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the nginx package signing key to the keyring.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-key add nginx_signing.key
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Update the repositories.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get update
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Install nginx.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install nginx
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I run &lt;code&gt;ufw&lt;/code&gt; on my VPS so use the following to allow external access to my
website.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo ufw allow 80/tcp
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;nginx is installed and can be configured in the usual way.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://wiki.nginx.org/Install"&gt;http://wiki.nginx.org/Install&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://wiki.nginx.org/Pgp"&gt;http://wiki.nginx.org/Pgp&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Installing nginx on a Debian (Squeeze) 6.0 and (wheezy) 7.0</summary></item><item><title>nullmailer on Arch Linux</title><link>https://blog.wimpys.world/posts/nullmailer-on-arch-linux/</link><pubDate>Sat, 09 Mar 2013 23:27:43 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/nullmailer-on-arch-linux/</guid><description>&lt;p&gt;I&amp;rsquo;ve been a fan of &lt;a href="http://untroubled.org/nullmailer/"&gt;nullmailer&lt;/a&gt; for some years
now, so much so that I took ownership of the &lt;a href="https://aur.archlinux.org/packages/nullmailer/"&gt;nullmailer package for Arch Linux&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;nullmailer is a sendmail/qmail/etc replacement MTA for hosts which
relay to a fixed set of smart relays. It is designed to be simple to
configure, secure, and easily extendable.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The other advantage &lt;code&gt;nullmailer&lt;/code&gt; has compared to similar tools is that is queues
email until it is able to deliver it upstream.&lt;/p&gt;
&lt;p&gt;Install &lt;code&gt;nullmailer&lt;/code&gt; as follows.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;packer -S --noedit --noconfirm nullmailer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Configuring &lt;code&gt;nullmailer&lt;/code&gt; to relay via Gmail can be achieved using
&lt;a href="http://en.wikipedia.org/wiki/SMTPS"&gt;SMTPS&lt;/a&gt; or
&lt;a href="http://en.wikipedia.org/wiki/Mail_submission_agent"&gt;MSA&lt;/a&gt;. &lt;code&gt;nullmailer&lt;/code&gt; has
had these capabilities since 1.10. The following provides some useful clues
&lt;code&gt;/usr/lib/nullmailer/smtp --help&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;While these examples are specific to relaying via Gmail, you can see it is
trivial to adapt them to any other mail host.&lt;/p&gt;
&lt;h2 id="relay-via-gmail-using-msa"&gt;Relay via Gmail using MSA&lt;/h2&gt;
&lt;p&gt;Add to following to &lt;code&gt;/etc/nullmailer/remotes&lt;/code&gt;. I prefer this technique.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;smtp.gmail.com smtp --port&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;587&lt;/span&gt; --auth-login --user&lt;span class="o"&gt;=&lt;/span&gt;you@gmail.com --pass&lt;span class="o"&gt;=&lt;/span&gt;Yourpassword --starttls
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="relay-via-gmail-using-smtps"&gt;Relay via Gmail using SMTPS&lt;/h2&gt;
&lt;p&gt;Add to following to &lt;code&gt;/etc/nullmailer/remotes&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;smtp.gmail.com smtp --port&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;465&lt;/span&gt; --auth-login --user&lt;span class="o"&gt;=&lt;/span&gt;you@gmail.com --pass&lt;span class="o"&gt;=&lt;/span&gt;Yourpassword --ssl
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Once you&amp;rsquo;ve got &lt;code&gt;/etc/nullmailer/remotes&lt;/code&gt; configured start the nullmailer service.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl start nullmailer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To test &lt;code&gt;nullmailer&lt;/code&gt; can relay email correctly do the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Test 1&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; mailx -s &lt;span class="s2"&gt;&amp;#34;Test One&amp;#34;&lt;/span&gt; me@example.org
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can see what &lt;code&gt;nullmailer&lt;/code&gt; is up to by checking the systemd journal or syslog
(if you&amp;rsquo;ve syslog enabled systemd). This is how to get the logs from the systemd
journal.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;journalctl &lt;span class="nv"&gt;_SYSTEMD_UNIT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;nullmailer.service
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or via syslog.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo grep nullmailer /var/log/daemon.log
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When you&amp;rsquo;re happy &lt;code&gt;nullmailer&lt;/code&gt; is working enable the systemd unit.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; nullmailer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Email will now flow as required.&lt;/p&gt;</description><summary>Configuring nullmailer on Arch Linux to relay email via Gmail</summary></item><item><title>The nano text editor</title><link>https://blog.wimpys.world/posts/the-nano-text-editor/</link><pubDate>Tue, 22 Jan 2013 15:25:47 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/the-nano-text-editor/</guid><description>&lt;p&gt;I use the &lt;a href="http://www.nano-editor.org/"&gt;nano&lt;/a&gt; text editor in preference to
&lt;a href="http://www.vim.org/"&gt;vim&lt;/a&gt; and have done for years. This is because we used
&lt;a href="https://en.wikipedia.org/wiki/Pine_(email_client)"&gt;Pine&lt;/a&gt; for email at
university and my first job, the Pico text editor was used to compose mail
messages. Due to the binary only distribution of &lt;code&gt;pico&lt;/code&gt;, &lt;code&gt;nano&lt;/code&gt; was created as
an free software alternative. And that is why I use &lt;code&gt;nano&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Since I &lt;a href="https://blog.wimpys.world/posts/migrating-wordpress-to-nikola/"&gt;migrated my blog to Nikola&lt;/a&gt;
I&amp;rsquo;m using &lt;code&gt;nano&lt;/code&gt; more frequently as I typically write my blog posts on a remote
shell, so I thought I&amp;rsquo;d spend some time to tweak &lt;code&gt;nano&lt;/code&gt; a little.&lt;/p&gt;
&lt;h2 id="keybindings"&gt;Keybindings&lt;/h2&gt;
&lt;p&gt;I refreshed my memory of some of the keyboard shortcuts available in &lt;code&gt;nano&lt;/code&gt; to
be a little more efficient.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://mintaka.sdsu.edu/reu/nano.html"&gt;http://mintaka.sdsu.edu/reu/nano.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.tuxradar.com/content/text-editing-nano-made-easy"&gt;http://www.tuxradar.com/content/text-editing-nano-made-easy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.cheatography.com/davechild/content/nano-shortcuts/"&gt;http://www.cheatography.com/davechild/content/nano-shortcuts/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="syntax-highlighting"&gt;Syntax Highlighting&lt;/h2&gt;
&lt;p&gt;Syntax Highlighting is the killer feature for &lt;code&gt;nano&lt;/code&gt; that I&amp;rsquo;ve never bothered to
configured in the past. I based my configuration one those provided by
&lt;a href="https://github.com/craigbarnes"&gt;Craig Barnes&lt;/a&gt;. He uses mixins to ensure a
consistent colour theme for all the language highlighters. I don&amp;rsquo;t use his
custom key bindings however, it gets confusing when connecting to different
hosts that have a default &lt;code&gt;nano&lt;/code&gt; configuration.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/craigbarnes/nanorc"&gt;https://github.com/craigbarnes/nanorc&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Some quality of life improvements for nano text editor</summary></item><item><title>Give XFS a chance. Don't believe the FUD.</title><link>https://blog.wimpys.world/posts/give-xfs-a-chance-dont-believe-the-fud/</link><pubDate>Fri, 12 Feb 2010 13:14:44 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/give-xfs-a-chance-dont-believe-the-fud/</guid><description>&lt;p&gt;After tinkering with Ext4 I did some research and tested other file systems on
my new disk arrays. I&amp;rsquo;ve concluded that &lt;a href="http://oss.sgi.com/projects/xfs/"&gt;XFS&lt;/a&gt;,
once tuned, is the best file system for my needs and it could well be the best
file system for your needs too.&lt;/p&gt;
&lt;p&gt;The remainder of this page explains how I arrived at that decision and how I tune
XFS to get optimal, yet safe, performance that can rival Ext4 and JFS.&lt;/p&gt;
&lt;h2 id="benchmarks"&gt;Benchmarks&lt;/h2&gt;
&lt;p&gt;Here are some benchmarks.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://izanbardprince.wordpress.com/2009/03/28/comparing-boot-performance-of-ext3-ext4-and-xfs-on-ubuntu-jaunty/"&gt;http://izanbardprince.wordpress.com/2009/03/28/comparing-boot-performance-of-ext3-ext4-and-xfs-on-ubuntu-jaunty/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://linuxgazette.net/122/piszcz.html"&gt;http://linuxgazette.net/122/piszcz.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.phoronix.com/scan.php?page=article&amp;amp;item=reiser4_linux35&amp;amp;num=1"&gt;Reiser4 Benchmarked On Linux 3.5 Against EXT4, Btrfs, XFS, ReiserFS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="why-i-chose-xfs"&gt;Why I chose XFS&lt;/h2&gt;
&lt;p&gt;I have not chosen XFS for performance alone, indeed some benchmarks show that
XFS it outperformed for some file operations.&lt;/p&gt;
&lt;p&gt;My workstation at home has two 6TB disk arrays and a 1TB root file system.
The disk arrays contain photo, music and video libraries which are streamed
via UPnP/DLNA and DAAP. The video files can be 2GB to 30GB in size. I also
do a good deal of HD video encoding, processing and editing. My root partition
contains many virtual machine images of which several are running at any given
time.&lt;/p&gt;
&lt;p&gt;My work laptop has a 250GB root file system and also contains many virtual
machine images of which one is usually running.&lt;/p&gt;
&lt;p&gt;XFS is designed with large file systems and large file handling in mind.
It seems a sensible choice for those reasons alone, but I also liked the
following features:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;XFS has on-line defragmentation tools, while (at the original time of writing in early 2010) Ext3/4 and JFS do not.&lt;/li&gt;
&lt;li&gt;XFS dramatically reduces start-up time by avoiding &lt;code&gt;fsck&lt;/code&gt; delay. Ext3/4 can be very slow to &lt;code&gt;fsck&lt;/code&gt; large volumes.&lt;/li&gt;
&lt;li&gt;XFS has very fast (a few seconds or less) file system creation. JFS is faster than XFS but Ext4 takes many, many minutes.&lt;/li&gt;
&lt;li&gt;XFS formatted disk capacity is greater than Ext3/4 even after removing the reserved blocks from the Ext3/4 file system. JFS formatted capacity is similar to XFS.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On that last point, XFS gains 400GB over Ext4 on a 6TB array but when the
Ext4 reserved blocks are removed XFS gains 100GB over Ext4.&lt;/p&gt;
&lt;h2 id="tuning-xfs"&gt;Tuning XFS&lt;/h2&gt;
&lt;p&gt;Most of the performance tuning information I found (at the original time
of writing in early 2010) is out of date and doesn&amp;rsquo;t reflect the XFS
defaults in modern Linux kernels.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;That said, the information on this page is quite old and I no longer
feel the need to tweak XFS like I once did.&lt;/em&gt;&lt;/p&gt;
&lt;h3 id="creating-xfs"&gt;Creating XFS&lt;/h3&gt;
&lt;h4 id="xfs-310-and-kernel-2632-or-newer"&gt;XFS 3.1.0 and Kernel 2.6.32 or newer&lt;/h4&gt;
&lt;p&gt;Ubuntu Lucid 10.04 comes with XFS 3.1.0. The defaults used when creating a XFS file
system using Ubuntu 10.04 are optimal and do not require any tweaking.&lt;/p&gt;
&lt;h4 id="xfs-302-and-kernel-2631-or-older"&gt;XFS 3.0.2 and Kernel 2.6.31 or older&lt;/h4&gt;
&lt;p&gt;Ubuntu Karmic 9.10 comes with XFS 3.0.2. If you are running an earlier Ubuntu
release and want to use a tuned XFS root file system you can&amp;rsquo;t simply use the
graphical partitioning tool from the Ubuntu LiveCD installer. However, it is
very easy manually create the tuned XFS file systems. Simply boot the Ubuntu
Live CD, then start a new shell &lt;code&gt;Application -&amp;gt; Accessories -&amp;gt; Terminal&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Now run the following as &lt;code&gt;root&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkfs.xfs -l lazy-count&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt; -L VolumeName &amp;lt;dev&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;lasy-count=1&lt;/code&gt; is a default since XFS 3.1.0 but was recommended by the XFS
developers before that. &lt;code&gt;lazy-count&lt;/code&gt; is a &lt;code&gt;mkfs&lt;/code&gt; option because it changes the
on-disk format slightly, and older kernels do not understand this new format.
Hence &lt;code&gt;mkfs&lt;/code&gt; sets a superblock feature bit to prevent the file system from being
mounted on kernels that don&amp;rsquo;t understand the slightly different disk format.
So you must specify &lt;code&gt;lazy-count=0&lt;/code&gt; if you want to disable this feature for older
kernels which don&amp;rsquo;t support it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://oss.sgi.com/archives/xfs/2007-12/msg00536.html"&gt;http://oss.sgi.com/archives/xfs/2007-12/msg00536.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="forcing-a-tuned-xfs-creation"&gt;Forcing a tuned XFS creation&lt;/h3&gt;
&lt;p&gt;If you are not sure what XFS version you are running, and therefore what the
defaults might be on your system, you can fully tune XFS using the following.&lt;/p&gt;
&lt;h4 id="for--1tb-xfs-file-system"&gt;For &amp;lt; 1TB XFS file system&lt;/h4&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkfs.xfs -l lazy-count&lt;span class="o"&gt;=&lt;/span&gt;1,version&lt;span class="o"&gt;=&lt;/span&gt;2,size&lt;span class="o"&gt;=&lt;/span&gt;128m -i &lt;span class="nv"&gt;attr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt; -d &lt;span class="nv"&gt;agcount&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;4&lt;/span&gt; -L VolumeName &amp;lt;dev&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id="for--1tb-xfs-filesystem"&gt;For &amp;gt; 1TB XFS filesystem&lt;/h4&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkfs.xfs -l lazy-count&lt;span class="o"&gt;=&lt;/span&gt;1,version&lt;span class="o"&gt;=&lt;/span&gt;2,size&lt;span class="o"&gt;=&lt;/span&gt;128m -i &lt;span class="nv"&gt;attr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt; -d &lt;span class="nv"&gt;agcount&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;16&lt;/span&gt; -L VolumeName &amp;lt;dev&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Once you have created all your tuned XFS file systems start the Ubuntu installer from the
Live CD. When the disk partitioning section comes round choose: &lt;code&gt;Specify Partitions Manually&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now &lt;code&gt;Change&lt;/code&gt; each XFS file system telling the partitioner where to mount each XFS file system.
But ensure that you &lt;strong&gt;do not&lt;/strong&gt; tick &lt;code&gt;Format the Partition:&lt;/code&gt;, thereby preserving your tuned XFS
file systems.&lt;/p&gt;
&lt;p&gt;When you see this message, just click Continue.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The file system on /dev/sda1 assigned to /boot has not been marked for
formatting. Directories containing system files (/etc, /lib, /usr,
/var, &amp;hellip;) that already exist under any defined mountpoint will be deleted
during the install.&lt;/p&gt;
&lt;p&gt;Please ensure that you have backed up any critical data before installing.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id="mounting-xfs"&gt;Mounting XFS&lt;/h3&gt;
&lt;p&gt;Further performance optimisations can be gained but specifying some additional mount
options for your XFS file systems.&lt;/p&gt;
&lt;p&gt;To manually mount a XFS file system with, optimal mount options, use the following:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mount -t xfs -o noatime,osyncisosync,logbsize&lt;span class="o"&gt;=&lt;/span&gt;256k,logbufs&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="m"&gt;8&lt;/span&gt; &amp;lt;dev&amp;gt; &amp;lt;mtpt&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The &lt;code&gt;/etc/fstab&lt;/code&gt; entries I use look something like this.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;UUID=xxxxxxxxxxx...x &amp;lt;mtpt&amp;gt; xfs noatime,osyncisosync,logbsize=256k,logbufs=8 0 2
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The &lt;code&gt;logsbsize' and &lt;/code&gt;logbufs&lt;code&gt;options address the often sited limitation of XFS when handling lots of small files and large number of file deletions. The above assumes you don't require&lt;/code&gt;atime&lt;code&gt;. Not using &lt;/code&gt;atime` provides a significant performance benefit.&lt;/p&gt;
&lt;h4 id="atime-relatime-and-noatime"&gt;atime, relatime and noatime&lt;/h4&gt;
&lt;p&gt;Every time a file is accessed (read or write) the default for most file systems
is to append the metadata associated with that file with an updated access time.
Thus, even read operations incur an overhead associated with a write to the file
system. This can lead to a significant degradation in performance in some usage
scenarios. Appending &lt;code&gt;noatime&lt;/code&gt; to the fstab line for &lt;em&gt;any&lt;/em&gt; file system stops
this action from happening.&lt;/p&gt;
&lt;p&gt;One may also specify a &lt;code&gt;relatime&lt;/code&gt; option which updates the atime if the previous
atime is older than the mtime or ctime. In terms of performance, this will not be
as fast as the &lt;code&gt;noatime&lt;/code&gt; mount option, but is useful if using applications that
need to know when files were last read (like &lt;code&gt;mutt&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;As access time is of little importance in most scenarios, this alteration has
been widely touted as a fast and easy way to get a performance boost. Even
Linus Torvalds seems to be a proponent of this optimization&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://kerneltrap.org/node/14148"&gt;http://kerneltrap.org/node/14148&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Access time is &lt;em&gt;not&lt;/em&gt; the same as the last-modified time. Disabling access
time will still enable you to see when files were last modified by a write
operation.&lt;/p&gt;
&lt;h4 id="async-and-nobarrier"&gt;async and nobarrier&lt;/h4&gt;
&lt;p&gt;If you really want to go for all out performance you can also provide &lt;code&gt;async&lt;/code&gt; and
&lt;code&gt;nobarrier&lt;/code&gt; mount options. But you really need to understand and accept the potential
issues with using these options.&lt;/p&gt;
&lt;p&gt;Read the following to understand what write barriers are and if you are prepared
to disable them to gain performance.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://lwn.net/Articles/283161/"&gt;http://lwn.net/Articles/283161/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="xfs-userspace-tools"&gt;XFS userspace tools&lt;/h2&gt;
&lt;p&gt;XFS is available as a kernel module in Ubuntu and also available from the Live
CDs. Once Ubuntu is installed you can install the XFS userspace tools as follows.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install xfsdump xfsprogs
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="de-fragmenting-xfs"&gt;De-fragmenting XFS&lt;/h3&gt;
&lt;p&gt;There are two utilities that XFS has to manage this fragmentation.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;xfs_db&lt;/code&gt; XFS Debug Information. Used to examine an XFS file system for problems or gather information about the XFS file system.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;xfs_fsr&lt;/code&gt; File System Organiser. Improves the organisation of mounted file systems. The reorganisation algorithm operates on one file at a time, compacting or otherwise improving the layout of the file extents (contiguous blocks of file data).&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="defragment-a-file-system"&gt;Defragment a file system&lt;/h4&gt;
&lt;p&gt;To find the health of a XFS file system use the &lt;code&gt;xfs_db&lt;/code&gt; command to
gather some information. In the example below &lt;code&gt;/dev/sda1&lt;/code&gt; is mounted as
&lt;code&gt;/boot&lt;/code&gt; and &lt;code&gt;/dev/sda3&lt;/code&gt; is mounted as &lt;code&gt;/root&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo xfs_db -c frag -r /dev/sda1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;actual 162, ideal 162, fragmentation factor 0.00%
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo xfs_db -c frag -r /dev/sda3
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;actual 2288833, ideal 254504, fragmentation factor 88.88%
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The closer the fragmentation factor is to 0% the better. Unsurprisingly
&lt;code&gt;/boot&lt;/code&gt; is not fragmented. However &lt;code&gt;/root&lt;/code&gt; is very fragmented.&lt;/p&gt;
&lt;p&gt;Defragmenting XFS file systems can be done on a live running system,
but it is a good idea to schedule this for a time where the partition
will be used less.&lt;/p&gt;
&lt;p&gt;The file system reorganizer for XFS is &lt;code&gt;xfs_fsr&lt;/code&gt;. Typically, I instruct
&lt;code&gt;xfs_fsr&lt;/code&gt; to reorganise &lt;code&gt;/dev/sda3&lt;/code&gt; with a timeout (-t) of 6hrs (60 * 60 * 6 = 21600)
which is specified in seconds. But for the purposes of this example I used a timeout of 15 mins.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo xfs_fsr -t &lt;span class="m"&gt;300&lt;/span&gt; /dev/sda3 -v
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The output will look something like this.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/ start inode=0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ino=145565
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;extents before:2 after:1 DONE ino=145565
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ino=145662
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;extents before:2 after:1 DONE ino=145662
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ino=600148
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;extents before:2 after:1 DONE ino=600148
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ino=1127295
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;extents before:82794 after:1 DONE ino=1127295
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ino=1127243
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;extents before:2 after:1 DONE ino=1127243
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ino=1382852
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;extents before:50869 after:1 DONE ino=1382852
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ino=1422636
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When the defrag is finished check how well the file system reorganising was.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;sudo xfs_db -c frag -r /dev/sda3
actual 2155648, ideal 254512, fragmentation factor 88.19%
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;As you can see defragmenting for 15 mins doesn&amp;rsquo;t improve things greatly, which
is why &lt;code&gt;xfs_fsr&lt;/code&gt; needs to be run for several hours or more.&lt;/p&gt;
&lt;p&gt;Manually defragmenting the file system is simple enough, but a better solution
would be to schedule a cron job to run periodically.&lt;/p&gt;
&lt;h4 id="defragment-a-file"&gt;Defragment a file&lt;/h4&gt;
&lt;p&gt;It is also possible to de-fragment a single file. To determine if a file is
in need of defragmenting run the following&amp;hellip;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;xfs_bmap -v /srv/A320/PGQAR.DAT &lt;span class="p"&gt;|&lt;/span&gt; wc -l
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will output a number which showing the number of extents the file is using.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;95280
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This number should be close to 1. So in the example above, I have a very fragmented file.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo xfs_fsr -v /srv/A320/PGQAR.DAT
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will output something like the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/srv/A320/PGQAR.DAT
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;extents before:95278 after:1 DONE /srv/A320/PGQAR.DAT
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The file is now defragmented. I use the method above to target defragmentation where I
know files reside that are most likely to be fragmented, rather than defragmenting the
whole file system.&lt;/p&gt;
&lt;h2 id="references"&gt;References&lt;/h2&gt;
&lt;h3 id="xfs-references"&gt;XFS References&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.xfs.org/index.php/Main_Page"&gt;http://www.xfs.org/index.php/Main_Page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/XFS"&gt;http://en.wikipedia.org/wiki/XFS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://oss.sgi.com/projects/xfs/papers/hellwig.pdf"&gt;http://oss.sgi.com/projects/xfs/papers/hellwig.pdf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.ibm.com/developerworks/linux/library/l-fs9.html"&gt;http://www.ibm.com/developerworks/linux/library/l-fs9.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.ibm.com/developerworks/linux/library/l-fs10.html"&gt;http://www.ibm.com/developerworks/linux/library/l-fs10.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.mythtv.org/wiki/XFS_Filesystem"&gt;http://www.mythtv.org/wiki/XFS_Filesystem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.thushanfernando.com/index.php/2009/01/25/maintaining-your-xfs-with-xfs-fsr/"&gt;http://www.thushanfernando.com/index.php/2009/01/25/maintaining-your-xfs-with-xfs-fsr/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.linux.com/archive/feature/141404"&gt;http://www.linux.com/archive/feature/141404&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="performance-tuning-xfs-references"&gt;Performance Tuning XFS References&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://everything2.com/index.pl?node_id=1479435"&gt;http://everything2.com/index.pl?node_id=1479435&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.opensubscriber.com/message/xfs@oss.sgi.com/8198329.html"&gt;http://www.opensubscriber.com/message/xfs@oss.sgi.com/8198329.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://ondrejcertik.blogspot.com/2008/02/xfs-is-20x-slower-than-ext3-with.html"&gt;http://ondrejcertik.blogspot.com/2008/02/xfs-is-20x-slower-than-ext3-with.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://archives.free.net.ph/message/20090825.155236.abd842ef.en.html"&gt;http://archives.free.net.ph/message/20090825.155236.abd842ef.en.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.mythtv.org/wiki/Optimizing_Performance#XFS-Specific_Tips"&gt;http://www.mythtv.org/wiki/Optimizing_Performance#XFS-Specific_Tips&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>In which I dispel some myths about XFS and fanboi a little</summary></item><item><title>Recovering reserved space from ext4</title><link>https://blog.wimpys.world/posts/recovering-reserved-space-from-ext4/</link><pubDate>Thu, 07 Jan 2010 20:42:04 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/recovering-reserved-space-from-ext4/</guid><description>&lt;p&gt;The Ext4 file system, like Ext3, reserves 5% of the blocks on the file system
for the root user. The reserved blocks are there for root&amp;rsquo;s use as a safe
guard if the filesystem gets full, it provides some wiggle room to enable the
really important programs to still function. But in some cases there&amp;rsquo;s not
much point in having space reserved for root. I&amp;rsquo;ve recently upgrade my
workstation with a 6TB internal RAID 0 array for data storage (music, videos,
photos, etc) and an external 6TB RAID 0 array as a backup. My OS boot from a
1TB drive. For my 6TB arrays I want the maximum available storage and was
interested to see what effect removing the reserved space would have. So, this
is what I did. First I made the Ext4 file system, mounted it and queried how
much space was available.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mkfs.ext4 /dev/sdh1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mount /dev/sdh1 /mnt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;df -h
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Looks like I have 5.1TB of available space.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/dev/sdh1             5.4T  186M  5.1T   1% /mnt
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then I unmounted the file system, removed the reserved blocks, checked the
consistency of the file system, mounted it and queried how much space was
available.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo umount /mnt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo tune2fs -m &lt;span class="m"&gt;0&lt;/span&gt; /dev/sdh1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo e2fsck /dev/sdh1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;df -h
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Looks like I have 5.4TB available now, a saving of 300GB.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/dev/sdh1             5.4T  186M  5.4T   1% /mnt
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now, I could have simply created the files system without the reserved blocks
in the first place, but I was interested to see the comparison.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mkfs.ext4 -m &lt;span class="m"&gt;0&lt;/span&gt; /dev/sdh1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Before you start removing the reserved blocks from your ext3/ext4 file systems
do a bit a research first.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=215177"&gt;Disk capacity, free space, and Ext3 reserved blocks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://wiki.archlinux.org/index.php/Ext3_Filesystem_Tips"&gt;Ext3 Filesystem Tips&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Reclaim the 5% of disk space Ext4 reserves by default</summary></item><item><title>StarTech S354UER Review</title><link>https://blog.wimpys.world/posts/startech-s354uer-review/</link><pubDate>Sat, 02 Jan 2010 16:00:25 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/startech-s354uer-review/</guid><description>&lt;p&gt;*** UPDATE: The StarTech S354UER completely died after less than one year. Not recommended! ***&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve ripped my entire CD collection to MP3 and I&amp;rsquo;m in the process of ripping
my entire DVD, Blu-Ray and HD-DVD collection to MPEG-2 TS files so that I can
stream everything to my PS3 using &lt;a href="http://sourceforge.net/projects/minidlna/"&gt;MiniDLNA&lt;/a&gt;.
I currently have this data stored on an internal 2TB volume and backed up to
an external 2TB volume. I currently have just 360GB remaining capacity and
I&amp;rsquo;ve only imported half my DVD collection and one Blu-Ray. I need more storage.&lt;/p&gt;
&lt;p&gt;I wanted to keep the same backup method, large internal volume backed up to a
large external volume of the same size. I opted for Samsung Spinpoint F2
EcoGreen (HD154UI) drives because they are relatively inexpensive, low power
(therefore lower heat) and quiet.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.samsung.com/global/business/hdd/productmodel.do?type=61&amp;amp;subtype=78&amp;amp;model_cd=441"&gt;Samsung Spinpoint F2 EcoGreen (HD154UI)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.tomshardware.com/reviews/1.5tb-hdd-caviar,2331-3.html"&gt;Samsung Spinpoint F2 EcoGreen (HD154UI) Review&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I decided to get 4x 1.5TB drives for the internal volume and stripe them to
give 6TB of storage and I went looking for an external box in which I could
install 4x 1.5TB drives and also stripe or span them. That meant a multi
disk external enclosure, with some kind of RAID, supported by Linux and that
isn&amp;rsquo;t too expensive. A tall order as it turns out.&lt;/p&gt;
&lt;p&gt;After lots of research I finally found the
&lt;a href="http://www.startech.com/item/S354UFER-35in-4-Drive-eSATA-USB-FireWire-External-SATA-RAID-Enclosure.aspx"&gt;StarTech S354UER&lt;/a&gt;
which on paper appears to do what I required and a good deal more.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Compatible with Windows, Mac, and Linux operating systems&lt;/li&gt;
&lt;li&gt;Fan control button to enable manual control of the fan and
switch between the three fan speeds&lt;/li&gt;
&lt;li&gt;Internal three speed 80mm fan with automatic or manual controls&lt;/li&gt;
&lt;li&gt;Multiple LED indicators to provide RAID information, hard drive
activity, HDD Status, RAID rebuild status, fan settings, and interface
in use&lt;/li&gt;
&lt;li&gt;No software required&lt;/li&gt;
&lt;li&gt;Package includes 1x USB, 1x eSATA, 1x FireWire 400, 1x FireWrie 800 cable,
Power adapter and cord, and the manual&lt;/li&gt;
&lt;li&gt;Plug-and-Play and Hot swap supported with USB 2.0, eSATA, and FireWire&lt;/li&gt;
&lt;li&gt;Push button raid configuration eliminated the need to disassemble the
enclosure to upgrade your raid configurations&lt;/li&gt;
&lt;li&gt;Removable front cover for easy access to hard drive&lt;/li&gt;
&lt;li&gt;Rugged aluminum chassis&lt;/li&gt;
&lt;li&gt;Supported File Systems:NTFS, FAT, FAT32, and ext3&lt;/li&gt;
&lt;li&gt;Supports four 3.5in hard drives up-to 2.0 TB each in size&lt;/li&gt;
&lt;li&gt;Supports RAID 0, RAID 1, RAID 3, RAID 5, RAID 10 (RAID 1+0), and
Spanning&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Normally, I will read reviews of different products and select something with
a proven track record particularly when Linux support is required. I couldn&amp;rsquo;t
find much in the way of reviews for the StarTech S354UER so I took a gamble
and decided to buy one. Eeek!&lt;/p&gt;
&lt;p&gt;In short it works and it is quiet. It is currently sitting no more than 50cm
from me initialising a stripped array of 4x1.5Tb disks as Ext4. I can&amp;rsquo;t hear
it but I have manually set the fan speed to low using the fan control buttons
on the front on the chassis.&lt;/p&gt;
&lt;p&gt;The build quality is not great, but not awful either, but once the drives are
installed and clamped in place they are very secure. It is impossible to tell
if you&amp;rsquo;ve pushed the power button you have to wait and see if the device powers
up/down to be sure. The fan speed controls work, but are inverted from what is
documented in manual. Fan1 is documented as LOW in the manual but is actually HIGH.&lt;/p&gt;
&lt;p&gt;Setting up the device was not quiet plug and play either but the issues
I ran into may not be entirely the fault of the StarTech S354UER. My plan was
to connect the enclosure via Firewire and as yet I&amp;rsquo;ve not been able to get the
enclosure to be recognised via Firewire using Ubuntu Jaunty 9.04. However, I
am a Firewire newbie so maybe more research required. I don&amp;rsquo;t have eSATA (yet)
so I have the device connected via USB 2.0. Which does work.&lt;/p&gt;
&lt;p&gt;One of my new hard disks turned out to be DOA. It took me a while to figure out
what was wrong here. The StarTech drive failure light on the front of the chassis
was illuminated, but I didn&amp;rsquo;t know how to tell which drive had actually failed.
After some trial and error I found that there are four internal LEDs, one for
each disk. Starting the StarTech with the chassis door open you can see the
internal LEDs blinking as each disk is spun up and tested. If the drive
failure LED on the front of chassis is illuminated look at the internal LEDs,
the drive LED which is off denotes the failed drive. This information is not
in the user manual!&lt;/p&gt;
&lt;p&gt;I replaced the drive and was able to select my RAID level. Selecting the RAID
level is done though a combination of DIP switches under a panel at the back
of the unit and buttons on the front. It is a slightly fiddly process, but it
does have the advantage that you can&amp;rsquo;t accidentally change your RAID levels and
re-initialise the array.&lt;/p&gt;
&lt;p&gt;In order to create a partition greater than 2TB you have to use GPT. I&amp;rsquo;d not
encountered GPT before, but I found everything I needed to know on the page
below.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.ibm.com/developerworks/linux/library/l-gpt/"&gt;Make the most of large drives with GPT and Linux&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I used &lt;code&gt;gparted&lt;/code&gt; to create my partition and format with Ext4 with the
enclosure connected via USB 2.0. The whole process took ~1 hour. As you will
see from the link the quoted price makes this enclosure pretty expensive.
Search around though, because I got mine of 50% less than the price quoted on
the StarTech.com website. You do get a healthy selection of RAID levels, all
the cables, screws, screwdriver and drive handles you require.&lt;/p&gt;
&lt;p&gt;Would I recommend the StarTech S354UER? Time will tell, but it does work with
Linux via USB 2.0 and I will continue investigate FireWire and I may add eSATA
in the future to see what the performance benefits are. But for what I bought
it for, secondary storage for backups, it is a pretty cheap way to add a multi
terrabyte array to your system.&lt;/p&gt;</description><summary>Creating a 4x 1.5TB storage array with the StarTech S354UER</summary></item><item><title>Mediatomb vs. MiniDLNA</title><link>https://blog.wimpys.world/posts/mediatomb-vs-minidlna/</link><pubDate>Fri, 18 Dec 2009 15:34:12 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/mediatomb-vs-minidlna/</guid><description>&lt;p&gt;I&amp;rsquo;ve been using &lt;a href="http://mediatomb.cc/"&gt;Mediatomb&lt;/a&gt; for nearly two years now but
decided to give &lt;a href="http://sourceforge.net/projects/minidlna/"&gt;MiniDLNA&lt;/a&gt; a whirl
since it is a fully fledged DLNA server whereas Mediatomb is UPnP only. I&amp;rsquo;m
currently running both Mediatomb SVN and MiniDLNA CVS. So, how does MiniDLNA
compare to Mediatomb?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;MiniDLNA is easier to compile, configure, uses less RAM and has less software
dependencies than Mediatomb.&lt;/li&gt;
&lt;li&gt;MiniDLNA doesn&amp;rsquo;t currently support music play lists or Last.fm scrobbling.
Mediatomb supports &lt;code&gt;.m3u&lt;/code&gt; and &lt;code&gt;.pls&lt;/code&gt; playlists but requires a 3rd party patch
to add Last.fm scrobbling.&lt;/li&gt;
&lt;li&gt;MiniDLNA doesn&amp;rsquo;t support dynamic video thumbnail creation, which would be
nice to have but is not essential, cover images are supported. Mediatomb
supports video thumbnails via &lt;code&gt;ffmpegthumbnailer&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;MiniDLNA doesn&amp;rsquo;t currently have any transcoding support. This is of little
consequence for me since I import video content into my library in a format
natively supported by the PS3, either MP3, MPEG-2 TS or MPEG-4. Mediatomb
does support transcoding but it is somewhat fiddly to setup and you can&amp;rsquo;t
pause transcoded content.&lt;/li&gt;
&lt;li&gt;MiniDLNA works &lt;em&gt;&amp;ldquo;out of the box&amp;rdquo;&lt;/em&gt; with the PS3 (and other DLNA clients)
while Mediatomb requires some tweaking.&lt;/li&gt;
&lt;li&gt;Mediatomb&amp;rsquo;s default video import script doesn&amp;rsquo;t suit how I organise my
video library, but MiniDLNA suits my video library perfectly.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So, as of today I am running both Mediatomb and MiniDLNA. Mediatomb is
exclusively handling audio since playlist and Last.fm support are essential
for me. MiniDLNA is now handling video exclusively. I&amp;rsquo;m very happy with the
results but should MiniDLNA add .m3u/.pls play lists and Last.fm support I
will switch everything to MiniDLNA.&lt;/p&gt;
&lt;h2 id="2-years-later"&gt;2 years later&amp;hellip;&lt;/h2&gt;
&lt;p&gt;Since writing this post MiniDLNA added support for playlists. It still doesn&amp;rsquo;t
support Last.fm scrobbling though. Despite that I switched to MiniDLNA and it
has been streaming audio and video around the house for that last couple of
years.&lt;/p&gt;</description><summary>Comparing Mediatomb and MiniDLNA streaming servers</summary></item><item><title>DVD to MPEG2-TS Ripper for Linux</title><link>https://blog.wimpys.world/posts/dvd-to-mpeg2-ts-ripper-for-linux/</link><pubDate>Fri, 04 Dec 2009 07:53:58 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/dvd-to-mpeg2-ts-ripper-for-linux/</guid><description>&lt;p&gt;A while back I released a script that rips a DVD to MPEG-2 PS allowing the
user to select one audio stream and one subtitle stream. Optionally the video
can be requantised, using M2VRequantiser and an ISO image created. If creating
an ISO image the chapters are also preserved from the original DVD. You can
see the original post below.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="2009-04-dvd-mpeg2ps-ripper-linux.html"&gt;DVD to MPEG-2 PS Ripper for Linux&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I&amp;rsquo;ve just released an update to that original script which fixes subtitles in
the original MPEG-2 PS mode but now adds the capability to rip MPEG-2 TS. The
video stream can still be shrunk and in MPEG-2 PS mode the video is still
requantised but in MPEG-2 TS mode the video is re-encoded as H.264.&lt;/p&gt;
&lt;p&gt;Requantising is faster but can introduce artifacting. H.264 encoding is
slower, but produces very good quality. I am currently re-importing my entire
DVD collection, using this script, to my DLNA server using MPEG-2 TS and
re-encoding the video to H.264. This gives me high quality rips at relatively
small size (~3Gb) whilst preserving Dolby Digital 5.1 audio. Perfect for
playback via DLNA on the PS3. Some things to be aware of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Subtitles are only supported in MPEG-2 PS mode.&lt;/li&gt;
&lt;li&gt;MPEG-2 PS files created by this script are DVD compliant.&lt;/li&gt;
&lt;li&gt;ISO files created by this script will preserve the chapters from the original DVD.&lt;/li&gt;
&lt;li&gt;The PS3 can only play DTS audio in MPEG-2 PS streams when they have been authored to DVD.&lt;/li&gt;
&lt;li&gt;The PS3 can only play subtitles in MPEG-2 PS streams when they have been authored to DVD.&lt;/li&gt;
&lt;li&gt;The PS3 can&amp;rsquo;t play DTS audio in MPEG-2 TS streams therefore this script will transcode DTS to AC3 when in MPEG-2 TS mode.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To download the script and find out how to make full use of it visit the
release page below.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/flexiondotorg/DVD-to-MPG"&gt;DVD-to-MPG&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Ripping DVDs to MPEG-2 Transport Streams for DLNA streaming</summary></item><item><title>Creating a JetDirect Server with Linux</title><link>https://blog.wimpys.world/posts/creating-a-jetdirect-server-with-linux/</link><pubDate>Sat, 17 Oct 2009 11:41:21 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/creating-a-jetdirect-server-with-linux/</guid><description>&lt;p&gt;I created JetDirect compatible server on my NSLU2 running Ubuntu Jaunty 9.04
using &lt;a href="http://p910nd.sourceforge.net/"&gt;p910nd&lt;/a&gt;, which is a small printer daemon
that does not spool to disk but passes the job directly to the printer. It is
particularly useful for disk less Linux workstations and embedded devices that
have a printer hanging off them.&lt;/p&gt;</description><summary>Using the NSLU2 as a JetDirect print server</summary></item><item><title>PS3, Mediatomb, Multi Zone Music streaming</title><link>https://blog.wimpys.world/posts/ps3-mediatomb-multi-zone-music-streaming/</link><pubDate>Sat, 26 Sep 2009 11:02:52 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/ps3-mediatomb-multi-zone-music-streaming/</guid><description>&lt;p&gt;PlayStation 3 firmware 3.00 added a new feature I was very excited about,
multi-av output. Today I finally got round to re-wiring the home cinema system
to make use of this new feature. I now have the PS3 streaming music from
&lt;a href="http://mediatomb.cc/"&gt;MediaTomb&lt;/a&gt; with my A/V receiver sending audio to Zone
1 via digital inter connects and also sending audio to Zone 2 via analog stereo
interconnects.&lt;/p&gt;
&lt;p&gt;Zone 1 is a 5.1 speaker setup and Zone 2 is a 2.0 all weather wireless speaker
system which are often in the kitchen but also moved outside for parties. If
Sony could just add Skype to the PS3 and allow the PSP Remote Play to output
audio to both the PS3 and PSP (rather than just one of them) I would be very
happy indeed.&lt;/p&gt;</description><summary>Multi Zone music streaming with the PlayStation 3</summary></item><item><title>IMDB Film Summary as a MPEG-2 video, Part 2</title><link>https://blog.wimpys.world/posts/imdb-film-summary-as-a-mpeg-2-video-part-2/</link><pubDate>Sun, 20 Sep 2009 08:48:36 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/imdb-film-summary-as-a-mpeg-2-video-part-2/</guid><description>&lt;p&gt;&lt;strong&gt;UPDATE! I no longer use or maintain the script below. I suggest the vastly
superior &lt;a href="http://www.bunyipawonga.org/sheetmaker/index.php"&gt;Sheet Maker for Linux&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Back in April I released a script to create a MPEG video summarising a movie
using data from IMDB, you can find the original post in the URL below to learn
why I created such a script in the first place.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="2009-04-imdb-film-summary-mpeg2-video.html"&gt;IMDB Film Summary as a MPEG-2 video&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Today I&amp;rsquo;ve released v2.0 of that script, which is almost a complete re-write
mostly thanks to Eric at &lt;a href="http://yPass.net/"&gt;yPass.net&lt;/a&gt; who contributed
significantly. Thanks to Eric the script is much improved since version 1.0,
here is a run down of what&amp;rsquo;s new.&lt;/p&gt;
&lt;h2 id="v20-2009-19th-september"&gt;v2.0 2009, 19th September.&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Merged yet more contributions from Eric, &lt;a href="http://www.ypass.net"&gt;http://www.ypass.net&lt;/a&gt;. Thanks Eric!&lt;/li&gt;
&lt;li&gt;Added usage instructions.&lt;/li&gt;
&lt;li&gt;Added categorisation by Certificate.&lt;/li&gt;
&lt;li&gt;Added dynamic computation of video bitrate.&lt;/li&gt;
&lt;li&gt;Added silent audio generation.&lt;/li&gt;
&lt;li&gt;Added a shell script to reprocess an entire film store.&lt;/li&gt;
&lt;li&gt;Re-added MPEG-2 video encoding.&lt;/li&gt;
&lt;li&gt;Improved video encoding speed by removing pre-processing with &lt;code&gt;jpeg2yuv&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fixed spiffy animations when cover art is not available.&lt;/li&gt;
&lt;li&gt;Fixed spiffy animations on platforms that may have incomplete GD.&lt;/li&gt;
&lt;li&gt;Modified filename input so that an input filename is optional rather than mandatory.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="v12-2009-17th-july"&gt;v1.2 2009, 17th July.&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Merged extensive contributions from Eric, &lt;a href="http://www.ypass.net"&gt;http://www.ypass.net&lt;/a&gt;. Thanks Eric!&lt;/li&gt;
&lt;li&gt;Updated the README to reflect Eric&amp;rsquo;s changes.&lt;/li&gt;
&lt;li&gt;MPEG-4 video encoding replaced MPEG-2 video encoding.&lt;/li&gt;
&lt;li&gt;Never released to the public.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To download the script and find out how to make full use of it visit the
release page below.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/flexiondotorg/IMDB-to-MPEG"&gt;IMDB-to-MPEG&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As it stands the IMDB-to-MPEG script does what I require, so I will maintain it
in it&amp;rsquo;s current form. However, Eric has been working on a new direction by
adding support for NetFlix, creating a GUI with php-gtk and some other cool
stuff. While Eric has shared the details with me, I simply don&amp;rsquo;t have the time
to add all that good stuff to IMDB-to-MPEG, so if you like the sound of what
Eric has been up to hop over to his site to find out more.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.ypass.net/blog/2009/07/netflix-has-a-developer-api/"&gt;Netflix Has a Developer API&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Improvements to film summaries embedded in videos</summary></item><item><title>MKV to MPEG-4 conversion script</title><link>https://blog.wimpys.world/posts/mkv-to-mpeg-4-conversion-script/</link><pubDate>Thu, 27 Aug 2009 20:48:58 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/mkv-to-mpeg-4-conversion-script/</guid><description>&lt;p&gt;The PlayStation 3 can&amp;rsquo;t play MKV files. Therefore I&amp;rsquo;ve written a script that
creates a PlayStation 3 or Xbox 360 compatible MPEG-4 from Matroska providing
the video is H.264 and audio is AC3 or DTS.&lt;/p&gt;
&lt;p&gt;Xbox 360 compatibility requires that audio is forcibly downmixed to stereo
with &lt;code&gt;--stereo&lt;/code&gt;. AAC 5.1 audio will have the correct channel assignments when
transcoding from AC3 5.1 and DTS 5.1. If &lt;code&gt;neroAacEnc&lt;/code&gt; is installed then it is
used in preference to &lt;code&gt;faac&lt;/code&gt; for encoding the AAC audio, as it produces better
quality output. &lt;code&gt;neroAacEnc&lt;/code&gt; is optional.&lt;/p&gt;
&lt;p&gt;The script does as little re-encoding as possible, only the audio and
subtitles are re-encoded or converted. The script can detect profile 5.1 H.264
and patch it to 4.1 in under a second. Any subtitles in the Matroska are
preserved. If &lt;code&gt;mp4creator&lt;/code&gt; is used the subtitles are extracted stored in a
seperate file. If &lt;code&gt;MP4Box&lt;/code&gt; is used (default) the subtitles are converted to
GPAC Timed Text and muxed into the resulting MPEG-4. The PlayStation 3 can&amp;rsquo;t
display these subtitles but some software players can.&lt;/p&gt;
&lt;p&gt;The script can optionally split the Matroska if it is greater than 4GB to ensure
PlayStation 3, Xbox 360 and FAT32 compatibility. This script works on Ubuntu and
should work on any other Linux/Unix flavour and possibly Mac OS X providing you
have the required tools installed.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/flexiondotorg/MKV-to-MP4"&gt;MKV-to-MP4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Creating PlayStation 3 and Xbox 360 compatible MPEG-4 videos</summary></item><item><title>MP3Gainer - Apply ReplayGain to your entire music library</title><link>https://blog.wimpys.world/posts/mp3gainer-apply-replaygain-to-your-entire-music-library/</link><pubDate>Fri, 14 Aug 2009 15:25:45 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/mp3gainer-apply-replaygain-to-your-entire-music-library/</guid><description>&lt;p&gt;Work has been crazy. We&amp;rsquo;re moving house. Hence, not much time for geeky stuff
recently. I&amp;rsquo;ve been putting this off for ages, I need to &amp;ldquo;normalise&amp;rdquo; the
volume of my MP3 music music library. Not all CDs sound equally loud. Whilst
different musical moods require that some tracks should sound louder than
others, the loudness of a given CD has more to do with the year of issue or
the whim of the producer than the intended emotional effect. This difference
carries over when you rip the CD to MP3 and random play through my music
collection requires constant manual volume adjustment. This has been bugging
me for a while now, but when it started to bug my wife I knew it was time to
find a solution. My main concerns with applying some sort of audio
normalisation were&amp;hellip;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;My MP3s should not be irretrievably changed into something I end up hating.&lt;/li&gt;
&lt;li&gt;The method used should be free of the application used for music playback,
given that I play my music on iPod Nano, iPod Shuffle, PSP, PS3, Linux desktops,
TomTom 720T FM streaming and in car MP3 player.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After some research &lt;a href="http://mp3gain.sourceforge.net"&gt;mp3gain&lt;/a&gt; seems to be the
tool for the job which provides an implementation of
&lt;a href="http://www.replaygain.org/"&gt;ReplayGain&lt;/a&gt;. However, as of today my entire CD
collection is ripped, which is very large, so I needed a way to process my
whole music collection in an automated fashion. I found some examples of how
to script this, but there are caveats with the solutions I found. Therefore I
have created my own script, MP3Gainer, to apply ReplayGain using &lt;code&gt;mp3gain&lt;/code&gt;
which overcomes these common limitations. MP3Gainer recursively applies
ReplayGain to a MP3 music collection of any size and directory depth.
ReplayGain can be applied in &amp;rsquo;track&amp;rsquo; or &amp;lsquo;album&amp;rsquo; mode and if ReplayGain has
previously been applied it can also be undone. It is important to understand
that MP3Gainer &amp;lsquo;album&amp;rsquo; mode really is per album, which is what you want. Trust
me! This script works on Ubuntu, should work on any other Linux/Unix
flavour and possibly Mac OS X providing you have the required tools installed.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/flexiondotorg/MP3Gainer"&gt;MP3Gainer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Volume normalise an entire MP3 library the right way</summary></item><item><title>DVD to MPEG2-PS Ripper for Linux</title><link>https://blog.wimpys.world/posts/dvd-to-mpeg2-ps-ripper-for-linux/</link><pubDate>Thu, 23 Apr 2009 16:50:31 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/dvd-to-mpeg2-ps-ripper-for-linux/</guid><description>&lt;p&gt;Every so often I find myself in looking through the ex-rental DVD &lt;em&gt;&amp;ldquo;bargain
bin&amp;rdquo;&lt;/em&gt;. Quite often I find something I consider a bargain. However, the
experience of watching an ex-rental DVD is typically ruined by the various
trailers and marketing guff at the start which you can&amp;rsquo;t skip. My wife hates
that stuff, and I love my wife, so I routinely rip the main feature of newly
acquired ex-rental DVD movies so we can avoid that crap.&lt;/p&gt;
&lt;p&gt;I run a Mediatomb DLNA server and I want to load it with all my DVDs. Ripping
them helps reduce the amount of storage I require. MPEG2-PS files are
compatible with my PlayStation 3 which is the client to my Mediatomb DLNA server.
As a solution to the above I created a script, which can extract the main feature
from a DVD video, allowing the user to select one audio stream and one subtitle
stream. Optionally the video can be requantised, using M2VRequantiser, and an ISO
image created. If creating an ISO image the chapters are also preserved from
the original DVD. I&amp;rsquo;ve lobbed my code into GitHub.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/flexiondotorg/DVD-to-MPG"&gt;DVD-to-MPG&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Ripping DVDs to MPEG2-PS for streaming via UPnP</summary></item><item><title>IMDB Film Summary as a MPEG-2 video</title><link>https://blog.wimpys.world/posts/imdb-film-summary-as-a-mpeg-2-video/</link><pubDate>Wed, 22 Apr 2009 18:00:07 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/imdb-film-summary-as-a-mpeg-2-video/</guid><description>&lt;p&gt;&lt;strong&gt;UPDATE! I no longer use or maintain the script below. I suggest the vastly
superior &lt;a href="http://www.bunyipawonga.org/sheetmaker/index.php"&gt;Sheet Maker for Linux&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;ve read my blog before you&amp;rsquo;ll know I run Mediatomb DLNA server with my
PlayStation 3 as the client, You&amp;rsquo;ll also know I am working towards importing my
entire DVD collection into my Mediatomb server. However, my wife wants to know
something about each film in the library without having to dig out the DVD
case from storage. My solution is to include a MPEG-2 video displaying the
film summary in the Mediatomb library for each DVD I have imported so it can
be easily viewed from the PS3.&lt;/p&gt;
&lt;p&gt;My script is called IMDB-to-MPEG and I&amp;rsquo;ve finally got round to uploading it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/flexiondotorg/IMDB-to-MPEG"&gt;IMDB-to-MPEG&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The scripts takes one parameter as input, a film title. The plotline, year of
release, genres, cast list and running time for that film are gathered from IMDB
and formatted as text. Here is an example.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; The Usual Suspects (1995)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; A boat has been destroyed, criminals are dead, and
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; the key to this mystery lies with the only
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; survivor and his twisted, convoluted story
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; beginning with five career crooks in a seemingly
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; random police lineup. (106 mins)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Starring Stephen Baldwin as Michael McManus,
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Gabriel Byrne as Dean Keaton, Benicio Del Toro as
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Fred Fenster, Kevin Pollak as Todd Hockney, and
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Kevin Spacey as Roger &amp;#39;Verbal&amp;#39; Kint.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Genres: Crime, Mystery, Thriller.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Rated 8.7 out of 10 from 227,964 votes.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The text is converted into an image and then encoded into a MPEG-2 video using
the lowest possible bitrate/resolution that is acceptable to read when viewing
on a 42&amp;quot; plasma from my sofa.&lt;/p&gt;
&lt;p&gt;Directories for each matching genre are created and also one for the IMDB
rating (rounded down). The MPEG-2 is stored in the &amp;lsquo;All&amp;rsquo; folder and then
symlinked to the genres and rating for that film. I then copy my video into
the appropriate directory in &amp;lsquo;All&amp;rsquo;. For example.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; .
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |-- All
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   `-- The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |       `-- About_The_Usual_Suspects.mpg
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |-- Genres
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   |-- Crime
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   |   `-- The_Usual_Suspects -&amp;gt; ../../All/The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   |-- Mystery
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   |   `-- The_Usual_Suspects -&amp;gt; ../../All/The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   `-- Thriller
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |       `-- The_Usual_Suspects -&amp;gt; ../../All/The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |-- Ratings
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; `-- 8
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; `-- The_Usual_Suspects -&amp;gt; ../../All/The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This code was lashed up in a few hours, it ain&amp;rsquo;t pretty but it works for me on
my Ubuntu systems, maybe it&amp;rsquo;ll work for you too.&lt;/p&gt;</description><summary>Create film preview information for your UPnP server</summary></item><item><title>Converting Matroska to M2TS for PS3 and Mediatomb</title><link>https://blog.wimpys.world/posts/converting-matroska-to-m2ts-for-ps3-and-mediatomb/</link><pubDate>Wed, 15 Apr 2009 16:19:24 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/converting-matroska-to-m2ts-for-ps3-and-mediatomb/</guid><description>&lt;p&gt;It has been a while since I last posted, mainly due to not having Internet
access at home for a month. Anyway, I&amp;rsquo;m online again and I have been tinkering
with various projects the most recent of which is Matroska conversion (again).&lt;/p&gt;
&lt;h2 id="matroska-to-mp4"&gt;Matroska to MP4&lt;/h2&gt;
&lt;p&gt;For sometime I have been converting Martoska files to MPEG-4 with AAC 5.1 audio
so I can stream them via Mediatomb to my PlayStation 3. The conversion process
works well although there is some overhead in transcoding the audio and the
AAC 5.1 audio is not as good quality as the original AC3 or DTS.&lt;/p&gt;
&lt;p&gt;If you are interested I&amp;rsquo;ve put my code in GitHub, the script automates the
whole process.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/flexiondotorg/MKV-to-MP4"&gt;MPV-to-MP4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="matroska-to-m2ts"&gt;Matroska to M2TS&lt;/h2&gt;
&lt;p&gt;A little while back I read it was possible to convert those same Matroska file
to M2TS files which, so long as the audio is AC3, so takes much less time to
convert. As the PlayStation 3 can&amp;rsquo;t play DTS audio streams inside a M2TS container
there is still a requirement to transcode DTS to AC3. That said the conversion to
M2TS requires less file I/O than converting to MPEG-4 and is therefore it is
generally a quicker conversion method, typically just 2 or 3 minutes on my
workstation at home.&lt;/p&gt;
&lt;p&gt;Plus the audio quality of the AC3 or transcoded DTS is better than that of
transcoded AAC 5.1. I&amp;rsquo;ve created my own script to fully automate the conversion
process. The script has been tested on Ubuntu 8.10 64-bit but there is an
outside chance it will work on Mac OS X if you can get the required tools
installed. Again, you can find my script on GitHub.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/flexiondotorg/MKV-to-M2TS"&gt;MPV-to-M2TS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Fast conversion of Matroska video to MPEG2-TS</summary></item><item><title>Mediatomb 0.12 - Streaming audio and video around the house</title><link>https://blog.wimpys.world/posts/mediatomb-0.12-streaming-audio-and-video-around-the-house/</link><pubDate>Sat, 07 Feb 2009 16:23:39 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/mediatomb-0.12-streaming-audio-and-video-around-the-house/</guid><description>&lt;p&gt;&lt;a href="http://mediatomb.cc/"&gt;Mediatomb&lt;/a&gt; is an open source (GPL) UPnP MediaServer
with a nice web user interface, it allows you to stream your digital media
through your home network and listen to/watch it on a variety of UPnP
compatible devices, such as the PlayStation in my case.&lt;/p&gt;
&lt;p&gt;Mediatomb 0.12 is not yet released as final yet but it is certainly stable
enough for general use, so I spent the last week migrating from Mediatomb 0.11
to Mediatomb 0.12.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve recently finished ripping my entire CD collection (344 CDs) to MP3 and I
am currently ripping my DVD collection (85 done so far) to MP4 with AAC 5.1
audio. The &amp;lsquo;Music&amp;rsquo; and &amp;lsquo;Video&amp;rsquo; folders in our home directories are mounted via
NFS. The Mediatomb server uses the same data sources so any playlists or new
music/videos we might import are immediately reflected in Mediatomb.&lt;/p&gt;
&lt;p&gt;Our entire CD library is now available at the click of a button, automatically
organised by genre, artist and date. We have also created some playlists
in &lt;code&gt;.m3u&lt;/code&gt; or &lt;code&gt;.pls&lt;/code&gt; format.&lt;/p&gt;
&lt;p&gt;New to Mediatomb 0.12 is the ability to scrobble your music to
&lt;a href="http://www.last.fm"&gt;Last.fm&lt;/a&gt;, this a killer feature for me and why I chose to
migrate to 0.12 before it goes final.&lt;/p&gt;
&lt;p&gt;I ripped the CDs using &lt;a href="http://www.burtonini.com/blog/computers/sound-juicer"&gt;SoundJuicer&lt;/a&gt;,
since I can configure it to use &lt;a href="http://lame.cvs.sourceforge.net/viewvc/lame/lame/doc/html/presets.html"&gt;LAME presets&lt;/a&gt;.
I then used the &lt;a href="http://musicbrainz.org/doc/PicardTagger"&gt;Music Brainz Picard Tagger&lt;/a&gt; to
add additional tagging and embed cover art and then applied ReplayGain.&lt;/p&gt;
&lt;p&gt;Finally my wife and I use &lt;a href="http://banshee-project.org/"&gt;Banshee&lt;/a&gt; to manage the
music library on our computers, including the creation of playlists and syncing
to our iPods.&lt;/p&gt;
&lt;p&gt;I am using &lt;a href="http://handbrake.fr/"&gt;Handbrake&lt;/a&gt; to rip the DVDs to MP4. I&amp;rsquo;ve created a
new PS3 compatible profile which is focused on quality, I&amp;rsquo;ll post details
about that in the future. Mediatomb 0.12 has some experimental features to
stream video content from .ISO images of DVDs. I&amp;rsquo;ve yet to play with that but
it sounds very cool. I&amp;rsquo;ve also created a script which queries IMDB to
categorise our film library by genre and create summary information about
each film in the library. I&amp;rsquo;ll be posting more about that soon. I haven&amp;rsquo;t
finalised how we will integrate Photo management with Mediatomb yet, but that
is that final piece in the puzzle.&lt;/p&gt;</description><summary>In home streaming via UPnP with Mediatomb</summary></item><item><title>Simple iCal Server</title><link>https://blog.wimpys.world/posts/simple-ical-server/</link><pubDate>Wed, 09 Jan 2008 23:20:28 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/simple-ical-server/</guid><description>&lt;p&gt;For the longest time I have been meaning to setup a shared calendar for my
wife I and to use. You see, like most men I have no idea when and where I am
supposed to be. This is because my wife keeps all this information in her
filofax and that lives in her handbag, somewhere I never venture. So I have
spent this evening setting up &lt;a href="http://phpicalendar.net/"&gt;PHP iCalendar&lt;/a&gt; on
&lt;a href="http://www.lighttpd.net/"&gt;Lighttpd&lt;/a&gt;, and I am very happy with the results.&lt;/p&gt;
&lt;p&gt;I have opted to use the &lt;code&gt;publish.php&lt;/code&gt; add-on provided with PHP iCalendar, rather
than add the WebDAV module to Lighty. For our modest requirements it works
very well. We now have full read/write access to our calendar by using the
&lt;a href="http://www.mozilla.org/projects/calendar/"&gt;Lightning&lt;/a&gt; extension for
Thunderbird and read only access via the PHP iCalendar web interface. Viewing
the calendar via the web interface requires a login first and the calendar
publishing is protected by Lighty authentication using htdigest.&lt;/p&gt;
&lt;p&gt;Lastly, because our calendar is a nice open standard I have options as to how I
might sync it with my mobile phone. More on that when I figure it out.&lt;/p&gt;</description><summary>Creating a self-hosted shared calendar</summary></item><item><title>Conslidated RavenCore HOW-TOs</title><link>https://blog.wimpys.world/posts/conslidated-ravencore-how-tos/</link><pubDate>Fri, 18 Aug 2006 12:37:07 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/conslidated-ravencore-how-tos/</guid><description>&lt;p&gt;I have reorganized and consolidated my Debian and Ubuntu HOW-TOs for &lt;a href="http://sourceforge.net/projects/ravencore/"&gt;RavenCore&lt;/a&gt; 0.2.3.&lt;/p&gt;</description><summary>RavenCore documentation for Debian &amp;amp; Ubuntu</summary></item><item><title>RavenCore 0.2.3 on Debian and Ubuntu</title><link>https://blog.wimpys.world/posts/ravencore-0.2.3-on-debian-and-ubuntu/</link><pubDate>Thu, 17 Aug 2006 10:53:53 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/ravencore-0.2.3-on-debian-and-ubuntu/</guid><description>&lt;p&gt;I have updated my HOW-TO for installing &lt;a href="http://sourceforge.net/projects/ravencore/"&gt;RavenCore&lt;/a&gt;
on Debian (at the request of the RavenCore developer) and added a HOW-TO for
installing RavenCore on Ubuntu. The are still some minor compatibility issues
with Debian and Ubuntu and these HOW-TOs have been sent to the RavenCore
developer to help document the outstanding incompatibilities.&lt;/p&gt;</description><summary>Updated Debian &amp;amp; Ubuntu documentation for RavenCore</summary></item><item><title>RavenCore 0.1.5 on Debian</title><link>https://blog.wimpys.world/posts/ravencore-0.1.5-on-debian/</link><pubDate>Sat, 29 Apr 2006 19:18:15 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/ravencore-0.1.5-on-debian/</guid><description>&lt;p&gt;I have updated my HOW-TO for installing &lt;a href="http://sourceforge.net/projects/ravencore/"&gt;RavenCore&lt;/a&gt;
0.1.5 on Debian. I&amp;rsquo;m pleased to report that the RavenCore developer has been
very responsive to my feedback and has significantly improved &amp;ldquo;out of the box&amp;rdquo;
Debian compatibility in this release. The are still some minor compatibility
issues and I&amp;rsquo;ve&amp;rsquo; sent feedback to the developer in the hope that things will
continue to improve with RavenCore 0.1.6.&lt;/p&gt;</description><summary>New RavenCore. New documentation for Debian users</summary></item><item><title>Today I have been mostly lovin' Munin</title><link>https://blog.wimpys.world/posts/today-i-have-been-mostly-lovin-munin/</link><pubDate>Fri, 07 Apr 2006 17:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/today-i-have-been-mostly-lovin-munin/</guid><description>&lt;p&gt;Here&amp;rsquo;s the blurb from the authors&amp;hellip; &lt;a href="http://munin.projects.linpro.no/"&gt;Munin&lt;/a&gt;
surveys all your computers and remembers what it saw. It presents all the
information in in graphs through a web interface. Its emphasis is on plug and
play capabilities. After completing a installation a high number of monitoring
plugins will be playing with no more effort. Using Munin you can easily
monitor the performance of your computers, networks, SANs, and quite possibly
applications as well. It makes it easy to determine &amp;ldquo;what&amp;rsquo;s different today&amp;rdquo;
when a performance problem crops up. It makes it easy to see how you&amp;rsquo;re doing
capacity wise on all limited resources.&lt;/p&gt;</description><summary>Munin offers simple system monitoring graphs</summary></item><item><title>Flexion.Org Server Migrated</title><link>https://blog.wimpys.world/posts/flexion.org-server-migrated/</link><pubDate>Tue, 04 Apr 2006 15:20:29 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/flexion.org-server-migrated/</guid><description>&lt;p&gt;Today Flexion.Org was successfully migrated to a new server. I&amp;rsquo;ve been using
the same shared host for over 7 years but these days I really need much better
control over my server, mostly for spam/virus protection of e-mail but also to
ensure that periodic upgrades don&amp;rsquo;t screw up my website.&lt;/p&gt;
&lt;p&gt;So this time I opted for a virtual dedicated server and I had a choice of all
the popular Linux distros, which I can re-install via a web interface at will
in a few seconds. I choose. If you are looking for a low cost virtual dedicated
server then take a look at &lt;a href="http://www.quantact.com"&gt;Quantact&lt;/a&gt;.&lt;/p&gt;</description><summary>After 7 shared on a shared host it&amp;rsquo;s time for a VPS</summary></item><item><title>RavenCore 0.1.4 on Debian</title><link>https://blog.wimpys.world/posts/ravencore-0.1.4-on-debian/</link><pubDate>Wed, 22 Mar 2006 18:02:05 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/ravencore-0.1.4-on-debian/</guid><description>&lt;p&gt;I set up my new server to use &lt;a href="http://sourceforge.net/projects/ravencore/"&gt;RavenCore&lt;/a&gt;
so that managing my domains and e-mail accounts for friends and family will be
as easy as possible. RavenCore is designed for use on CentOS primarily and
therefore RavenCore 0.1.4 requires some tweaking in order to get it fully
working and compatible with Debian.&lt;/p&gt;
&lt;p&gt;I have been sharing my feedback with the RavenCore author and when RavenCore
0.1.5 is released &amp;ldquo;out of the box&amp;rdquo; Debian compatibility should be a reality.&lt;/p&gt;</description><summary>Managing virtual hosting on Debian with RavenCore</summary></item><item><title>RavenCore 0.0.6 on Debian</title><link>https://blog.wimpys.world/posts/ravencore-0.0.6-on-debian/</link><pubDate>Thu, 05 Jan 2006 11:24:41 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/ravencore-0.0.6-on-debian/</guid><description>&lt;p&gt;I have been testing a few virtual hosting control panels the last couple of
days and I am deeply impressed with &lt;a href="http://sourceforge.net/projects/ravencore/"&gt;RavenCore&lt;/a&gt;,
so much so I will most likely use it for a project I am planning. However,
Debian is my server distro of choice and RavenCore needs a little tweaking in
order to work seamlessly with Debian. I have been keeping some notes that
explain how to get RavenCore to play nicely with Debian.&lt;/p&gt;
&lt;p&gt;I have submitted my notes in the RavenCore Forums and agreed to assist the
author with any future testing to work toward better &amp;ldquo;out of the box&amp;rdquo; Debian
integration.&lt;/p&gt;</description><summary>Virtual hosting on Debian with RavenCore</summary></item></channel></rss>