Years ago there was an edit to some pi-star file to bypass the login to the dashboard. It involved commenting out a line or two in one of the files. I recently had to reimage my SD card and now am again having to enter the login and password to access the dashboard.
I know it’s not by running raspi-config, though that’s the huge majority of the hits I get when googling “pi-star autologin” and variants.
Hours of searching on the web and in this forum have had zero result so I’m asking here for how to do this. It’s a simple procedure and takes just minutes, but my old brain can’t retrieve either the file to be edited or the lines to be altered. If there’s a YouTube video on how to do it I’ve not found it.
Even a photo of the opened file will do. I can figure out from there where to go and what to do (I hope).
WU0V
81st years as a tehno-nerd
How to autologin to dashboard
Re: How to autologin to dashboard
I think this is what you're looking for - taken from wiki.pistar.uk, which no longer seems to be active.
---------------------------
How to disable the password prompt on the dashboard.
1. SSH into your Pi-Star
2. Make the disk writable
pi-star@pi-star(ro):~$ rpi-rw
pi-star@pi-star(rw):~$
3. Edit the nginx config file as root:
pi-star@pi-star(rw):~$ sudo nano /etc/nginx/sites-enabled/pi-star
4. Comment out the following 3 lines:
---------------------
location ^~ /admin {
# try_files $uri $uri/ =404;
# auth_basic "Restricted";
# auth_basic_user_file /var/www/.htpasswd;
client_max_body_size 512K;
include /etc/nginx/default.d/php.conf;
}
--------------------------------
5. Save the file with a Ctrl-o (Hold "Ctrl" on the keyboard and press "o"
6. Exit the editor with a Ctrl-x (Hold "Ctrl" on the keyboard and press "x"
7. Restart the web server
pi-star@pi-star(rw):~$ sudo systemctl restart nginx.service
-------------------------
** Use at your own risk - password protection is there for a reason **
Eric - G6FGY
---------------------------
How to disable the password prompt on the dashboard.
1. SSH into your Pi-Star
2. Make the disk writable
pi-star@pi-star(ro):~$ rpi-rw
pi-star@pi-star(rw):~$
3. Edit the nginx config file as root:
pi-star@pi-star(rw):~$ sudo nano /etc/nginx/sites-enabled/pi-star
4. Comment out the following 3 lines:
---------------------
location ^~ /admin {
# try_files $uri $uri/ =404;
# auth_basic "Restricted";
# auth_basic_user_file /var/www/.htpasswd;
client_max_body_size 512K;
include /etc/nginx/default.d/php.conf;
}
--------------------------------
5. Save the file with a Ctrl-o (Hold "Ctrl" on the keyboard and press "o"
6. Exit the editor with a Ctrl-x (Hold "Ctrl" on the keyboard and press "x"
7. Restart the web server
pi-star@pi-star(rw):~$ sudo systemctl restart nginx.service
-------------------------
** Use at your own risk - password protection is there for a reason **
Eric - G6FGY
Re: How to autologin to dashboard
Eric, many thanks for posting that. I recently configured a 3rd Pi-Star and couldn't find anywhere showing the hack, I have previously removed the log-on from my other two Pies but misplaced where I had saved the info.
73 Dave
73 Dave
ID51E plus 2
ID5100E
IC9700
AnyTone AT-D878UV
Chinese MMDVM with OLED on a Pi 3B
DVAP on a Pi 3B
ID5100E
IC9700
AnyTone AT-D878UV
Chinese MMDVM with OLED on a Pi 3B
DVAP on a Pi 3B
Re: How to autologin to dashboard
Thank you Eric. It was as simple as I remembered, if only I’d remembered…
I took a screenshot which I’ll print and save for the next time I have to start from scratch.
Lee, WU0V
I took a screenshot which I’ll print and save for the next time I have to start from scratch.
Lee, WU0V