2024-05-06 23:18:45 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
sudo apt-get update
|
2024-05-06 23:42:02 -04:00
|
|
|
sudo apt-get upgrade -y
|
2024-05-06 23:18:45 -04:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install python3-psycopg2 -y
|
2024-05-07 00:27:49 -04:00
|
|
|
sudo apt-get install python3-fido2 -y
|
2024-05-09 21:19:03 -04:00
|
|
|
sudo apt-get install python3-nfcpy -y
|
2024-05-06 23:42:02 -04:00
|
|
|
sudo apt-get install screen -y
|
2024-05-09 21:47:06 -04:00
|
|
|
|
2024-05-09 21:32:22 -04:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get upgrade -y
|
|
|
|
|
2024-05-07 00:56:24 -04:00
|
|
|
sudo mkdir /user/CNSA
|
|
|
|
|
2024-05-09 19:39:40 -04:00
|
|
|
# Define crontab job
|
2024-05-09 21:32:22 -04:00
|
|
|
JOB="@reboot /bin/sh /user/CNSA/script/startup.sh"
|
2024-05-06 23:18:45 -04:00
|
|
|
|
|
|
|
# Check if the job is already in the crontab and add it if it's not
|
|
|
|
( crontab -l | grep -F "$JOB" || echo "$JOB" ) | crontab -
|
|
|
|
|
2024-05-07 00:56:24 -04:00
|
|
|
sudo git clone https://gitea.eggtech.net/eggman20339/CNSA-276-FP.git /user/CNSA/CNSA-276-FP
|
2024-05-06 23:18:45 -04:00
|
|
|
|
2024-05-09 21:32:22 -04:00
|
|
|
sudo mkdir /user/CNSA/script
|
|
|
|
sudo cp /user/CNSA/CNSA-276-FP/startup.sh /user/CNSA/script/startup.sh
|
|
|
|
|
|
|
|
sudo chmod 777 /user/CNSA/script/startup.sh
|
2024-05-07 01:07:05 -04:00
|
|
|
|
2024-05-07 09:18:19 -04:00
|
|
|
pip3 install --upgrade fido2 --break-system-packages
|
2024-05-09 21:19:03 -04:00
|
|
|
pip3 install nfcpy --break-system-packages
|
|
|
|
pip3 isntall --upgrade nfcpy --break-system-packages
|
2024-05-07 08:37:26 -04:00
|
|
|
|
|
|
|
sudo apt-get autoremove -y
|
2024-05-07 01:07:05 -04:00
|
|
|
|
2024-05-07 00:00:51 -04:00
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo ""
|
2024-05-06 23:18:45 -04:00
|
|
|
echo "Installation Complete! Rebooting..."
|
2024-05-07 00:00:51 -04:00
|
|
|
sleep 5
|
2024-05-06 23:18:45 -04:00
|
|
|
sudo reboot 0
|