Add dotnet runtime install to Linux agent install.

This commit is contained in:
Jared Goodwin 2020-01-19 15:28:14 -08:00
parent a1ae252d53
commit 9007df5706
3 changed files with 11 additions and 4 deletions

View File

@ -276,7 +276,7 @@ namespace Remotely.Agent.Services
var whoLine = whoString.Split('\n', StringSplitOptions.RemoveEmptyEntries).First();
var whoSplit = whoLine.Split(' ', StringSplitOptions.RemoveEmptyEntries);
username = whoSplit[0];
display = whoSplit[1];
display = whoSplit.Last().Trim('(').Trim(')');
args = $"-u {username} {args}";
}
var psi = new ProcessStartInfo()

View File

@ -12,6 +12,16 @@ if [ "$1" = "--uninstall" ]; then
exit
fi
UbuntuVersion=$(lsb_release -r -s)
wget -q https://packages.microsoft.com/config/ubuntu/$UbuntuVersion/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update
apt-get install apt-transport-https
apt-get update
apt-get install dotnet-runtime-3.1
rm packages-microsoft-prod.deb
apt-get -y install unzip
apt-get -y install libc6-dev
apt-get -y install libgdiplus

View File

@ -1,7 +1,4 @@
#!/bin/bash
echo "WARNING: This script won't work until the ASP.NET Core runtime version is updated in the package manager to version 3.1.1."
read -p "Press Enter to exit."
exit
echo "Thanks for trying remotely! If you have any questions, feel free to email me at Translucency_Software@outlook.com."
echo
read -p "Enter path where the Remotely server files are located (typically /var/www/remotely): " appRoot