Skip to content

Instantly share code, notes, and snippets.

@checkdigits
Last active April 22, 2024 16:34
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save checkdigits/f910e3c4b308a25b31b9a5c1f23c5461 to your computer and use it in GitHub Desktop.
Save checkdigits/f910e3c4b308a25b31b9a5c1f23c5461 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Download and execute with the following:
# curl -L http://tinyurl.com/SetupLinuxRS12 | bash
#
echo "Updating the local package directory"
sudo apt update
echo "Upgrading any outdated packages"
sudo apt full-upgrade -y
echo "Install new packages necessary for Delphi & FMXLinux"
sudo apt install joe python3 libpython3-dev wget p7zip-full curl libgtk-3-dev openssh-server build-essential zlib1g-dev libgtk-3-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 Linux PAServer for Athens 12.0 (23.0)"
wget https://altd.embarcadero.com/releases/studio/23.0/120/LinuxPAServer23.0.tar.gz
echo "Setting up directories to extract PA Server into"
mkdir PAServer
mkdir PAServer/23.0
rm PAServer/23.0/*
tar xvf LinuxPAServer23.0.tar.gz -C PAServer/23.0 --strip-components=1
# This fixes the Python 3.6 dependency - Comment this if not required
ln -sf `ls -1 /usr/lib/x86_64-linux-gnu/libpython3.*.so.1.0 | tail -1` ~/PAServer/23.0/lldb/lib/libpython3.so
rm LinuxPAServer23.0.tar.gz
echo \#\!\/bin\/bash >pa23.sh
echo # https://docwiki.embarcadero.com/RADStudio/en/Setting_Options_for_the_Platform_Assistant >>pa23.sh
echo ~/PAServer/23.0/paserver >>pa23.sh
chmod +x pa23.sh
echo "-----------------------------------"
echo " To launch PAServer type ~/pa23.sh"
echo "-----------------------------------"
# ~/pa23.sh
exit
@checkdigits
Copy link
Author

Based on Jim McKeeth's version for RAD Studio 11.3 found here: https://gist.github.com/jimmckeeth/1cb657694d1ea18335782213097c8a33

@checkdigits
Copy link
Author

From the terminal you can enter:

curl -L http://tinyurl.com/SetupLinuxRS12 | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment