-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
54 lines (43 loc) · 1.31 KB
/
init.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
#!/bin/bash
# Update package lists
sudo apt update
# Upgrade existing packages
sudo apt upgrade -y
# Install necessary tools and libraries
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev
sudo apt install -y expect
# Install NVIDIA driver using expect script
cat <<EOF > install_nvidia_driver.expect
#!/usr/bin/expect -f
spawn sudo apt install -y nvidia-driver-560
expect "Please select the layout matching the keyboard for this machine."
send "32\r"
expect "Keyboard layout: "
send "1\r"
expect eof
EOF
chmod +x install_nvidia_driver.expect
./install_nvidia_driver.expect
# Clone and build FluidX3D
git clone https://github.com/ProjectPhysX/FluidX3D.git
cd FluidX3D
chmod +x make.sh
./make.sh
cd ..
# Clone and install PicoGKRuntime
git clone --recursive https://github.com/michaelp91-dev/PicoGKRuntime.git
sudo chmod +x PicoGKRuntime/Install_Dependencies/linux_x64.sh
./PicoGKRuntime/Install_Dependencies/linux_x64.sh
# Copy PicoGKRuntime libraries and configure
sudo cp PicoGKRuntime/build/lib/*.so /usr/local/lib/
sudo chmod +x /usr/local/lib/picogk.so
ldconfig
# Create, build, and run a .NET console application (Rocket)
dotnet new console -n Rocket
cd Rocket
dotnet build
dotnet run
cd ..
# Clone PicoGK
git clone https://github.com/michaelp91-dev/PicoGK.git
echo "Script completed successfully."