<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Debian Addict</title>
    <link>https://debianaddict.com/</link>
    <description>Recent content on Debian Addict</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Wed, 24 Nov 2021 18:18:39 +0000</lastBuildDate>
    <atom:link href="https://debianaddict.com/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Using WireGuard with OSPF and Bird</title>
      <link>https://debianaddict.com/2021/11/24/using-wireguard-with-ospf-and-bird/</link>
      <pubDate>Wed, 24 Nov 2021 18:18:39 +0000</pubDate>
       <guid isPermaLink="false">https://debianaddict.com/?p=152</guid> 
      <description>&lt;p&gt;I&amp;rsquo;ve long used OpenVPN&amp;rsquo;s PtP tunnels to set up star-style network topologies across the WAN, with dynamic routing set up using OSPF/Quagga.&lt;/p&gt;
&lt;p&gt;WireGuard is new, allows simpler configuration, and is measurably faster than OpenVPN, so naturally I wanted to switch to it.&lt;/p&gt;
&lt;p&gt;However, WireGuard seems to be aimed at smaller, simpler use cases, with its AllowedIPs configuration option being used to set up both static routes, as well as a form of allowlist regarding what traffic is allowed to flow through the tunnel. With this, I would have needed to hard code all subnets across the network in each end&amp;rsquo;s AllowedIPs, which would have prevented taking advantage of routing protocols to dynamically set up routes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Live increasing a KVM VM&#39;s root partition</title>
      <link>https://debianaddict.com/2019/10/18/live-increasing-a-kvm-vms-root-partition/</link>
      <pubDate>Sat, 19 Oct 2019 00:52:36 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=142</guid> 
      <description>&lt;p&gt;My mailserver&amp;rsquo;s root partition has gotten really full lately, and I didn&amp;rsquo;t want to incur downtime by taking it down to enlarge offline:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@mail:~# df -hT
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Filesystem     Type      Size  Used Avail Use% Mounted on
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/dev/vda2      ext4       19G   17G  1.2G  94% /
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I run my VMs on KVM and I use an LVM LV for each VM, and according to a &lt;a href=&#34;https://serverfault.com/a/724156&#34;&gt;SO post&lt;/a&gt;, it is possible to increase the size partitions within a VM online, so let&amp;rsquo;s go for it:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Phanteks p400s Custom Liquid Cooling Loop</title>
      <link>https://debianaddict.com/2017/11/10/phanteks-p400s-custom-liquid-cooling-loop/</link>
      <pubDate>Sat, 11 Nov 2017 00:59:55 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=126</guid> 
      <description>&lt;p&gt;I&amp;rsquo;ve been building computers/servers for roughly 11 years now&amp;ndash;first build in 2006 was an Athlon 64 3800+ with a Geforce 6600&amp;ndash;and I&amp;rsquo;ve always only cared about the components themselves, less so what the case or innards look like.&lt;/p&gt;
&lt;p&gt;I hit a sort of &amp;ldquo;midlife crisis&amp;rdquo; where I wanted to make my home box look really cool. At the time it had 6 hard drives&amp;ndash;two mdadm raid1 arrays + 2 SSDs carved using LVM&amp;ndash;and I wanted to upgrade to a case with a window, as I was using a windowless &lt;a href=&#34;http://nanoxia-world.com/en/products/cases/deep-silence-series/deep-silence-4/217/deep-silence-4-dark-black?c=44&#34;&gt;Nanoxia Deep Silence 4&lt;/a&gt;. The DS4 is a great case but it&amp;rsquo;s not meant for flashyness. When I built it I hadn&amp;rsquo;t cared about cable management so it was a mess on the inside.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fixing Bluetooth audio in Ubuntu Xenial</title>
      <link>https://debianaddict.com/2017/11/05/fixing-bluetooth-audio-in-ubuntu-xenial/</link>
      <pubDate>Sun, 05 Nov 2017 22:50:32 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=119</guid> 
      <description>&lt;p&gt;I have a &lt;a href=&#34;https://www.amazon.com/Sony-SRSX5-Portable-Bluetooth-Speakerphone/dp/B00I053ICY?th=1&#34;&gt;Sony bluetooth speaker&lt;/a&gt; I usually use with iPhone and Macbooks. I&amp;rsquo;ve wanted to use it with my Ubuntu Xenial (4.4.0-93-generic) desktop for a long time but never got around to getting a bluetooth dongle or an RCA cable.&lt;/p&gt;
