Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This script automates the setup for Ubuntu for Delphi 10.4.1 Sydney development. Read more: https://embt.co/3oFnZVW
#!/bin/bash
#
# The easiest way to launch this
# wget [raw url]
# chmod +x SetupUbuntu4Delphi21.sh
# ./SetupUbuntu4Delphi21.sh
#
echo "Updating the local package directory"
sudo apt update
echo "Upgrade any outdated pacakges"
sudo apt full-upgrade -y
echo "Install new packages necessary for Delphi"
sudo apt install joe wget p7zip-full curl openssh-server build-essential zlib1g-dev libcurl4-gnutls-dev libncurses5 xorg libgl1-mesa-dev libosmesa-dev libgtk-3-bin -y
echo "Clean-up unused packages"
sudo apt autoremove -y
cd ~
echo "Downloading LinuxPAServer for Sydney 10.4 (21.0) Update 1"
wget https://altd.embarcadero.com/releases/studio/21.0/1/PAServer/LinuxPAServer21.0.tar.gz
echo "Setting up directories to extract PA Server into"
mkdir PAServer
mkdir PAServer/21.0
tar xvf LinuxPAServer21.0.tar.gz -C PAServer/21.0 --strip-components=1
rm LinuxPAServer21.0.tar.gz
echo \#\!\/bin\/bash >pa21.sh
echo ~/PAServer/21.0/paserver >>pa21.sh
chmod +x pa21.sh
echo "-----------------------------------"
echo " To launch PAServer type ~/pa21.sh"
echo "-----------------------------------"
~/pa21.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment