Compare commits
11 Commits
0ff975ce9b
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 797a3cbad6 | |||
|
|
02da58f742 | ||
|
|
b4deac1539 | ||
|
|
b806d5a77a | ||
|
|
8be28b8665 | ||
|
|
48984c1a10 | ||
|
|
2407801e7e | ||
|
|
fefcc65857 | ||
|
|
082d00e223 | ||
|
|
ae462d24b1 | ||
|
|
9c27775ccc |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,2 +1,4 @@
|
|||||||
CHIP-tools/
|
CHIP-tools/.dl
|
||||||
|
CHIP-tools/.git
|
||||||
|
CHIP-tools/.new
|
||||||
sunxi-tools/
|
sunxi-tools/
|
||||||
|
|||||||
1
CHIP-tools
Submodule
1
CHIP-tools
Submodule
Submodule CHIP-tools added at 22a800e5ce
33
CHIP-updater/install_extras.sh
Normal file
33
CHIP-updater/install_extras.sh
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#!/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
|
||||||
|
mv startup.sh /home/chip/
|
||||||
|
chmod +x /home/chip/startup.sh
|
||||||
|
|
||||||
|
sed -i '$i \sh /home/chip/startup.sh\n' /etc/rc.local
|
||||||
|
chmod +x /etc/rc.local
|
||||||
|
|
||||||
|
echo -n "Insert a name for the ntfy.sh group where the network IP will be posted:"
|
||||||
|
read group
|
||||||
|
if [[ -z "$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
|
||||||
|
if [[ -z "$hname" ]]; then
|
||||||
|
$hname="chip"
|
||||||
|
fi
|
||||||
|
|
||||||
|
hostnamectl set-hostname $hname
|
||||||
|
|
||||||
|
echo "."
|
||||||
|
echo "*** Done ***"
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mv /etc/rc.local.orig /etc/rc.local
|
||||||
|
|
||||||
# Upgrade jessie
|
# Upgrade jessie
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** Updating and upgrading Debian Jessie. ***"
|
echo "*** Updating and upgrading Debian Jessie. ***"
|
||||||
@@ -9,16 +11,45 @@ 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
|
||||||
|
|
||||||
|
sudo apt install locales -y
|
||||||
|
sudo locale-gen en_US en_US.UTF-8
|
||||||
|
sudo dpkg-reconfigure locales
|
||||||
|
sudo dpkg-reconfigure tzdata
|
||||||
|
|
||||||
|
sudo apt install git vim tmux libx11-dev libxtst-dev
|
||||||
|
git clone https://github.com/aleh/pocketchip-batt.git
|
||||||
|
cd pocketchip-batt
|
||||||
|
sudo make install
|
||||||
|
cd
|
||||||
|
git clone --bare https://git.nytpu.com/personal/dotfiles ~/.dotfiles
|
||||||
|
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
|
mkdir -p .config-backup && config checkout pocketchip 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
|
||||||
|
config checkout pocketchip
|
||||||
|
rm -r .config-backup/
|
||||||
|
config config --local status.showUntrackedFiles no
|
||||||
|
echo 'export SDL_GAMECONTROLLERCONFIG="030000001008000001e5000010010000,usb gamepad,platform:Linux,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftshoulder:b4,rightshoulder:b6,dpup:-a1,dpdown:+a1,dpleft:-a0,dpright:+a0,"' | sudo tee /etc/environment
|
||||||
|
|
||||||
|
cd /tmp/
|
||||||
|
wget www.lexaloffle.com/dl/chip/pico-8_0.2.2c_chip.zip
|
||||||
|
sudo unzip -o pico-8_0.2.2c_chip.zip -d /usr/lib
|
||||||
|
# it breaks after the stretch upgrade so we need to add this library
|
||||||
|
sudo wget -O /usr/lib/pico-8/libcurl.so.3 https://raw.githubusercontent.com/mackemint/PocketCHIP-buster-update/main/assets/libcurl.so.3
|
||||||
|
|
||||||
|
cd
|
||||||
|
git clone https://git.nytpu.com/forks/PocketDesk
|
||||||
|
sudo ./PocketDesk/PocketDESK.sh
|
||||||
|
|
||||||
|
|
||||||
# Upgrade from jessie to stretch
|
# Upgrade from jessie to stretch
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** Upgrading Debian Jessie to Debian Stretch ***"
|
echo "*** Upgrading Debian Jessie to Debian Stretch ***"
|
||||||
@@ -28,8 +59,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
|
||||||
@@ -45,5 +77,8 @@ 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
|
||||||
|
mv stretch-to-buster.sh /home/chip/
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** Update to Stretch finished. Reboot to continue the process. ***"
|
echo "*** Update to Stretch finished. Reboot to continue the process. ***"
|
||||||
@@ -2,15 +2,16 @@
|
|||||||
|
|
||||||
# Upgrade from stretch to buster
|
# Upgrade from stretch to buster
|
||||||
echo "."
|
echo "."
|
||||||
echo "*** Updating and upgrading Debian Jessie. ***"
|
echo "*** Updating and upgrading Debian Stretch to Buster. ***"
|
||||||
mv /etc/apt/sources.list /etc/apt/sources.list.bak
|
mv /etc/apt/sources.list /etc/apt/sources.list.bak
|
||||||
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/buster_source_list.txt
|
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/buster_source_list.txt
|
||||||
mv buster_source_list.txt /etc/apt/sources.list
|
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 full-upgrade
|
apt install linux-image-armmp -y --force-yes
|
||||||
|
apt full-upgrade -y --force-yes
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
|
|
||||||
@@ -19,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 to continue the process. ***"
|
echo "*** Update to Buster finished. Reboot***"
|
||||||
@@ -20,10 +20,10 @@ This guide and scripts are based on the excelent work made by https://github.com
|
|||||||
3. Plug the C.H.I.P. again
|
3. Plug the C.H.I.P. again
|
||||||
4. Connect to the chip using `sudo screen /dev/ttyACM0`
|
4. Connect to the chip using `sudo screen /dev/ttyACM0`
|
||||||
5. Use user: chip and password: chip to connect
|
5. Use user: chip and password: chip to connect
|
||||||
6. run `sudo nmtui` to set-up a wifi connection to <YOUR SSID>
|
6. run `sudo nmtui` to set-up a wifi connection to YOUR_SSID
|
||||||
7. run `sudo nmcli c` to show your current connections
|
7. run `sudo nmcli c` to show your current connections
|
||||||
8. run `sudo nmcli c m <YOUR SSID> connection.autoconnect yes` to set autoconnection to <YOUR SSID> wifi in case of trouble
|
8. run `sudo nmcli c m <YOUR SSID> connection.autoconnect yes` to set autoconnection to YOUR_SSID wifi in case of trouble
|
||||||
9. use `ip address` to get your <CHIP ID>. From your linux computer open other terminal and connect using `ssh chip@<CHIP IP>`. You can close the terminal running `screen`.
|
9. use `ip addr | grep "inet " | awk 'NR==2{print $2}' | cut -d/ -f1 ` to get your CHIP_IP. From your linux computer open other terminal and connect using `ssh chip@CHIP_IP`. You can close the terminal running `screen`.
|
||||||
|
|
||||||
### Part 3: upgrade debian jessie to debian stretch
|
### Part 3: upgrade debian jessie to debian stretch
|
||||||
1. run `sudo su -` to allow all the next changes as superuser
|
1. run `sudo su -` to allow all the next changes as superuser
|
||||||
|
|||||||
Reference in New Issue
Block a user