Wednesday 22 June 2011

Create a Launcher manually for Unity

Today was the release of eclipse 3.7 code named Indigo. After installation I wanted a shortcut of the new eclipse on the launcher in Unity but every time I've tried the launcher would just called eclipse in the system which called the default eclipse in Ubuntu which is 3.5.

I wanted the shortcut to call my new eclipse I had installed under /opt. Here is how to:

$ gedit ~/.local/share/applications/eclipse.desktop
 And enter the following in the file:
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
StartupNotify=true
Icon=/opt/eclipse/icon.xpm
Name=Eclipse Indigo 3.7
Exec=env UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse
And save the file. Hope this helps.

I got help from here 

Enable DVD Playback

Not that I play DVD's very often but is always good to be able to play DVD's and every time that I've tried they never seemed to work in Ubuntu. I actually always thought it was a bug in Ubuntu and I never bothered to look to much into it (lazy) and always double booted into Windows to play my DVD's as I always thought this was the quickest way to get things going without going for hours through comments on forums looking for the right answer for me.

Today I've seen this post in OMG! Ubuntu which brought new light to my clueless issues with the DVD playback.

Links of interest:

Medibuntu packages - http://packages.medibuntu.org/natty/index.html
Medibuntu Documentation - https://help.ubuntu.com/community/Medibuntu#Adding%20the%20Repositories

Free VPN service providers

It's always good to have some sort of security specially when using public wi-fi networks. After doing a bit of research and trying different things here is the option that work best for me.

There is not software installation involve as Ubuntu already comes with vpn tool pre-installed. You just need to click on the network icon and select "VPN Conections->Configure VPN...", you will be greeted with a new window like this one:


The service provider I used: http://www.bestfreevpn.com/
Just enter the details as shown on the screenshot below. One the things using this service provider is that they change the password every few hours but this is not to bad of an issue. The service they provide is quite good so far.

To be able to use the vpn you just setup you are going to restart the network manager but logging out and back in again. Once you do that you will be able to log into Free vpn by clicking on the network manager on the top right.



Another good service that I haven't been able to work is "itshidden.com" which I'm giving you because you may be more lucky than me.

Thursday 2 June 2011

All about Grub 2 - Adding menu, restoring windows 7 loader, recovering grub, ...

Since upgrading to Ubuntu Natty and changing from grub to grub 2, all what I use to know about grub has been changed.

I had different problems on my pc and my netbook with the menu entries. On my pc Windows 7 would not start and on my netbook the menu option disappeared. I've been going at this for a while and I found some good websites. This is not going to be a follow step by step tutorial as all of the problems have already been solved by somebody else, so there's no need for me to rewrite them all. Instead I'm just going to post the links here as a reference.



Wednesday 1 June 2011

**UPDATED** Change the default terminal window size

I always heated the default size of the terminal window. The square size is to small to do any real work and it doesn't look right either with a wide screen, but looks a part it is not a great size for advanced users to do anything on it and always have to resize the window to suite my needs.



No more, here is a quick tip to always start the terminal window to the size of your liking. I can't remember the menu options from the all menu from gnome 2 but I'm sure any user can follow this steps. I'm using Unity.

1.- Press the super key to open the search lens and look for:
main menu
2.- Once the "Main Menu" application is running select "Accessories" on the left menu and then select "Terminal" on the second menu.

3.- Once you have the "Terminal" options is selected press the "Properties" button on the right. A new window will open with the terminal Launcher properties.

4.- Go to the "Command" entry and add this to the end of the entry:
--geometry=132x24
The finished entry should be:
gnome-terminal --geometry=132x24

5.- That's it. Close the windows and next time you launch the terminal the window will be resized. You may have to logout and log back in to work properly.


Play around with different sizes if you don't like the one I used. This should also work with other applications other than the terminal.

*********************UPDATE******************************

Since Ubuntu 11.10 the solution above doesn't work any more as Canonical have removed "Main menu" application. It doesn't seem to work either even if you install it from the Software Centre. Probably the way Unity works.

Here is a solution to change it. First go to:

~/.local/share/applications/

Use nautilus for this. Once you are in that folder locate the file for the terminal. Right click it and select "Properties" in the command entry add this as before:

gnome-terminal --geometry=132x24
That's it.

Just in case in your PC's don't have that file create a new one using Gedit an enter the following:

#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Terminal
Comment=Use the command line
TryExec=gnome-terminal
Exec=gnome-terminal --geometry=132x24
Icon=utilities-terminal
Type=Application
X-GNOME-DocPath=gnome-terminal/index.html
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-terminal
X-GNOME-Bugzilla-Component=BugBuddyBugs
X-GNOME-Bugzilla-Version=2.32.1
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
OnlyShowIn=GNOME;
X-Ubuntu-Gettext-Domain=gnome-terminal
Terminal=false