I’ve long used OpenVPN’s PtP tunnels to set up star-style network topologies across the WAN, with dynamic routing set up using OSPF/Quagga. WireGuard is new, allows simpler configuration, and is measurably faster than OpenVPN, so naturally I wanted to switch to it. However, WireGuard seems to be aimed at smaller, simpler use cases, with its AllowedIPs configuration option being used to…
My mailserver’s root partition has gotten really full lately, and I didn’t want to incur downtime by taking it down to enlarge offline: root@mail:~# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/vda2 ext4 19G 17G 1.2G 94% / I run my VMs on KVM and I use an LVM LV for each VM, and according to a SO post , it is possible to increase the size partitions within a VM online,…
I’ve been building computers/servers for roughly 11 years now–first build in 2006 was an Athlon 64 3800+ with a Geforce 6600–and I’ve always only cared about the components themselves, less so what the case or innards look like. I hit a sort of “midlife crisis” where I wanted to make my home box look really cool. At the time it had 6 hard drives–two mdadm…
I have a Sony bluetooth speaker I usually use with iPhone and Macbooks. I’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. Today I went to Fry’s to get some cables for another project and finally decided to grab a USB Bluetooth dongle. I picked up a Sabrent BT-UB40 as it claims to…
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’t quite work for me or weren’t informative enough. Background: I’m running 64bit Debian Jessie with Qemu/kvm from stock apt. I’m not using libvirt for, as the older version in Debian’s apt does not support -cpu kvm=off among…
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 Motorola successors . 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.
Say you have a large SVN repo with 617 commits. You want to physically delete the last 6 so you’re back to r611. You do not want the data contained in these revisions to exist so svn revert is not appropriate. The most elegant way of killing off r612-r617 is to make a SVN dump up until revision r611 and then restore from it. Dump the server-side SVN folder and then move it aside:
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. 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)…
There are at least two ways of getting the progress of the dd command. One is sending the dd command the -USR1 kill signal, which will cause it to print out its current progress to stderr: kill -USR1 `pidof dd` 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…
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. There is a little known trick that can significantly reduce the amount of time needed to create ext4 filesystems: mkfs.ext4 -E lazy_itable_init=1 The lazy_itable_init flag is default on newer versions…
Quick tip this time. 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’d environment is unable to run screen: root@whitegirl:~# su - joe joe@whitegirl:~$ screen Cannot open your terminal '/dev/pts/0' - please check. joe@whitegirl:~$ This is resolved by setting the owner of the terminal…
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! 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…
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. The network setup this entails…
So you want to install PHP’s gtk extension. Compared to GTK’s bindings for Perl and Python, PHP’s apparently is under-maintained and is a pain to install as the developers have not accommodated changes in libtool . We will need to install various development packages, temporarily tweak libtool , and then attempt compiling PHP-GTK and enabling it, provided that didn’t fail.…
I encountered a dpkg related error a little while ago while upgrading packages on my Ubuntu Lucid server. I couldn’t find a fix on the internet and spent a little while investigating the cause. You can see from the command output that dpkg failed to properly install the Linux kernel package: root@aeroplane:~# apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading…
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. suPHP Also works with Lighttpd 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…