Files
Autodesk-Fusion-360-for-Linux/files/scripts/development-branch/flatpak-install.sh
2021-11-09 12:48:31 +01:00

85 lines
8.8 KiB
Bash

#!/bin/bash
####################################################################################################
# Name: Autodesk Fusion 360 - Setup Wizard - Flatpak (Linux) #
# Description: With this file you can install Autodesk Fusion 360 on Linux. #
# Author: Steve Zabka #
# Author URI: https://cryinkfly.com #
# License: MIT #
# Copyright (c) 2020-2021 #
# Time/Date: 11:30/09.11.2021 #
# Version: 2.0 #
####################################################################################################
###############################################################################################################################################################
# DESCRIPTION IN DETAIL #
###############################################################################################################################################################
# With the help of my setup wizard, you will be given a way to install Autodesk Fusion 360 with some extensions on #
# Linux so that you don't have to use Windows or macOS for this program in the future! #
# #
# Also, my setup wizard will guides you through the installation step by step and will install some required packages. #
# #
# The next one is you have the option of installing the program directly on your system or you can install it on an external storage medium. #
# #
# But it's important to know, you must to purchase the licenses directly from the manufacturer of Autodesk Fusion 360, when you will work with them on Linux! #
###############################################################################################################################################################
###############################################################################################################################################################
# 1. Step: Install Flatpak on your system: https://flatpak.org/setup/ (More information about FLatpak: https://youtu.be/SavmR9ZtHg0) #
###############################################################################################################################################################
# #
# The next two steps are also very important for you, because on some Linux Distrubition you dosn't get to work Flatpak without these steps!!! #
###############################################################################################################################################################
# #
# 1. Step: Open a Terminal and run this command sudo nano /etc/hosts (Change this file wihtout # !) #
# #
# 127.0.0.1 localhost #
# 127.0.1.1 EXAMPLE-NAME #
# #
# ::1 ip6-localhost ip6-loopback #
# fe00::0 ip6-localnet #
# ff00::0 ip6-mcastprefix #
# ff02::1 ip6-allnodes #
# ff02::2 ip6-allrouters #
# ff02::3 ip6-allhosts #
# #
# 2. Step: Run this command: sudo nano /etc/hostname (Change this file wihtout # !) #
# #
# EXAMPLE-NAME #
# #
# 3. Step: Reboot your system! #
# #
###############################################################################################################################################################
###############################################################################################################################################################
# ALL FUNCTIONS ARE ARRANGED HERE: #
###############################################################################################################################################################
function flathub {
# Add the Flathub repository for your current user!!!
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak -y --user install flathub \
org.freedesktop.Platform/x86_64/20.08 \
org.freedesktop.Platform.Compat.i386/x86_64/20.08 \
org.freedesktop.Platform.GL32.default/x86_64/20.08 \
org.freedesktop.Platform.GL.default/x86_64/20.08 \
org.freedesktop.Platform.VAAPI.Intel.i386/x86_64/20.08 \
org.freedesktop.Platform.VAAPI.Intel/x86_64/20.08 \
org.freedesktop.Platform.ffmpeg_full.i386/x86_64/20.08 \
org.freedesktop.Platform.ffmpeg-full/x86_64/20.08
# Install some packages for Nvidia users
if [ -f /proc/driver/nvidia/version ]; then
ver=$(nvidia-settings -q all |grep OpenGLVersion|grep NVIDIA|sed 's/.*NVIDIA \(.*\) /nvidia-\1/g'|sed 's/\./-/g')
flatpak -y --user install flathub \
org.freedesktop.Platform.GL.$ver \
org.freedesktop.Platform.GL32.$ver
fi
# Install a special Wine-Version (org.winehq.flatpak-proton-68-ge-1)
wget -c https://github.com/fastrizwaan/flatpak-wine-releases/releases/download/6.19-20211009/org.winehq.flatpak-wine619-6.19-20211010.flatpak
flatpak -y --user reinstall org.winehq.flatpak-wine619-6.19-20211010.flatpak
}
flathub