BitTorrent Sync

Almost everyone knows about BitTorrent Sync.
It’s a freeware but a proprietary software. Sync supports Windows/Linux/OS X platforms. As for Linux, it supports the following architectures/variants: ARM, PowerPC, i386, x64, i386 (glibc 2.3), x64 (glibc 2.3), PPC QorIQ.

And there is also a package made by the community that fits right for my Synology DS413 (the last one above). It can be easily installed after adding to the repositories list.

There’s already some resources available that share secrets publicly:

And here’s some code to produce “insecure secrets” as described here.
echo -n "Enter a passphrase: "
read password
code=`echo -n "$password" | sha1sum | xxd -r -p | python -c 'import sys, base64; print base64.b32encode('`
echo $code

Then, “cats” produces this secret: R27WAH4LQCGDFOGS7NLQYLQPXW5TRCW5


I’ve started to play with iPXE some time ago and found it useful.

I don’t have a DVD drive in my desktop PC, and I needed to increase the size of my Linux swap partition, but there was no extra space to grow to. So I decided to shrink my large /home partition and to extend the swap by the same amount of space. It could be done with GParted, but the problem was the /home always been mounted. I didn’t want to play with changing to root user, ¨live” unmounting, because my system is Linux Mint, based on Ubuntu. It’s uncommon for Ubuntu to work under root. What if I boot GParted Live via network? It’s a damn good idea! And it’s where PXE comes to play.

I use Mikrotik RB751G-2HnD as DHCP + TFTP servers, Synology DiskStation DS413 as a web server, and iPXE (undionly.kpxe at Mikrotik) as a PXE solution.

That’s how I set up iPXE:

git clone git://

Then, I created a file at ipxe/src dir called boot.ipxe with the following contents:

dhcp && route

Next, I build the loader with the script above embedded into it:

make bin/undionly.kpxe EMBED=boot.ipxe
cp bin/undionly.kpxe .

Then I upload the resulting undionly.kpxe to my Mikrotik box and do some settings with Winbox (I’d write an extra post about it one day if so needed — both for Winbox and RouterOS CLI).

That’s how the boot.php looks like:


menu Welcome to iPXE Boot Menu
item gparted GParted Live
item reboot Reboot
item exit Exit (Boot local disk)
choose target && goto ${target}



initrd gparted/initrd.img
kernel gparted/vmlinuz boot=live union=aufs config noswap noprompt fetch=

As you can see, there’s a directory called ipxe at the web server’s root and boot.php is located there, and also there’s a subfolder called gparted with the following files in it: filesystem.squashfs, initrd.img, vmlinuz.

To be continued soon…


Isida XMPP Bot

Yesterday I’ve received four WD Red HDDs (3 Tb each). Put them into my DS413, reinstalled everything from scratch to the RAID5 volume.

Have just installed Isida XMPP bot to my DS413. The first thing I tried to do is to make a friendship of Python and MySQL, but there was no luck, so I decided to give PostgreSQL a try. And after some time of searching in the Google I’ve found this and finally my bot is up and running…

Quadratisch. Praktisch. Gut.

Having fun with my Synology DiskStation DS413. Ippon UPS support sucks there, always says it’s on a battery power.

I’ve found the following package sources for my box:


And there’s a nice disk cloning tool based on Clonezilla: