Friday, May 7, 2010

Installing Firefox in Linux ( RHEL 5 )

Hi,
This is a simple method to install firefox in redhat Enterprise Linux 5
It also support all linux operating systems
Step 1 : Download Firefox from here http://www.mozilla.com/en-US/firefox/firefox.html
Step 2 : Extract files on desktop
Step 3 : Copy extracted ( firefox ) folder to /usr/local/share  [ Storing location is your wish ]
Step 4 : That's all. You made it. Now just double click 'firefox' inside firefox folder.
Step 5 : Open with terminal , It ask for default browser. Made it as default and creat a shortcut.

Saturday, May 1, 2010

Updating Firefox in Linux ( Simple method )

Step 1 : Just download new version of Firefox from mozilla.com

Step 2 : Downloaded file in .tar.bz2 extension.

Step 3 : Extract .tat.bz2 file in desktop

Step 4 : Copy all files from extracted folder

Step 5 : Paste into

/usr/lib/firefox_you current_version
folder

Step 6 : Rename this folder with new version ( Not important )

Step 7 : Run Firefox (Your desktop shortcut is enough to do it )

Step 8 : Now Firefox will upgrade


Enjoy new updated version.

It's not proper way to install Firefox in Linux.

It works very well in RHEL5

Installing fonts in RedHat Enterprise Linux 5 ( Simple Method )

Simple method

Step 1 : Just copy ".ttf " fonts to /usr/share/fonts/your_folder_name

Step 2 : Open terminal

Step 3 : Run following commend

#fc-cache /usr/share/fonts/your_folder_name

Step 4 : Logout user and login again


Enjoy

It's simple method and working well for me

Monday, April 26, 2010

Download website with wget in linux

wget is a nice tool for downloading resources from the internet. The basic usage is wget url:

wget http://linuxreviews.org/

Therefore, wget (manual page) + less (manual page) is all you need to surf the internet. The power of wget is that you may download sites recursive, meaning you also get all pages (and images and other data) linked on the front page:

wget -r http://linuxreviews.org/

But many sites do not want you to download their entire site. To prevent this, they check how browsers identify. Many sites refuses you to connect or sends a blank page if they detect you are not using a web-browser. You might get a message like:

Sorry, but the download manager you are using to view this site is not supported. We do not support use of such download managers as flashget, go!zilla, or getright

Wget has a very handy -U option for sites like this. Use -U My-browser to tell the site you are using some commonly accepted browser:

wget -r -p -U Mozilla http://www.stupidsite.com/restricedplace.html

The most important command line options are --limit-rate= and --wait=. You should add --wait=20 to pause 20 seconds between retrievals, this makes sure you are not manually added to a blacklist. --limit-rate defaults to bytes, add K to set KB/s. Example:

wget --wait=20 --limit-rate=20K -r -p -U Mozilla http://www.stupidsite.com/restricedplace.html

A web-site owner will probably get upset if you attempt to download his entire site using a simple wget http://foo.bar command. However, the web-site owner will not even notice you if you limit the download transfer rate and pause between fetching files.

Use --no-parent


--no-parent is a very handy option that guarantees wget will not download anything from the folders beneath the folder you want to acquire. Use this to make sure wget does not fetch more than it needs to if just just want to download the files in a folder.


Source : http://linuxreviews.org/quicktips/wget/

Saturday, March 20, 2010

Block anything based on url keywords by squid proxy

Hai guys/gals,
Here i going to tell about block any sites based on keywords squid proxy.
This help for system administrators in schools and colleges
Here i use linux sever( RHEL5 ) and squid 2.6 stable version.
It simple to do,
Step 1 : Just store what all are key words you want to block
Here i stored keywords in "/etc/squid/badkeys"
Step 2 : Using vim , open squid configuration file
Ex. vim /etc/squid/squid.conf
Step 3 : Use url_regex to block, (Just add following line in acl )
acl badkey url_regex "/etc/squid/badkey"
Ex:
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl your_network_name src 10.1.1.0/24
acl badkey url_regex "/etc/squid/badkey"
Step 4 : Add following line for deny badkey in http_access
http_access deny badkey
Ex:
http_access allow localhost
http_access deny badkey
http_access allow your_network_name
http_access deny all

Step 5 :That's all. Restart Squid




Wednesday, March 10, 2010

Hide Blogger Navbar

Step 1: Log in to Blogger

Step 2 : On your Dashboard, click Layout under Manage Blogs. Then click Edit HTML.

Step 3 : You will get HTML of your blog template.

Step 4 : Paste following code in your html head part ( paste the CSS in the top of the Variable definitions )

#navbar-iframe {
display: none !important;
}

Step 5 : Click Save

Friday, February 12, 2010

Clear cache in Linux Server

If you running Proxy Server, Mostly it'll store frequently visiting sits content.

It's one of the best feature for fast browsing, But some few cases it not good.

Here a commend for clear cache files from server,

But it not useful at all conditions,

Step 1 : Open terminal and type following

root@localhost~] # echo 3 > /proc/sys/vm/drop_caches

Step 2 : Hit Enter


That's all.


Note : It's not give solution for all problem related with it.