Wednesday, 8 February 2012

samba server configuration in rhel5 step by step

Samba configuration in Linux Machines Samba is a suite of utilities that allows your Linux Machines to share files and other resources. such as printers with Windows Machines. Before configuring Samba server in Linux you need to have the following Pre-requests. 1. Linux System with network Configured Here i was configured My IP as 192.168.10.111 2. Windows System with network configured in Same network.    here my System is having  192.168.10.108    3.Your Linux System firewall should be disabled. Main Configuration: 1. Check your linux system wheather the samba package is installed or not with the following command. [root@localhost...

Thursday, 12 January 2012

Installing Red Hat Enterprise linux 5 step by step

                   For installing Red hat Linux Enterprise Edition 5, Do the following Steps Step 1: Turn on the system and insert the First CD, then you will get the following Screen. Step 2:  From the above Screen, For installing in Graphical Mode Press Enter.  Here i am installing in graphical mode. After Pressing the Enter key you will get the next screen. Step 3: After Searching the Device drivers and all other things it will display the Media Check Prompt. If you want to check whether the your Media is working Properly or Not....

Thursday, 3 November 2011

Configuration of FTP Server in LINUX

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:...

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...

Monday, 31 October 2011

Boot Process in Linux

To View the default runlevel while booting the Linux Operating System[root@tsmservertest ~]# vi /etc/inittabid:5:initdefault:  (End of the line in Fedora OS)Note: It means that OS by default always boot to GUI mode.To View the current runlevel[root@tsmservertest ~]# runlevelN 5To Switch to another runlevel and check the runlevl[root@tsmservertest ~]# init 3[root@tsmservertest ~]# runlevel5 3[root@tsmservertest ~]# init 2[root@tsmservertest ~]# runlevel3 2[root@tsmservertest ~]# init 1[root@tsmservertest ~]# runlevel1 S[root@tsmservertest ~]# init 6To View the grup configuration file[root@localhost ~]# cat /boot/grub/grub.c...

Saturday, 22 October 2011

Backup and Recovery

Create a folder for EX:-- /myfolder [root@tsmservertest ~]# mkdir /myfolder [root@tsmservertest ~]# cd /myfolder/ Now create Some files and folders inside it. [root@tsmservertest myfolder]# mkdir dir1 [root@tsmservertest myfolder]# touch 1 songs tom_file [root@tsmservertest myfolder]# ls 1  dir1  songs  tom_file Use the tar command to tape archive the folder [root@tsmservertest ~]# tar -cvf /opt/myfolder.tar /myfolder tar: Removing leading `/' from member names /myfolder/ /myfolder/tom_file /myfolder/dir1/ /myfolder/songs /myfolder/1 [root@tsmservertest ~]# cd /opt/ [root@tsmservertest opt]# ls -l total 12 -rw-r--r-- 1 root root 10240 Oct 22 13:01 myfolder.tar To Create a tar file with zip [root@tsmservertest opt]# cd [root@tsmservertest ~]# tar -cvzf /opt/myfolder.tar.gz...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews