Serial console

We suggest configuring a serial console for your VDS. We find this is a more convenient way to access your server than VNC for the typical occasional use needed after initial installation.

Included below are examples for configuring grub and linux consoles, if you need the settings for anything else, these are as follows:

  Baudrate/speed: 115200
Word length/byte: 8
          Parity: No
       Stop bits: 1

Configure grub and linux

In /etc/default/grub, add or change the following settings.

GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
GRUB_SERIAL_COMMAND="serial --speed=115200"

Now run the command update-grub to build a new grub configuration file.

These lines are sufficient to tell both grub (the bootloader) and the linux kernel itself to use the serial port.

Run getty on the serial

To enable you to log in on the serial console, you will need to run a getty process on it. Most Linux distros now use systemd. On these systems, the command to run is:

systemctl enable serial-getty@ttyS0
systemctl start serial-getty@ttyS0

On other systems, you may need to edit /etc/inittab or similar.

Connect to the console

In the admin shell type the command console This starts consolidate, a terminal emulator attached to ttyS0 of your virtual server. To exit consolidate, type Ctrl+A x