Discussion

How to use VNC login your Banana Pi

15 16948
Without HDMI display, we can use vnc to display the Banana Pi desktop on your PC through IP. Befor use vnc, we may should know how to use SSH to login Banana Pi to use command line.
We should know that the vnc is start under the current user. If we changed user account, we should again create a new vnc service under current user account. When the vnc service is created, .vnc file will produce. The .vnc file contains the information about vnc service. The path of .vnc is generally at [/home/username] or [/root] according to which user you are using. We can use vncpasswd command to set the password.
For example, if you use root user. You can configure the vnc according the steps below. The OS is Cubieboard_For_BananaPi _v1.0.tgz.

1.        Install VNC Server
1.png

2.        First start VNC Server and set password
2.png
3.png

This will require you can enter a vnc password (at least 6 numbers) for the first time, and then ask you it you like to enter a view-only password(y/n), enter n to pass.
We can check whether the vnc service is set up successfully.
4.png
The default pot is 5901.

3.        Configure the .vnc/xstartup script
Sometimes we should configure the xstartup script to display the desk in vnc client. We can choose which desk system session to use. We can edit the xstartup script to enable different desk sessions.
5.png
a)        Gnome. Then most powerful desktop session.
6.png
b)        X-Window. Then simplest desktop session.
7.png
c)        Xfce 4. Linux like desk session.
8.png
After modifying the xstartup script we should restart the vnc service to make the modify work. First kill the current vnc service:
9.png
And the start vnc service again to make the modify work.
10.png
4.        Use VNC-View on your PC to login in your Banana Pi. Enter the Banana PI IP and port. The port of desk 1 is 5901, desk 2 is 5902 … …You can use ifconfig to check the IP address.
11.png
12.png
This is a X-Window display.
13.png
Under X-Window, if we want to use the web browser Chromium, we should better not use root to start the vnc service. We should start vnc service under normal user and then use VNC-View to login Banana Pi.


The command to start the vnc service:
14.png
15.png
16.png

The command to stop the vnc service:
17.png
18.png

Check the running VNC progress:
19.png

The command to change the password
20.png
Reply 1# tony_zhang
Why not use vnc4server? I think this will be better.

Tone  
Can I start VNC before login?

Follow instructions from here to install vnc:
http://www.howtogeek.com/141157/ ... -and-file-transfer/

Tonband  
My TightVNC Client only shows a grey display with a black cross (mouse), but no Terminal or taskbar....
I use lubuntu 3.1.1 and i configured Xresources with gnome.

Tonband  
Thanks, actkk2000, but vino-preferences call ends in a Warning:
cannot open display:


Is X-Server not running on Lubuntu? How to check that?

Tonband  
Now it works!
i had to add the .Xauthority file to bananapi homeDir, not root!

  1. as root:
  2. touch /home/bananapi/.Xauthority
  3. chown bananapi /home/bananapi/.Xauthority
Copy the Code

bdwk  
Tonband replied at Thu Sep 18, 2014 00:42
Now it works!
i had to add the .Xauthority file to bananapi homeDir, not root!

I still nothing on vnc desktop,I use lubuntu 3.1.1

Hi.
Please forgive the newbie question but...
I've followed this post and Ive managed to connect from my Windows 7 laptop to my banana pi usiing TightVNC Viewer. All is running okay.
My question is, while using tightvnc and accessing my banana pi is the transmited data encripted?

I did not setup Putty has described in the posted link above (http://www.howtogeek.com/141157/ ... -and-file-transfer/) has it was not mentioned on the original post from tony_zhang

But I wonder if I should?
Can anyone please advise?
Thanks

You have to log in before you can reply Login | Sign Up

Points Rules