Suramya's Blog

Visit Who am I?

December 14, 2014

Cleaning your Linux computer of cruft and duplicate data

When you use a computer and keep copying data forward everytime you upgrade or work with multiple systems it is easy to end up with multiple copies of the same file. I am very OCD about organizing my data and still I ended up with multiple copies of the same file in various locations. This could have happened because I was recovering data from a drive and needed a temp location to save the copy or forgot that I had saved the same file under another directory (because I changed my mind about how to classify the file). So this weekend I decided to clean up my system.

This was precipitated because after my last system reorg I didn’t have a working backup strategy and needed to get my backups working again. Basically I had moved 3 drives to another server and installed a new drive on my primary system to serve as the Backup drive. Unfortunately this required me to format all these drives because they were originally part of a RAID array and I was breaking it. Once I got the drives setup I didn’t get the chance to copy the backup data to the new drive and re-enable the cron job that took the daily backup snapshots. (Mostly because I was busy with other stuff). Today when I started copying data to the new Backup drive I remembered reading about software that allowed you to search for duplicate data so thought I should try it out before copying data around. It is a good thing I did because I found a lot of duplicates and ended up freeing more than 2 GB of space. (Most of it was due to duplicate copies of ISO images and photos).

I used the following software to clean my system:

Both of them delete files but are designed for different use cases. So let’s look at them in a bit more detail.


FSlint is designed to remove lint from your system and that lint can be duplicate files, broken links, empty directories and other cruft that accumulates when a system is in constant use. Installing it is quite easy, on Debian you just need to run the following command as root

apt-get install fslint

Once the software is installed, you can either use the GUI interface or run it from the command line. I used the GUI version because it was easier to visualize the data when seen in a graphical form (Yes I did say that. I am not anti-GUI, I just like CLI more for most tasks). Using the software was as easy as selecting the path to search and then clicking on Find. After the scan completes you get a list of all duplicates along with the path and you can choose to ignore, delete all copies or delete all except one. You need to be a bit careful when you delete because some files might need to be in more than one location. One example for this situation is DLL files installed under Wine, I found multiple copies of the same DLL under different directories and I would have really messed up my install if I had blindly deleted all duplicates. has a nice FSlint manual that explains all the other options you can use. Check it out if you want to use some of the advanced features. Just ensure that you have a good backup before you start deleting files and don’t blame me when you mess up your system without a working backup.


BleachBit is designed for the privacy conscious user and allows you to get rid of Cache, cookies, Internet history, temporary files, logs etc in a quick and easy way. You also have the option to ensure that the data deleted is really gone by overwriting the file with random data. Obviously this takes time but if you need to ensure data deletion then it is very useful. Bleachbit works on both Windows and Linux and is quite easy to install and use (at least on Linux, I didn’t try it on Windows). The command to install it on Debian is:

apt-get install bleachbit

The usage also is very simple, you just run the software and tick the boxes relevant to the clutter that you want gone and BleachBit will delete it. It does give you a preview of the files it found so that you can decide if you actually want to delete the stuff it identifies before you delete it.

Well this is all for now. Will write more later.

Thanks to How to Sort and Remove Duplicate Photos in Linux for pointing me towards FSlint and Ten Linux freeware apps to feed your penguin for pointing me towards BleachBit.

– Suramya

December 12, 2014

My new toy: the Moto 360 smart watch

So I have a new toy that I am super excited about and It is a birthday gift from me to myself. :) I have been wanting to get a smartwatch since last year when the Samsung gear came out but when I saw the gear I didn’t like the way it looked so ended up not buying it. Now that I have bought the Moto 360, I am glad I didn’t buy the gear because it beats the Gear hands down, no questions asked. I have been using it for 3 days now and I love it.

The Moto 360 with the default Face

The initial setup of the watch was easy, I just had to download an app on my phone and follow the prompts, took me about 2 mins (excluding the time to download the app) to complete the pairing and setup. Once the app was installed the watch downloaded the latest firmware and upgraded automatically after I charged the battery which was surprisingly very fast. Once the upgrade completed it was connected to my S5 and has been working like a charm.

