mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-11-04 20:36:15 +01:00
New features
Now You can install Autodesk Fusion to a place of your choice and I have set the downloading of the files so that they are only downloaded again if there is a newer version of them!
This commit is contained in:
@@ -1,111 +1,206 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
# Name: Autodesk Fusion 360 - Installationsskript (Linux)
|
# Name: Autodesk Fusion 360 - Installationsskript (Linux)
|
||||||
# Description: With this file you can install Autodesk Fusion 360 on Linux.
|
# Description: With this file you can install Autodesk Fusion 360 on Linux.
|
||||||
# Author: Steve Zabka
|
# Author: Steve Zabka
|
||||||
# Author URI: https://cryinkfly.com
|
# Author URI: https://cryinkfly.com
|
||||||
# Time/Date: 21:30/31.07.2021
|
# License: MIT
|
||||||
# Version: 2.0
|
# Copyright (c) 2020-2021
|
||||||
|
# Time/Date: 18:00/01.08.2021
|
||||||
|
# Version: 2.1
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# DESCRIPTION
|
||||||
|
|
||||||
|
# With the help of my script, You get a way to install the Autodesk Fusion 360 on your Linux system.
|
||||||
|
# Certain packages and programs that are required will be set up on your system.
|
||||||
|
#
|
||||||
|
# But it's important to know, that my script only helps You to get the program to run and nothing more!
|
||||||
|
#
|
||||||
|
# And so, You must to purchase the licenses directly from the manufacturer of the program Autodesk Fusion 360!
|
||||||
|
|
||||||
|
|
||||||
|
############################################################################################################################################################
|
||||||
# 1. Step: Open a Terminal and run this command: cd Downloads && chmod +x fusion360-install.sh && bash fusion360-install.sh
|
# 1. Step: Open a Terminal and run this command: cd Downloads && chmod +x fusion360-install.sh && bash fusion360-install.sh
|
||||||
# 2. Step: The installation will now start and set up everything for you automatically.
|
# 2. Step: The installation will now start and set up everything for you automatically.
|
||||||
|
############################################################################################################################################################
|
||||||
# Find your correct package manager and install some packages (the minimum requirements), what you need for the installation of Autodesk Fusion 360!
|
|
||||||
|
|
||||||
# Debian versions
|
|
||||||
if VERB="$( which apt-get )" 2> /dev/null; then
|
|
||||||
echo "Debian-based"
|
|
||||||
sudo apt-get update &&
|
|
||||||
sudo apt-get upgrade &&
|
|
||||||
sudo dpkg --add-architecture i386 &&
|
|
||||||
wget -nc https://dl.winehq.org/wine-builds/winehq.key &&
|
|
||||||
sudo apt-key add winehq.key
|
|
||||||
elif [[ $(lsb_release -rs) == "10" ]]; then
|
|
||||||
echo "Debian 10 based system"
|
|
||||||
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main'
|
|
||||||
elif [[ $(lsb_release -rs) == "11" ]]; then
|
|
||||||
echo "Debian 11 based system"
|
|
||||||
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main'
|
|
||||||
|
|
||||||
|
|
||||||
# Ubuntu versions
|
|
||||||
elif [[ $(lsb_release -rs) == "20.04" ]]; then
|
|
||||||
echo "Ubuntu 20.04 based system"
|
|
||||||
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
|
|
||||||
elif [[ $(lsb_release -rs) == "20.10" ]]; then
|
|
||||||
echo "Ubuntu 20.10 based system"
|
|
||||||
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main'
|
|
||||||
elif [[ $(lsb_release -rs) == "21.04" ]]; then
|
|
||||||
echo "Ubuntu 21.04 based system"
|
|
||||||
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main'
|
|
||||||
elif VERB="$( which apt-get )" 2> /dev/null; then
|
|
||||||
sudo apt-get update &&
|
|
||||||
sudo apt-get upgrade &&
|
|
||||||
sudo apt-get install p7zip p7zip-full p7zip-rar curl winbind cabextract &&
|
|
||||||
# sudo apt-get install xdotool (experimental)
|
|
||||||
sudo apt-get install --install-recommends winehq-staging
|
|
||||||
|
|
||||||
|
function welcome_screen {
|
||||||
|
|
||||||
# Fedora 34 version
|
HEIGHT=15
|
||||||
elif VERB="$( which dnf )" 2> /dev/null; then
|
WIDTH=60
|
||||||
echo "RedHat-based"
|
CHOICE_HEIGHT=2
|
||||||
sudo dnf update &&
|
BACKTITLE="Installation of Autodesk Fusion360"
|
||||||
sudo dnf upgrade &&
|
TITLE="Do you wish to install Autodesk Fusion 360?"
|
||||||
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm &&
|
MENU="Choose one of the following options:"
|
||||||
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/34/winehq.repo &&
|
|
||||||
sudo dnf install p7zip p7zip-plugins curl wine cabextract
|
|
||||||
# sudo dnf install xdotool (experimental)
|
|
||||||
|
|
||||||
|
OPTIONS=(1 "Yes"
|
||||||
|
2 "No")
|
||||||
|
|
||||||
# Manjaro versions
|
CHOICE=$(dialog --clear \
|
||||||
elif VERB="$( which pacman )" 2> /dev/null; then
|
--backtitle "$BACKTITLE" \
|
||||||
echo "Arch-based"
|
--title "$TITLE" \
|
||||||
sudo pacman -Syu &&
|
--menu "$MENU" \
|
||||||
sudo pacman -S wine wine-mono wine_gecko
|
$HEIGHT $WIDTH $CHOICE_HEIGHT \
|
||||||
# sudo pacman -S xdotool (experimental)
|
"${OPTIONS[@]}" \
|
||||||
|
2>&1 >/dev/tty)
|
||||||
|
|
||||||
|
clear
|
||||||
|
case $CHOICE in
|
||||||
|
1)
|
||||||
|
select_your_os
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
# openSUSE Leap 15.3 version
|
function select_your_os {
|
||||||
elif VERB="$( which zypper )" 2> /dev/null; then
|
HEIGHT=15
|
||||||
echo "openSUSE-based"
|
WIDTH=60
|
||||||
su -c 'zypper up && zypper ar -cfp 95 https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.3/ wine && zypper install p7zip-full curl wine cabextract'
|
CHOICE_HEIGHT=10
|
||||||
# su -c 'zypper install xdotool' (experimental)
|
BACKTITLE="Installation of Autodesk Fusion360"
|
||||||
else
|
TITLE="Select your Linux distribution"
|
||||||
echo "Non-compatible Linux distribution version was found!"
|
MENU="Choose one of the following options:"
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [[ 1 -ne $# ]]; then
|
|
||||||
echo "Minimum requirements have been installed and set up for your system!"
|
|
||||||
|
|
||||||
# Installation of Autodesk Fusion 360:
|
OPTIONS=(1 "openSUSE Leap 15.2"
|
||||||
|
2 "openSUSE Leap 15.3"
|
||||||
|
3 "openSUSE Tumbleweed"
|
||||||
|
4 "Debian 10 (Buster)"
|
||||||
|
5 "Debian 11 (Bullseye)"
|
||||||
|
6 "Ubuntu 20.04"
|
||||||
|
7 "Ubuntu 20.10"
|
||||||
|
8 "Ubuntu 21.04"
|
||||||
|
9 "Fedora 33"
|
||||||
|
10 "Fedora 34"
|
||||||
|
11 "Manjaro 19.0 & newer")
|
||||||
|
|
||||||
echo "The latest version of wintricks will be downloaded and executed."
|
CHOICE=$(dialog --clear \
|
||||||
|
--backtitle "$BACKTITLE" \
|
||||||
|
--title "$TITLE" \
|
||||||
|
--menu "$MENU" \
|
||||||
|
$HEIGHT $WIDTH $CHOICE_HEIGHT \
|
||||||
|
"${OPTIONS[@]}" \
|
||||||
|
2>&1 >/dev/tty)
|
||||||
|
|
||||||
|
clear
|
||||||
|
case $CHOICE in
|
||||||
|
1)
|
||||||
|
su -c 'zypper up && zypper ar -cfp 95 https://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Leap_15.2/ wine && zypper install p7zip-full curl wget wine cabextract' &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
su -c 'zypper up && zypper install p7zip-full curl wget wine cabextract' &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
3)
|
||||||
|
su -c 'zypper up && zypper install p7zip-full curl wget wine cabextract' &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
4)
|
||||||
|
debian_based_1 &&
|
||||||
|
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main' &&
|
||||||
|
debian_based_2 &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
5)
|
||||||
|
debian_based_1 &&
|
||||||
|
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main' &&
|
||||||
|
debian_based_2 &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
6)
|
||||||
|
debian_based_1 &&
|
||||||
|
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' &&
|
||||||
|
debian_based_2 &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
7)
|
||||||
|
debian_based_1 &&
|
||||||
|
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main' &&
|
||||||
|
debian_based_2 &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
8)
|
||||||
|
debian_based_1 &&
|
||||||
|
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main' &&
|
||||||
|
debian_based_2 &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
9)
|
||||||
|
fedora_based_1 &&
|
||||||
|
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/33/winehq.repo &&
|
||||||
|
fedora_based_2 &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
10)
|
||||||
|
fedora_based_1 &&
|
||||||
|
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/34/winehq.repo &&
|
||||||
|
fedora_based_2 &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
11)
|
||||||
|
sudo pacman -Syu &&
|
||||||
|
sudo pacman -S wine wine-mono wine_gecko &&
|
||||||
|
winetricks
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
function debian_based_1 {
|
||||||
|
sudo apt-get update &&
|
||||||
|
sudo apt-get upgrade &&
|
||||||
|
sudo dpkg --add-architecture i386 &&
|
||||||
|
wget -nc https://dl.winehq.org/wine-builds/winehq.key &&
|
||||||
|
sudo apt-key add winehq.key
|
||||||
|
}
|
||||||
|
|
||||||
|
function debian_based_2 {
|
||||||
|
sudo apt-get update &&
|
||||||
|
sudo apt-get upgrade &&
|
||||||
|
sudo apt-get install p7zip p7zip-full p7zip-rar curl winbind cabextract wget &&
|
||||||
|
sudo apt-get install --install-recommends winehq-staging
|
||||||
|
}
|
||||||
|
|
||||||
|
function fedora_based_1 {
|
||||||
|
sudo dnf update &&
|
||||||
|
sudo dnf upgrade &&
|
||||||
|
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||||
|
}
|
||||||
|
|
||||||
|
function fedora_based_2 {
|
||||||
|
sudo dnf install p7zip p7zip-plugins curl wget wine cabextract
|
||||||
|
}
|
||||||
|
|
||||||
|
function winetricks {
|
||||||
|
clear
|
||||||
|
echo "Enter the path for your Fusion 360 (For examlble: /run/media/user/usb-drive/wine/fusion360":
|
||||||
|
read filename
|
||||||
|
mkdir -p $filename &&
|
||||||
|
cd $filename &&
|
||||||
wget -N https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks &&
|
wget -N https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks &&
|
||||||
chmod +x winetricks &&
|
chmod +x winetricks &&
|
||||||
WINEPREFIX=~/.fusion360 sh winetricks -q corefonts msxml4 msxml6 vcrun2019 fontsmooth=rgb win8 &&
|
WINEPREFIX=$filename sh winetricks -q corefonts msxml4 msxml6 vcrun2017 fontsmooth=rgb win8 &&
|
||||||
|
mkdir -p fusion360-download &&
|
||||||
# Windows Version 10 make some problems at the moment!
|
cd fusion360-download &&
|
||||||
|
|
||||||
echo "Autodesk Fusion 360 will be installed and set up."
|
|
||||||
mkdir -p fusion360 &&
|
|
||||||
cd fusion360 &&
|
|
||||||
wget -N https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe &&
|
wget -N https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe &&
|
||||||
|
WINEPREFIX=$filename wine Fusion\ 360\ Admin\ Install.exe -p deploy -g -f log.txt --quiet &&
|
||||||
WINEPREFIX=~/.fusion360 wine Fusion\ 360\ Admin\ Install.exe -p deploy -g -f log.txt --quiet &&
|
WINEPREFIX=$filename wine Fusion\ 360\ Admin\ Install.exe -p deploy -g -f log.txt --quiet &&
|
||||||
WINEPREFIX=~/.fusion360 wine Fusion\ 360\ Admin\ Install.exe -p deploy -g -f log.txt --quiet &&
|
cd "$filename/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform" &&
|
||||||
|
mkdir -p Options &&
|
||||||
mkdir -p "$HOME/.fusion360/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform/Options" &&
|
cd Options
|
||||||
|
wget -N https://raw.githubusercontent.com/cryinkfly/Fusion-360---Linux-Wine-Version-/main/files/NMachineSpecificOptions.xml
|
||||||
cat > "$HOME/.fusion360/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform/Options/NMachineSpecificOptions.xml" << "E"
|
|
||||||
<?xml version="1.0" encoding="UTF-16" standalone="no" ?>
|
|
||||||
<OptionGroups>
|
|
||||||
<BootstrapOptionsGroup SchemaVersion="2" ToolTip="Special preferences that require the application to be restarted after a change." UserName="Bootstrap">
|
|
||||||
<driverOptionId ToolTip="The driver used to display the graphics" UserName="Graphics driver" Value="VirtualDeviceGLCore"/></BootstrapOptionsGroup>
|
|
||||||
</OptionGroups>
|
|
||||||
E
|
|
||||||
|
|
||||||
echo "The installation of Autodesk Fusion 360 is completed."
|
echo "The installation of Autodesk Fusion 360 is completed."
|
||||||
exit 1
|
exit
|
||||||
fi
|
}
|
||||||
$VERB "$1"
|
|
||||||
exit $?
|
# ---------------------------------------------------------------------
|
||||||
|
export LC_ALL=en_US.UTF-8
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
export LANGUAGE=en_US.UTF-8
|
||||||
|
|
||||||
|
welcome_screen
|
||||||
|
|||||||
Reference in New Issue
Block a user