Showing posts with label tip and tricks. Show all posts
Showing posts with label tip and tricks. Show all posts

Saturday 4 February 2012

Sync Firefox addons using Dropbox

I wanted to blog about this a while back but I've been to lazy to do so. I've done this a couple of month ago irritated on the fact that Firefox was unable to sync my addons across computers and I think it was a mistake on their part.

Anyway, this is very easy to do using Dropbox.

First close down Firefox and then go to:

~/.mozilla/firefox

You can use Nautilus for this, is probably faster and easier too. In there should be one folder for each user in Firefox. Go to the one you want to sync the addons with. Probably will be the one with "*.default" in it if you don't have any users in Firefox.

Within that folder will be another folder called:

extentions
Will be this folder the one we are going to sync. Cut this folder on place it in your Dropbox folder. I place mine in:

Dropbox/App_sync/Firefox
 Once you pasted the folder in the right place, right click it and select
Make link
Now cut the link and place it on the folder where we got the original "extensions" folder. Once you placed it in the right place rename it with the original name and that's it.

The only drop back with this method is that Dropbox is not very good at syncing multiple computers at the same time. If you have multiple Firefox opened in different computers and start installing/removing addons at the same time it may give you a problem.

Friday 13 January 2012

Change magnet links association in linux (Ubuntu)

The Pirate Bay soon will stop serving torrents and a while back I wrote about associating manget links with any torrent client, but that tutorial doesn't work anymore with the newest Ubuntu releases. So, now I'm going to show you how to change the file association so that it will work with any version of Ubuntu or many linux distrobutions.

I'm going to write this tip using ktorrent as it is my favorite torrent client, but if you are using a different client it shouldn't be to hard to change the step to suite your needs. Lets start.

First of all we are going to make sure that you torrent client associates magnet links.

We are going to edit the "*.desktop". They should be under:

/usr/share/applications

in my case because is a kde application it would be under:

/usr/share/applications/kde4

There should be the file we need to open and edit but instead of clicking at it. Open gedit and direct it to that location. You should see a bunch of "*.desktop" files. In my case I will open:

/usr/share/applications/kde4/ktorrent.desktop

In the file you look for the MymeType. You should see something like this:

MimeType=application/x-bittorrent;application/x-torrent;

Now, we will add the magnet association to the file by adding "x-scheme-handler/magnet;" at the end of the MymeType like so:

MimeType=application/x-bittorrent;application/x-torrent;x-scheme-handler/magnet;

Save and close the file. Now we are going to make the system to call the magnet handler we just created by changing/adding the file association. You can change it for each user or the system in general.

The file associations for each user are stored in:

sudo gedit ~/.local/share/applications/mimeapps.list

The system-wide file associations are stored in:

sudo gedit /usr/share/applications/defaults.list

Now look for "x-scheme-handler/magnet", it may not be there but just make sure not to enter duplicates. Now add/edit this line for the handler to call the same "*.desktop" file we edited before. Because in my case the "ktorrent.desktop" file was under the kde4 folder I have to add it, but if you file was on the root of the "/usr/share/applications" there is no need to add anything. In my case it would look like so:

x-scheme-handler/magnet=kde4-ktorrent.desktop;

Save and close the file. Now, you should be able to open Magnet links with you favorite torrent client.



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

Friday 6 May 2011

Nautilus Elementary Tweak theme for Ubuntu 10.10 or 11.04

simplygreat has posted a nice tweak for the theme of the Nautilus elementary which it makes it to integrate more with Ubuntu.

Here is the link to DebianArt

I also like the alternative instructions by Cybolic
About the installation, you can also just unpack "nautilus.rc" and the folder "nautilus" into $HOME/.gtk/ and put the following two lines in $HOME/.gtkrc-2.0:
include "/usr/share/themes/Ambiance/gtk-2.0/gtkrc"
include ".gtk/nautilus.rc"

Thursday 5 May 2011

Get the dropbox appindicator to work in Ubuntu 11.04 Natty Narwhal

We all moved from 10.10 to 11.04 and by doing so we also adopted the new Unity interface. We all know that Unity still in infancy and still a lot of things that need fixing like this bug I reported to the Untiy Launchpad page which looks like that conky is causing it.

Some of them are bigger issues than others, and hopefully as we move forward to 11.10, Unity will be more like the interface we all expected to be, but for now we all gonna have to patch things up .

Anyway, Andrei at Webup8 has this patch for fixing the dropbox appindicator issue.