The default apps on the 360 are the Fitness apps, ability to receive any notifications on the watch and control the music app and the Google camera app from the watch. It has built in voice recognition which works fantastically great and is integrated with Google Now. Tonight we tried it out in a restaurant where we had gone out for a team outing and it had no trouble with the voice recognition even with the background noise. In addition to the default apps so far I have also installed a flashlight app, a dictation app and another camera app that lets me use the watch as a viewfinder for the camera on my phone. I keep finding cool new apps for the watch every day so will probably be installing a lot more stuff on it in the near future.

As I said earlier Voice recognition works for most of the things I would want to do on the watch, like use to to initiate a call or dictate a reply to an SMS, start an app etc. For the rest the touch screen works fine. Took me a bit of time to figure out how to run the new apps I installed because that isn’t really intuitive initially (or maybe I was just sleep deprived) but once I figured that out I was good to go. I think it would have made sense for them to put this in the help section.

The watch is not bulky at all and is lighter than my other watch. Lots of folks have complained about its size online but I didn’t find that to be an issue. However the battery life could have been better. In my daily use I am down to about 35% charge by the time I am ready to sleep after starting with a full charge in the morning. The charger looks nice and the charging is fast, however since the watch has a custom charger it means that I have to make sure that I carry it with me when I am traveling because none of my other chargers work with it. Sure, I can buy another charger for the office but it’s a pain.

The other issue that I noticed with it is that the heart rate sensor is crap. Every single time I have tried to check my heart rate (using both fit and the Moto software) it has failed with a sensor time out message, although Vinit did manage to get it to work once so I know the sensor works.

For the most part I have been using the watch to read my SMS/Whatsapp/Email messages without having to pull out my phone and monitoring my step count. Apparently I walk around a lot more than I thought which is good. :) Also the ability to decline calls with a message from the watch is very handy when your phone is at your desk and you are at another desk working on something or in a meeting.

I am planning on installing the Analog keyboard for Android that I blogged about earlier but that will be over the weekend when I have some breathing room to experiment. I will share my findings and experiences going forward so if you are interested do keep an eye on the blog for new posts.

Well, this is all for now. It’s time for me to crash for the night. Will post more later.

– Suramya

November 17, 2014

Microsoft launches free Visual Studio Community 2013

Microsoft is on a roll recently and is becoming more and more active in the open source community by releasing many of it’s core tools and programs as open source, making them free and cross platform. Earlier this week news came out that MS had released a significant portion of their .NET framework under a permissive opensource license on Github. Before everyone had even finished digesting this news MS posted news that it is releasing Visual Studio Community 2013 as a free download for individual and small business use (teams of up to five people).

This is a brilliant move on their part to keep their market share. One of the major issues people had when developing software for Windows using Visual studio was the cost associated with the licenses. When I was in school and wanted to get a licensed copy of Visual Studio for my use I was told to go buy a pirated copy because the original cost was way too high (Rs 60,000 if you want to know). Keep in might that this is before the Dot com and Tech boom so that amounted to a couple of months of salary for most folks. As you can imagine most people went for the pirated version instead which costed Rs 100 or so. Now fast forward a few years to when open-source started taking off, now the development environment could be downloaded off the internet legally for free. A lot of folks including me switched to open source development tools. The only people still using MS Studio were either using their work/university licenses or were on pirated copies.

Now with .NET opensourced and available for use on Linux, Mac and windows, making a free version of Visual Studio available makes it easier for people to start working on and building software in the MS ecosystem.

I know of a few people who will find this news exciting. For the rest of us, this doesn’t impact us directly but definitely shows which way the wind is blowing in the software world and highlights the fact that FOSS is here to stay. :)

Official Announcement: Microsoft Blog

– Suramya

PS: I know that Visual Studio express has been around for a while but it was a severely limited version as opposed to the Community version just released.

November 6, 2014

The Internet Arcade releases over 900 classic arcade games for the browser

Filed under: Computer Software,Interesting Sites,Techie Stuff — Suramya @ 1:46 AM

If you are like me then you must have spent a ton of money and time playing classic arcade games like Frogger, Pac-man plus etc over many long afternoons. A few days ago (2 days to be exact) over 900 of such games were released online and the best part is that you can play them right in the browser. Say good-bye to the possibility of doing any productive work for the next couple of days. :)

Check it out at: The Internet Arcade.

Of the roughly 900 arcade games (yes, nine hundred arcade games) up there, some are in pretty weird shape – vector games are an issue, scaling is broken for some, and some have control mechanisms that are just not going to translate to a keyboard or even a joypad.

