Friday, October 3, 2008

How to update firefox


How To Install firefox-3.0.tar.bz2 in Linux


A. You won't lose any of your bookmarks or browsing history created by Firefox 2.0, but some of your extensions and other add-ons might not work until updates for them are made available.

Backup Existing Firefox 2.0 Settings

Just backup existing Firefox 2.0 settings:
$ mkdir ff.backup/
$ cp -avr .mozilla/ ff.backup/

Installing Firefox 3 on Linux

Just use the following instructions to download and install Firefox.

Download Firefox 3.0 for Linux

Visit official website to grab latest version. You can also use wget command to download firefox.
$ cd /tmp
$ wget 'http://download.mozilla.org/?product=firefox-3.0&os=linux&lang=en-US'

Linux Install Firefox for all users

First close all running old Firefox 2.x sessions. Login as the root and type the following command to move old firefox 2 and install Firefox 3 under Linux:
# cd /opt
# mv firefox firefox.old
# cp /tmp/firefox-3.0.tar.bz2 .
# tar -jxvf firefox-3.0.tar.bz2


To start firefox, enter:
$ /opt/firefox/firefox &



source:http://www.cyberciti.biz/faq/install-firefox3tarbz2-linux/

How to umount when the device is busy

It happens all the time doesn’t it? You need to unmount a CD or you want to pack away the external drive but when you try to umount it you get the dreaded “device is busy” message. Wouldn’t it be great if Linux actually told you what was keeping the drive busy? Here we are in 2008, I’m using Ubuntu Gutsy, and that message hasn’t changed in all the years I’ve used Linux.

# umount /media/disk/
umount: /media/disk: device is busy
umount: /media/disk: device is busy

First thing you’ll do will probably be to close down all your terminals and xterms but here’s a better way. You can use the fuser command to find out which process was keeping the device busy:

# fuser -m /dev/sdc1
/dev/sdc1: 538
# ps auxw|grep 538
donncha 538 0.4 2.7 219212 56792 ? SLl Feb11 11:25 rhythmbox

Rhythmbox is the culprit! Close that down and umount the drive. Problem solved!

How to make fonts look better in Linux

Make or change the ~/.fonts.conf
to (backup an old one first):

The results are amazing on my machine!!
code: copy to clipboard

source:
http://wiki.archlinux.org/index.php/XOrg_Font_Configuration#Autohint_works_great_but_not_for_my_bold_fonts._How_can_I_turn_it_off_only_for_bold_fonts.3F
and
http://kmandla.wordpress.com/2007/12/27/still-better-font-smoothing

Startup tweak: Start desktop at login

The X desktop can be set to start as soon as you log in from a tty prompt. Edit your bash profile with

nano -w .profile

and add these lines to the end:

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi

Save and exit. At next log in, X should start straightaway. This will also work for other programs that you want to start at the console, at login.

What looks do I like?


On the internet you see the most incredible looks presented.
Most of them are black and shiny and very sophisticated.
There is one I like very much, but it/ s a mockup and not (yet) available.

But in fact I like a very quiet and friendly atmosphere on te desktop.
Everybody is bashing the standard Hardy Ubuntu look but I thinks itÅ› not so bad at all.
It's clear and gives no distractions for the newcomer like me.

I had to disable Compiz as Ubuntu kept crashing because of it.
So I use Metacity as windowsmanager now and it's doing its job rather well.
Yesterday I activated the composite manager in Metacity and installed transet to create opaque or transparent windows. This is all foolishness and eye candy, but the looks are important.

Well to start with the LogIn Screen and the Lock up. The most beautiful theme for this I found was the New Wave theme. It so beautiful that I can't imagine it ever leaving it behind.





http://www.gnome-look.org/content/show.php/show.php?content=87370


To use the whole theme that looks very distinguished and sharp is th shiny and dark for my liking; too serious.

So I found an OSX look alike, Water Vapor; the fine thing with this theme that it's quiet, clear and very nice to use.
http://www.gnome-look.org/content/show.php/Water+Vapor?content=26980

But I'm running Ubuntu and not a Mac and I wanted the looks to express that.
So I found the Aquarius theme: http://art.gnome.org/themes/metacity/1324
and http://art.gnome.org/themes/gtk2/1325

The icons I choose are Gartoon: http://art.gnome.org/themes/icon/1001

The lettertype is Undotum 11 (window title 12) and the document font Dejavu Sans Book 11.

Here is a screenshot:
Free Image Hosting at www.ImageShack.us

QuickPost Quickpost this image to Myspace, Digg, Facebook, and others!

Thursday, October 2, 2008

Transparency In Gnome/Metacity

Go to Gconfig editor and open apps, metacity, general and check compositing_manager.
Install transet: sudo apt-get install transset.

Using Transset for transparent windows in Gnome:

This is just an extra little command. If you want to set certain windows as transparent, then run the command "transset" in the console. Your mouse will turn into a crosshair; simply click on the window you want to set as transparent. The transparency value can be anywhere from 0 (completely transparent) to 1 (opaque.) It defaults to .75, and back to 1 if the window is already transparent.

