Thursday, March 24, 2011

How to mount ntfs partition to redhat

1.Click on the "Applications" menu and choose "Terminal" from the "Accessories" group.
2.Type the command "su -" to become the root user. Enter the root password when prompted.
3.Add the "RPMforge" repository to your system--this allows your system to download and install NTFS support. Type the following commands:

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm

rpm -K rpmforge-release-0.5.1-1.el5.rf.i386.rpm

rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm

4.Install the ntfs-3g package--this provides NTFS support. Type the command "yum install fuse fuse-ntfs-3g" and answer "yes" if prompted to import an encryption key or to install packages.

5. Issue the "mount" command to mount the NTFS partition.

If your NTFS partition is accessible from device /dev/sda3 and you want the partition to appear on /mnt, use the command "mount /dev/sda3 /mnt."

Friday, September 10, 2010

how to install ssh serve in Ubuntu

OpenSSh is opensource ssh server in Linux.


Ubuntu SSHD Installation

Type the following two command to install both ssh client and server:
# sudo apt-get install openssh-server openssh-client

SSHD Configuration

To be frank your server is ready by default. Just test it from your home computer or from same system with the command:
# ssh localhost
OR
# ssh user@your-server-ip-address

How do I use ssh client?

Assuming that your server hostname is userver.kasun.com and username is kasun, you need to type the following command:
# ssh kasun@userver.kasun.com
To stop ssh server, enter:
# sudo /etc/init.d/ssh stop
To start sshs server, enter:
# sudo /etc/init.d/ssh start
To restart ssh server, enter:
# sudo /etc/init.d/ssh restart



ssh and telnet

In networking world lot of people use ssh and telnet but they don't have more idea
in this protocol.actually one of my friend also ask me some question related with these things.Ok now you can follow this blog and get some idea.



SSH - secure shell(normally it use port 22)

SSH is network related protocol but it work in application layer which use SSL.SSL(443) make trusted relation ship.And also SSH Basically it is secured. It is most often used by network administrators as a remote login / remote control way to manage their business server.


#######for your knowledge--- SSL is most often used for transmitting credit card, tax, banking, or personal information to a business server.##########


Telnet - port 23-Application layer


Telnet is normal way u can connect to the server and work.Telnet send the data's in Ascii format and its not a secure shell.so we must't use telnet and ftp becoz hackers
can easy to identify our data.

Wednesday, September 8, 2010

difference between programming and scripting language

The primary difference between a "programming language" (C, C++, VB etc.) and a "scripting language" (PHP, ASP, JSP, JavaScript, VBScript)is that code written in a programming language needs to be compiled before it is run. Once it is compiled, it can be run any number of times.

Scripting languages, on the other hand, are interpreted at run-time. This means that every time you want to run the program, a separate program needs to read the code, interpret it, and then follow the instructions in the code. Compiled code has already been interpreted into machine language, so it is will typically execute faster because the conversion into machine language has already been done.


Interpreted vs complied source code



Interpreted language -

In interpreter to process the source code every time you want to run the program.This translate the source code down to a lower level for the computer's consumption as it goes along.we call the lower level language machine code.this codes are't human readable.


compiled language -
A compiled language , on the other hand ,such as C,uses a complier to do all this processing one time only before the code is ever run.After that ,you can run the machine code directly ,without needing the compiler any more.


Tuesday, September 7, 2010

How to use Internet Connection Sharing in Windowxp

How to use Internet Connection Sharing

To use Internet Connection Sharing to share your Internet connection, the host computer must have one network adapter that is configured to connect to the internal network, and one network adapter or modem that is configured to connect to the Internet.

On the host computer

On the host computer, follow these steps to share the Internet connection:
  1. Log on to the host computer as Administrator or as Owner.
  2. Click Start, and then click Control Panel.
  3. Click Network and Internet Connections.
  4. Click Network Connections.
  5. Right-click the connection that you use to connect to the Internet. For example, if you connect to the Internet by using a modem, right-click the connection that you want under Dial-up.
  6. Click Properties.
  7. Click the Advanced tab.
  8. Under Internet Connection Sharing, select the Allow other network users to connect through this computer's Internet connection check box.
  9. If you are sharing a dial-up Internet connection, select the Establish a dial-up connection whenever a computer on my network attempts to access the Internet check box if you want to permit your computer to automatically connect to the Internet.
  10. Click OK. You receive the following message:
    When Internet Connection Sharing is enabled, your LAN adapter will be set to use IP
    address 192.168.0.1. Your computer may lose connectivity with other computers on
    your network. If these other computers have static IP addresses, it is a good idea to set them
    to obtain their IP addresses automatically. Are you sure you want to enable Internet
    Connection Sharing?
  11. Click Yes.
The connection to the Internet is shared to other computers on the local area network (LAN). The network adapter that is connected to the LAN is configured with a static IP address of 192.168.0.1 and a subnet mask of 255.255.255.0