But damn if so many are good enough. More than good enough. In the right browser, on a speedy machine, it almost feels perfect. The usual debates about the “realness” of emulation come into play, but it works.

Obviously, a lot of people are going to migrate to games they recognize and ones that they may not have played in years. They’ll do a few rounds, probably get their asses kicked, smile, and go back to their news sites.

A few more, I hope, will go towards games they’ve never heard of, with rules they have to suss out, and maybe more people will play some of these arcades in the coming months than the games ever saw in their “real” lifetimes.

Well this is all for now. I am off to relive some memories and to try getting the stupid frog across the road without getting squished.


– Suramya

November 3, 2014

Use Excel to Watch Movies at Work

Before I start, let me make it very clear: I don’t recommend that you do this at work. If you get fired for doing this then it is your fault. I take absolutely no responsibility. That being said, lets proceed. I found this very interesting because it shows that no matter how much you try to secure a system there is always a way around any restrictions people put in the system and the only truly secure system is one encased in a ton of concrete at the bottom of the ocean. In this case a user figured out how to use the VBA (Visual Basic for Applications) functionality in Excel to go around the restrictions placed on his computer by his company’s IT department to watch movies at work.

From a Hacker/ingenuity point of view I love this, but from a work perspective I don’t think this was such a good idea. If you really wanted to watch a movie at work then there are easier and safer options to do so; watching it on your phone or tablet is one option that comes to mind. I seriously doubt that his IT admin or his manager would be amused when they find out about this hack.

Behind the cascade of rectangles and in the land of the Excel macro, [AyrA_ch] took advantage of the program’s VBA (Visual Basic for Applications) functions to circumvent the computer’s restrictions. Although VBA typically serves the more-complex-than-usual macro, it can also invoke some Windows API commands, one of which calls Windows Media Player. The Excel file includes a working playlist and some rudimentary controls: play, pause, stop, etc. as well as an inspired pie chart countdown timer.

Hacking things is fun, but folks need to realize that they need stop being stupid about it. I am sure there is a lot of things I can do at work that I might not be supposed to but just because you can, doesn’t mean that you should.

Check out the original post on Reddit for a link to the file and a more detailed explanation.

Thanks to for the story.

– Suramya

October 11, 2014

Microsoft Research releases Android Wear keyboard prototype

Filed under: Computer Hardware,Computer Software,My Thoughts,Techie Stuff — Suramya @ 5:33 PM

Yes, you read that correctly. Microsoft Research has released the prototype of it’s new keyboard for Android Wear which allows you to input text by drawing letters on the watch face. This is not the first time MS has released stuff of android and I am quite happy with this trend.

The idea of inputting text by drawing characters is not new. If you remember the Palm OS devices they had a keyboard call Graffiti which used a sort of shorthand of letting you input text. I used to love it and had it installed it on my Galaxy Nexus and used it quite often till it got replaced by the voice typing option on the Google Keyboard.

As touch screens are getting smaller, soft keyboards are getting harder to use. For example, on a 1.6” smart watch, a soft keyboard with 10 keys across has keys less than 1/8” (3mm) wide. Speech recognition can be a viable alternative, but unfortunately, speaking into your watch is not always appropriate or even possible (noisy environments).

With the Analog Keyboard Project we are exploring handwriting recognition for text input on small touch screens. Handwriting, unlike speech, is discreet and not prone to background noise. And unlike soft keyboards, where many keys have to share the small touch surface, handwriting methods can offer the entire screen (or most of it) for each symbol. This allows each letter to be entered rather comfortably, even on small devices. In fact, it has been shown that some handwriting systems can be used without even looking at the screen . Finally, handwriting interfaces require very little design changes to run on round displays, which are becoming increasingly popular.

Interestingly the developers decided to support lower-case alphabets instead of upper-case in this first release. I would have thought they would go the other way as it is easier to identify upper case letters for the most part than lower-case.

Please keep in mind that this is a prototype (Alpha) release so it possibly has a lot of bugs and is not production ready. Plus it can’t be installed on the watch from Google Play, it has to be side loaded and the process is a bit complicated so might not be the best option for non-tech savvy folks right now.

Project Page: The Analog Keyboard Project
Download: Analog Keyboard for Android Wear

– Suramya

October 1, 2014

Erase Your iCloud Drive by reseting your iPhone settings

This has not been a good month for Tech, we are getting issues across the board on all fronts. First we had the iCloud hack (or fappenning as it was called). Then ShellShock hit followed by this new issue in iOS 8 where if you reset your iPhone settings your backups on the cloud also go bye-bye. Ouch! I hope if you are using the iCloud (or any cloud for that matter) you have a duplicate copy of your data somewhere else or you better not try to reset your phone.

The bug creeps up when you select Settings > General > Reset > Reset All Settings. Typically, this is just supposed to reset your network settings to give your iOS device a clean slate to work with, but it turns out it’s also deleting all your files from iCloud Drive.

The issue was discovered by members of the MacRumors forum. It just shows that no matter how much we try nothing is perfect and there are bugs in every system. The best way to ensure that don’t loose data is to store it in multiple places using multiple types of media/services.

I have a lot of my data backed up on a RAID array and am in the process of setting up a cloud server at home to sync it across different locations. I am not using Dropbox or other such services because I don’t want to trust my data to any external provider. Earlier I used to back up data on DVD’s/CD’s. Before that I used to store the data on Floppy disks.

Fun fact, I was recently looking for some code that I had written around 1998 and ended up searching through my old Floppy disks to find it. Interesting thing was that about 90% of the disks still worked and I was able to read the data without issues. (Well… no issues other then the fact that I had to buy a USB floppy drive as my mother board doesn’t have a connector for floppy drives…) I don’t see the same level of longevity in either DVD’s or CD’s so far. I haven’t tried Blue-Ray disks yet because of the cost and the fact that HDD’s are getting cheaper / larger.

Thanks to for the initial links.

– Suramya

July 10, 2012

Wireless finally working on the RaspberryPi

I finally managed to get wireless working on the RaspberryPi (Go Me!). The main problem was that when I connected the USB dongle directly to the Pi it wasn’t getting enough power, then when I connected it via a powered USB hub I kept getting error messages. If you like you can read about me previous attempts to get the wireless working here and here. Since I didn’t feel like spending more time on this (and because I thought that the problem was caused because of a problem with the USB hub) I stopped fiddling with it. Then I had to switch the SD card I was using in the Pi (the old one was the card from my camera so I replaced it with another 2GB card) so I downloaded and installed Debian Wheezy on it.

Turns out that the Wheezy doesn’t have the same problems with the USB hub as Squeeze did, so all I had to do was plug in the stuff, install the firmware and I was ready to go. To configure the wireless network I installed wicd as I have found that to be the easiest way to work with wireless networks, I also installed the wicd-curses interface so that I could configure the system from the commandline. The commands I used were as follows:

apt-get install wicd wicd-curses

Then ran wicd-curses to configure the Wifi, That’s it. Now my Pi is connected to net wirelessly and I have one less cable running across my desk, which is great.

Well this is all for now. Will post more later, its time for me to hit the sack. Have an early day tomorrow.

– Suramya

June 27, 2012

Installing Citrix on the RaspberryPi + Other Pi related stuff

One of the use cases I had for the Pi was to use it as a portable thin client that could connect to a Windows server using Citrix. After a little experimentation I managed to get Citrix installed on the Pi and was able to connect to a Windows server successfully and work. I documented the steps I followed to get this to work on the RaspberryPi forum, check out the Tutorial (How to get Citrix working on a RaspberryPi) if you are interested.

