Ftp server is designed for uploading and downloading the files, when ftp server users log's in, they get their home folder at client side and if public/anonymous user log's in they get data stored in /var/ftp folderSteps to Configure FTP Server in LINUX
Step:--1. Check and install required PackagesCheck the packages are installed or not by rpm/yum command[root@server ~]# rpm -q vsftpdRemove the packages and old data if required[root@server ~]# yum remove vsftpd* -yInstall the PackagesNote: Here my file is at Desktop. So i was changing the path to Desktop.[root@server ~]# cd /root/Desktop/[root@server Desktop]# lsFileZilla3 tomcat vsftpd-2.0.5-10.el5.i386.rpm[root@server Desktop]# chmod 777 vsftpd-2.0.5-10.el5.i386.rpm[root@server Desktop]# rpm -ivh vsftpd-2.0.5-10.el5.i386.rpmwarning:...
Thursday, 3 November 2011
Wednesday, 2 November 2011
Network Configurations in Linux
Assigning a static IP address --- temporarilySyntax:--[root@server ~]# ifconfig <devicename> <IP address>Example:-- To Assign the static IP address as 192.168.10.121[root@server ~]# ifconfig eth0 192.168.10.121To check the IP assigned[root@server ~]# ifconfigeth0 Link encap:Ethernet HWaddr 00:08:02:F7:33:6A inet addr:192.168.10.121 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fe80::208:2ff:fef7:336a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:773 errors:0 dropped:0 overruns:0...
Tuesday, 1 November 2011
Networking in LINUX
Introduction to Networking in LinuxTo check the system hostname[root@localhost ~]# hostnamelocalhost.localdomainAssigning the hostname - temporarlySyntax:- [root@localhost ~]# hostname <computer>EX:- To assign the hostname as server.linuxnunixhelp.com[root@localhost ~]# hostname server.linuxnunixhelp.comTo check the hostname assigned[root@localhost ~]# hostnameserver.linuxnunixhelp.comAssigning hostname ---- PermanentlyEdit the configuration file /etc/sysconfig/networkNETWORKING=yesHOSTNAME=server.linuxnunixhelp.com:...
System Process Commands in Linux
TO check the Process id of any application, command etc[root@localhost ~]# ps -auxTo kill a process normally[root@localhost ~]# kill <process_id>ex: -- [root@localhost ~]# kill 2521To kill the process forcefully use stamp value as '9'[root@localhost ~]# kill -9 <process_id>[root@localhost ~]# kill -9 2521To see the cpu & process status[root@localhost ~]# topTo see the open port number and service name[root@localhost ~]# netstat -antpActive Internet connections (servers and established)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp ...
To Recover Root Password in Linux
1. Restart the PC while restarting press any key to get Grub Screen2. Press 'e'3. Select kernal /vmlinuz-2.6.18.-8.el5 ro root=LABEL=/ rhgb quiet4. Again Press 'e' to edit5. Edit kernal /vmlinuz-2.6.18.-8.el5 ro root=/ rhgb quiet line and erase quite and type single6. Press enter7. Press b to boot8. At shell prompt type the commands
sh-3.00# passwdChanging Password for user rootNew UNIX Password:123456Retype new UNIX Password: 123456Passwd: all authentication tokens updated Successfully.Now type the following command to Restart the system to the normal Loginsh-3.00# init...
Usage of chkconfig command
To view the status of the the services in all runlevels
[root@localhost ~]# chkconfig --list
To view the status of the Particular services.For example Bluetooth
[root@localhost ~]# chkconfig --list bluetoothbluetooth 0:off 1:off 2:off 3:off 4:off 5:off 6:off
To put the service at all runlevel as on
[root@localhost ~]# chkconfig bluetooth on
To view the status
[root@localhost ~]# chkconfig --list bluetoothbluetooth 0:off 1:off 2:on 3:on 4:on 5:on 6:off
To put the service at all runlevel as off
[root@localhost ~]# chkconfig bluetooth off
To...