Giter VIP home page Giter VIP logo

delphi-on-linux-setup's Introduction

Delphi-on-Linux-Setup

Scripts and resources to simplify the setup and development with Delphi on Linux

This was originally a series of GISTs that myself and Ian Barker were updating. Figured it was time to turn it into a full GitHub project where we can collect all the scripts and add additional resources.

The Bash scripts works with CentOS (Redhat, Fedora) or Ubuntu and related Linux distros. I've used them both under WSL2, VM, and hardware installs.

  • Ubuntu support: 20.04 LTS and 22.04 LTS - curl -L curl -L https://tinyurl.com/SetupUbuntu4Delphi23 | bash
  • Redhat support: CentOS 9, FedoraRemix (WSL), RHEL8 - curl -L curl -L https://tinyurl.com/SetupRedHat4Delphi23 | bash
  • Official Platform Support list

Installing Ubuntu with WSL2 on Windows 11

Microsoft has a full article with all the details. This is a summary for quick reference.

On Windows you need to do this from an elevated (administrator) command prompt or PowerShell window. Easiest way is Win+X,A.

wsl --install -d Ubuntu

Once your machine has finished rebooting, installation will continue and you will be asked to enter a username and password. This will be your Linux credential for the Ubuntu distribution.

Start Ubuntu from the start menu, or from the terminal by typing ubuntu

Then run the following script (Delphi 12.1)

curl -L curl -L https://tinyurl.com/SetupUbuntu4Delphi23 | bash

If you don't have curl installed then run sudo apt install curl -y first


Installing CentOS 9 Stream in WSL2 on Windows 11

Microsoft has a full article with all the details.

wsl --install

Note: There isn't a Red Hat as part of the default WSL distributions. This script should work with any RPM based distribution using the YUM package manager.

To manually install CentOS Stream 9 follow these steps:

  1. Download the latest CentOS Stream 9 release (this is not an official CentOS or WSL source)
  2. Extract the content into a folder it can live on your system. I picked C:\WSL\CentOS9
  3. Run CentOS9-stream.exe as Administrator to install CentOS 9
  4. Start CentOS 9

CentOS is installed, but it doesn't have a user yet. The following will create a user for you. Then you need to restart the CentOS instance.

  • From CentOS
yum update -y && yum install passwd sudo -y
myUsername=delphi
adduser -G wheel $myUsername
echo -e "[user]\ndefault=$myUsername" >> /etc/wsl.conf
passwd $myUsername
  • From PowerShell
wsl --terminate CentOS9-Stream
  • You can now launch CentOS

Then run the following script (Delphi 12.1)

curl -L curl -L https://tinyurl.com/SetupRedHat4Delphi23 | bash

If you don't have curl installed then run sudo apt install curl -y first

delphi-on-linux-setup's People

Contributors

jimmckeeth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.