Friday, May 15, 2009

Installing adobe flash plugin on Ubutnu 9.04 ( Jaunty )

I found a way to install the adobe flash plugin on my ubuntu box. Till now I was trying to install the .deb package from the adobe site which is named as (ubuntu 8.04+ ) and it alway got installed but never worked! So here's a way:
  1. Download this package.
  2. Close your firefox.
  3. Open it with your archive manager and extract it in you home directory.
  4. Open a terminal and type: $~/install_flash_player_10_linux/flashplayer-installer
  5. Follow the instructions and do a 'yes' when it says that the plugin will be installed in your home directory in the .mozilla folder.
Done! :)

Saturday, May 2, 2009

Idea Netsetter on Ubuntu Jaunty Jackalope : Step by step procedure

It took some time but I managed to configure the Idea Netsetter wireless USB plug and surf device on my Ubuntu laptop. It wasn't as tough as I had thought. Here's the procedure:

Step 1. Write the following in your /etc/wvdial.conf file, save and close:


[Dialer Defaults]
Modem=/dev/ttyUSB0
Baud = 460800
Init 1 = AT+CGMM
Init 2 = AT+CMEE=1
Init 3 = ATE0
Init 4 = AT^HS=0,0
Init 5 = AT+CFUN?
Init 6 = AT+CLCK="SC",2
Init 7 = AT+CPIN?
Init 8 = AT+CLCK="SC",2
Modem Type = USB MODEM
Phone=*99#
Username = idea
Password = idea
Dial Command=ATDT
Stupid Mode=1
ISDN=0

APN = internet


Step 2. Add the following lines to your /etc/network/interfaces file:

iface ppp0 inet ppp
provider ppp0
auto ppp0


It would look something like this (only the encircled part is important):




Step 3. Restart the network services by the following command:

$ sudo /etc/init.d/networking restart

Step 4. Go to System-> Administration -> Network. You'd see something like this:

Uncheck the 'Wired' connection (disable it). Now go to the properties of Point to point connection do the following settings in the respective tabs:

[GENERAL]:
  • Check on 'Enable this connection'
  • Connection type: PPPoE
  • Username: idea
  • password: idea
[MODEM]:
  • Ethernet interface: eth0
[OPTIONS]
  • Check 'Set modem as default'
  • Check 'Use the internet service provider nameservers'
  • Check 'Retry if connection breaks'

Step 5. Again restart the network connection (step 3).

Step 6. Plug in your Idea Netsetter in one of the USB ports and run the following command in your terminal:

$ sudo wvdial



That's it .. if everything's fine wvdial would show your new Local and Remote IP address for the idea connection.

Have fun.

Wednesday, April 1, 2009

Useful command to edit .conkyrc

Friends this is a simple command I use whenever I edit my conkyrc file:

$while true; do conky -q -i 10; sleep 3; done

Starting conky this way kills it and restarts it after every 3+10*n seconds, where n is the update interval mentioned in your conkyrc file. So, you can open ~/.conkyrc file in your editor run the above command. You would see the changes on the conky right on your desktop as it is restarted again and again. (please dont forget to keep saving the file as you edit it to make this thing work).

By the way, I have edited a conkyrc file i found on a webiste and finetuned it !! My conky is simply amazing now :) I'd post the file in my next post (and a snapshot of my desktop).

Friday, March 20, 2009

Switching to ( or changing ) static IP address on Ubuntu Intrepid

Today, somehow the network of my college got reconfigured or something, and all subnets got changed hostel wise. Hence, the network wasn't being accessed by the old IP addresses. Now, in the earlier versions of Ubuntu (before Intrepid) it was relatively easy to change the static IP addresses from the Network Manager in the panel, but Intrepid onwards, this intreface has been changed and I had been wondering for a while how to do it. Now, today, since it was an absolutely desperate situation, I finally figured a way out.

Solution:
  • Open the file /etc/network/interfaces in your favourite editor:

        $ sudo gedit /etc/network/interfaces


You would find something like this:


auto lo
iface lo inet loopback



iface eth0 inet static
address 10.4.1.41
netmask 255.0.0.0
auto eth0



  • If you don't find the last 4 lines in this file, then your network configuration is set to dynamic IP. So, add these four lines to the end of this file. And, if your see these lines, it means your have previously set your IP address to static. Now, to change your static adderss, change the address given below the line 'iface eth0 static' (here, 10.4.1.41)to whatever address u want.

  • Finally, restart the networking service by the command:

      $sudo /etc/init.d/networking restart

  • Verify the change by the command:

$ip addr

You would see the new IP address in the eth0 section!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now, I stumbled upon this solution when I was checking out the man pages of 'ip' and related commands and then I tried the command for restarting the network. When it didn't work, I opened the file /etc/init.d/networking and found that that the script uses the files in the /etc/network directory. There I found the file named 'interfaces' and upon opening it, I knew this was what I was searching for!

Wednesday, March 18, 2009

Problems in installing Netbeans IDE 6.5 on Ubuntu Intrepid [solved]

I had some problems installing the Netbeans IDE 6.5 on Ubuntu Intrepid. After running the file netbeans-6.5-python-linux.sh in the terminal, there was an error:

net beans lexical error or unexpected token, expected valid token

If you are facing similar problems, refer to earlier post :
JAVA Swing and AWT applications freezing in Ubuntu
The solution to this problem is the same as mentioned in the above post. Though I had been using Netbeans 6.1, the configuration had changed somehow! Anyways, after following the instructions, the problem should get solved.

Happy Netbean-ing ..