LCSR Serial Console System Developer Documentation

Nicholas Harknett, Developer

Tuesday 28 June 2005

Introduction:

The serial console system at LCSR is a system that allows pseudo-physical access to machines through properly configured serial ports. The system not only allows access, but arranges logging, and session management (starting connection, resuming connections, etc.) Any machine with serial console redirection abilities can be connected to the system, and can then be managed along with the other machines.

 

Overview of Interacting Components:

The serial console system is comprised of two components, the "Console Client" and the "Console Server". A user of the console system sits at the "Console Client". It is from this location that he can use a keyboard and mouse to connect to all the machines. These machines are managed through the "Console Server." This machine has the configuration data and all of the information that it can use to point traffic to the appropriate serial connections. All serial connections are made with cisco boxes which have a firmware configured to make the negotiation between serial and the machine fairly transparent.

 

Equipment Information and Specifications:

- configured with serial consoles on multiple telnet ports

- configured with serial parameters 9600 8N1 (9600 baud, 8 data bits, no parity, 1 stop bit)

- any machine w/ serial console capabilities

- configured with serial parameters 9600 8N1 (9600 baud, 8 data bits, no parity, 1 stop bit)

- configure terminal emulation as vt100

 

Console Server Software Details:

This is the core component of the serial console system. Logging, session starting and resuming is all done with the program GNU Screen. Below are the files involved in the console server and their role / development details. All files are located in /usr/local/ConsoleServer, so an installation can be moved to a different computer or backed-up by solely interacting with that directory. All programs should be run as the user 'console' on the console server, and this machine should allow all console heads to host-based login via ssh. Hostbased should work in the opposite direction as well.

 

Console Client Software Details:

This is the auxiliary component of the serial console system, and the one users will be interacting with most frequently. Basically, it is a machine that runs the window manager fvwm2 with specific configuration parameters that are all specified and generated within the user console's home directory. Below are all the files involved in the console client, and their usage / details. All these files are found within /home/console and due to the possibility of hard-coded paths, other placement may or may not work. Note: hostbased authentication should be configured as stated at the end of the intro. paragraph to the 'Console Server Software Details.' Note 2: Gdm is configured to automatically login with the user console.

 

Configuration for Various Software Items:

- add line near tty definitions that looks as such

c0:2345:respawn:/sbin/agetty ttyS0 115200 vt100-nav

- add these lines just before the kernel title definitions

serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1

terminal --timeout=10 serial console

- add this to end of 'kernel' line

console=tty0 console=ttyS0,115200n8

- add the following line to the lilo configuration file

serial=0,9600n8

 

 

Login