Home >> Environment Monitoring Programs >> UserLAnd

This page strives to demonstrate an easy way to compile and run Linux console programs on (newer) ARM Android devices (the older gnuroot page works on Android 5.0 or earlier).

New! New web page for self-hosted development environments explores other possibilities!

There are now lots of inexpensive Android tablets available.  I really want to load Debian on (some of) them and completely get rid of Android, but right now this isn't very easy.  LinuxOnAndroid is also interesting.  All of those options require rooting the device which I want to avoid as long as possible.  So UserLAnd and GNURoot (which don't require rooting) are interesting first steps to try.

My main (first) goal in this is to be able to run a single program (for machine control) on an inexpensive tablet (with USB OTG).  A GUI is not required , so Free Vision may be good enough for the first programs.  First Choice is a good example of older software that is usable without a GUI.  I have a powered 4 port USB hub plugged into my tablet's OTG port, with a keyboard and mouse working now (I hope to add USB Ethernet and serial adapters later).

Install the UserLAnd app on your ARM Android device then OPEN then ALLOW to access stuff on your device. The startup screen will show Sessions along with a menu (3 dots) in the upper-right and a round + button in the lower-right. Click the menu (3 dots) then select Filesystems. Now click the + button in the lower right  Debian is the only choice right now so click to give it a name (like firstfs) then click the + in the upper right.  firstfs should now be listed  on the Filesystems screen so just click the Android back button to go back to the Sessions screen.  Now if you click the + button in the lower right you will be shown the Edit Session screen that will have firstfs already selected.  Change Service Type from ssh to vnc.  Also click Session Name and give it a name (like firstses). Now if you click the + button in the upper right you will be shown the Sessions screen that will have firstses connected by vnc to firstfs. Just click the session quickly to start it up.  You may get a message that a large asset (~80 mb) needs to be downloaded. Similar (shorter) instructions are here. You'll also be prompted to install a VNC.

Then enter the commands below:
  sudo apt update
  sudo apt install neofetch
  neofetch (see CPU specs, I have AArch64)

Next we'll download the appropriate zip file (lots of examples of using fpcup here):
  sudo apt install wget (slow to update certificates at end)
sudo wget
  sudo chmod 755 fpcup-aarch64-linux
  sudo ./fpcup-aarch64-linux (not working yet)

Optional below:
  sudo apt install fpc (very slow)
Works to install 3.0.0 and can run "fpc" when done.
Can also run "fp" for the textmode IDE and see Help | About

Please share your ideas, comments and suggestions. Thanks!
-- Paul Breneman Contact information on home page