Category Archives: Linux

The Sniping Tool in Gnome

For the uninitiated, it’s a nifty tool I’ve seen being used on Vista that lets you select an area of the screen to take a screenshot of, instead of the entire screen; and it’s been lying around on Gnome all this while! To try it out:

  1. System → Preferences → Keyboard Shortcuts → Add
    • Name: Snipe
    • Command: gnome-screenshot -ai
  2. Apply; then click on your new entry to configure a shortcut key

This binds your shortcut-key to the Gnome Screenshot tool, being started in the -a(rea) and -i(nteractive) mode. If you prefer seeing the sniping crosshairs directly instead of an interactive dialog, use gnome-screenshot -a as the command instead.

Quick Fix: Natty, Ubuntu Classic and Compiz

If you’re reading this, you must be a Unity reject: the ones who upgraded to Natty and are now left in the cold after being told their hardware’s just too yesterday. If you’re beginning to miss your wobbly windows and other frills on Ubuntu Classic, give this quick hack a try:
Continue reading

The Samsung Galaxy 3, Android, USB and Linux

This is a hack to get the Samsung Galaxy 3 to mount as a USB drive on Linux. For some reason, it doesn’t react to being plugged in to my computer, apart from a meek beep and an indication that it’s slyly sucking power from the USB port.

  1. Disconnect your phone from the computer.
  2. Settings -> About Phone -> USB Settings -> Ask on connection
  3. Settings -> Applications -> Development: Check both USB debugging and Stay awake.
  4. Dial *#7284# to open PhoneUtils.
  5. Set both the UART and USB modes to PDA instead of Modem.
  6. Connect the phone to the computer.
  7. You should now receive some sort of USB notification on your phone; you know what to do from here.

This worked for me! Do post in your comments if it worked for you too, or not.

You may need to change the PhoneUtils settings back to the old ones when using your phone as a USB modem.

Verilog On Linux: Defenestrating Modelsim

This tutorial’s to the victims of the Modelsim user experience, forced to design hardware in chains and gracefully handle the precious rear end of the popular musty racehorse that’s Mentor Graphics’ stable-star. If you’re on Linux, freedom’s a nice option.

Defenestrate /diˈfɛnəˌstreɪt/ (verb) : to throw (a person or thing) out of a window. The word originated from a couple of incidents in Prague, back in the 14th century, when a bunch of guys stormed in and tossed seven town officials out the window (quite literally).

I’ll walk you through the steps to start coding in Verilog on your Linux box:

Continue reading

Getting Android Sources Behind A Restrictive Proxy

I’ll have to assume you’re suffocated by both the following bottlenecks in getting the Android Open Source Project code:

  • Blocked git:// protocol and port
  • A limit on the amount you’re allowed to download

The Android sources amount to around 6GB in total, so anonymous proxy programs like Your-Freedom will choke up after a fixed time limit; and repo sync (git) does not resume downloads between projects; though you may resume from the last project you downloaded. To smoothen out the rough edges, do this:

  1. Set your git proxy using this command, replacing what’s necessary: git config –global http.proxy
  2. Follow the steps here until you reach Getting The Files: this is the part that won’t work behind a restrictive proxyy.
  3. Switch to the directory where you initially ran repo init -u on the command line and then type in ls -a; you should be able to see a .repo folder. If you don’t, it means your repo init -u failed for some reason.
  4. Type in gedit .repo/manifest.xml and change line 4 to read: fetch=””
  5. Type in gedit .repo/repo/repo and change line 5 to read: REPO_URL=’’
  6. Download the modified repo script here and replace your old repo script with the modified one.
  7. Continue with Getting The Files at the Android Open Source Project website and things should be working fine.

Image Credits: Android Stickers

apt-fast: Accelerate Apt-Get Downloads

apt-fast accelerates your apt-get downloads using axel as a download manager. Axel segments the downloads and fetches them from multiple servers; typical download manager stuff. The developer claims an increase in speed up to 26 times. To use this:

A. Install apt-fast

1. Add ppa:tldm217/ to your Software Repositories
2. sudo apt-get update
3. sudo apt-get install apt-fast

B. Configure Your Proxy

1. sudo gedit /etc/axelrc
2. Look for the line:

# http_proxy =

Change this to:

http_proxy =

Ensure you remove the leading “#” and replace “” with your own proxy address and port.

3. Save and close gedit

C. Try it out

sudo apt-fast update
sudo apt-fast upgrade
sudo apt-fast install <your package here>

Cell Phone + Bluetooth = Webcam!

wireless webcam

While I’m posting the instructions specifically for Linux boxes, a little perseverance should have you running it on any box that’s supported! What you’ll need is:

1. A Linux/Windows Box
2. A Symbian/Android/Windows Mobile 6 Phone
3. The Smartcam DEB
4. The Smartcam Source
5. The file for your cell phone, you can select the one you need from here
6. The Smartcam Kernel Module Patch

Continue reading