There are several ways you can log in to your ADS board running a Debian-based linux root filesystem.
NOTE: The default root password for Debian-based root filesystems is 'rootme'
Serial Port
You can connect to the serial tty on your board by using a serial terminal program (minicom, kermit, etc.). The default serial port speed is 38400 using N-8-1 (no parity, 8 bits and 1 stop bit) for the line settings.
Once the system has booted completely, a login: prompt will be displayed on the serial port. If you do not see the prompt, you may need to press the key to get it to display.
Note: By default, the serial port is the console device for ADS Linux distributions. This can be changed by altering the console= parameter in the kernel command line. Changing this parameter will only direct the kernel message to another tty - it will not disable the tty on the serial port. The ttys are controlled by the file /etc/inittab.
The serial port is also, by default, the debug port.
Keyboard/Video Console
If you have an LCD panel (or other display) connected to your board, you can also connect either a USB or PS/2 (depending on the ports available on your board) keyboard and log in to the system.
The login method will vary depending on which root filesystem you are running:
- Ramdisk
The Debian-based ramdisks automatically launch Microwindows at startup. After calibrating the touch-screen, tap 'Exit' to terminate the GUI. After 1 or 2 seconds, the screen should clear. Press to display a login: prompt on the tty.
- JFFS2/CRAMFS Flash
The JFFS2 and CRAMFS flash root filesystems automatically launch X-Windows (x11) at startup. After calibrating the touch-screen, a launcher menu will appear at the left edge of the screen. Tap 'Terminal' to bring up an Xterm terminal.
It is not necessary to 'log in' using a username/password to use this terminal.
If you would like to exit X-Windows and return to the text-mode tty, tap 'Exit Xwindows'. A normal login: will be displayed on the tty.
- Microdrive
The Microdrive root automatically launches X-Windows (x11) at startup. After calibrating the touch-screen, an Xterm terminal will appear.
It is not necessary to 'log in' using a username/password to use this terminal.
If you would like to exit X-Windows and return to the text mode tty, you will need to kill X-Windows by pressing '--'. You will be returned to the tty and a normal login: prompt will appear.
- All Filesystems
Under most configurations, you can login without exiting the GUI by pressing CTRL-ALT-F1 (control, alternate and F1 keys simultaneously). This switches to the first virtual tty directly, and logging in can proceed as described above. To return to the GUI at any time, press ALT-F2 (alternate and F2 simultaneously). Note that the tty numbers may vary on account of the actual system configuration.
Network (TCP/IP)
If your board is connected to a TCP/IP network (LAN), you can log in to the board using the 'SSH' service. The SSH server runs by default on all ADS Debian-based root filesystems.
Important: The ssh server is not started at boot-time by default. Additionally, before the SSH server will allow you to log in as root, you must change the default configuration to allow root logins. The procedure for doing this is as follows:
- Log in to the board (as root) using either the serial port or the keyboard tty.
- Using a text editor, such as 'vi', open the file /etc/ssh/sshd_config.
- Edit the line containing 'PermitRootLogin' and change the setting from No to Yes.
- Save the file.
- Run the command /etc/init.d/ssh restart to restart the SSH server using the new configuration.
Note: Enabling root logins can adversely affect the security of your system. You should seek the advice of an experienced systems administrator or security professional before deploying a networked system.
The SSH server will only allow protocol version 2 (SSH-2). Older clients that only implement SSH-1 will not work. Most recent Linux distributions ship with ssh clients that can handle SSH-2.
The SSH server also supports x11 forwarding.
To begin an SSH login session from a Linux workstation, type 'ssh '. Consult the ssh manual page (man ssh) if you are unfamiliar with using ssh.
|