&lt;p&gt;Today I went to Fry&amp;rsquo;s to get some cables for another project and finally decided to grab a USB Bluetooth dongle. I picked up a &lt;a href=&#34;https://www.sabrent.com/product/BT-UB40/usb-bluetooth-4-0-micro-adapter-pc-v4-0-class-2-low-energy-technology&#34;&gt;Sabrent BT-UB40&lt;/a&gt; as it claims to have Linux support.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Win7 KVM VGA Passthrough (gtx 750)</title>
      <link>https://debianaddict.com/2015/07/21/nvidia-gtx-750-kvm-vga-pass-through/</link>
      <pubDate>Wed, 22 Jul 2015 02:21:15 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=100</guid> 
      <description>&lt;p&gt;I have a Win7 qemu VM passed a gtx 750 and a keyboard+mouse, and the following is a rough guide, inspired from other similar guides which didn&amp;rsquo;t quite work for me or weren&amp;rsquo;t informative enough.&lt;/p&gt;
&lt;h4 id=&#34;background&#34;&gt;Background:&lt;/h4&gt;
&lt;p&gt;I&amp;rsquo;m running 64bit Debian Jessie with Qemu/kvm from stock apt. I&amp;rsquo;m not using libvirt for, as the older version in Debian&amp;rsquo;s apt does not support -cpu kvm=off among other things. This is a file server/VM host that I choose to use headless, and now it also functions as a very capable gaming rig thanks to virtualization.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Moving from Android to iPhone/iOS</title>
      <link>https://debianaddict.com/2014/08/18/moving-from-android-to-iphoneios/</link>
      <pubDate>Mon, 18 Aug 2014 07:27:14 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=85</guid> 
      <description>&lt;p&gt;My last iPhone was in 2009, and I switched after around a year when I got sick of AT@T, which used to be the sole carrier for iPhones. Since then I used and loved the Motorola Droid and its &lt;a href=&#34;http://en.wikipedia.org/wiki/Droid_Razr_M&#34;&gt;Motorola successors&lt;/a&gt;. Yesterday, I took the plunge and got an iPhone 5S. Despite the iPhone 6 coming out next month, the feeling of nostalgia was too overbearing to make me want to wait.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Deleting SVN Revisions</title>
      <link>https://debianaddict.com/2014/04/26/deleting-svn-revisions/</link>
      <pubDate>Sun, 27 Apr 2014 03:43:55 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=79</guid> 
      <description>&lt;p&gt;Say you have a large SVN repo with 617 commits. You want to physically delete the last 6 so you&amp;rsquo;re back to r611. You do not want the data contained in these revisions to exist so &lt;code&gt;svn revert&lt;/code&gt; is not appropriate.&lt;/p&gt;
&lt;p&gt;The most elegant way of killing off r612-r617 is to make a SVN dump up until revision r611 and then restore from it.&lt;/p&gt;
&lt;p&gt;Dump the server-side SVN folder and then move it aside:&lt;/p&gt;</description>
    </item>
    <item>
      <title>desktop notifications for irssi nick highlights</title>
      <link>https://debianaddict.com/2014/01/09/irssi-desktop-notifications-with-fnotify-and-xmessage/</link>
      <pubDate>Thu, 09 Jan 2014 08:36:49 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=74</guid> 
      <description>&lt;p&gt;I am a long term user of screen+irssi, a quite common way of using IRC for unix-inclined people neckbeards. One problem with this approach is that you will not be notified of events such as nick highlighting and PMs outside of your terminal window.&lt;/p&gt;
&lt;p&gt;A quick hack is to use the fnotify irssi script to write highlights to a text file, and then a quick shell one liner to continually read events (lines) from this file and alert you via the gui. This post assumes basic knowledge of irssi, which I&amp;rsquo;m not going to cover here.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Realtime stats of dd</title>
      <link>https://debianaddict.com/2013/04/30/realtime-stats-of-dd/</link>
      <pubDate>Tue, 30 Apr 2013 19:51:56 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=64</guid> 
      <description>&lt;p&gt;There are at least two ways of getting the progress of the &lt;code&gt;dd&lt;/code&gt; command. One is sending the &lt;code&gt;dd&lt;/code&gt; command the -USR1 kill signal, which will cause it to print out its current progress to stderr:&lt;/p&gt;
&lt;p&gt;kill -USR1 `pidof dd`&lt;/p&gt;
&lt;p&gt;The other way is to examine the fdinfo file (either 0 or 1) for the dd process under /proc to see how much data has currently been copied. This is more efficient and way faster than sending dd a signal as it&amp;rsquo;s pulling directly from /proc and instead of waiting for &lt;code&gt;dd&lt;/code&gt; to catch the signal.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Drastically increase mkfs.ext4 speed</title>
      <link>https://debianaddict.com/2013/04/01/drastically-increase-mkfs-ext4-speed/</link>
      <pubDate>Mon, 01 Apr 2013 14:13:47 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=61</guid> 
      <description>&lt;p&gt;Every now and then, you might want to create an ext4 filesystem on a block device spanning several terabytes, and this is almost always a really long process, taking up to several hours or even days.&lt;/p&gt;
