How to configure to set up the serial port as a remote terminal in RHEL4,RHEL5

Solution Unverified - Updated

Environment

Red Hat Enterprise Linux4
Red Hat Enterprise Linux5

Issue

If we want to configure to set up the serial port as a remote terminal in RHEL4,RHEL5, allowing logins via the serial console, how should we do?

Resolution

  • This is achieved by adding the following line to the /etc/inittab file:

    co:2345:respawn:/sbin/agetty ttyS0 115200 vt100
    
  • This option should be added to the the section called # Run gettys in standard runlevels:

    # Run gettys in standard runlevels
    1:2345:respawn:/sbin/mingetty tty1
    2:2345:respawn:/sbin/mingetty tty2
    3:2345:respawn:/sbin/mingetty tty3
    4:2345:respawn:/sbin/mingetty tty4
    5:2345:respawn:/sbin/mingetty tty5
    6:2345:respawn:/sbin/mingetty tty6
    co:2345:respawn:/sbin/agetty ttyS0 115200 vt100
    
  • After this edit is made, run the following command:

    # init q
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.