Install Debian as Linux development system for Pi

The Raspberry is a fine machine, th Pi 3 is fast indeed. But my main Windows machine is much faster, has a great display (dual monitor), lots of disks and lots of horsepower. It runs Windows 10 to my satisfaction. But a Linux machine would be fine, so get Virtual box and install Debian as closest relative to Raspbian on the PI.

Install Virtual box

Download Debia ISO Debian 64 bit I386-64
New virtual machine and mount the Debian ISO.
Install, mostly defaults.
LXDE desktop
User pi (no root password so it will be dsiabled and pi will be able to sudo as root!

Installing Guest Additions on Debian

Follow these steps to install the Guest Additions on your Debian virtual machine:

Update your APT database with apt-get update;
Install the latest security updates with apt-get upgrade;

Install required packages with
sudo apt-get install build-essential module-assistant
Configure your system for building kernel modules by running
sudo m-a prepare

Click on Install Guest Additions… (ISO is in programs/Oracle/Virtualbox) from the Devices menu /media/cdrom.
sudo sh /media/cdrom/,
and follow the instructions on screen

Install Chrome

chrome deb via Chrome download

sudo apt-get install libxss1 libappindicator1 libindicator7
sudo dpkg -i –force-depends google-chrome*.deb
sudo dpkg -i google-chrome*.deb
sudo apt-get -f install if any dependencies reported

Install latest FPC/Lazarus with fpcup (no debian 64 bit package for fpc 3 and Lazarus 1.6)

Get files

cd Downloads
chmod +x fpcup_linux_x64
chmod + fpclazup_linux_x64

Install Lazarus
Install Lazarus + FPC

Higher resolution

In CMD run as admin mode:
C:\Program Files\Oracle\VirtualBox>VBoxManage setextradata global GUI/MaxGuestResolution any
and reboot virtual box

Shared folders

Create with Vbox settings Devices – Shared Folders Settings
For example subdir myfiles on d:\ as myfiles

In Linux:
$ sudo adduser pi vboxsf .
Then you would have access to the auto-mounts under /media/sf_myfiles/ .

You may have to “newgrp vboxsf” to make the addition to vboxsf group effective in your current terminal.