Monthly Archives: March 2013

install QGIS in ubuntu

Installing the stabel version of QGIS in Ubuntu 12.04

sudo apt-add-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install qgis

(from http://gis.stackexchange.com/questions/29094/how-to-install-qgis-on-ubuntu-12-04)

QGIS installed fine but the GRASS plugin said of some unresolvable dependencies: (Depends: GRASS641) after trying to install

~$ sudo apt-get install qgis-plugin-grass

Then tried this sugestion from

You can use ubuntugis ppa, which contains everything you need:

$ sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
$ sudo apt-get update
$ sudo apt-get install qgis

The system will take after the necessary dependencies

Your problem also suggests that you have broken dependencies for qgis. One way to fix this is to clean your cache by running in terminal (you can open the terminal with alt + ctrl + T)

$ sudo apt-get clean

or

$ sudo apt-get autoclean

and then ask apt to try and correct any broken dependencies:

$ sudo apt-get -f install

if the output is similar to :

$ 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

it means that you need some extra packages that you weren’t informed about. To install them run:

$ sudo apt-get dist-upgrade

Then tried

~$ sudo apt-get install qgis-plugin-grass
~$ sudo apt-get install python-qgis
and everything was installed fine.

Installing plug-ins:
At some point, tried to install SimpleSVG, so I can export maps as SVG, but could not install the plug-ins. It gave me the following message:
Failed to unzip the plugin package. Probably it's broken or missing from the repository. You may also want to make sure that you have write permission to the plugin directory: /home/hebert/.qgis//python/plugins

Apparently I need to give permission to be abel to write to the ~.qgis directory, which brings me

To enable permissions, type
sudo chown "your username" ~/.qgis
in the terminal.

Trying to install the plug-in first said “Host not found”, but the second time, it installed successsfully

Advertisements

ubuntu 12.04 boot with bluetooth turned off

as I do not use a bluetooth enabled device like mouse or keyboard regularly, I did not want my bluetooth on by default. It is a simple thing to turn it off, but to do every time I log in is not worth it.

Here is what worked for me:(from http://blogs.bu.edu/mhirsch/2012/07/disabling-bluetooth-on-startup-ubuntu-12-04/)

Open the following file
sudo gedit /etc/rc.local

Before the exit 0,
add

rfkill block bluetooth

I usually add some comments if I am changing the system setting this way so I know what I have been meddling with.

dualboot Windows7 and Ubuntu

The next time I get a machine without admin rights, the first I know I should do is to install Linux as a dual boot. If you are going to use only the browser, Office and may be the media player, and are fussy about dirtying your hands at the terminal, then stick to the Windows install without admin rights. Otherwise, go for a dual boot solution with any other OS. I preferred Ubuntu as a beginner for the many reasons stated all over the web.

As of Jan 2013, Quetzal Quantal was the latest release, but since Precise Pangolin has LTS (long term support) went for PP (version 12.04). I think it is more stable and probably easier to find drivers and software.

If you decide to do create a USB bootable (for me that seemed the easiest option), check http://www.ubuntu.com/download/help/create-a-usb-stick-on-windows
download the Universal USB Installer. From then it is a breeze.

Once downloaded, start the installer, and follow the steps as in the instructions page. In the select OS tab, choose whichever desktop version you are interested in. If you have not already got a iso of the distro, check “download the iso” box, select the USB drive letter (double check this part to ensure that it is USB) and hit Create.

I needed like 30 min.

I did not do a back up of my whole Windows drive, thought it is always recommended. I think if you are trying to fiddle around right at the beginning it might be OK, but no guarantees.

Restart the system and hit one of the Fn. keys (in my case it was f12, but I think it could be f2, f5, or f8, depending on the model) to enter the BIOS. There go to Boot set-up and choose to boot from USB. Deselect boot from hard disc, to be certain. Apply the changes and the system boots into Ubuntu giving two options: to try Ubuntu or install Ubuntu.

Select try Ubuntu. For the installation, an internet connection is required. In my case, the system automatically recognised the driver needed and asks if you need to install it. Install the driver only for the internet connection, as the others that may be offered are not needed right away (like the one for Graphics accelerator which I needed to install). Now the list of available networks are shown. If using WiFi does not work at this stage, use a network cable to keep it simple.

Now the OS can be installed in the machine. Click install Ubuntu, and follow the instructions. Gparted is used to create a separate partition to install Linux. I left it at the default value. Was scared of damaging my Windows files, as I hadn’t the patience to back-up 😉

hmmm. I don’t remember the next steps exactly, but installation should proceed fine. Once done, install driver (preferably stable releases) that you are offered. Click “super” — the Windows key, and type “updates”. Select software updates from the icons that show up below, and update which ever is required. From there, you are ready to go (and learn Linux 🙂 )