Wednesday 19 January 2011

Change Sidebar colour in Nautilus-Elementary

Here is one of those tips that should be used as a default in nautilus. OMG!Ubuntu posted this tip earlier this week.

Is quite simple and the results are quite impressive, it makes nautilus look much nicer.

First open nautilus and see if you have this file in your home directory ~/.gtkrc-2.0. If so, edit and paste the code below in it. If the file doesn't exist open gedit on paste the code below and save it as .gtkrc-2.0 in your home directory.

style "nautilus-sidepane"
{
    GtkTreeView::even_row_color   = "#F2F1F0"
}
widget_class "*NautilusSidePane*" style "nautilus-sidepane"

Ok, I'm off to do the same thing to my netbook.

Sunday 19 December 2010

Make Gmail the default mail application

It always annoys me went I press a link and I get evolution mail client opening up. If you are like me and only uses web base mail clients and particularly you use Gmail this may be of help

Gnome Gmail does just that for you. It add support for making Gmail the default mail application for the Gnome desktop.

Once you install it make sure you go to:

System > Preferences > Preferred Applications

And choose Gmail as you default "Mail Reader"

Associate magnet links to any application on Ubuntu

This is one of those things that I've meaning to do for a while. This will work with any torrent client that supports magnet links. I use ktorrent which for me is the best out there.

Enter this into the terminal:
$ gconftool-2 -t string -s /desktop/gnome/url-handlers/magnet/command "ktorrent %i -caption "%c" %u"
Change what is comas with your preferred torrent client.
$ gconftool-2 -s /desktop/gnome/url-handlers/magnet/needs_terminal false -t bool
$ gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/enabled true

If you entered the above correcly you will end up with a new entry in gconf-editor like so:


Remember that mangnet links take a little longer to start downloading, just be patient.

Dropbox Icons for Ubuntu

A couple of days ago dropbox released their new version 1.0.10 to the public with lots of improvements and changes. Read more about it here.

One of the changes is the integration with appindicator with Ubuntu Maverick but they forgot to include the mono icon them for it. So here is the link for it.

Friday 19 November 2010

Add color to Bash prompt symbols

This is actually pretty simple. The trick behind is to add this line into "$HOME/.bashrc".

In the terminal:

$ sudo gedit ~/.bashrc

And enter this lines at the end of the file or anywhere really.

# Add color to Bash prompt symbols
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
Save the file and close the terminal. Next time you restart the terminal the bash will be in a different color.

Wednesday 3 November 2010

Easily get Wine apps to match your GTK theme

http://www.omgubuntu.co.uk/2010/10/easily-get-wine-apps-to-match-your-gtk-theme/

Automatically Import All Missing Launchpad PPA GPG Keys [Ubuntu .deb]

http://www.webupd8.org/2010/05/automatically-import-all-missing.html

Sunday 15 August 2010

Record Ubuntu Desktop

This is something I always wanted to do but never had enough time to setup.

Follow the instructions on this post in OMG!Ubuntu

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

As a reply in OMG!Ubuntu they have posted this other alternative to the above

Saturday 10 July 2010

Access Hulu from Outside the U.S. Without a Proxy Server

After the US have taken down some of the tv streaming sites, it came to me as good news when I saw this post in LifeHacker about accessing Hulu from outside the US without any proxy server, is easy to setup and it just works.

great news !!!!

Tuesday 29 June 2010

Sync Google Chromium Extensions with your Google Account

just enter: "-enable-sync-extensions" to the command. Then go to tools>synced...>Customized and checked the extension option. That's all

Add the option to the launcher in your main menu or any other launcher you may have any where else (panel, docky, etc).

Original post

Thursday 27 May 2010

Saving vertical space with Ubuntu Lucid

This post was inpired by another post from webupd8 but this time I kinda made my own little twist to it.

