Friday, September 6, 2013

SERVICES ON RUN LEVELS linux services by gorvam saddar

                                                            
#SERVER SERVICES ON RUNLEVELS TOP CHECK OR TO SET#      
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

TO check on which run levels from [1 – 6] for any server’s service is running or not or to set on which we want this server run its service or on which we not wants to run this server.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

There is a command to check or to set these services for all servers



TO CHECK THE SERVICE OF ANY SERVER___________________


  #chkconfig  - - list {any server name}__________ to check its service on all runlevel

Output          level0            level1        level2          level3          level4          level5                   
            off                    On              off             on               off            on                

SSH secure shell service on linux by gorvam saddar


                                                SSH OR TELNET SERVICE


SSH OR TELNET IS USED TO ACEES A PC FROM ANY OF THE OPERATING SYSTEM
OR BY USING THE [SSH OR TELNET ] YOU CAN DO ANYTHING WOTH THE PC

HOW TO USE THE COMMAND
           

swap increase swap sie by command line ater instalaton by gorvam saddar

                        #SWAP INCREASING WITH MAKING PARTITION #

POINT: -------NOW IF WE INCREASE OUR RAM THEN WE HAVE TO INCREASE THE SWAP ALSO FOR      1_____FOR THIS WE HAVE TO MAKE A LOGICAL PARTTITON FIRST.                        
            2_____THEN MAKE IT THE SWAP WITH FORMATING IT IN SWAP.
            3____ ALSO HAVE TO CHANGE ITS ID.
WE KNOW SWAP IS ALWAYS THE DOUBLE OF THE RAM.                                                                                             4____THEN MAKE A PARTITON THE DOUBLE OF YOU ADDED THE SIZE OF THE RAM.
5____THEN SAVE THE PARTITON OF NEW LOGICAL DRIVE.
6____THEN CHANMGE THE ID OF THE PARTITON B COZ THE SWAP AND LOGICAL HAVE
          DIFFERENT ID`S
           
                        PARTITON                ID
                       
                        LOGICAL                  83                                                                                                                                SWAP                         82

BASH FILES CONFIGURATION MODIFICATION AND MANAGEMENT OF BASH FILES BY GORVAM SADDAR



TROUBLESHOOTING THE [.BASH] FIILES

.BASH files are the main login or logout files of the Linux. .BASH are [4] files that works after login and          
              And after logout.
            1__these  files contain the information  about the ROOT, MACHINE NAME AND SIMLE USER.
            2__.BASH files are Hidden files starting with [.].
            3__ to see run command
                        #ls –al
            4__ there are four .bash files that re as.                               Works of the files

These two files are used after login and during the system login
 
                        1_ .bash_profile
                        2_ .bashrc

This file contain the history of commands that we use recently
 
                        3_ .bash_history

This file use when we logout the user
 
                        4_ .bash_logout          
 


                        These four have there own different works depending on them.
                        If we MODIFY any file it could be create a problem for the system.

Now how-to do troubleshooting ___________________________________________________

            Case 1________ if files are deleted then
                                   
            [ the backup of  [.bash] files is in the [/etc/skel/.bash*] ]

            Like someone delete the files

                        #rm –rf .bash*
                        #logout

            Then after logout when you login you see the following screen with bash error

                        Login : root
                        Passwd:
                        -bash-3.1# _____________________this is the change only because the files that contain the
                                                                                    Information of this place are missing.
                                                                                    We can  use our system normally except we don’t know                                                                                           which the terminal is. 


Now copy files from the backup to the root

                        # cp /etc/skel/.bash* /root/ _________-enter
                                                           
                                    All files now copy and logout then login the system you get the normal position.

                        # logout
                       
                        Login : root
                        Passwd:
                       
                        [root@localhost~]#
The problem is solved of deleting of the files
                                                                                    But someone can also modify the files also in backup files.

            If someone MODIFY the files _____________________


            Like write [logout] at the end of the file and save then after you logout you cant login till the logout not             deleted.

            # vi .bash_profile _____________________________ open file
            Khsdkfaidfgaksdnfkans,df
            J;skgjfo;skagsoljagk;j’lkfl fkjpoksdfpikpsdokfp’sdk, ‘l;fgsklopsd pkpskfs
            Loksjgvljdflg





            Lpodkjgpjdfgdsfg;jmdgf
            There is some text like that in the file.
           


            Logout ______________________________________________________if you write logout here



            :wq


  Now you can`t login till you go to run level 1 to troubleshoot the file mean to delete the logout from the file.

            OPEN RUN LEVEL 1 THEN DELETE LOGOUT FROM THE FILE.
            THIS ALSO HAPPEN IN THE .bashrc FILE SAME PROCEDURE TO RECOVER

                        RUN LEVEL

            

YUM SERVER GORVAM SADDAR

Yum server
Yellow dog update modifier
Yum server is used to install the application or redhat packages from a yum server to all the redhat  network clients

To install

#setup                  configure ip

#lokkit                  disable firewall + selinux
#mount   /dev/cdrom /mnt
#cd /mnt/Server                                              S should be capital
# rpm   –ivh    vsftp*   --aid   --force
# rpm  –ivh   creterep*  --aid  --force
#cd
#cp –var   /mnt/*   /var/ftp/pub/
After copy

#cd   /var/ftp/
# createrepo   /pub/
Wait now……


#cd

Now go to

#cd   /etc/yum.repos.d/
#vim abc.repo                                   .repo is must
Coding of file

[name]
Name=abc
Baseurl=file:///var/ftp/pub/
Enable=1
Gpgcheck=0

:wq


#service network restart
Service vsftpd restart
Yum clean all

Server is ok

Now to install
Yum install dhcp*

To remove
Yum remove dhcp*

On client

# setup

#lokkit
#cd /etc/yum.repos.d
#vi abc.repo
Coding of file
[name]
Name=anything
Baseurl=ftp://serverip/pub
Enable=1
Gpgcheck=0



Service network restart
Yum clean all


That’s all


If any prblm then call after 5 pm     ok      Enjoy …………………………………………………………………



squid server PROXY SERVER CONFIGURATION BY GORVAM SADDAR

Prerequisites of Squid Proxy Server

1.     FTP Server

Introduction

The File Transfer Protocol (FTP) is used as one of the most common means of copying files between servers over the Internet. Most web based download sites use the built in FTP capabilities of web browsers and therefore most server oriented operating systems usually include an FTP server application as part of the software suite. Linux is no exception.

How To Download and Install VSFTPD
Most Red Hat and Fedora Linux software products are available in the RPM format. When searching for the file, remember that the VSFTPD RPM’s filename usually starts with the word “vsftpd” followed by a version number, as in vsftpd-2.0.5-16.el5.i386.rpm

white hat BY GORVAM SADDAR

hello this is only a check post i m going to post all required applicatioons and notes which will help u to get knowledge and quick acess to ur practical topics............REFER http://gorvam.blogspot.in/