As use the same laptop in my house that use in my office, I usually have to keep chaning my proxy connection after I come back to home. In my house, I dont use a proxy but in my office I have to use one for Internet access. In firefox there is a beautiful add-on FoxyProxy which can be used for the same purpose
November 8, 2010
September 30, 2010
Connect to Cisco VPN from Ubuntu 10.04
Today I was trying to see if I can connect to office VPN from Ubuntu. Hence I tried to google and see if there is already
a solution for the same. I found that for Cisco VPN client, we need to install a package called network-manager-vpnc which is luckily available in Ubuntu repository. After that you need to create a file by any name, say remotevpn.conf in /etc/vpnc folder. In that just add the following contents in it.
Sec gateway
IPSec ID
Xauth username
Xauth password
Change the username as needed. After that just run the following command,
vpnc-connect remotevpn # here remotevpn should be replaced by the name
you had given to the conf file.
This will prompt you for a IPSec Secret password. Enter the Group password. Chances are that you might actually have a Encrypted password which you will have to convert into normal password. For that you can use the following site,
http://coreygilmore.com/projects/decrypt-cisco-vpn-password/
After entering the group password, it will prompt you for the password for the username you gave.
Enter the 4 digit password and the 6 digit RSA ID.
Thats it :). You are now connected to VPN network.
September 15, 2010
Keyboard layout changed when connecting through vnc
I have a desktop in which I have installed Debain. I connected to it using vnc from my laptop and was typing some command when I observed that the complete Keyboard layout had changed to some unknown keyboard layout. I tried re-installing but the problem still existed. So when I googled it, I found this bug report which was luckily resolved and the solution was also shared in it.
Hence all I had to do to solve the problem was to add the following line in $HOME/.vnc/xstartup before the last line /etc/X11/Xsession
'export XKL_XMODMAP_DISABLE=1' x
September 11, 2010
Skip OEM logo on boot
Whenever I tried to boot my dekstop, it always used to get stuck by showing the OEM logo on screen. I had to press ESC to skip it and get into normal boot. Hence today I ventured to see if there is some configuration in BIOS so that I could skip the OEM Logo on boot. I found that Under the boot menu, there is a configuration item, Silent Boot, which when disabled will show normal post messages and not the OEM logo.
September 8, 2010
To enable Broadcomm wireless driver in Ubuntu 9.10
I was trying SchoolOS on my laptop which is a derivative of Ubuntu 9.10. However my first problem with it was that my wireless driver was not working. I had known from my previous experience that I would have to probably install b43-fwcutter to get it working. However when I tried to install it, I found out that it was already installed. I still removed the package and installed again but still it did not help. So I googled for any help. I found a forum post where in I was suggested to try the packages given in http://www.broadcom.com/support/802.11/linux_sta.php . I downloaded the 32 bit package and followed the Readme.txt given along with the package. Within 2 minutes my network driver detected the wireless device and I was able to surf using my wireless connection.
September 3, 2010
Enter your linux system in single command line mode without knowing the root passwd
So you press ESC before the system boots up, to intercept it, and then you have to “edit the kernel parameters” in that menu there —
* Find the line that looks like:
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash
change it to
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash rw init=/bin/bash
when you set init=/bin/bash, you should get a PURE COMMAND LINE prompt and your fstab should be bypassed completely.
SO THEN, once you get there, your whole disk will be read only, so you have to do:
mount -o remount,rw /
This will give you read/write permission on root.
Now you can do whatever you want, like changing your root passwd.
Found this here when I was trying to find a solution for one of my friend.
August 6, 2010
How to checkout from cvs
how to checkout from cvs from command line.
First set the CVSROOT environment variable. In our case, let the CVSROOT be
CVSROOT = :pserver:vignesh.prabhu@cvs:/opt/cvs/reps/mmp3000
Now login to the cvs server using the following command:
$cvs login
This will prompt you for your account password. After you have successfully authenticated with password, you can checkout from the cvs server using the following command:
cvs co -r tag10 project/sub_project
where tag10 is the tag from which you want to checkout
and project/sub_project is the part of the project which you want to start checkout.
If you directly want to checkout from HEAD, then use the following command:
cvs co project/sub_project
June 24, 2010
GPG key error while doing apt-get update
I had entered a new repository path in my sources.list file and hence I did
sudo apt-get update
However I got the following error:
W: GPG error: http://hudson.gotdns.com binary/ Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9B7D32F2D50582E6
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 10975893E549B1AC
When I looked for a solution on internet, I found the following solution to add the gpg key in my system.
NOTE: This can only be done by a root user, hence in Ubuntu, u will have to do sudo su before executing these commands.
root@vignesh-laptop:gpg --keyserver pgpkeys.mit.edu --recv-key 9B7D32F2D50582E6
gpg: requesting key E549B1AC from hkp server pgpkeys.mit.edu
gpg: key E549B1AC: public key "Launchpad yorba" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
This will request key from the server mentioned in –keyserver and display whose public key it is.
After this execute the following command. This will store the the gpg key in your system as a trusted gpg.
root@vignesh-laptop:/home/vignesh# gpg --armor --export 10975893E549B1AC | apt-key add -
OK
Now do
sudo apt-get update
to successfully update from the newly added repositories.
June 17, 2010
recording feature of vim
Good article on recording feature of vim can be found in the link given below.
http://www.thegeekstuff.com/2009/01/vi-and-vim-macro-tutorial-how-to-record-and-play/
May 21, 2010
how to configure proxy for apt-get?
To configure proxy settings for apt-get or aptitude or synaptic manager, all you have to do is edit the file, /etc/apt/apt.conf .
Here you have to mention the following 3 lines::
vignesh@vignesh-laptop:~$ cat /etc/apt/apt.conf
Acquire::http::proxy “http://username:password@host:port”;
Acquire::ftp::proxy “ftp://username:password@host:port”;
Acquire::https::proxy “https://username:password@host:port”;
Once you have made the above changes in /etc/apt/apt.conf , you will be able to use apt-get, aptitude or your synaptic manager through the proxy.