-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrashtest
65 lines (59 loc) · 3.08 KB
/
crashtest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
sudo apt install git python3-pip python3-dev libffi-dev libssl-dev
---------------------------------------------------------------------------------------
sudo pip3 install --upgrade numpy
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
sudo apt-get update --allow-releaseinfo-change
or do this
sudo nano /etc/apt/sources.list
deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
sudo nano /etc/apt/sources.list.d/raspi.list
deb-src http://archive.raspberrypi.org/debian/ buster main
deb https://archive.raspberrypi.org/debian/ buster main
deb https://archive.raspberrypi.org/debian/ bullseye main
---------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
git clone https://github.com/waveshare/LCD-show.git
cd LCD-show/
chmod +x LCD35-show
./LCD35-show
----------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
echo "LANG=en_US.UTF-8" | sudo tee -a /etc/locale.conf
sudo locale-gen en_US.UTF-8
-----------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
sudo systemctl enable pwnagotchi
sudo systemctl start pwnagotchi
-----------------------------------------------------------------------------------------------
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old
sudo mkdir /var/lib/dpkg/info
sudo apt-get update && sudo apt-get -f install
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old
sudo rm -rf /var/lib/dpkg/info
sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info
--------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
UPGRADE PYTHON
sudo apt update
sudo apt upgrade
sudo apt install -y build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
tar -xvf Python-3.8.0.tgz
cd Python-3.8.0
./configure --enable-optimizations
make -j 4 # Adjust the number based on your CPU cores
sudo make altinstall
python3.8 --version
sudo update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.8 2
sudo update-alternatives --config python3
python3.8 -m ensurepip
python3.8 -m pip install --upgrade pip
python3 --version
pip3 --version
pip install stable-baselines3[extra]
pip install stable-baselines3