Pages

Wednesday, November 2, 2011

How to check your ISO file for consistency before buring it to disc or using it

When you download a large file from the Internet there are chances that the file might be corrupted during download. In order to be sure that the download is not corrupt, you can always check its md5sum.
In case of Ubuntu you can check the md5 sum of the downloaded ISO using
md5sum ubuntu-11.10-desktop-i386.iso
Then you can compare this with the md5sum available on the website, from where you downloaded the ISO.

Tuesday, November 1, 2011

Windows not loading from grub menu, what to do??

Sometimes it may happen that after reinstalling grub the windows does appear in the grub menu but does not load. In case you are having such a problem. Boot up your Ubuntu machine
sudo su
update-grub

Friday, October 28, 2011

WIFI not working in Ubuntu, what to do??

If you have freshly installed Ubuntu and your WIFI is not working. Then you should follow the following steps to hopefully resolve the issue.

Goto System/Administration/Hardware drivers
See if any drivers are listed as to be installed or in-active.
In this case install the driver and enable it.
Restart the machine

Still not fixed
If you are using a Compaq machine in particular and also in general, sometimes the drivers are installed properly but the wireless button does not work. In that case, first check to see if it is disabled. If it is, then enable it
rfkill list all
# if blocked =yes then try next command
rfkill unblock all

If you still have problems then may be you have the BCM4312 802.11 b/g rev(01) card
Check to see if this is the case

lspci | grep 802

If in the output you see BCM4312 802.11 b/g rev(01)
then you should do the following

sudo su
apt-get update
apt-get install bcmwl-kernel-source
shutdown -r now
You would need to restart for the changes to be effective
If in case it still does not work, check in system/administration/hardware drivers. A LINUX STA driver will be listed. Click on install and then enable it in the same menu. After this reboot.
Everything should be working now! :)

Thursday, October 27, 2011

Setting up network proxy in Ubuntu

Method 1: (Graphical)
Note: You probably need this method in order for the synaptics packet manager or the updates to work.
If you are using the Internet behind a proxy, then in order for apt and other Internet related services to work you need to configure an Internet proxy. You can do this using System/Preferences/Network Proxy. After setting the IP and port click on Apply system wide. It will ask for your password twice. You are done.
A note on the above method: This method works but when un-setting the proxy you may run into bugs, so this method is not recommended.

Manual Method (recommended)
You can set the proxy manually in the terminal (note: This method only works for applications that run in the terminal).

export http_proxy=http://192.168.1.1:8080
ftp_proxy=ftp://192.168.1.1:8080

Replace the IP and port in example with your proxy's IP and port.
Then you can test the connection using

wget www.yahoo.com
rm index.html

If wget is able to download the page it means your proxy has been configured correctly, the rm in the above command has been used to delete the test page downloaded using wget.
To unset the proxy

unset http_proxy
unset ftp_proxy

A known bug:
apt-get does not work when used with sudo, if you see that the downloading is getting stuck and not proceeding at all. You should probably use the following method


sudo su
export http_proxy=http://192.168.1.1:8080
apt-get install 

Additional notes:
If you have opened up multiple tabs of terminal,you would have to set proxy in each tab independently. This proxy setting does not hold once you close terminal.

Permanent method:
If you wish to setup proxy permanently, i.e. whenever you open up terminal the proxy is already set; then you need to make changes to your ~/.bashrc file as super user.

sudo gedit ~/.bashrc

When a window pops up enter the following lines at the very end of the file

export http_proxy=http://192.168.1.1:8080
export ftp_proxy=ftp://192.168.1.1:8080

Now you can either restart the terminal or

source ~/.bashrc

In order to remove the proxy in the future just simply comment/remove the lines you added

Special case: If you want to set proxy for all users, not just your own user, then you need to make changes mentioned above in the /etc/bash.bashrc

Installing Qt4 on Ubuntu and integrating with Eclipse

First install qt4 on Ubuntu

sudo su
apt-get update
apt-get install qt4-designer qt4-demos qt4-doc qt4-dev-tools libqt4-dev
Then you need to install the pde environment for eclipse.
Refer to my older post on seeing how to do this.
go to help->install new software -> select your package-> general tools -> plugin development environment

Then download the integration files from http://qt.nokia.com/products/eclipse-integration/
Then you need to extract the tar file and place the extracted files in the eclipse folder, if you did a standard installation using apt or synaptics package manager you will find it in /usr/lib
cd /usr/lib
tar -xvzf /qt-eclipse-integration-linux.x86-1.6.1.tar.gz
Now you need to re-start eclipse with a clean configuration
eclipse -clean

Now go to new..Project..qt

You will get an error when it starts
Click on open preferences and setup the paths as follows
After this it will ask you that a rebuild is necessary, you should say yes to this. It will also ask for changing perspective, say yes if you please :) You're done enjoy!

Monday, October 24, 2011

Fixing corrupted partition tables under LINUX

Recently while triple booting my system i ended up with a corrupted partition table and my windows drive refused to get mounted. After much search on the internet i found a very helpful utility known as "testdisk". It worked like a charm and fixed the errors in no time :) Unfortunately i installed it in a live system so now i can not find the tutorial that i followed.

Default web browser for Ubuntu 10.04 LTS

I had been working on some security projects when it just occurred to me that i should check my own firefox browser version. Although i update my distro on a regular basis. I was surprised to see that the firefox version of my browser was 3.1 whereas 7.0.1 is out now!! It came as a shock, but the moral of the story is always update your web browser manually :)

As it turns out the mozilla ppa's are not available by default for ubuntu 10.04. But you can add the ppa manually and then upgrade your firefox version.


sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get install firefox



Or you can always choose to do it manually, in that case you can download the latest version from the Firefox website and simply run it. But i had some issues with flash plug-ins in this case, a guide is given here https://help.ubuntu.com/community/FirefoxNewVersion/MozillaBuilds. I have not tried it out, but you can try it out if you need. In that case do update me of your findings :)

Hiding drive/volume icons from desktop

I prefer to have a clean desktop with no icons but ubuntu seems to like putting volume/drive icons on the desktop when they are mounted. If you want to hide the icons.
type in the terminal

gconf-editor

Now navigate to apps/nautilus/desktop. Over here un-check the volumes_visible option. There you go, its done :)

Note: you can always access your drives from places/computer :)

Sunday, October 23, 2011

Ubuntu network manager and disappering nm-applet icon

I had this strange issue with my Ubuntu install when the nm-applet icon a.k.a. network icon disappeared from the task bar. After much effort i found out a work around that was to stop network-manager application and then launch nm-applet and then restart the network-manager application.

But the solution to this is a very simple one, and as it turned out was not a bug.
If you are faced with such a situation do make sure to checkout your /etc/network/interfaces file to see that the interface is not listed. If the interface is listed in that file remove it else the network-manager wont take over that interface by default.

sudo service network-manager stop
nm-applet &
sudo service network-manager stop

Sample lines in /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.244.2
netmask 255.255.255.0
gateway 192.168.244.244
 

Comment out the interface you want network manager to take over, in this case eth0
#auto eth0
#iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.244.2
netmask 255.255.255.0
gateway 192.168.244.244
 

Then you may simply restart your pc or you can simply restart the networking using
sudo /etc/init.d/networking restart 

Wednesday, August 24, 2011

Genius G540 Universal Programmer software installation

You can download the software from here
Run setup
Disconnect programmer from PC if connected
Run setup in the folder USB_Driver
Connect the programmer and let windows automatically install the driver, you may cancel searching for driver from windows update if it is taking too long.

If still in doubt read the file setupguide.rtf

Friday, January 7, 2011