Hardware Specification of Linux PC:

Figure1          Figure2                 Figure3

 

Installations on the NanoPi Neo Air:

1) apt-get update

---------------------------------------------------------------------------------

Virtual Display:

http://askubuntu.com/questions/453109/add-fake-display-when-no-monitor-is-plugged-in

---------------------

2) sudo apt-get install xserver-xorg-video-dummy

 

3) Then write it in the /usr/share/X11/xorg.conf.d/xorg.conf file (create one, if it does not exist):

Section "Device"

    Identifier  "Configured Video Device"

    Driver      "dummy"

EndSection

Section "Monitor"

    Identifier  "Configured Monitor"

    HorizSync 31.5-48.5

    VertRefresh 50-70

EndSection

Section "Screen"

    Identifier  "Default Screen"

    Monitor     "Configured Monitor"

    Device      "Configured Video Device"

    DefaultDepth 24

    SubSection "Display"

    Depth 24

    Modes "1024x800"

    EndSubSection

EndSection

 

4) Then restart the NanoPi Neo Air.

--------------------------------------------------------------------------

Install Ubuntu Desktop on the NanoPi Neo Air

 

5) apt-get install --reinstall gnome-session ubuntu-desktop

-------------------------------------------------------------------------

Install Vnc Server on the NanoPi Neo Air

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04

-------------------------

6) apt-get install xfce4 xfce4-goodies tightvncserver

-------------------------

7) mv ~/.vnc/xstartup ~/.vnc/xstartup.bak

-------------------------

8) nano ~/.vnc/xstartup

 

#!/bin/bash

xrdb $HOME/.Xresources

startxfce4 &

 

9) chmod +x ~/.vnc/xstartup

-------------------------

10) nano /etc/init.d/vncserver

 

#!/bin/bash

PATH="$PATH:/usr/bin/"

export USER="user"

DISPLAY="1"

DEPTH="16"

GEOMETRY="1024x768"

OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY} -localhost"

. /lib/lsb/init-functions

 

case "$1" in

start)

log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}"

su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"

;;

 

stop)

log_action_begin_msg "Stopping vncserver for user '${USER}' on localhost:${DISPLAY}"

su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"

;;

 

11) chmod +x /etc/init.d/vncserver

--------------------------

Make vncserver autostart

12) crontab –e

@reboot sudo /usr/bin/./vncserver

13) service vncserver start

-----------------------------------------------------------------------------

14) Get ip of the NanoPi Neo Air using ifconfig

Running VNC Server on the NanoPi Neo Air:

15) vncserver

 

Remote PC:

16) vncviewer ip:5901

----------------------------------------------------------------------------