Ok, first I'll start from the beginning before I get all mixed up. I always been interested on saving vertical space as I own a 12" netbook. I already made some reference on saving vertical space with Firefox on this post. This post is more like a sum of different post I seen and I adopted what I thought it suited my needs. Of course everyone is going to make their own version of it, but for what it's worth here is mine.


      1.- For start I remove the bottom panel in Ubuntu only using the top panel to display everything I need. This is great for saving vertical space but at the same time it leads to some compromises of the amount of things you can display on the top panel.

      2.- Removing the date/temperature from been always visible on the top panel may save you some horizontal space for displaying other things but of course this is more of a personal choise, some people may want to have those visible all the time.

      3.- We will need to switch between windows, add to the panel the window list. I also use this to see the window title. I know there are other applications that will show the window title like window title and namebar applets (more about that on this post) but like I said I'm doing my own version. And I don't think there is a need for window title when is already displayed in the window list and I think this is enough at least for me.

      4.- Next step is to remove the window title and add some buttons to the panel for maximized windows, and there is a little application that those all that. The easiest way to install it is through this PPA, in this PPA there are also namebar and window title that I already mention. Just install the gnome-window-applets and then add the window buttons to the panel. I added mine to the very left of the panel to keep with the consistency Ubuntu look. Here is the Ambience theme for the window button applet that I got from this post. 

      To have the window buttons work with Chromium I recommend setting the "use system title bar and borders" option in chromium and the setting from window button will take care of the rest. 

      Make sure you check the option "Hide compiz decorations for maximzed windows" under preferences, behaviors tab in the window buttons applet.

      5.- And my last tip would be to remove the Ubuntu menu and install the LinuxMint main menu instead. You can install it from the webupd8 PPA which I already posted about. The LinuxMint main menu will save you horizontal space for displaying all the things we need to display and it's a great menu. I got my icon from "/usr/share/icons/ubuntu-mono-dark/actions/16" folder.

      ***EDIT*** 6.- I'm just going to add one more tip here about saving horizontal space by removing you name from the memenu by typing this on the terminal:

      gconftool -s /system/indicator/me/display --type int 0

      You also edit it by typing "gconf-editor" into the terminal and then going to "system->indicator->me" and changing the display value to "0".
      The valid values are:
      0 - No name 1 - with name 2 - default

      Original Post

Wednesday 26 May 2010

Webupd8 ppa

Webupd8 I think is a great webside and they are doing a great job, and I already posted a few post from them. I'm just doing a recap of my interesting ones for my own.

I already saw the ppa from Webupd8 available through Ubuntu Tweak but I never knew what was on it and I never really took the time to look into it until recently, is interesting to know.

Ubuntu Start

I have been quite busy for the last while with exams, etc. and I haven't posted anything in a few days but I have a few things to post about. So, I'm gonna get cracking...

I came across at Ubuntu Start which is a script that will help you get started with a fresh install of Ubuntu Lucid.

It's a great idea and I hope it gets better and with options as the app evolve.

Ubuntu Start

Sunday 9 May 2010

Command-Line Tips

Two days ago a read this post in Net.tutplus.com, about the CLI. It's always good to know your way around the CLI in Linux based systems. You never know when you gonna need it next. I liked the tip of using tab to finish commands in the terminal, I didn't know, quite handy.

I would like to add a couple more tips:

  • The first one is not a tip but a refrase of one of the tips in the named post. Just to say that the command "~" is the address of your home directory and it can be used to change, copy or anything.
    cd ~
    cp ~
    And you can also use it like that
    cd ~/Documents/somethingelse/etc/
  • And another tip a friend told me is you can use ctrl+alt+f1 to access the comand line, you can use from f1 to f6 for the command line, and f7 to go back to GUI
  • If you want to kill all the processes:
    killall
  • Kill an rogue application using it’s name. Instead of hunting around the System Monitor to kill a rogue application, just killall it
    killall app_name
  • But sometimes is just better to kill what ever is messing with you system, in that case use:
    top
    Look for the process in particular and then use:
    kill 5689 (the number of the Id of the process)
  • If you like using top, install htop is a better version of top.
    sudo apt-get install htop
    To start it just type:
    htop
  • Ever entered a command but left off the ‘sudo’ ? Instead of typing the entire thing again, or back-arrowing to the start, just type the following to run the previous command as root.
    sudo !!
  • 2 commands I'm always using and I always forget:
    tocompress: tar -czf nametarfile.tar.gz namefolder
    toextract: tar xvzf tarfile.tar.gz

Reclaim vertical space with Firefox 3.6

Not so long ago a saw this post on Dotnetwizard.net where I picked up a couple of good tips on saving vertical space, quite handy if you are using a neetbook or small laptop. I always hate the way if you are not careful firefox eats lots of space with toolbars and other crap.

My other two suggestions on top of the Dotnetwizard.net, are:

  • Tiny menu Replace the standard menu bar with a tiny menu popup.
  • The other is not an addon but for network tweaks you could also install Swiftfox