I am getting ready toset up two additional Pi-Star hotspots. Is there a way to change the user name from "pi-star" and password from "raspberry" to something else by editing a file or files on the Micro SD card before I install the card and power up the first time? I will have a total or three hotspots, one each for AMCOMM, Brandmeister and YSF/C4FM. The reason for doing it this way is to use separate frequencies for each network. I am running Linux, so I should have no problems mounting the cars to edit whatever files contain the user name and password.
Thank you,
73 de N8OAY
Is it possible to pre-configure user names and passwords before first boot?
Is it possible to pre-configure user names and passwords before first boot?
Anytone AT-D168UV
TYT MD-UV390+
RHS-H1 MMDVM Hotspot
DV Mega Euronode Hotspot
I know that I don't know what I don't know, so I ask a lot of
questions. An occasional stoopid question is guaranteed.
TYT MD-UV390+
RHS-H1 MMDVM Hotspot
DV Mega Euronode Hotspot
I know that I don't know what I don't know, so I ask a lot of
questions. An occasional stoopid question is guaranteed.
Re: Is it possible to pre-configure user names and passwords before first boot?
I don't know about prior to first booting Pi_star, this method of removing the requirement for a password works for one that is up and running. It may give you a clue as to where to look. The method was posted on this forum by someone else some time ago. I don't use a password for the admin screen on mine as (a) the password of raspberry is not exactly secure and (b) it is on a secure local network which only I have access to.
Incidentally, I have different colours for each of mine... they look better than the original orange. There is a CSS tool under expert, which makes colour changes easy. Dark green looks nice. This page will help you pick colours:
https://htmlcolorcodes.com/
73 Dave
---------------------------
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 with #:
---------------------
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
-------------------------
Incidentally, I have different colours for each of mine... they look better than the original orange. There is a CSS tool under expert, which makes colour changes easy. Dark green looks nice. This page will help you pick colours:
https://htmlcolorcodes.com/
73 Dave
---------------------------
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 with #:
---------------------
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
-------------------------
ID51E plus 2
ID5100E
IC9700
AnyTone AT-D878UV
Chinese MMDVM/OLED on a Pi 3B
Another Chinese MMDVM/OLED on a Pi Zero W
DVAP on a Pi 3B
ID5100E
IC9700
AnyTone AT-D878UV
Chinese MMDVM/OLED on a Pi 3B
Another Chinese MMDVM/OLED on a Pi Zero W
DVAP on a Pi 3B
Re: Is it possible to pre-configure user names and passwords before first boot?
Disabling the password is not what I am concerned about, I am hoping that there is maybe a *.conf file or something similar that I can edit to change that initial "pi-star" name and "raspberry" password because I already have a hotspot using those. I am trying to avoid having to shut that one down each time when I set the 2nd and 3rd ones up.
Anytone AT-D168UV
TYT MD-UV390+
RHS-H1 MMDVM Hotspot
DV Mega Euronode Hotspot
I know that I don't know what I don't know, so I ask a lot of
questions. An occasional stoopid question is guaranteed.
TYT MD-UV390+
RHS-H1 MMDVM Hotspot
DV Mega Euronode Hotspot
I know that I don't know what I don't know, so I ask a lot of
questions. An occasional stoopid question is guaranteed.
Re: Is it possible to pre-configure user names and passwords before first boot?
Surely they can be renamed from the original “pi-star” on your router as they will have unique MAC addresses. My Icom radios appear as IC-9700 and IC-7610, thanks to their MAC addresses.
73 Dave
73 Dave
ID51E plus 2
ID5100E
IC9700
AnyTone AT-D878UV
Chinese MMDVM/OLED on a Pi 3B
Another Chinese MMDVM/OLED on a Pi Zero W
DVAP on a Pi 3B
ID5100E
IC9700
AnyTone AT-D878UV
Chinese MMDVM/OLED on a Pi 3B
Another Chinese MMDVM/OLED on a Pi Zero W
DVAP on a Pi 3B
Re: Is it possible to pre-configure user names and passwords before first boot?
I'm sorry to keep re-asking the question, but I am not getting the answer I need. I keep getting replies about changing the user name and password after I power up the Pi.
I intend to install 3 hotspots. I have downloaded Pi-Star and will be burning the image to multiple Micro SD cards. Is there a file that I can edit while each of the Micro SD cards is still in my computer and change the default "pi-star" user name and the default "raspberry" password BEFORE I remove the card from my computer? BEFORE I put the card into the Pi and before I power up the Pi for the first time?
I will not see the MAC address until I power up the Pi. I am not going to disable the password. I want to have three Micro SD cards each with different user names and passwords preset before each Pi is powered up.
I realize that anyone using a Windows computer will not be able to mount the cards. I am running PCLinuxOS Debian (Bookworm), so I can see and have access to everything on the cards, including files that are normally hidden.
I intend to install 3 hotspots. I have downloaded Pi-Star and will be burning the image to multiple Micro SD cards. Is there a file that I can edit while each of the Micro SD cards is still in my computer and change the default "pi-star" user name and the default "raspberry" password BEFORE I remove the card from my computer? BEFORE I put the card into the Pi and before I power up the Pi for the first time?
I will not see the MAC address until I power up the Pi. I am not going to disable the password. I want to have three Micro SD cards each with different user names and passwords preset before each Pi is powered up.
I realize that anyone using a Windows computer will not be able to mount the cards. I am running PCLinuxOS Debian (Bookworm), so I can see and have access to everything on the cards, including files that are normally hidden.
Anytone AT-D168UV
TYT MD-UV390+
RHS-H1 MMDVM Hotspot
DV Mega Euronode Hotspot
I know that I don't know what I don't know, so I ask a lot of
questions. An occasional stoopid question is guaranteed.
TYT MD-UV390+
RHS-H1 MMDVM Hotspot
DV Mega Euronode Hotspot
I know that I don't know what I don't know, so I ask a lot of
questions. An occasional stoopid question is guaranteed.
Re: Is it possible to pre-configure user names and passwords before first boot?
The username and password is rooted in the base OS. So yes you can by following any online guide to change those with access to writing the sd card directly.
The freqs, modes etc. The only way i can think of doing that would be to use the backup feature on a live image.
edit the file, save it then drag n drop it to the root folder of the sd card.
Do that over. edit, save, DnD to each of the other sd cards.
When the setup boots it automagically pulls in the save file and restores ur setting to whats in that file.
Sent via smoke signals using my SM-G935F
The freqs, modes etc. The only way i can think of doing that would be to use the backup feature on a live image.
edit the file, save it then drag n drop it to the root folder of the sd card.
Do that over. edit, save, DnD to each of the other sd cards.
When the setup boots it automagically pulls in the save file and restores ur setting to whats in that file.
Sent via smoke signals using my SM-G935F
Andrew M1DNS.
Pi-star Admin Team.
Pi-star Admin Team.