I’ve installed correctly diet pi on my Raspberry pi model b+ v.1 and i can’t login.
And you are using correct IP address to login via SSH? Without a log quite hard to troubleshoot
I thought that after the dietpi setup I could use it directly on my raspberry, like an Ubuntu minimal distro. I’ll try to find out
what do you mean? What are you looking for?
because I was looking for some system for my raspberry fast enough, raspian os was very slow, then I looked among the various distros suggested by Raspberry pi imager and I’ve found dietPi, also in the setup I found among the various desktops the lxqt desktop,
I basically thought taht dietpi was a system like raspian os but lighter and faster
(btw sorry if I reply late but I’m out)
It is. What exact issue did you face when trying to login? In where/how did you try to login?
- If you have a HDMI screen attached, you should see a login prompt, where you can login with default
root:dietpicredentials, or the password you set indietpi.txtif changed, to start the initial setup. - If it is a headless system, you can login via SSH with the same credentials. If connected via Ethernet, it establishes a network connection via DHCP automatically.
- And you can attach a UART adapter to GPIO pins 6+8+10 (or the dedicated UART port on RPi 5), to login via serial console.
Let us know which way you tried, what failed, or what did not match you expectation.
I actually used the HDMI and used the Raspberry directly, also for installation and I also used the keyboard directly on the raspberry (which works great)
and after following all the instructions written on the screen to setup dietPi (and since this is the 3rd time I’ve tried it I used the same word for username,password and other things to make sure I don’t forget something), I restarted the system and it asked me for username and password and I tried multiple combinations (root,dietPi,password) nothing worked, in fact it tells me “login incorrect”
Btw I’ve successfully setup dietPi, so I’m not stuck on the first login,but I’m the post-setup login
What is “dietPi”? The users are “root” and “dietpi” (all lower-case). “login incorrect” is shown when you enter a wrong username.
So, the first time I turned on the Raspberry with dietPi it asked me to write “root” as the username and “dietpi” as the password, the login went fine, then I started the setup, that went fine too, I set everything up, even a new password and a new username, and when dietpi finished installing the lxqt desktop and doing the latest installations and updates and upgrades I restarted
When it turned on, it asked for my username and password, and that’s the problem. I tried the username and password I set, but it gives me “login incorrect.” So I tried the default login, username: root, password: dietpi, but still login incorrect, so I wanted to know something.
btw I’m doing everything on the raspberry directly connected to monitor with hdmi and keyboard
There is no dialogue to enter a new username
. The 1st is about the password for the two users, the 2nd is about the default password for new software installations. The users remain “root” and “dietpi”.
It is planned to remove the “dietpi” user, and replace it with a dialogue to (optionally) create a new user. But that has not been implemented yet.
The password dialogue forces you to use a different password than “dietpi”, so that it cannot remain the default, for security reasons. So it makes sense that user “root” and password “dietpi” does not work anymore after a reboot. You must have entered a different password during initial setup, the dialogue wouldn’t allow you to proceed with that.
I also tried more combination like :
Username:root
Password:dietpi
Username: root
Password:(password I’ve set)
Username:(username that I remember/think I’ve set)
Password:(password i’ve set)
P.S. I’ve set the same password for first and second setting btw
how did you created the user? Because there is no dialogue within our setup process to create users.
Nevermind about the username, it’s the second setting password, but the problem is that I’ve tried many combination, and failed login
there is just a single combination. root or dietpi user + the password you have given during first install.
Yes, i’ve tried that, but the login doesn’t work(username:root password:dietpi / username:root password:(password that I have set)
this is a onetime password for the first inital login because you are forced to changed during initial setup. It can’t be used afterwards.
in fact I used the password I chose during the setup(when I said “the password that i’ve set” I meant the password I had set during the setup, and it doesn’t work, also I had tried installing and doing the setup of dietpi on the same device and in the same method a couple of months ago, and I had the same problem
Also I’ve just tried with default login just to check if something went wrong during the setup and so didn’t set the new password
I btw just recognized that “Login incorrect” is emitted in both cases: with wrong username, as well as with wrong password.
Anyway, so the password must be wrong. Maybe try it with something very simple, like “1111” or so, to rule out that any special character or such is causing issues. It can be changed later.
The keyboard layout is set prior to the password dialog to avoid related issues like swapped z and y, so that shouldn’t be it. But still worth an attempt to use SSH, where the server-side kayboard layout does not play a role.
Did you by chance enter the same password as default software password (the 2nd password dialogue)? Because that can be retrieved, just to compare what it is with what you expect it is. But you would require access to the ext4 filesystem (2nd partition) on the SD card from another Linux system, e.g.:
openssl enc -d -a -md sha256 -aes-256-cbc -iter 10000 -salt -pass pass:'DietPiRocks!' -in /mnt/sdcard/var/lib/dietpi/dietpi-software/.GLOBAL_PW.bin
the password is correct(but login fails),I have already had experience and I know what to do usually, if in other cases, in other operating systems I find the wrong password, I try to rewrite it, (even if I know it is not safe, I usually use only 2 passwords everywhere, in some parts it uses the first password and in other parts the second), so I use other passwords that I usually use, also the password I use is very weak,it doesn’t use strange characters even capital letters, so I’m very sure, and I didn’t do anything wrong here, that I wrote the password incorrectly, and if so I tried several times and other ways too (but not ssh, I see that happening to me).
but for now I wanted to let you know that I tried everything just to make sure I didn’t do anything wrong and even several times, I even did the same thing a few months ago and had the same problem
maybe it’s really a problem with my device, I don’t know