Objective : 

   1. Setting for headless mode (No monitor, mouse, keyboard) - remote access via TightVNCServer

   2. Minimal attachment to the board : power, webcam and network cable (switch to wifi dongle later).

   3. GPIO setting for motor control

   4. Serial communication with ESP32 (ESP32 will handle Lidar, A/D, DAC)

 

===========================================================

1. Download server image from Odroid wiki site.

2. For now, you cannot use SSH log-in.  So, attach monitor, keyboard, mouse.

3. After login, 

sudo passwd root
  (enter default password "odroid" for sudo)
  (for new password, "111" and confirm) - enter extremely easy password.  Save yourself from password hell.
  
sudo passwd odroid
  (same thing.  change all password to "111")

// This steps are needed for NPU to work
sudo apt update
sudo apt upgrade

sudo apt-get install nano

sudo nano /etc/ssh/sshd_config
// Allow enable SSH login option, so "root" can be remotely log-in
# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes   (<== change right here)
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

sudo reboot

// After reboot, make sure to log-in as root via SSH.  
// The user id "odroid" will not be used anymore.

// ************  IP RESERVATION with Router *************

// Try to reserve IP address for Odroid-M1 on your home or office router's configuration.

// If this device's MAC address is reserved with fixed local IP address, then this device will always have

// same local IP address everytime it boot-up.   In my case, I have set its IP to 192.168.1.96

 

// now log-in from PC using SSH as root, 111  (My case, I use Snowflake on Ubuntu.  With Snowflake, you can have file manager between PC & bot, text editor that can edit files on bot from PC, and endless number of terminals.)

// Install LXDE 

apt-get install lxde

  - during setting, it will as for gdm or lightdm, choose lightdm.

apt-get install libx11-dev libgtk2.0-dev libcairo2-dev libpango1.0-dev libxtst-dev libgdk-pixbuf2.0-dev libatk1.0-dev libghc-x11-dev
apt-get install xorg tango-icon-theme gnome-icon-theme

 

// Install Tight VNC Server

apt-get install tightvncserver thunar-volman udisks2 gvfs

 

// For NPU programming

apt install g++

apt install cmake

 

// Pre-install For Lazarus IDE

apt install gdb

apt-get install subversion

 

// For Webcam

apt-get install v4l-utils

apt-get install guvcview

apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

 

// For general programming

apt-get install -y git

 

// For general monitoring

apt-get install htop

 

// GPIO library : How to download wiringOP
apt install odroid-wiringpi
apt install wiringpi-examples
gpio readall
gpio readall -a

 

// Disable auto hibernate.   It is extremely annoying if it keeps on hibernating and never wakes up.

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

 

ip addr   <== to find out the local IP address of  Odroid-M1.  In my case, I have fixed its IP to 192.168.1.96 at router.

 

// Remote Log-in via VNC with Remmina Remote Desktop

tightvncserver

  - then it will ask for vnc remote password two times.   Enter "111" for simplicity

  - Would you like to enter a view-only password (y/n)?  <= Important.  You don't want view-only.

 

// Using Remmina from Ubuntu PC, log-in with VNC with the local IP address + ":1" at the end.

// Once you log-in via VNC, then now, you are READY! to run it in headless mode and develop Robot.

VNC remote log-in

 

I love this style, similar to old Windows 95.&nbsp; &nbsp; Perform USB webcam test with guvcview

===============================================================

NPU CAM demo (I have done it with UBS webcam.)

For this demo, you will have to follow the instruction from wiki site's RKNPU  project.

Important : If server image is used instead of desktop image, OpenCV must be installed from source in order to make this demo work.   

Otherwise, ./build-linux.sh step will terminate with error.

Refer this site for installing OpenCV from source - (Method 2) :  vitux.com/opencv_ubuntu/

 

+ Recent posts