What password to use to log in after the first boot?
The first time I boot up my Raspberry Pi I get a login screen.
What username and password should I use? That is, what is the default password for Raspberry Pi?
Of course ... but still well worth answering. :)
This depends on the distribution you have downloaded. The default passwords for common distributions are as follows:
Distribution | Username | Password ---------------|------------|------------- Debian Squeeze | pi | raspberry Arch | root | root QtonPi | root | rootme Raspbian | pi | raspberry OpenElec | root | openelec
Straight after logging in you should change your password by using the passwd command at the shell prompt
$ passwd
+1 Recommending that users should change their password. Especially since these passwords are available on the Raps Pi site, in plain text
Keep in mind that the keyboard layout used by you Raspberry Pi could be a different one than the one you are used to! US Layout: here
Distribution | Username | Password ---------------|------------|------------- Debian Squeeze | pi | raspberry Arch | root | root QtonPi | root | rootme Raspbian | pi | raspberry OpenElec | root | openelec Pidora | root | raspberrypi RISC OS | n/a | n/a raspbmc | pi | raspberry
Beware if you are using a German keyboard: In this case you have to use pi / raspberrz
Why would this be the case?
German keyboards have the Z and Y key swapped: https://en.wikipedia.org/wiki/German_keyboard_layout
Yes but surely if you press the Y key, the keyboard is going to send a piece of data to the Pi saying that the Y key has been pressed? Under what circumstances would that not occur?
Keyboard drivers sometimes use keycodes relative to the location of the button and not the letter printed on top of it.
I used to have the problem with DOS based games a lot back in the old days.
@DarthVader: The keyboard tells the pi that key "row 2, column 7" was pressed. The Pi translates this to "Y". With a German keyboard, the Y key is at row 4, column 3, and the Pi doesn't know this is supposed to be an Y. (I'm oversimplifying a bit, google for "scancode" - you need to send the Pi the scancode that corresponds to Y, which is the Z on a German keyboard)
With Raspbian, the username is
pi
, and the password israspberry
. You can change the password by running the commandpasswd
, using theraspi-config
tool, or the graphicalRaspberry Pi Configuration
tool. On Arch, the username isroot
and the password isroot
. You can also change the password with the commandpasswd
.With Raspbian, the username is
pi
and the password israspberry
. Also note that SSH is disabled by default.To add to the answers about 'Beware if you are using a German keyboard: In this case you have to use pi / raspberrz', they are omitting to say that this is an issue after first boot because the user cannot yet have told the pi that a German keyboard is attached. The pi defaults to expecting a UK English keyboard. Once that's changed, all the letters and symbols will be correct.
The same issue also applies for other language keyboards - eg symbols in the wrong places - until the correct language driver is installed (eg, using sudo raspi-config). But it matters most for the password because the default contains a 'y' and needs the 7th key along on 2nd row (which is marked Y on the default English and many other keyboards but Z on a German keyboard).
Users with French 'AZERTY' keyboards will have to substitute for the 'A' in raspberry (press the 2nd key on 3rd row, whatever it is marked ...)
License under CC-BY-SA with attribution
Content dated before 6/26/2020 9:53 AM
Thorbjørn Ravn Andersen 8 years ago
Distribution dependent.