PacNOG 6: Nadi, Fiji TERMINALS and CONSOLES Notes: ------ * Commands preceded with "$" imply that you should execute the command as a general user - not as root. * Commands preceded with "#" imply that you should be working as root. * Commands with more specific command lines (e.g. "RTR-GW>" or "mysql>") imply that you are executing commands on remote equipment, or within another program. Exercises --------- 1. Open your first "virtual terminal" window ----------------------------------------- Press the following key combination: Alt-Ctrl-F1 What do you see? Switch between virtual terminals 1 through 6. Once you are in a console window you can press: Alt-F[1-6] to move between consoles. Log in to a console as the user sysadmin: login: sysadmin Password: Take a look at what processes are running on your machine: $ ps auxwww If you had to you could kill a process that might have hung your X session (Gnome). To return to Gnome (your GUI) press: Alt-Ctrl-F7 2. Configure Minicom to work as a console for a router or switch ------------------------------------------------------------- We want Minicom to be configured to use serial port ttyS0 at 9600 bps with 8N1 and no hardware flow control for use later in the week. As inst open a terminal window: If minicom is not installed you can do so by typing: $ sudo apt-get minicom Then to configure minicom to work with most routers or switches do the following: 1.) $ sudo minicom 2.) Ctrl-a,z, then Choose "cOnfigure Minicom" 3.) Choose "Serial port setup" 4.) Set Serial Device to be /dev/ttyS0 5.) Set Hardware Flow Control to "No" 6.) Exit, then press Ctrl-a, z. Choose "comm Parameters" 7.) Set Speed to 9600 8.) Exit. Exit Minicom (Ctrl-a, x) and restart Minicom: 9.) $ sudo minicom