Category Archives: Linux and FLOSS

IPod Shuffle 4g under Linux

Project Link:

Couple of months ago, I got an Apple Ipod Shuffle 4g. Despite the presence of IPod syncing apps under Linux, my experience was annoying. Shuffle 4g changed compared to its predecessors regarding the database format and new features, so a lot of plugins and apps don’t work as expected. In this post, I will write about different ways to tackle this annoyance.

Basic Things to Know

Bah! why can’t Apple make straightforward stuffs! Anyway, here are things you should know in a nutshell. IPod’s internal software works on a defined structure in the mass storage of the IPod. The process of creating this structure may be referred to as initializing your device. For adding any content to your device, a simple copy is not enough, changes need to be made in the database (The iTunesSD file) as well.

If you want to know more about the database format, I highly encourage you to read it at
Continue reading

Handling constantly Interrupting Downloads using curl

My internet connection has an annoying problem of interrupting downloads too frequently. That way, downloading even resumable files can be tedious. Using the following one liner with curl, Life becomes much easier

until curl -C - -o "<output_file>" "<url>"; do :; done

Until makes sure the loop continues till curl returns a success status. A colon(:) is  a no operation command. This one liner can obviously be modified to suit your needs.

Moving to Nightingale

I had been using Rhythmbox since a long time. It was perfect for me, with clean interface, synced well with my Phone, had support and lyrics support. However, encountered Nightingale a day ago and completely fell in love with it to extent I am switching permanently to it.


Nightingale forked off from Songbird, when it discontinued its support for Linux. My first reaction playing with Nightingale was, “Firefox modded into a music player?”. Nightingale’s engine is based on Mozilla’s XULRunner and Firefox users will feel home.

UI: The first thing impressed me about Nightingale was its beautiful and sleek UI. Most music players with sleek and attractive UI usually have a trade off with functionality. And most players with too much functionality usually end up being ugly. Nightingale puts up lots of things in front of you while maintaining its beauty and simplicity.


Continue reading

Running Dota (1) on Linux with full customkeys

I have been running DoTA conveniently under Linux using Wine, since more than an year when I actually started playing DoTA. Everything works perfect without much effort. In this post, I explain the basic steps to get full DoTA Experience.

Configuring Wine

Very little configuration required. Might run straightaway. But there might be problems which will prevent you from switching between windows, minimizing, lose window focus, taskbar showing on top, etc. The best way to solve these is to configure wine to emulate a virtual desktop, and launch Frozen Thrones in a separate workspace. That way, you can switch between workspace conveniently using keyboard shortcuts (It is more convenient than minimizing under Windows). Execute winecfg and select Emulate Virtual Desktop under the Graphics tab. Make sure to fill up your native resolution there (or the resolution at which you will run the game). Run the game through

nimesh Warcraft III  1.26 $  wine Frozen\ Throne.exe


nimesh Warcraft III  1.26 $  wine Frozen\ Throne.exe -opengl  # If the above doesn't work for you well.

One problem that I regularly face while switching windows is that the Alt key becomes sticky, causing signalling in the map whenever I click somewhere. Keep Calm, and press Alt once again and release. This will solve it.
Continue reading

Using Hostapd with dnsmasq to create Virtual Wifi Access Point in Linux

NOTE: This is an alternative branch off from my previous Hostapd guide, which I really recommend going through before this.

In my previous hostapd guide, I used dhcpd to assign IP addresses to the clients connecting to the access point. While this works fine for most scenarios, it is an overkill to use dhcpd for such situations where normally the number of clients is 2-3, or around 20 at max. For such cases, dnsmasq is a better option.


Install dnsmasq from somewhere

# Arch Linux
sudo pacman -S dnsmasq
# Ubuntu
sudo apt-get install dnsmasq

Continue reading

Redirect TCP connections with rinetd

rinetd is a simple little redirection server which can redirect TCP connections from one IP:port to another IP:port. rinetd is simple enough to set up and run. I came across this while searching for a solution to make clients on my LAN to connect to my DC hub server running inside a virtual machine.
Installation is straightforward, download the source from here
Continue reading

Nested X sessions with Xephyr

I was searching for a way to establish a multi-seat setup for my laptop display and a monitor using a single graphics card when i came across Xephyr. (Thanks to bodhi.zazen’s post in ubuntuforums )

In this post, I have used Arch Linux with openbox running on my Lenovo Z560. The process should, however, work with all Linux Distros.

KDE session nested inside an openbox session through Xephyr

Continue reading