Friday, December 19, 2008

Online english to telugu dictionary

For Online English to Telugu dictionary visit http://www.en2te.com

Some useful tools for Telugu

For writing in Telugu using English alphabets (తెలుగు సందేశం, ఇంగ్లీష్ స్పెల్లింగ్‌లతో: ) : http://lekhini.org/

Telugu to English Transliteration :
http://lekhini.org/nikhile.html

Web workload generator

Httperf is a tool for measuring web server performance.


URL : http://www.hpl.hp.com/research/linux/httperf/

Thursday, December 4, 2008

Port Forwarding using SSH

Using SSH port forwarding we can access various kinds of TCP based servers ( i.e HTTPD, SMTP, POP, IMAP, etc.) across a firewall that prevents direct access.


Command :

 $  ssh < remote_server > -L< local free listener port>:localhost:< remote listener port> 



Example Scenario :

IF you have ssh access on a remote machine(say rhost) but, you don't have any other access including http. If you want view some web pages which are hosted on same remote machine(i.e rhost) through http request, then apply following "ssh port forward" command.


 $  ssh rhost -L8888:localhost:80 

here rhost is remote host/server name (replace with your server name)
8888 is free port on your machine
80 is default listener port on remote machine.



now you can access web pages which are hosted on rhost machine using "http://localhost:8888".

html page for redirecting

We can implement redirection using a simple html page. Here is the example which will redirect to http://google.com


<html>
<head >
<meta name="author" content=" abcd xyz">
<meta equiv="refresh" content="0;url=http://google.com">
</head>
<body bgcolor="#ffffff">
<body>
</html>

Thursday, November 6, 2008

Installing JDK on RPM based distributions (CentOs, Redhat, Fedora)

Here’s how I installed JDK on Centos

"> Download

Go to http://java.sun.com/javase/downloads/index.jsp and download the desired file.

Extract the .bin file

[root@localhost tmp]# chmod 755 j2re-1_4_2_15-linux-i586-rpm.bin
[root@localhost tmp]# ./j2re-1_4_2_15-linux-i586-rpm.bin

Install the .rpm file

[root@localhost tmp]# rpm -Uvh j2re-1_4_2_15-linux-i586.rpm
Preparing... ########################################### [100%]
1:j2re ########################################### [100%]

Adjust environment

Finally add the path to the java executable in the /etc/profile file.

Test

$ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)

Sunday, October 26, 2008

A web application Scanner

Nikto is a web server assessment tool. It is designed to find various default and insecure files, configurations and programs on any type of web server.


URL : http://cirt.net/nikto2

Top 10 Web application scanner are available at
http://sectools.org/web-scanners.html

How to restart Network service in linux ?

Use following commands to restart network service

Ubuntu, debien
sudo /etc/init.d/networking restart

CentOS, Redhat, Fedora
service network restart

Sunday, October 19, 2008

Installing X server ubuntu server

commands to install X server on ubuntu server

sudo apt-get install ubuntu-desktop
sudo apt-get install gdm
sudo /etc/init.d/gdm start
sudo dpkg-reconfigure xserver-xorg

Thursday, October 16, 2008

How to check Linux Kernel is 32bit or 64bit?

To check running Linux kernel is 32 bit or 64 bit from command line run the following:

$ getconf LONG_BIT

This command will display 32 or 64 depends on kernel

In GNU/Linux we need to know about OS Kernel bit mode (32 or 64) before downloading/installing new software.


if you want to know processor info from remote terminal use following command

$ cat /proc/cpuinfo