Skip to content

First boot and login

First boot

If you used an SD card, insert it into the slot and power on the board. On a slow board with a class 10 SD card, the first boot (with DHCP) can take up to two minutes.

First-run setup

At the first boot, a setup wizard asks a few questions and creates your user account. It has the same steps in two forms:

  • Graphical wizard: desktop images, and boards with a touchscreen and no keyboard. It shows on the screen.
  • Text wizard: CLI images on the screen, a serial console and SSH.

To reach the board over SSH, log in as root with the password 1234. To find the IP address of the board, you can use this tool.

The setup asks for:

  1. Network. Without a wired connection, the wizard offers the Wi-Fi networks it finds. You can also skip this step.
  2. Username. Type a new username, for example jane, for a local account. Or type @ and your GitHub username, for example @jane-doe: the wizard looks up the account and uses its full name, its username and its public SSH keys.
  3. Password. One password for the new user and for root. The new user can use sudo.
  4. Customize (optional). Shell, language, time zone, keyboard, full name and username, and Disable root password login over SSH. With a GitHub account also: import its SSH keys, and apply its dotfiles (a public armbian-dotfiles repository of the account: its files go to the home directory of the new user; the image needs dotfiles support in first login).
  5. Install (UEFI only). With an internal drive, the wizard then offers to copy the system to it. See Installing to internal storage.

Disable root password login over SSH is on by default: root then logs in over SSH with a key only. The imported SSH keys work for root too. Without a key, root keeps password login. If another sshd setting allows root password login, first login prints a warning. Check it with sudo sshd -T -C user=root,host=localhost,addr=127.0.0.1 | grep permitrootlogin (-C applies the Match blocks for root). To keep password login for root, clear the option in Customize.

The language, time zone and keyboard come from the location of the board. Press F2 to switch the wizard to English and back.

GitHub sign-in

With a GitHub account, the wizard offers Sign in. It shows a code and a QR code. Open github.com/login/device on a phone or a computer and enter the code. After the sign-in, the setup makes an SSH key for the device and adds it to your GitHub account as a signing key: your commits from the device show as verified.

By default the device can only sign commits. Push from this device also adds the key for login and keeps a GitHub CLI login: the device can then push to every repository of the account. Select it before you sign in: the sign-in asks GitHub for the permissions of this choice.

  • Graphical wizard: the option is in the GitHub card, next to Sign in. It shows only before the sign-in.
  • Text wizard: the option is in Customize. A change after the sign-in starts a new sign-in with a new code, and the setup waits until it is complete or cancelled.

Without a sign-in, a found account still sets the git name and email of the new user. The SSH keys of the account open the new user and root.

Graphical wizard

Graphical wizard: account

The GitHub account was found. Sign in is optional:

Graphical wizard: GitHub account found

The sign-in shows the code and a QR code of the page:

Graphical wizard: GitHub sign-in

Customize opens the other settings:

Graphical wizard: customize

Time zone, Language and Keyboard open a list with a search field:

Graphical wizard: region and keyboard

Without a wired connection, the wizard starts with the Wi-Fi networks:

Graphical wizard: Wi-Fi

Text wizard

The text wizard shows the same steps, one question per screen. The keys are at the bottom of each screen: Enter goes on, Tab opens Customize, F3 starts the GitHub sign-in.

Text wizard: username

Text wizard: GitHub account found

The QR code shows where the terminal is large enough (80x24 or more) and the font has the half blocks. Else the page and the code show as text:

Text wizard: GitHub sign-in

Text wizard: Wi-Fi

Text wizard: customize

After the setup, the login prompt follows. On a desktop image, the desktop starts.

Press Ctrl-C in the text wizard to answer the plain text prompts instead.

Text prompts (fallback)

The plain text prompts show when the wizard is not installed (for example on armhf images), after Ctrl-C in the text wizard, and on a terminal without a type (TERM=dumb, for example automation over SSH).

On the local console, the prompts also ask for the keyboard layout first. Over SSH and on a serial console, the layout of your computer applies.

Text Only
Welcome to Armbian!

Documentation: https://docs.armbian.com | Community support: https://forum.armbian.com

IP address: 192.168.1.42

Create root password: ********
Repeat root password: ********

Shell: BASH

Creating a new user account. Press <Ctrl-C> to abort

Please provide a username (eg. your first name): jane
Create user (jane) password: ********
Repeat user (jane) password: ********

Please provide your real name: Jane

Dear Jane, your account jane has been created and is sudo enabled.
Please use this account for your daily work from now on.

Internet connection was not detected.

Connect via wireless? [Y/n] y

Detected wireless networks:

1        NETWORK
2        MY-WIFI

Enter a number of SSID: 2

Enter a password for MY-WIFI: ********

Detected timezone: Europe/Ljubljana

Set user language based on your location? [Y/n] y

Generating locales: sl_SI.UTF-8
root@bananapim2pro:~#
Automated config

All answers can be preset, so that the first boot needs no questions. See Autoconfig.


Previous: Writing the image to media

Next: First steps after login

Back to the Getting Started overview.