liltux

while(Alive){Code();}

Archive for May 2008

How to Install AmazonMP3 on 64-Bit Xubuntu

without comments

1. Download the Amazon MP3 installer from here.

2. Force install the package using this command
sudo dpkg -i –force-architecture amazonmp3.deb

If steps 3 and 4 are not followed then you might get the following error

“amazonmp3: error while loading shared libraries: libgtkmm-2.4.so.1: cannot open
shared
object file: No such file or directory”

3. Download the getlibs package and install the package using this command
sudo dpkg -i getlibs-all.deb

4. Install the 32 bit libraries required by amazon MP3 by typing this command
sudo getlibs /usr/bin/amazonmp3

you can now start the program by typing amazonmp3 in a console window or start the program from Applications > network > Amazon Mp3 Downloader.

Written by suresh_ning

May 29, 2008 at 10:28 pm

Posted in ubuntu

DIY speaker stand

with 3 comments

I came across this article on Make today about a speaker stand made out of these really cheap torchiere  lamps available from Walmart, Funny coincidence was that I had the same kind of idea a couple of months ago. I just removed the lamp holder and the wires as well as the plastic lamp shade. I also shortened the total height of the lamp by about a foot by removing one of the pipes. Here is  my version of the speaker stand.

The Finished speaker stand

close up of the speakers

The lamp has a very sturdy base

The total cost for this project  was about $24. the cheapest speaker stands on Amazon is about $33 and they are quite flimsy.

Looks like walmart wised up and has discontinued the model of the lamp that I used. You can still use a model similar to this which is available at walmart (brick-and-mortar) stores for about $14.

Written by suresh_ning

May 21, 2008 at 7:23 pm

Posted in DIY

Update: DD-WRT on a belkin F5d7230-4 v2000

without comments

Tried installing DD-WRT on the Belkin router again last week and I finally got it working. here is how you do it.

1. Download the image here

2. Download the TFTP server here

3. On a windows XP computer set the Ethernet card to 10 Mbps half duplex in network card properties.

4. set your IP:192.168.2.2, subnet:255.255.255.0 and gateway to 192.168.2.1. hook up the computer to the router using a LAN cable, do not plug the LAN cable into the WAN port on the router, plug it into one of the 4 LAN ports.

5.Disable any WiFi ports on your computer before continuing.

6. open the TFTP executable, set server address to 192.168.2.1, leave password blank, browse to the location of the firmware and finally set the number of retries to 25 and click upgrade

7. unplug the power connector on the router and plug it back in all the lights should flash on the router. If all goes well the TFTP uploader should indicate that firmware upload was successful

if nothing happened then wait until the WLAN light goes on and and all other lights except for the power, WLAN and only one of the LAN lights (where you have hooked up the router to the computer) are on. unplug and replug the router (might take up to 20 retries to work).

The Wired ports are disabled in this version as it has a different switch chip so only wireless will work after flashing. all the ports can either work as WAN ports or LAN ports. If you want the router to function as a regular WiFi router with one WAN port and no LAN ports (you cannot plug in computers to the LAN ports)

  1. Connect to the router over wireless. The default SSID is dd-wrt. You will be able to access the GUI at 192.168.1.1
  2. Telnet to 192.168.1.1 In Windows type telnet 192.168.1.1 in command prompt. The default username is root and password is admin
  3. To use all ethernet ports as WAN, set

nvram set wan_to_lan=yes
nvram commit
reboot

To restore setting to LAN (default)

nvram unset wan_to_lan
nvram commit
reboot

If you want to use the router as a 4 port LAN switch without WiFi then follow the instructions below

  1. Connect to the router over wireless. The default SSID is dd-wrt. You will be able to access the GUI at 192.168.1.1
  2. Telnet to 192.168.1.1 In Windows type telnet 192.168.1.1 in command prompt. The default username is root and password is admin
  3. Type the following commands:
nvram set Belkin_ver=2000
nvram commit
reboot

The default setting is for all the ports to act as LAN ports.

I got most of the above information here.

Written by suresh_ning

May 19, 2008 at 5:19 pm

Posted in hacks

Xubuntu based digital picture frame

with one comment

I have been planning to build a digital picture frame from an old Dell Inspiron laptop for the last few months. I finally got enough time after my exams to start this project. While such projects abound on the net what I had in mind has not been done so far. My idea was to build a photo frame from an old  laptop but the twist was that I wanted to be able to administer it remotely through a custom application that i intended to write in QT4. I first tried going the Juicebox way but that didn’t work so well as I had to convert images into a proprietary format, The screen size is really tiny due to these reasons I decided to convert the old laptop that I had  into a Picture frame/media center/backup device.

The first thing that I did was to research how other people had built their picture frames. I wanted to build this with  minimum modifications such that if I wanted to I could turn this back into its original from again.

I got most of the information i needed from this site. I first referred to the Dell Inspiron 8000 service manual to figure out how to take apart the laptop. you have to be pretty careful with the ribbon cable connection the LCD to the rest of the main board as it is very delicate and can be damaged easily. I ended up damaging this cable but luckily was able to find a replacement on eBay. I ordered the cable and got working on trying to fit the screen onto the wooden frame that I bought at Walmart for $5. The idea here was to remove the plastic bezel and the backing around the screen, flip the screen around and mount it back on the L-shaped frame such that when the laptop is closed the screen would be on the top much like a tablet PC. A wooden frame can then be easily fixed on top of the screen.

here are a few pictures from the disassembly

After  waiting for a week the cable finally arrived and I was able to start with the frame again. since the screen would be covering the keyboard and the trackpad as well as the button for switching on/off the computer. I scavenged the toggle switch from an old paper shredder and soldered it to the track pads on the power switch.

Next I decided to remove the battery pack as it was adding extra weight to the frame, besides it was pretty old and didn’t hold a charge. To test that all this disassembly had not damaged anything critical I decided to power it up and check if Ubuntu could be installed on to this computer. I first tried Ubuntu but this was too memory hungry for the meager configuration of this laptop. I tried Fluxbuntu next but found it lacking some applications that I used frequently. I finally settled on Xubuntu as I had the same thing on my primary laptop.

once the installation was complete, I started to put together the frame. The white cardboard sheet on the frame had to be resized to fit the 15″ screen on the laptop. I started with a similar sized cardboard and did a rough cut, once I was satisfied by the result I transfered the same dimensions to the white cardboard. Next I used a couple of screws and pieces of wood to fit the laptop onto the wooden frame.

Since this model did not come with a WiFi adapter I decided to buy a USB WiFi adapter. I settled on the zyxel G-202 as it is supported in Linux and setup is very easy. I also decided to get a powered USB hub as the laptop has only 2 USB ports and I might decide to hook up more devices or decide to charge other devices of the USB hub. I settled on the Belkin 4 port USB hub. Now that the frame was put together the next step was to configure the frame, I will detail the software configuration in my next post.

Written by suresh_ning

May 4, 2008 at 10:32 pm

Posted in DIY, Linux