&lt;p&gt;There is a little known trick that can significantly reduce the amount of time needed to create ext4 filesystems:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mkfs.ext4 -E lazy_itable_init=1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The lazy_itable_init flag is default on newer versions of e2fsprogs, and the above snippet works on systems as old as Centos5.&lt;/p&gt;</description>
    </item>
    <item>
      <title>su&#43;screen: &#34;Cannot open your terminal &#39;/dev/pts/0&#39; - please check.&#34;</title>
      <link>https://debianaddict.com/2013/03/08/gnu-screen-cannot-open-terminal-when-you-su-to-a-user/</link>
      <pubDate>Fri, 08 Mar 2013 10:47:46 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=56</guid> 
      <description>&lt;p&gt;Quick tip this time.&lt;/p&gt;
&lt;p&gt;Often enough, one is logged in as root and decides to su - to an underprivileged user. Due to the tty for the root shell being owned by the user root, the su&amp;rsquo;d environment is unable to run screen:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;root@whitegirl:~# su - joe joe@whitegirl:~$ screen Cannot open your terminal &#39;/dev/pts/0&#39; - please check. joe@whitegirl:~$ &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This is resolved by setting the owner of the terminal device to the target user before running su, so the user then has write privileges on the pseudo teletype device:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Diskless Debian Linux booting via dhcp/pxe/nfs/tftp/aufs</title>
      <link>https://debianaddict.com/2012/06/19/diskless-debian-linux-booting-via-dhcppxenfstftp/</link>
      <pubDate>Wed, 20 Jun 2012 00:58:12 +0000</pubDate>
       <guid isPermaLink="false">http://debianaddict.com/?p=48</guid> 
      <description>&lt;p&gt;Want to boot a (possibly minimal) installation of Debian off the network using a read-only NFS share as the root filesystem, such that each netbooted machine has / mounted read-only over NFS and all writes are done to memory? Read on!&lt;/p&gt;
&lt;p&gt;This assumes you are using a Linux computer as your router, which will be running Debian and hosting the local version of Debian we will be serving to clients which are PXE booting. This could be seen as a second part of my &lt;a href=&#34;https://debianaddict.com/2012/06/19/linux-as-a-router-with-iptables-bind9-and-dhcpd/&#34; title=&#34;Linux as a router with iptables, bind9, and dhcpd&#34;&gt;tutorial on making a Debian box a router&lt;/a&gt; , as it assumes your local network is still 10.0.0.0/24 and the dhcp/nfs/tftp server&amp;rsquo;s IP is 10.0.0.1&lt;/p&gt;</description>
    </item>
    <item>
      <title>Linux as a router with iptables, bind9, and dhcpd</title>
      <link>https://debianaddict.com/2012/06/19/linux-as-a-router-with-iptables-bind9-and-dhcpd/</link>
      <pubDate>Wed, 20 Jun 2012 00:10:07 +0000</pubDate>
       <guid isPermaLink="false">http://blog.joegillotti.com/?p=41</guid> 
      <description>&lt;p&gt;There are some benefits to using a Linux box as a router. You get full access to the power of iptables, can host stuff directly on the box itself rather than having forwarding ports to other machines on your network, can torrent with way more peers as the box will support more connections than a usual home router, use the router itself as a fileserver/seedbox, etc.&lt;/p&gt;
&lt;p&gt;The network setup this entails is as follows: [Modem] - [Linux box/router] - [switch] - [other machines on your network]&lt;/p&gt;</description>
    </item>
    <item>
      <title>Installing php-gtk on Debian</title>
      <link>https://debianaddict.com/2011/09/15/installing-php-gtk-on-debian/</link>
      <pubDate>Thu, 15 Sep 2011 05:46:08 +0000</pubDate>
       <guid isPermaLink="false">http://blog.joegillotti.com/?p=27</guid> 
      <description>&lt;p&gt;So you want to install PHP&amp;rsquo;s gtk extension. Compared to GTK&amp;rsquo;s bindings for Perl and Python, PHP&amp;rsquo;s apparently is under-maintained and is a pain to install as the developers have not accommodated changes in &lt;code&gt;libtool&lt;/code&gt;. We will need to install various development packages, temporarily tweak &lt;code&gt;libtool&lt;/code&gt;, and then attempt compiling &lt;code&gt;PHP-GTK&lt;/code&gt; and enabling it, provided that didn&amp;rsquo;t fail.&lt;/p&gt;
