1. Home
  2. Docs
  3. J42 series
  4. J4210U, J4212U, J4220UX, ...
  5. Setup

Setup

Windows

Mac OS X

stty -F /dev/ttyACM0
stty -F /dev/ttyACM0 57600

stty -F /dev/ttyACM0
to verify that the baud rate is properly set.
Just run the j4210u.sh file in a terminal. If it does not run, make it an executable by typing the following and then press enter:

chmod 744 j4210u.sh
sudo apt-get update
sudo apt-get install gparted
Run Gparted and resize the partition to 8GB or higher. Then execute all the following commands.
Download default Java Development Kit (JDK). There should be java already installed. Check if java is installed by typing

java –version
sudo apt install default-jdk
sudo apt-get install eclipse
Upzip the .tar.gz file and the eclipse directory will contain the eclipse executable. Just double click the file and unzip the file in default directory.
Install Mysql Server. Maria DB is open source version of Mysql.

sudo apt-get install mariadb-server
sudo apt-get install codeblocks
sudo apt-get install tomcat9
sudo apt-get install phpmyadmin
sudo mysql -u root -p
use mysql;
create user 'soacom'@'localhost' identified by 'soacom';
grant all on *.* to soacom@localhost;
alter user ‘root’@’localhost’ identified by ‘soacom’;
Note that we created a user soacom and set the password to soacom. Open browser, type : http://localhost/phpmyadmin
User: soacom
Password: soacom
{The default phpmyadmin installation does not allow root access.}
If you use Git as source control, install Git Cola, a graphical Git utility.

sudo apt-get install git-cola
getconf LONG_BIT
cat /etc/os-release
cat /proc/cpuinfo
uname -m

Banana PI

Banana PI image may be downloaded from the following link https://wiki.banana-pi.org/Banana_Pi_BPI-M4
This is a Raspbian image.
Other Banana PI images can be found from here:
https://download.banana-pi.dev/d/ca025d76afd448aabc63/?p=%2FImages%2FBPI-M4%2Flinux&mode=list
Any image can be used and the setup procedure is the same.
Once the image is downloaded, burn the image in a micro SD card, then boot. For details on how to burn an im age into SD card visit elsewhere. Boot the Banana PI from the image. If the image successfully boots, you will see the Raspbian desktop with background image and the top line containing Raspbian icon and following icons: browser, folder, terminal. Click on the Terminal icon to open a terminal window. NOTE: The default username is pi and password is raspberry.
sudo apt-get update
sudo apt-get install gparted
sudo apt install default-jdk
sudo apt-get install eclipse
sudo apt-get install mysql-server
sudo apt-get install codeblocks
sudo apt-get install tomcat8
sudo apt-get install phpmyadmin
sudo mysql -u root -p
use mysql;
create user 'soacom'@'localhost' identified by 'soacom';
grant all on *.* to soacom@localhost;
alter user ‘root’@’localhost’ identified by ‘soacom’;
User: soacom
Password: soacom
{The default phpmyadmin installation does not allow root access.}
If you use Git as source control, install Git Cola, a graphical Git utility.

sudo apt-get install git-cola
getconf LONG_BIT
cat /etc/os-release
cat /proc/cpuinfo
uname -m

Orange PI

Orange PI Ubuntu image may be downloaded from the following link https://drive.google.com/drive/folders/1KzyzyByev-fpZat7yvgYz1omOqFFqt1k
For other images, visit:
http://www.orangepi.org/html/serviceAndSupport/index.html
then choose the hardware. The OS download options would be in found in the page. Once the image is downloaded, burn the image in a micro SD card, then boot. For details on how to burn an image into SD card visit elsewhere. Boot the Orange PI from the image. If the image successfully boots, you will see the Ubuntu desktop with Orange Pi logo and the top line containing Ubuntu Application menu. NOTE: The default username is orangepi and password is orangepi

sudo apt-get update
sudo apt-get install gparted

sudo apt install default-jdk
sudo apt-get install mysql-server
sudo apt-get install codeblocks
sudo apt-get install tomcat9
sudo apt-get install phpmyadmin
sudo mysql -u root -p
sudo apt install default-jdk
use mysql;
create user 'soacom'@'localhost' identified by 'soacom';
grant all on *.* to soacom@localhost;
sudo apt install default-jdk
alter user ‘root’@’localhost’ identified by ‘soacom’;
Note that we created a user soacom and set the password to soacom.
Open browser, type : http://localhost/phpmyadmin
User: soacom
Password: soacom
{The default phpmyadmin installation does not allow root access.}
If you use Git as source control, install Git Cola, a graphical Git utility.

sudo apt-get install git-cola
getconf LONG_BIT
cat /etc/os-release
cat /proc/cpuinfo
uname -m
Install the image with desktop so you can use Eclipse and the browser in beaglebone. Once the image is downloaded, burn the image in a micro SD card, then boot. For details on how to burn an image into SD card visit elsewhere. Boot the BeagleBone from the image. If the image successfully boots, you will see the Ubuntu desktop with BeagleBone logo and the top line containing Ubuntu Application menu. NOTE: The default username is debian and password is temppwd.
The root user have password root. In some distribution the password is blank (no password).

NOTE: Beaglebone Green does not have HDMI port. To display you need to purchase the SeedStudio BeagleBone HDMI Cape and the firmware to use it, which is available from here:https://debian.beagleboard.org/images/bone-debian-8.7-lxqt-4gb-armhf-2017-03-19-4gb.img.xz
We recommend that you use BeagleBone Black, which has built-in hdmi.

PocketBeagle

PocketBeagle does not have a dedicated Ethernet port, so you need to connect to the Internet through USB networking along with Internet Connection Sharing. The detailed setup guide is described by the following blogs:

Windows Host: http://ofitselfso.com/BeagleNotes/HowToConnectPocketBeagleToTheInternetViaUSB.php
Mac Host: https://beagleboard.org/p/hologram/sharing-internet-with-the-pocketbeagle-on-osx-cd62b2
Linux Host: https://www.elementzonline.com/blog/Sharing-Internet-using-Network-Over-USB-in-PocketBeagle

After connection sharing try using
ssh debian@192.168.7.2 (for Windows)
ssh debian@192.168.6.2 (for Mac)
ssh debian@beaglebone.local” (for any)
sudo
One of them should work.
sudo apt-get update
sudo apt-get install gparted
sudo apt install default-jdk
 sudo apt-get install mysql-server
sudo apt-get install mariadb-server
sudo apt-get install codeblocks
sudo apt-get install tomcat8
sudo apt-get install phpmyadmin
sudo mysql -u root -p
use mysql;
create user 'soacom'@'localhost' identified by 'soacom';
grant all on *.* to soacom@localhost;
alter user ‘root’@’localhost’ identified by ‘soacom’;
Note that we created a user soacom and set the password to soacom.
Open browser, type : http://localhost/phpmyadmin
User: soacom
Password: soacom
{The default phpmyadmin installation does not allow root access.}
If you use Git as source control, install Git Cola, a graphical Git utility.

sudo apt-get install git-cola
getconf LONG_BIT
cat /etc/os-release
cat /proc/cpuinfo
uname -m
Click on it and go to System Tools → Xterm. Inside Xterm window type:
ssh -XY debian@192.168.7.2
Default password is temppwd. Now all your beaglebone graphical display will appear on your PC.
sudo apt-get install python3
sudo apt-get install python3-tk
python UhfApp.py
sudo python3 UhfApp.py
sudo usermod -a -G dialout $USER