Skip to content

Commit cafb13b

Browse files
authored
Merge pull request #3 from PhotonVision/enable-opi5
Username is pi/raspberry
2 parents 3bebd74 + e3eb3dd commit cafb13b

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ jobs:
2121
- name: raspi
2222
script: ./install_pi.sh
2323
base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-11/2023-12-11-raspios-bookworm-arm64-lite.img.xz
24-
# Orange pi default user seems bjork? also I can't find the where this file ends up in the image? https://github.com/Joshua-Riek/ubuntu-rockchip/blob/0710bd81f5619c25ccddb4e9d69ddbe73827f850/overlay/boot/firmware/user-data#L4
25-
# - name: opi5
26-
# script: ./install_opi5.sh
27-
# base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v1.30/ubuntu-22.04.3-preinstalled-server-arm64-orangepi-5.img.xz
24+
- name: opi5
25+
script: ./install_opi5.sh
26+
base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v1.30/ubuntu-22.04.3-preinstalled-server-arm64-orangepi-5.img.xz
2827

2928
name: "Build for ${{ matrix.name }}"
3029

install_opi5.sh

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,38 @@
1-
find /
21

3-
find / -name user-data
2+
# Create pi/raspberry login
3+
if id "$1" >/dev/null 2>&1; then
4+
echo 'user found'
5+
else
6+
echo "creating pi user"
7+
useradd pi -b /home
8+
usermod -a -G sudo pi
9+
mkdir /home/pi
10+
chown -R pi /home/pi
11+
fi
12+
echo "pi:raspberry" | chpasswd
413

514
apt-get update
6-
apt-get upgrade -y
7-
8-
cd /tmp
915
wget https://git.io/JJrEP -O install.sh
1016
chmod +x install.sh
1117

1218
sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=4-7/g' install.sh
1319

1420
./install.sh
21+
rm install.sh
22+
23+
sudo apt-get update
24+
apt-get install -y network-manager net-tools libatomic1
25+
apt-mark manual netplan.io
26+
apt-mark manual libatomic1
27+
28+
cat > /etc/netplan/00-default-nm-renderer.yaml <<EOF
29+
network:
30+
renderer: NetworkManager
31+
EOF
1532

16-
# Remove extra packages too
33+
# Remove extra packages
1734

18-
apt-get purge -y python3 gdb gcc g++ linux-headers* libgcc*-dev *qt*
35+
apt-get remove -y gdb gcc g++ linux-headers* libgcc*-dev
1936
apt-get autoremove -y
2037

2138
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)