Raspbian: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Raspbian
| Old | New | Line | |
|---|---|---|---|
| 1 | + | *(Raspberry Pi only)* | |
| 2 | + | ||
| 3 | + | > **Note:** Content here is quite out of date. As the Raspberry Pi OS is just another Debian based distribution, the reader is referred to [[Installing Lazarus on Linux]] and [[Lazarus on Raspberry Pi]], those page are kept up to date and contains everything you need. (Please don't update this page unless you are committed to maintaining it in the future) | |
| 4 | + | ||
| 5 | + | **Raspbian**, now called [Raspberry Pi OS](https://www.raspberrypi.com/software/), is a free operating system based on the [Debian](https://debian.org) [[Linux]] distribution optimized for the [[Raspberry Pi]] hardware. Most historic and current versions of Raspbian support both [[Free Pascal]] and [[Lazarus]]. | |
| 6 | + | ||
| 7 | + | ## Installing Lazarus and Free Pascal | |
| 8 | + | ||
| 9 | + | ### Graphical Installer on modern versions of Raspbian | |
| 10 | + | ||
| 11 | + | On modern versions of Raspbian installation is very easy. It can be performed with the PiPackage manager. You have to select simply "Add / Remove Software" in the global Preferences menu. | |
| 12 | + | ||
| 13 | + | Installing FPC on Raspbian Stretch.jpeg\|Step 1: Install Free Pascal with PiPackage. Installing Lazarus on Raspbian Stretch.jpeg\|Step 2: Install Lazarus Running Lazarus from the "Programming" menu on Raspbian Stretch.jpeg\|Lazarus is now available in the global "Programming" menu Lazarus 1 6 on Raspbian Stretch.jpg\|A simple session with Lazarus on Raspbian Stretch. | |
| 14 | + | ||
| 15 | + | ## Installing via the command shell on older versions of Raspbian | |
| 16 | + | ||
| 17 | + | ### Installing Free Pascal | |
| 18 | + | ||
| 19 | + | Free Pascal is easily installed with the following shell commands: | |
| 20 | + | ||
| 21 | + | ``` bash | |
| 22 | + | sudo apt-get update | |
| 23 | + | sudo apt-get upgrade | |
| 24 | + | sudo apt-get install fpc | |
| 25 | + | ``` | |
| 26 | + | ||
| 27 | + | There are three modes to use Free Pascal on Raspbian: | |
| 28 | + | ||
| 29 | + | - via the shell command `fpc`. This requires to enter a number of options along with the `fpc` command. | |
| 30 | + | - via the shell command `fp`. This command starts a text-based IDE. | |
| 31 | + | - via Lazarus, see below | |
| 32 | + | ||
| 33 | + | ### Installing Lazarus | |
| 34 | + | ||
| 35 | + | The steps to install Lazarus are very similar to those required for installing Free Pascal: | |
| 36 | + | ||
| 37 | + | ``` bash | |
| 38 | + | sudo apt-get update | |
| 39 | + | sudo apt-get upgrade | |
| 40 | + | sudo apt-get install fpc | |
| 41 | + | sudo apt-get install lazarus | |
| 42 | + | ``` | |
| 43 | + | ||
| 44 | + | This installs a ready-to-use precompiled version of Lazarus, however not necessarily the newest one. | |
| 45 | + | ||
| 46 | + | ## Compiling from sources | |
| 47 | + | ||
| 48 | + | The newest versions of Lazarus are distributed as source code. | |
| 49 | + | ||
| 50 | + | To compile current FPC and Lazarus sources for Raspbian Buster (based on Debian 10 Buster), see [[Build current FPC and Lazarus for Raspbian]]. | |
| 51 | + | ||
| 52 | + | In order to compile Lazarus from subversion sources see [Michell Computing: Lazarus on the Raspberry Pi](http://www.michellcomputing.co.uk/blog/2012/11/lazarus-on-the-raspberry-pi/) for details. The information there is somewhat outdated but still usable. | |
| 53 | + | ||
| 54 | + | The easiest way to compile from source is to use [fpcup](https://github.com/LongDirtyAnimAlf/Reiniero-fpcup) . See also [[fpcup]] in this wiki. | |
| 55 | + | ||
| 56 | + | ## Screenshots | |
| 57 | + | ||
| 58 | + | <File:Lazarus> on Raspberry Pi Raspian Wheezy version 2012-10-28.png\|Lazarus on Raspbian Wheezy <File:fp> raspian.png\|Free Pascal text mode IDE on Raspbian Wheezy | |
| 59 | + | ||
| 60 | + | ## Hardware access | |
| 61 | + | ||
| 62 | + | See [[Lazarus on Raspberry Pi]] for details. | |
| 63 | + | ||
| 64 | + | ## External Links | |
| 65 | + | ||
| 66 | + | - [Raspberry Pi Foundation](http://www.raspberrypi.org) | |
| 67 | + | - [Official Raspbian site](http://www.raspbian.org) | |
| 68 | + | - [Additional information on Lazarus and Raspberry Pi at eLinux.org](http://www.elinux.org/Lazarus_on_RPi) | |
| 69 | + | ||
| 70 | + | --- | |
| 71 | + | *From the Free Pascal wiki, page "Raspbian", as it stood on 2023-11-12 after a change by Dbannon, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
