Skip to content

Instantly share code, notes, and snippets.

@checkdigits
Last active November 25, 2024 14:43
Show Gist options
  • 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

From the terminal you can enter:

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

@bero
Copy link

bero commented Jul 20, 2024

Note that this script is specific for Delphi 12. It don't work for Delphi 12.1. Python is also actively developed. Current version is 3.12

@checkdigits
Copy link
Author

#!/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.2 (23.0)"
wget https://altd.embarcadero.com/releases/studio/23.0/122/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

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