Beeranco 6001dd0c20
Update monitor.service
Replaced ordering of variables.
Vars that won't change color or after rebooting are now static.
Vars that can change are added to the end of the script , this makes "reloading" the script much faster since the variables are now "prepared" for the next run.

Fixed oopsie in services, Offline tags stil had the old "stat" behind the service names.

Added check if var $DATE is empty do not display it onscreen.

Change UFW check behaviour, if UWF is not yet installed the var $UFW will be empty,
this sets the script to declare the UFW as inactive.

Added check if var $IP is empty do not display the available ports services run on since they won't be reachable.
2023-08-14 19:36:40 +02:00
2023-08-13 16:57:18 +02:00
2023-08-14 19:36:40 +02:00
2023-08-14 18:05:34 +02:00
2023-08-14 16:49:04 +02:00
2023-08-14 02:11:35 +02:00

PiAutomation

Setup the SD card:

Insert your SD card

Download the Raspberry Pi Imager:
https://downloads.raspberrypi.org/imager/imager_1.7.5.exe

After running the Raspberry Pi Imager press:

CHOOSE OS
Select: Raspberry Pi OS (other), Raspberry Pi OS Lite (64-bit)

CHOOSE STORAGE:
Select your SD Card

Press on the gear/settings icon:
Check: Enable SSH
       Use password authentication

Check: Set username and password
       username: pi
       password: YourOwnPassword

If you plan on using wireless LAN / WLAN / Wifi do not enter any SSID or Password.
Read the instructions in the next section for usage of wireless LAN!

Check: Set locale settings
       Time zone: can be anything
       Keyboard layout: us

Persistant settings:
       Make sure Eject media when finished, is unchecked if you're planning on using wireless LAN!

Press the WRITE button and wait untill the Imager has written the OS.
When this is done close the Imager.

If you're not planning on using wireless LAN safely eject the SD card, setup your Pi and boot from the SD card.
Continue on the section: Setup the Pi
Otherwise read the section: Enabling wireless LAN

Enabling wireless LAN:

IMPORTANT! If you're planning to use 5GHz wireless LAN do NOT use the HDMI-1 port.
This can cause bad interference with the wireless radio due to HDMI signals at certain screen resolutions.
Use the HDMI-0 port (the port closest to the power/USB-C connection).
When using 2.4GHz wireless LAN this is not an issue and you can choose wich HDMI port to use.

Close the Raspberry Pi Imager.

Open a text editor on your system and paste the following:
country=NL
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid="YOURWIFINAME"
    psk="YOURWIFIPASSWORD"
    key_mgmt=WPA-PSK
}

Change ssid= and psk= to your wireless LAN name and password.

Save the file as wpa_supplicant.conf to the SD card labeled "bootfs" in your explorer.
Be aware to make sure there is no .txt extension in the filename!

You can now eject the SD card, setup your Pi and boot from the SD card.

Remember: you MUST use a LAN cable for the initial setup!!!
After running the installer in the last section of this readme you can disconnect the LAN cable!!!

Setup the Pi:

Find your Pi's IP address, you can use something like AngryIP for this.

SSH into your Pi with a program like MobaXTerm of Putty:
ssh pi@YOUR.RASPBERRY.IP.ADDRESS

Run the following command:
sudo nano /etc/ssh/sshd_config

Change the line: #PermitRootLogin prohibit-password to: PermitRootLogin yes
Save and exit (ctrl+o & ctrl+x)

Run the following command:
sudo systemctl restart sshd

Run the following command:
sudo passwd

Enter your password twice and type: exit
You will be logged out of your session as the Pi user.

Reconnect but this time as root with the following command:
ssh root@YOUR.RASPBERRY.IP.ADDRESS

Continue to the next section: Running the installer.

Running the installer:

wget https://raw.githubusercontent.com/Beeranco/PiAutomation/main/Installer.sh -O /tmp/installer.sh  
bash /tmp/installer.sh
Description
No description provided
Readme 200 MiB
Languages
Shell 58.6%
CSS 41.4%