### B4J Setup

This HowTo describes how to set up and use the Raspberry Pi (RPi) with B4J.
Recommend:
• To read B4J HowTo Category > Raspberry Pi > About for useful links.
• To search the B4X Forum for Raspberry Pi ( https://www.b4x.com/android/forum/pages/results/?query=raspberry+pi&prefix=0 )
Raspberry Pi Kits used by the author
• Raspberry Pi 3 Model B v1.2
• Raspberry Pi 2 Model B
• Raspberry Pi Modell B+, 512 MB
• Raspberry Pi Modell B, 512 MB
Development Environment Tools used
Latest versions of Windows 10, B4J, PuTTy, WinSCP
PuTTy
PuTTY is a free implementation of Telnet and SSH for Windows and Unix platforms, along with an xterm terminal emulator.
Information: http://www.chiark.greenend.org.uk/~sgtatham/putty/
WinSCP
Free SFTP, SCP and FTP client for Windows
Information: http://winscp.net/eng/index.php
VNC Server
• In the latest version of Raspian-Jessie VNC included - recommend to use with the VNC Viewer on f.e. Windows 10 PC.
• For earlier Raspian versions, use xrdp.
Install Remote Desktop xrdp
Install on RPi:
sudo apt-get install xrdp
Notes:
• No further setup required.
• Ensure SSH on the RPi is turned on (use sudo raspi-config, select advanced options SSH)
Install on Windows:
No installation required as using the standard Windows Programm Remote Desktop.
B4J-Bridge
See category B4J-Bridge.
Raspberry Pi Software upgrade
Update the RPi regulary:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get autoremove
sudo rpi-update
sudo reboot
Quickstart building a B4J App and run on the RPi
• Start the RPi
• Start the B4J Bridge (via Putty Terminal Session, note the My IP address is: 192.168.N.NN)
• Build B4J App
• Connect to the B4J-Bridge on running the RPi: Tools > B4J Bridge > Connect (use previous My IP address and check bottom left in the IDE states connected!)
• Run the App via F5 and check on RPi screen
• The folder /home/pi/b4j/tempjars lists a file called AsynInput1 which is the app

Changed: , Category: Raspberry Pi, File: T6C234M1707.htm, ID: 1707