Mount NFS in Winblows (Windows)

0) Make sure you have Windows 7 Enterprise or Ultimate. The others won’t work. 1) Add the “Services for NFS” feature throguh the Program and Features thing in Control Panel 2) run something like: mount -o anon \192.168.1.101\mnt h: where h: is the drive letter the mount will be mounted to. Pretty awesome. This should probably work for directories as well. More here.


Proxying Linux through SOCKS with tsocks

tsocks provides a way to tunnel individual tty sessions or everything on a linux box through a SOCKS 4⁄5 proxy. What this enables you to do is use a SSH tunnel to proxy programs and applications through etc.. What do you need? apt-get install tsocks edit /etc/tsocks.conf local = 192.168.0.0/255.255.255.0 server = 127.0.0.1 server_type = 5 server_port = 12345 Here, we assume we have created a dynamic ssh tunnel using lets say the following command:

Continue reading ↦

Install only the dependencies for a package via Apt

sudo apt-get install $(apt-cache depends | grep Depends | sed “s/.*ends:\ //” | tr ‘\n’ ‘ ‘) Where is the name of the package you want to install the dependencies for. A very cool command indeed especially when you want to build something from src instead of having your package manager download it. From here.


Creating an automated "torrentflow" with rutorrent/rtorrent

For a long time, I have been wishing for an easier way to get torrents added to a remote box, download there, and then securely transfer them to my home server. There are multiple things to think about when doing this like the following: 1) The torrents must stay on the remote box and continue seeding. 2) They must be unrared when i go to view them on my home server.

Continue reading ↦

A proper "filemanager" for rutorrent

Been doing a lot of rutorrent stuff lately since I decided its finally time to tune this to my liking for easily managing files and transfers to other servers etc.. I’ve known about this plugin for a while. It’s called filemanager and it’s extremely useful as a file browser right in rutorrent hence you don’t need to ssh in or ftp to manage directories and files. It has a bunch of other features like compression, deletion, and virtually anything else you could think of.

Continue reading ↦

Titlebar DL/UL details for rutorrent

A nifty little plugin that displays the current dl and ul speeds on your title bar: https://github.com/SanKen/rutorrent-titlebar


lftp not following symlinks through sftp

Yeah I sat on this issue for a little while. I was running it like this: lftp -u user,pass -e “mirror –parallel=10 -La /derp /herp; quit” sftp://awesomename.com:2343 as I wanted to do a mirror from a remote sftp server to my local /herp directory with some awesome parallel downloading!!! However, the remote directory has symlinks that I expected lftp to actually follow and download…but it wasn’t (note that I double checked perms and everything was fine).

Continue reading ↦

"Mark for Rsync" symlink creating rutorrent plugin

So I’m developing a setup that involves my server at home to pull on the fly downloads on a remote box. The idea is that I want to be able to mark a certain torrent for rsync/tranfer down to my home machine by having it watch a directory on the remote server called “ready”. In this directory should be symlinks made by a rutorrent plugin that I call by right clicking the torrent I want transfered and just selecting “Mark for Rsync” or the like.

Continue reading ↦

Flushing DNS caches

In Linux, there are multiple ways to do this depending on the caching daemon you’re running (nscd, dnsmasq, etc..). I will defer to this askubuntu question for the best explanation of all scenarios but will outline the most common below: sudo /etc/init.d/dns-clean restart OR sudo service dns-clean restart Mac OS X dscacheutil -flushcache Windows (pretty much all of them): ipconfig /flushdns


Mapping UID/GID with NFS exports (and multiple filesystems)

So I recently had to share out NFS shares which needed to be readable and writeable by the user mounting them. This is actually quite easy with NFS. Essentially, you are telling nfs that any changes by any client user are mapped to a single user on the server: /mnt 192.168.1.0/24(rw,all_squash,insecure,no_subtree_check,anonuid=1000,anongid=1000) I obviously don’t have to tell you how dangerous this can be…so unless you are sure you want to do this aka you trust everyone on the network you are sharing this out to, don’t do it.

Continue reading ↦