-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResolve.sh
68 lines (48 loc) · 1.65 KB
/
Resolve.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
60
61
62
63
64
65
66
67
68
#!/bin/bash
# https://github.com/Piercing666
# Check if Script is Run as Root
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user to run this script, please run sudo su then try again" 2>&1
exit 1
fi
username=$(id -u -n 1000)
# Checks for active network connection
if [[ -n "$(command -v nmcli)" && "$(nmcli -t -f STATE g)" != connected ]]; then
awk '{print}' <<< "Network connectivity is required to continue."
exit
fi
echo "Installing DaVinci Resolve Studio"
apt update && upgrade -y
wait
echo "Installing Dependencies for DaVinci Resolve."
sleep 3
nala install libglu1-mesa -y
nala install libgdk-pixbuf2.0-0 -y
nala install libxcb-composite0 -y
nala install libxcb-cursor0 -y
nala install libxcb-damage0 -y
nala install ocl-icd-libopencl1 -y
nala install libssl-dev -y
nala install ocl-icd-opencl-dev -y
nala install libpango-1.0-0 -y
nala install libxml2-utils -y
nala install podman-toolbox -y
wait
cd /home/"$username"/Downloads || exit
wget https://swr.cloud.blackmagicdesign.com/DaVinciResolve/v18.6.5/DaVinci_Resolve_Studio_18.6.5_Linux.zip?verify=1710156622-e6XNbpzTzj1fsjAISI3CUSvA9VlldcJIo8w265zl86o%3D
wait
unzip DaVinci_Resolve_Studio_18.6.5_Linux.zip*
wait
chown "$username":"$username" DaVinci_Resolve_Studio_18.6.5_Linux.run
./DaVinci_Resolve_Studio_18.6.5_Linux.run
wait
rm /opt/resolve/libs/libglib-2.0.so*
rm /opt/resolve/libs/libgio-2.0.so*
rm /opt/resolve/libs/libgmodule-2.0.so*
rm /opt/resolve/libs/libgobject-2.0.so*
apt update && upgrade -y
wait
echo "The first time you launch Resolve the splash will freeze."
echo "Launch Btop and terminate Davince Resolve splash."
echo "It will then launch without any issues."
sleep 60