January 22, 2008

minicom as a cisco console

 just for my personal documentation :p

ubuntu@box$ sudo apt-get install minicom

ubuntu@box$ dmesg | grep tty

[   36.872922] serial8250: ttyS0 at I/O 0×3f8 (irq = 4) is a 16550A
[   36.873962] 00:0d: ttyS0 at I/O 0×3f8 (irq = 4) is a 16550A
 

it’s mean i have 1 active serial port on /dev/ttyS0.

    ubuntu@box$ minicom ‘-s (for configure the minicom, without ’ symbol)’

            [configuration]
            | Filenames and paths     
            | File transfer protocols 
            | Serial port setup       
            | Modem and dialing       
            | Screen and keyboard     
            | Save setup as dfl       
            | Save setup as..        
            | Exit                    
            | Exit from Minicom       
       

choose ‘serial port setup’ :

  
    | A -    Serial Device      : /dev/ttyS0                              
    | B – Lockfile Location     : /var/lock                               
    | C -   Callin Program      :                                          
    | D -  Callout Program      :                                          
    | E -    Bps/Par/Bits       : 9600 8N1                                 
    | F – Hardware Flow Control : No                                       
    | G – Software Flow Control : No                                       
    |                                                                      
    |    Change which setting?                                             


 save setup : save as dfl mean saving the configuration as default, and save setup as.. mean saving the configuration by some name, ‘my-cisco’for the example.

ubuntu@box$ minicom my-cisco  > if saving as a name

ubuntu@box$ minicom > if saving as dfl on the previous step.