Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This script automates the setup of Ubuntu for Delphi 10.4.2 Sydney development. Read more: https://embt.co/3oFnZVW

This script automates the setup of Ubuntu for Delphi 10.4.2 Sydney development.

Read more: https://embt.co/3oFnZVW

The easiest way to launch this

wget https://gist.github.com/jimmckeeth/1d442e124e645d9f3e6a0ea42538bf1a/raw/SetupUbuntu4Delphi21.sh -O SetupUbuntu4Delphi21.sh
chmod +x SetupUbuntu4Delphi21.sh
sudo ./SetupUbuntu4Delphi21.sh

Tested under latest Ubuntu and Debian as well as WSL/WSL2 Ubuntu.

#!/bin/bash
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 2"
wget https://altd.embarcadero.com/releases/studio/21.0/2/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