-
Notifications
You must be signed in to change notification settings - Fork 41
/
setup_ubuntu.sh
59 lines (50 loc) · 1.47 KB
/
setup_ubuntu.sh
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
#!/bin/bash
# Add repositories to system sources
echo "deb [trusted=yes] https://crashoveride95.github.io/apt/ ./" | sudo tee /etc/apt/sources.list.d/n64sdk.list
echo "deb [trusted=yes] https://lambertjamesd.github.io/apt/ ./" | sudo tee /etc/apt/sources.list.d/lambertjamesd.list
# Update system package lists
sudo dpkg --add-architecture i386
sudo apt update
# Install various packages
sudo apt install -y \
binutils-mips-n64 \
build-essential \
cimg-dev \
cmake \
ffmpeg \
gcc-mips-n64 \
git \
imagemagick \
libassimp-dev \
liblua5.4-0 \
liblua5.4-dev \
libpng-dev \
libtiff-dev \
libyaml-cpp-dev \
lua5.4 \
makemask \
newlib-mips-n64 \
nodejs \
n64sdk \
pip \
pipx \
python3 \
root-compatibility-environment \
sfz2n64 \
sox \
unzip \
vtf2png
# Ubuntu WSL needs these for some reason.
sudo apt-get update && sudo apt-get install libxfixes3 libxi6 libxkbcommon0 libxxf86vm1 libgl1-mesa-glx -y
# Install Blender specific version via snap
sudo snap install blender --channel=3.6lts/stable --classic
# Append environment variables to .bashrc
echo 'export PATH=$PATH:/opt/crashsdk/bin' >> ~/.bashrc
echo 'export ROOT=/etc/n64' >> ~/.bashrc
# Install pipx packages
sudo apt install pipx -y
pipx ensurepath --force
pipx install vpk
# Source the updated .bashrc to apply changes in the current terminal
source ~/.bashrc
echo "Setup complete. Please restart the terminal if paths are not updated."