Lazarus Ide fast installation on Clear Linux OS

Hi ,
A simple way to install Lazarus Ide

Installation


 swupd bundle-add wget;
 swupd bundle-add package-utils;

 wget "https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/37/Everything/x86_64/os/Packages/l/lazarus-2.2.2-2.fc37.x86_64.rpm" --no-check-certificate;
 rpm2archive lazarus-2.2.2-2.fc37.x86_64.rpm ;
 tar xvf lazarus-2.2.2-2.fc37.x86_64.rpm.tgz -C / ;

 wget "https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/37/Everything/x86_64/os/Packages/f/fpc-3.2.2-7.fc37.x86_64.rpm" --no-check-certificate;
 rpm2archive fpc-3.2.2-7.fc37.x86_64.rpm ;
 tar xvf fpc-3.2.2-7.fc37.x86_64.rpm.tgz -C / ;
 
 wget "https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/37/Everything/x86_64/os/Packages/f/fpc-src-3.2.2-7.fc37.noarch.rpm" --no-check-certificate;
 rpm2archive fpc-src-3.2.2-7.fc37.noarch.rpm ;
 tar xvf fpc-src-3.2.2-7.fc37.noarch.rpm.tgz -C / ;
  
 wget "https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/37/Everything/x86_64/os/Packages/f/fpc-doc-3.2.2-7.fc37.x86_64.rpm" --no-check-certificate;
 rpm2archive fpc-doc-3.2.2-7.fc37.x86_64.rpm ;
 tar xvf fpc-doc-3.2.2-7.fc37.x86_64.rpm.tgz -C / ;

Configuration
1 ) Inital Setup

LAZARUS_INITIAL_SETUP_2024-02-09_15-55-01

2 ) To have a Delphi 8 & sup Look and feel

  • Packet / Install Packets choose and install AnchorDockingDsgn 1.0

Make a simple bash test project

Project / New project :

Install the following 5 elements on the form ( drap and drop or click and click )

  • Standard / TLabel
  • Standard / TEdit ( I named it Edit_1_Bash_To_Send_ )
  • Standard / TButton ( I named it Button_1_SendToBash )
  • Standard / TMemo ( I named it Memo_1_Answer_ )
  • System / TProcessUFT8 Add Proterty / option / poUsePipes ( poPassInout if needed )

Add Button Click Event ( double click on Button )

  • Add these 3 instructions
  (* Basic test program for CLear Linux OS *)
  ProcessUTF8_1.CommandLine:= Edit_1_Bash_To_Send_.Text;
  ProcessUTF8_1.Execute;
  Memo_1_Answer_.Lines.LoadFromStream(ProcessUTF8_1.Output);

Run the programm ( Ctrl + F9 )

  • Test the program on a simple way sending : who etc …
  • Test the program on a more complex way sending : xrandr --output yourScreenName --brightness 0.6 ; ( works also perfect on external Displays )

Best Regards,
ClearLinux.User.809

1 Like