&lt;p&gt;This tutorial was performed on vanilla 64-bit Debian Squeeze 6.0.2 successfully. Something similar will hopefully work for Ubuntu and other Debian derivatives.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fixing a dpkg io error</title>
      <link>https://debianaddict.com/2011/08/18/fixing-a-dpkg-io-error/</link>
      <pubDate>Fri, 19 Aug 2011 03:20:10 +0000</pubDate>
       <guid isPermaLink="false">http://blog.joegillotti.com/?p=13</guid> 
      <description>&lt;p&gt;I encountered a &lt;code&gt;dpkg&lt;/code&gt; related error a little while ago while upgrading packages on my Ubuntu Lucid server. I couldn&amp;rsquo;t find a fix on the internet and spent a little while investigating the cause. You can see from the command output that &lt;code&gt;dpkg&lt;/code&gt; failed to properly install the Linux kernel package:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;root@aeroplane:~# apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: linux-image-2.6.32-33-generic 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. Need to get 0B/31.6MB of archives. After this operation, 0B of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 178303 files and directories currently installed.) Preparing to replace linux-image-2.6.32-33-generic 2.6.32-33.70 (using .../linux-image-2.6.32-33-generic_2.6.32-33.71_i386.deb) ... Done. Unpacking replacement linux-image-2.6.32-33-generic ... dpkg-deb: subprocess paste killed by signal (Broken pipe) dpkg: error processing /var/cache/apt/archives/linux-image-2.6.32-33-generic_2.6.32-33.71_i386.deb (--unpack): short read in buffer_copy (backend dpkg-deb during `./lib/modules/2.6.32-33-generic/kernel/drivers/ata/sata_mv.ko&#39;) No apport report written because the error message indicates a dpkg I/O error Running postrm hook script /usr/sbin/update-grub. Generating grub.cfg ... Found initrd image: /boot/initrd.img-2.6.32-33-generic Found linux image: /boot/vmlinuz-2.6.32-32-generic Found initrd image: /boot/initrd.img-2.6.32-32-generic Found linux image: /boot/vmlinuz-2.6.32-31-generic Found initrd image: /boot/initrd.img-2.6.32-31-generic Found linux image: /boot/vmlinuz-2.6.32-30-generic Found initrd image: /boot/initrd.img-2.6.32-30-generic Found linux image: /boot/vmlinuz-2.6.32-29-generic Found initrd image: /boot/initrd.img-2.6.32-29-generic Found linux image: /boot/vmlinuz-2.6.32-28-generic Found initrd image: /boot/initrd.img-2.6.32-28-generic Found linux image: /boot/vmlinuz-2.6.32-27-generic Found initrd image: /boot/initrd.img-2.6.32-27-generic Found linux image: /boot/vmlinuz-2.6.32-26-generic Found initrd image: /boot/initrd.img-2.6.32-26-generic Found linux image: /boot/vmlinuz-2.6.32-25-generic Found initrd image: /boot/initrd.img-2.6.32-25-generic Found linux image: /boot/vmlinuz-2.6.32-24-generic Found initrd image: /boot/initrd.img-2.6.32-24-generic Found linux image: /boot/vmlinuz-2.6.32-21-generic Found initrd image: /boot/initrd.img-2.6.32-21-generic Found memtest86+ image: /boot/memtest86+.bin done Errors were encountered while processing: /var/cache/apt/archives/linux-image-2.6.32-33-generic_2.6.32-33.71_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) root@aeroplane:~#&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Usually ignored features of suPHP</title>
      <link>https://debianaddict.com/2011/08/19/usually-ignored-features-of-suphp/</link>
      <pubDate>Fri, 19 Aug 2011 02:15:17 +0000</pubDate>
       <guid isPermaLink="false">http://blog.joegillotti.com/?p=4</guid> 
      <description>&lt;p&gt;This is not a generic suPHP tutorial as there are many, many of them already; it is merely an attempt to debunk commonly preached misinformation regarding suPHP with cold, hard facts.&lt;/p&gt;
&lt;h2 id=&#34;suphp-also-works-with-lighttpd&#34;&gt;suPHP Also works with Lighttpd&lt;/h2&gt;
&lt;p&gt;suPHP does not just consist of the Apache module mod_suphp; it also consists of a setuid root binary (located at /usr/local/sbin/suphp on FreeBSD; /usr/lib/suphp/suphp on recent Ubuntu releases) which does the actual work. mod_suphp is just an interface to this binary. The binary also works with lighttpd provided you use a configuration file in lighttpd such as the following:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Contact</title>
      <link>https://debianaddict.com/contact/</link>
      <pubDate>Fri, 19 Aug 2011 02:10:31 +0000</pubDate>
       <guid isPermaLink="false">http://blog.joegillotti.com/?page_id=2</guid> 
      <description>&lt;p&gt;Joe Gillotti&lt;/p&gt;
&lt;p&gt;Contact me on &lt;a href=&#34;https://linkedin.com/in/joegillotti&#34;&gt;LinkedIn!&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