For example, if you want to make a window half-transparent: transset 0.5.

Now make two launchers in the panel: one with command transset 0.5, the other one with transset 1.0 and you will be able the transparency mode easily.
and call them transSet and TransUndo. And you

Terminal Wildcards

Manipulating Files






This lesson will introduce you to the following commands:
  • cp - copy files and directories
  • mv - move or rename files and directories
  • rm - remove files and directories
  • mkdir - create directories

These four commands are among the most frequently used Linux commands. They are the basic commands for manipulating both files and directories.

Now, to be frank, some of the tasks performed by these commands are more easily done with a graphical file manager. With a file manager, you can drag and drop a file from one directory to another, cut and paste files, delete files, etc. So why use these old command line programs?

The answer is power and flexibility. While it is easy to perform simple file manipulations with a graphical file manager, complicated tasks can be easier with the command line programs. For example, how would you copy all the HTML files from one directory to another, but only copy files that did not exist in the destination directory or were newer than the versions in the destination directory? Pretty hard with with a file manager. Pretty easy with the command line:

[me@linuxbox me]$ cp -u *.html destination

Wildcards

Before I begin with our commands, I want to talk about a shell feature that makes these commands so powerful. Since the shell uses filenames so much, it provides special characters to help you rapidly specify groups of filenames. These special characters are called wildcards. Wildcards allow you to select filenames based on patterns of characters. The table below lists the wildcards and what they select:

Wildcard Meaning
* Matches any characters
? Matches any single character
[characters] Matches any character that is a member of the set characters. The set of characters can be expressed as a range of characters. (For example, [A-Z] represents all uppercase letters)
[!characters] Matches any character that is not a member of the set characters

Using wildcards, it is possible to construct very sophisticated selection criteria for filenames. Here are some examples of patterns and what they match:

Pattern Matches
* All filenames
g* All filenames that begin with the character “g”
b*.txt All filenames that begin with the character “b” and end with the characters “.txt”
Data??? Any filename that begins with the characters “Data” followed by exactly 3 more characters
[abc]* Any filename that begins with “a” or “b” or “c” followed by any other characters
[A-Z]* Any filename that begins with an uppercase letter. This is an example of a range.
BACKUP.[0-9][0-9][0-9] Another example of ranges. This pattern matches any filename that begins with the characters “BACKUP.” followed by exactly 3 numerals.
[!a-z]* Any filename that does not begin with a lowercase letter.

You can use wildcards with any command that accepts filename arguments.

cp

The cp program copies files and directories. In its simplest form, it copies a single file:

[me@linuxbox me]$ cp file1 file2

It can also be used to copy multiple files to a different directory:

[me@linuxbox me]$ cp file1 file2 file3 directory

Other useful examples of cp and its options include:

Command Results
cp file1 file2 Copies the contents of file1 into file2. If file2 does not exist, it is created; otherwise, file2 is overwritten with the contents of file1.
cp -i file1 file2 Like above however, since the “-i” (interactive) option is specified, if file2 exists, the user is prompted before it is overwritten with the contents of file1.
cp file1 dir1 Copy the contents of file1 (into a file named file1) inside of directory dir1.
cp -R dir1 dir2 Copy the contents of the directory dir1. If directory dir2 does not exist, it is created. Otherwise, it creates a directory named dir1 within directory dir2.

mv

The mv command performs two different functions depending on how it is used. It will either move one or more files to a different directory, or it will rename a file or directory. To rename a file, it is used like this:

[me@linuxbox me]$ mv filename1 filename2

To move files to a different directory:

[me@linuxbox me]$ mv file1 file2 file3 directory

Examples of mv and its options include:

Command Results
mv file1 file2 If file2 does not exist, then file1 is renamed file2. If file2 exists, its contents are replaced with the contents of file1.
mv -i file1 file2 Like above however, since the “-i” (interactive) option is specified, if file2 exists, the user is prompted before it is overwritten with the contents of file1.
mv file1 file2 file3 dir1 The files file1, file2, file3 are moved to directory dir1. dir1 must exist or mv will exit with an error.
mv dir1 dir2 If dir2 does not exist, then dir1 is renamed dir2. If dir2 exists, the directory dir1 is created within directory dir2.

rm

The rm command deletes (removes) files and directories.

[me@linuxbox me]$ rm file

It can also be used to delete a directory:

[me@linuxbox me]$ rm -r directory

Examples of rm and its options include:

Command Results
rm file1 file2 Delete file1 and file2.
rm -i file1 file2 Like above however, since the “-i” (interactive) option is specified, the user is prompted before each file is deleted.
rm -r dir1 dir2 Directories dir1 and dir2 are deleted along with all of their contents.

Be careful with rm!

Linux does not have an undelete command. Once you delete a file with rm, it’s gone. You can inflict terrific damage on your system with rm if you are not careful, particularly with wildcards.

Before you use rm with wildcards, try this helpful trick: construct your command using ls instead. By doing this, you can see the effect of your wildcards before you delete files. After you have tested your command with ls, recall the command with the up-arrow key and then substitute rm for ls in the command.

mkdir

The mkdir command is used to create directories. To use it, you simply type:

[me@linuxbox me]$ mkdir directory

Manipulating Files






This lesson will introduce you to the following commands:
  • cp - copy files and directories
  • mv - move or rename files and directories
  • rm - remove files and directories
  • mkdir - create directories

These four commands are among the most frequently used Linux commands. They are the basic commands for manipulating both files and directories.

Now, to be frank, some of the tasks performed by these commands are more easily done with a graphical file manager. With a file manager, you can drag and drop a file from one directory to another, cut and paste files, delete files, etc. So why use these old command line programs?

The answer is power and flexibility. While it is easy to perform simple file manipulations with a graphical file manager, complicated tasks can be easier with the command line programs. For example, how would you copy all the HTML files from one directory to another, but only copy files that did not exist in the destination directory or were newer than the versions in the destination directory? Pretty hard with with a file manager. Pretty easy with the command line:

[me@linuxbox me]$ cp -u *.html destination

Wildcards

Before I begin with our commands, I want to talk about a shell feature that makes these commands so powerful. Since the shell uses filenames so much, it provides special characters to help you rapidly specify groups of filenames. These special characters are called wildcards. Wildcards allow you to select filenames based on patterns of characters. The table below lists the wildcards and what they select:

Wildcard Meaning
* Matches any characters
? Matches any single character
[characters] Matches any character that is a member of the set characters. The set of characters can be expressed as a range of characters. (For example, [A-Z] represents all uppercase letters)
[!characters] Matches any character that is not a member of the set characters

Using wildcards, it is possible to construct very sophisticated selection criteria for filenames. Here are some examples of patterns and what they match:

Pattern Matches
* All filenames
g* All filenames that begin with the character “g”
b*.txt All filenames that begin with the character “b” and end with the characters “.txt”
Data??? Any filename that begins with the characters “Data” followed by exactly 3 more characters
[abc]* Any filename that begins with “a” or “b” or “c” followed by any other characters
[A-Z]* Any filename that begins with an uppercase letter. This is an example of a range.
BACKUP.[0-9][0-9][0-9] Another example of ranges. This pattern matches any filename that begins with the characters “BACKUP.” followed by exactly 3 numerals.
[!a-z]* Any filename that does not begin with a lowercase letter.

You can use wildcards with any command that accepts filename arguments.

cp

The cp program copies files and directories. In its simplest form, it copies a single file:

[me@linuxbox me]$ cp file1 file2

It can also be used to copy multiple files to a different directory:

[me@linuxbox me]$ cp file1 file2 file3 directory

Other useful examples of cp and its options include:

Command Results
cp file1 file2 Copies the contents of file1 into file2. If file2 does not exist, it is created; otherwise, file2 is overwritten with the contents of file1.
cp -i file1 file2 Like above however, since the “-i” (interactive) option is specified, if file2 exists, the user is prompted before it is overwritten with the contents of file1.
cp file1 dir1 Copy the contents of file1 (into a file named file1) inside of directory dir1.
cp -R dir1 dir2 Copy the contents of the directory dir1. If directory dir2 does not exist, it is created. Otherwise, it creates a directory named dir1 within directory dir2.

mv

The mv command performs two different functions depending on how it is used. It will either move one or more files to a different directory, or it will rename a file or directory. To rename a file, it is used like this:

[me@linuxbox me]$ mv filename1 filename2

To move files to a different directory:

[me@linuxbox me]$ mv file1 file2 file3 directory

Examples of mv and its options include:

Command Results
mv file1 file2 If file2 does not exist, then file1 is renamed file2. If file2 exists, its contents are replaced with the contents of file1.
mv -i file1 file2 Like above however, since the “-i” (interactive) option is specified, if file2 exists, the user is prompted before it is overwritten with the contents of file1.
mv file1 file2 file3 dir1 The files file1, file2, file3 are moved to directory dir1. dir1 must exist or mv will exit with an error.
mv dir1 dir2 If dir2 does not exist, then dir1 is renamed dir2. If dir2 exists, the directory dir1 is created within directory dir2.

rm

The rm command deletes (removes) files and directories.

[me@linuxbox me]$ rm file

It can also be used to delete a directory:

[me@linuxbox me]$ rm -r directory

Examples of rm and its options include:

Command Results
rm file1 file2 Delete file1 and file2.
rm -i file1 file2 Like above however, since the “-i” (interactive) option is specified, the user is prompted before each file is deleted.
rm -r dir1 dir2 Directories dir1 and dir2 are deleted along with all of their contents.

Be careful with rm!

Linux does not have an undelete command. Once you delete a file with rm, it’s gone. You can inflict terrific damage on your system with rm if you are not careful, particularly with wildcards.

Before you use rm with wildcards, try this helpful trick: construct your command using ls instead. By doing this, you can see the effect of your wildcards before you delete files. After you have tested your command with ls, recall the command with the up-arrow key and then substitute rm for ls in the command.

mkdir

The mkdir command is used to create directories. To use it, you simply type:

[me@linuxbox me]$ mkdir directory

http://www.linuxhaxor.net/2007/08/21/manipulating-files/

Blog Archive