extras
This commit is contained in:
29
CHIP-updater/install_extras.sh
Normal file
29
CHIP-updater/install_extras.sh
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Installing extras
|
||||||
|
echo "."
|
||||||
|
echo "*** installing extras. ***"
|
||||||
|
|
||||||
|
apt install neofetch -y
|
||||||
|
echo "neofetch" >> /home/chip/.bashrc
|
||||||
|
|
||||||
|
wget https://raw.githubusercontent.com/asophila/headless/main/startup.sh
|
||||||
|
chmod +x startup.sh
|
||||||
|
|
||||||
|
sed -e -i '$i \sh /home/chip/startup.sh\n' /etc/rc.local
|
||||||
|
|
||||||
|
echo -n "Insert a name for the ntfy.sh group where the network IP will be posted:"
|
||||||
|
read group
|
||||||
|
if [$group==""]; then
|
||||||
|
$group=="secret_ip"
|
||||||
|
fi
|
||||||
|
sed -i 's/SECRET_GROUP/$group/g' startup.sh
|
||||||
|
|
||||||
|
echo -n "Insert a name for this host:"
|
||||||
|
read hname
|
||||||
|
|
||||||
|
hostnamectl set-hostname $hname
|
||||||
|
|
||||||
|
|
||||||
|
echo "."
|
||||||
|
echo "*** Done ***"
|
||||||
@@ -11,14 +11,14 @@ mv jessie_source_list.txt /etc/apt/sources.list
|
|||||||
|
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** Installing debian keyring. ***"
|
echo "*** Installing debian keyring. ***"
|
||||||
apt-get update
|
apt update
|
||||||
apt-get install debian-keyring debian-archive-keyring -y --force-yes
|
apt install debian-keyring debian-archive-keyring -y
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** apt update & upgrade ***"
|
echo "*** apt update & upgrade ***"
|
||||||
apt-get update
|
apt update
|
||||||
apt-get upgrade -y
|
apt upgrade -y
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
# Upgrade from jessie to stretch
|
# Upgrade from jessie to stretch
|
||||||
@@ -30,8 +30,9 @@ mv stretch_source_list.txt /etc/apt/sources.list
|
|||||||
|
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** apt update & upgrade ***"
|
echo "*** apt update & upgrade ***"
|
||||||
apt-get update
|
apt update
|
||||||
apt-get full-upgrade
|
apt install linux-image-armmp -y
|
||||||
|
apt full-upgrade -y
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
# Define network variables
|
# Define network variables
|
||||||
@@ -47,5 +48,7 @@ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
|
|||||||
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/stretch_x11.txt
|
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/stretch_x11.txt
|
||||||
mv stretch_x11.txt /etc/X11/xorg.conf
|
mv stretch_x11.txt /etc/X11/xorg.conf
|
||||||
|
|
||||||
|
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/stretch-to-buster.sh
|
||||||
|
chmod +x stretch-to-buster.sh
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** Update to Stretch finished. Reboot to continue the process. ***"
|
echo "*** Update to Stretch finished. Reboot to continue the process. ***"
|
||||||
@@ -9,9 +9,9 @@ mv buster_source_list.txt /etc/apt/sources.list
|
|||||||
|
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** apt update & upgrade ***"
|
echo "*** apt update & upgrade ***"
|
||||||
apt-get update
|
apt update
|
||||||
apt-get install linux-image-armmp
|
apt install linux-image-armmp -y --force-yes
|
||||||
apt-get full-upgrade
|
apt full-upgrade -y --force-yes
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
|
|
||||||
@@ -20,5 +20,6 @@ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
|
|||||||
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/buster_x11.txt
|
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/buster_x11.txt
|
||||||
mv buster_x11.txt /etc/X11/xorg.conf
|
mv buster_x11.txt /etc/X11/xorg.conf
|
||||||
|
|
||||||
|
apt autoremove -y --force-yes
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** Update to Stretch finished. Reboot***"
|
echo "*** Update to Buster finished. Reboot***"
|
||||||
|
|||||||
Reference in New Issue
Block a user