Getting Citrix working was a positive thing, other than that I spent some time trying to install my Wireless network dongle (3Com OfficeConnect Wireless. Model # 3CRUSB10075) on the Pi and hit some hurdles in the process. If you remember the last time when I tried this I thought the problem was caused because the card was pulling more power than the Pi could provide. So I went and got a Belkin powered USB hub (I needed it anyways as I need to connect more than 2 USB devices to the Pi).

When I initially plugged in the hub everything seemed to work without issues and the keyboard + mouse I had connected to the hub worked without issues. So I plugged in the wireless dongle, as soon as I plugged it in my mouse and keyboard both stopped working. I then unplugged the dongle and both the mouse & keyboard started working again. I then plugged the keyboard directly on the Pi and the dongle on the hub, now the keyboard worked but the mouse had issues. Looking at the /var/messages log I saw a ton of error messages like the following:

Jun 21 18:10:46 raspberrypi kernel: DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK
Jun 21 18:10:46 raspberrypi kernel:
Jun 21 18:10:46 raspberrypi kernel: DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK
Jun 21 18:10:46 raspberrypi kernel:
Jun 21 18:10:46 raspberrypi kernel: DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK
Jun 21 18:10:46 raspberrypi kernel:
Jun 21 18:10:46 raspberrypi kernel: DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK

Tried a few things but nothing worked and since it was 3:30 in the morning I gave up and crashed for the day. Will try again when I have had some sleep and get some dedicated time to play with the Pi.

– Suramya

March 13, 2012

Running Ubuntu on my Samsung Galaxy Tablet

Filed under: Computer Software,My Thoughts,Techie Stuff — Suramya @ 1:25 AM

A couple of days about someone at work posted an email asking about Ubuntu Installer and if anyone has tried installing Ubuntu on their android tablet using this software (Sorry I can’t remember your name but am too lazy to log on to the office network to find it in my mailbox). I volunteered to try it out because it sounded interesting and cool to have. This application allows you to install Ubuntu on your Android device on top of android so you basically run Ubuntu as a virtual machine in Android in a fairly easy and painless way. From the FAQ on the developer’s website:

This projects aim is to bring a range of linux distros to your android device through a method known as ‘chroot’, see it has running a linux distro within a virtual machine on your phone. You can access this virtual machine and run it on your phone without causing any damage to your device, or having to overwrite anything. Why might you want this? well my apps are designed to make the install and set up process as easy as possible (more so in the paid apps) while still giving you some flexibility. Once you have the distro up and running then you can pretty much run and install any linux software you like (so long as there is a arm port or it is not architecturaly depenedent), sure there a very few big benefits over what android itself can do but it is still pretty dam cool. (and with the free ubuntu version, hey its free does it matter how useful you find it?)

Excluding the time it took to download the image, the entire process took me about 15 mins to complete so that shows you how easy & painless the entire process was. The app install takes only a couple of mins to complete and that just installs an application that gives you a user guide that explains the install process and buttons to make the process faster/easier. The process is pretty self explanatory and if you can read and understand English and are good at following directions you should have no issues installing. :) I would really suggest downloading the images over WiFi because downloading 1.5GB over 3G/GPRS would be too expensive.

There are two Ubuntu images available: small (450 MB) & large which is 1.5 GB, The large image requires 3.5GB of free space on your SD card and the small image requires 2.5GB of free space. If you have enough free space then you should go for the larger image as that has the Gnome desktop plus a ton of applications pre-installed the small one doesn’t have too many applications preinstalled and uses LXDE instead of GNOME. I first downloaded the small image to try it out and liked it enough to download the large image.

The install itself was mostly painless. I did hit an issue initially when unzip’ing the small image file (the download is a zip file) with AndroZip as it was unable to handle the large file size and kept dying on me. Using Astro’s built in extractor resolved this and I was then able to extract the file without issues. Learning from this I downloaded the large image on my computer and copied it over after extracting it there (plus I didn’t have enough space to download the file and then extract it on the tablet itself).

After you download the images, the instructions tell you to install the VNCViewer app and the Terminal app. It wasn’t clear from the instructions that VNC was required to see the actual desktop itself so I didn’t install it at first thinking that it was so that you could connect to your laptop/desktop from the tablet. I later realized that it was needed to see the Gnome desktop so installed it and was good to go.

The process to start Ubuntu is a bit cumbersome and requires you to type a few commands on the Terminal but once you start the image and select the desktop size you are good to go and all you have to do then is connect to the Ubuntu desktop using VNC. The desktop is fairly responsive and you can zoom in for more fine grained control. The large image installs the Gnome desktop and not Unity but still it was pretty good. Would have liked to get the option to try Unity as it was designed for tablets but I guess that is a project for another day.

Below is an photo of the tablet with the Gnome desktop running on it (Taking a photo of a tablet at night is a pain because the flash reflects off the screen and without the flash the photo is too dark):

Ubuntu on Samsung Galaxy Tab
Ubuntu on Samsung Galaxy Tab

Over all a cool and geeky thing to have, but not really that useful in the long run unless you have programs that you want to be able to work on when not at your desktop and don’t have net access.

– Suramya

Older Posts »

Powered by WordPress