Logging into Ubuntu

After installing Ubuntu, you can log in to Ubuntu OS on VisionFive 2 Lite. This section provides different methods for logging into the OS.

Logging into Ubuntu using Desktop over HDMI

To log in to Ubuntu OS on VisionFive 2 Lite using desktop over HDMI:

  1. After the HDMI of the display screen is connected, insert the micro-SD card with the Ubuntu image into VisionFive 2 Lite and power on

  2. After the desktop login system is displayed, you can use the keyboard and mouse on VisionFive 2 Lite.

  3. Enter the credentials as follows:
    • Username: user

    • Password: starfive

    You will see the following screen:

    Figure 1. Ubuntu Interface

Logging into Ubuntu using SSH over Ethernet

To log in to Ubuntu OS on VisionFive 2 Lite through an SSH connection over the local network:

  1. Prepare a VisionFive 2 Lite with Ubuntu image and power on.
  2. Connect one end of an Ethernet cable to the RJ45 connector on the VisionFive 2 Lite and the other end of the cable to a router.
  3. After a successful Ethernet connection, your router will assign an IP address to the VisionFive 2 Lite and it will be connected to the Internet.
  4. Continue the steps according to your OS:
    OS Instructions
    Windows
    1. Log in to your router (usually you need to enter 192.168.0.1 on the web browser to enter the router)

    2. Go to DHCP configuration and find the IP address of VisionFive 2 Lite.

      You can find the IP address by using its hostname starfive

      .
    3. Download and install Putty

    4. Open Putty or other SSH terminal tool to log in to Ubuntu.

    5. Select SSH under the Connection Type.
    6. Configure the settings of the following:
      • Host Name: IP address of VisionFive 2 lite

      • Port: 22

    7. Click Open.

      .

    8. If you need to use the root account for privileged operations in remote access, follow the instructions in Using SSH over Ethernet as Root Account.

    9. Enter the credentials as follows:
      • Username: user

        If you want to log in as root, enter root as the username.

      • Password: starfive

    Mac/Linux
    1. Log in to your router (usually you need to enter 192.168.0.1 on the web browser to enter the router)

    2. Go to DHCP configuration and find the IP address of VisionFive 2 Lite.

      You can find the IP address by using its hostname starfive

      .
    3. If you need to use the root account for privileged operations in remote access, follow the instructions in xxx.

    4. Open a terminal and type the following:
      ssh <account>@<VisionFive 2 Lit IP address>
      For example,
      ssh user@192.168.0.1
    5. Enter starfive as password in the prompt.

Logging into Ubuntu using USB-to-Serial converter

You can log in to Ubuntu OS on VisionFive 2 Lite through an SSH connection over the local network:

For Windows:
  1. Insert the micro-SD card with the Ubuntu image burned into VisionFive 2 Lite.

  2. Connect one end of the USB Type-C cable to the USB Type-C port on VisionFive 2 Lite, and connect the other end of the cable to the power adapter.
  3. Connect the jumper wires from the USB to Serial Converter to the 40-Pin GPIO header of the VisionFive 2 Lite as follows.

    Figure 2. Connecting Jumper Wire
  4. Connect the USB-to-Serial converter to the PC.
  5. Open Device Manager by typing Device Manager in the windows search box.
  6. Click the drop-down arrow from Ports (COM & LPT) and find the name of the connected serial port (e.g.: COM4).
    Figure 3. Example
  7. Download and install PuTTY from: https://www.chiark.greenend.org.uk/%7Esgtatham/putty/latest.html.
    Tip: PuTTY is an SSH and telnet client through which you can connect to the Carrier Board via SSH. You can skip this step if you already have PuTTY installed.
  8. Open Putty to connect the PC to the Carrier Board.

    1. Select Serial under the Connection Type.
    2. Configure the settings as follows:
      • Serial line: COM4 (choose your COM port)

      • Speed: 115200

      Figure 4. Example Configuration
      pir
    3. Click Open.

  9. Power on VisionFive 2 Lite.

  10. Enter the username and password in the prompt as follows:

      • Username: user
      • Password: starfive
    Note: You log in as either user or root.

For Mac/Linux:

  1. Prepare VisionFive 2 Lite with Ubuntu image.
  2. Connect one end of the USB Type-C cable to the USB Type-C port on VisionFive 2 Lite, and connect the other end of the cable to the power adapter.
  3. Connect the jumper wires between the USB-to-Serial converter and the 40-Pin GPIO header of VisionFive 2 Lite as follows.
    Figure 5. Connecting Jumper Wires
  4. Connect the USB-to-Serial converter to the PC.
  5. Open a terminal window on Mac/Linux.
  6. Update the packages list by the following command:
    sudo apt-get update
  7. Install minicom by the following command:
    sudo apt-get install minicom
  8. View the connected serial devices.
    dmesg | grep tty
  9. Connect to the serial device by the following command:
    sudo minicom -D /dev/ttyUSB0 -b 115200
    Note: The baud rate is set to 115,200.
  10. Power on VisionFive 2 Lite

    .
  11. Enter the username and password in the prompt as follows:
      • Username: user
      • Password: starfive
    Note: You log in as either user or root.