Skip to content

Commit 2c2efcf

Browse files
committed
Merge branch 'main' of github.com:BancroftSchoolOpenSource/UbuntuSetupScript
2 parents a3b76e2 + 09d2124 commit 2c2efcf

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11

2-
Arduino-2.desktop
32
bowlerstudio
4-
bowlerstudio.desktop
5-
Cura-5.4.desktop
63
Cura/
74
eclipse
8-
Eclipse-BS.desktop
5+
*.desktop
96
ScratchJr-Desktop/
107
EspExceptionDecoder-*.zip
11-
GitHubDesktop-linux-amd64-*.deb
8+
*.deb
9+
*.vsix
1210

meshlab.png

76 KB
Loading

setupPackages.sh

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ sudo apt install -y git texstudio python3-pip libncurses5 libpython2.7 mesa-uti
2626
sudo apt purge -y modemmanager scratch brltty
2727
sudo pip install pyserial
2828

29+
30+
sudo snap install blender --classic
31+
32+
2933
sudo cp $SCRIPT/81-bancroft.rules /etc/udev/rules.d/
3034
sudo udevadm control --reload-rules
3135
sudo udevadm trigger
3236

33-
echo "AD enromlment success!"
37+
3438

3539
if (! test -e /usr/local/bin/cura) then
3640
curl -L https://github.com/Ultimaker/Cura/releases/download/5.4.0/UltiMaker-Cura-5.4.0-linux-modern.AppImage -o $SCRIPT/cura
@@ -40,6 +44,7 @@ fi
4044
ICON=$SCRIPT/Cura/resources/images/cura-icon.png
4145
CURADESKTOP=$SCRIPT/Cura-5.4.desktop
4246
ARDUINODESKTOP=$SCRIPT/Arduino-2.desktop
47+
MESHLAB=$SCRIPT/MashLab.desktop
4348
if (! test -e $CURADESKTOP) then
4449
if (! test -e $ICON) then
4550
git clone https://github.com/Ultimaker/Cura.git $SCRIPT/Cura/
@@ -78,6 +83,25 @@ if (! test -e $ARDUINODESKTOP) then
7883
sudo desktop-file-install $ARDUINODESKTOP
7984
fi
8085

86+
if (! test -e $MESHLAB) then
87+
sudo wget https://github.com/cnr-isti-vclab/meshlab/releases/download/MeshLab-2023.12/MeshLab2023.12-linux.AppImage -O /usr/local/bin/mashlab
88+
sudo chmod +x /usr/local/bin/mashlab
89+
sudo cp $SCRIPT/meshlab.png /usr/local/bin/meshlab.png
90+
echo "[Desktop Entry]
91+
Version=1.0
92+
Type=Application
93+
Name=Mesh Lab
94+
Comment=
95+
Exec=/usr/local/bin/mashlab
96+
Icon=/usr/local/bin/meshlab.png
97+
Path=
98+
Terminal=false
99+
StartupNotify=false" > $MESHLAB
100+
sudo chmod +x $MESHLAB
101+
gio set $MESHLAB "metadata::trusted" yes
102+
sudo desktop-file-install $MESHLAB
103+
fi
104+
81105
SCRATCHJR=$SCRIPT/ScratchJr-Desktop/
82106
if (! test -e $SCRATCHJR) then
83107
git clone https://github.com/leonskb4/ScratchJr-Desktop $SCRATCHJR
@@ -170,8 +194,9 @@ for d in */ ; do
170194
sudo cp -r $SCRIPT/.config/cura/ /home/$TRIMMED/.config/
171195
fi
172196
sudo mkdir -p /home/$TRIMMED/Desktop/
173-
197+
sudo rm -rf /home/$TRIMMED/.config/google-chrome/Singleton*
174198
sudo chown -R $TMP:$TMP /home/$TRIMMED/
199+
175200
done
176201

177202

0 commit comments

Comments
 (0)