Skip to content

Commit 0a0e2c4

Browse files
authored
Merge branch 'main' into optimize-rubik
2 parents fbd170a + 04b9c2a commit 0a0e2c4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

install_rubikpi3.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ echo '=== Files in current directory: ==='
88
ls -la
99

1010
ln -sf libOpenCL.so.1 /usr/lib/aarch64-linux-gnu/libOpenCL.so # Fix for snpe-tools
11+
# Create user pi:raspberry login
12+
echo "creating pi user"
13+
useradd pi -m -b /home -s /bin/bash
14+
usermod -a -G sudo pi
15+
echo 'pi ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers.d/010_pi-nopasswd >/dev/null
16+
chmod 0440 /etc/sudoers.d/010_pi-nopasswd
17+
18+
echo "pi:raspberry" | chpasswd
19+
20+
# Delete ubuntu user
21+
22+
if id "ubuntu" >/dev/null 2>&1; then
23+
echo 'removing ubuntu user'
24+
deluser --remove-home ubuntu
25+
fi
1126

1227
# This needs to run before install.sh to fix some weird dependency issues
1328
apt-get -y --allow-downgrades install libsqlite3-0=3.45.1-1ubuntu2

0 commit comments

Comments
 (0)