Ubuntu 15.04 VNC Remote Desktop [and RDP]

Moderators: meveric, mdrjr, odroid

Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby crashoverride » Sat Aug 01, 2015 4:01 pm

This procedure allows you to use VNC to remotely view the X11 desktop displayed on HDMI.

1) Install the "vino" package from a command prompt (Xterm)
Code: Select all
sudo apt-get install vino


2) Configure Vino to allow remote desktop connections.
Code: Select all
vino-preferences

-- or --
Code: Select all
dconf write /org/gnome/desktop/remote-access/enabled true
dconf write /org/gnome/desktop/remote-access/prompt-enabled false
vino-passwd


3) Optionally disable requiring encrypted connections.
From the top menu navigate to: Applications/System Tools/dconf Editor
In dconf Editor navigate to: org/gnome/desktop/remote-access/require-encryption = unchecked
[edit]
-- or --
Code: Select all
dconf write /org/gnome/desktop/remote-access/require-encryption false


4) Set the Vino server to start automatically at login.
From the top menu navigate to: System/Preferences/Startup Applications
Use the Add button to create a new entry
Name = Vino Server
Command = /usr/lib/vino/vino-server
Comment = VNC Remote Desktop Server

--or--
Code: Select all
vi ~/.config/autostart/vino-server.desktop

[Desktop Entry]
Type=Application
Exec=/usr/lib/vino/vino-server
Hidden=false
X-MATE-Autostart-enabled=true
Name[en]=Vino Server
Name=Vino Server
Comment[en]=VNC Remote Desktop Server
Comment=VNC Remote Desktop Server


5) Enable auto-login.
Code: Select all
sudo vi /etc/lightdm/lightdm.conf

[SeatDefaults]
autologin-user=odroid
autologin-user-timeout=0


6) Logout and back in or reboot. A VNC connection should now be available.

[Edit]
Corrected typo above: "lightgm" should have been "lightdm"

[edit2]
Simplified "install from SSH" instructions:
Code: Select all
odroid@odroid:~$ sudo vi /etc/lightdm/lightdm.conf
[SeatDefaults]
autologin-user=odroid
autologin-user-timeout=0

odroid@odroid:~$ sudo service lightdm restart

odroid@odroid:~$ sudo apt install vino

odroid@odroid:~$ export DISPLAY=:0.0

odroid@odroid:~$ dconf write /org/gnome/desktop/remote-access/enabled true

odroid@odroid:~$ dconf write /org/gnome/desktop/remote-access/prompt-enabled false

odroid@odroid:~$ dconf write /org/gnome/desktop/remote-access/require-encryption false

odroid@odroid:~$ vi ~/.config/autostart/vino-server.desktop
[Desktop Entry]
Type=Application
Exec=/usr/lib/vino/vino-server
Hidden=false
X-MATE-Autostart-enabled=true
Name[en]=Vino Server
Name=Vino Server
Comment[en]=VNC Remote Desktop Server
Comment=VNC Remote Desktop Server

odroid@odroid:~$ sudo service lightdm restart
Last edited by crashoverride on Fri May 05, 2017 9:27 pm, edited 7 times in total.
crashoverride
 
Posts: 2884
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Ubuntu 15.04 VNC Remote Desktop

Unread postby crashoverride » Sat Aug 01, 2015 4:17 pm

To enable RDP (Windows Remote Desktop Protocol)

1) Complete above procedure

2) Install "xrdp" package.
Code: Select all
sudo apt-get install xrdp


3) Configure xrdp. Chane the "[xrdp1]" section to the following:
[xrdp1]
name=Active Local Login
lib=libvnc.so
username=
password=ask
ip=127.0.0.1
port=5900


4) The RDP session should now be available. The password is configured with "vino-preferences" as above so will be the same as the VNC password.
crashoverride
 
Posts: 2884
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby meveric » Sat Aug 01, 2015 6:03 pm

Nothing new, and would have been better in the Ubuntu (All Linux) HowTo section, where everyone can reads in rather then only XU3/XU4 users... but then agian.. it's probably in that forum somewhere anyway.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7181
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby TeHashX » Sat Apr 30, 2016 4:24 am

Can I change setting from terminal only? i don't have access to desktop to change Applications/System Tools/dconf Editor
User avatar
TeHashX
 
Posts: 172
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Re: Ubuntu 15.04 VNC Remote Desktop

Unread postby bitterandstout » Sun May 08, 2016 5:35 am

crashoverride wrote:To enable RDP (Windows Remote Desktop Protocol)

1) Complete above procedure

2) Install "xrdp" package.
Code: Select all
sudo apt-get install xrdp


3) Configure xrdp. Chane the "[xrdp1]" section to the following:
[xrdp1]
name=Active Local Login
lib=libvnc.so
username=
password=ask
ip=127.0.0.1
port=5900


4) The RDP session should now be available. The password is configured with "vino-preferences" as above so will be the same as the VNC password.


This works as well on c2's running ubuntu 16.04
User avatar
bitterandstout
 
Posts: 12
Joined: Sun May 08, 2016 5:23 am
languages_spoken: english
ODROIDs: a pair of odroid c2's, so far

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby tjohannvr » Mon Aug 01, 2016 3:14 pm

Hi

Thanks for the information. I have the same issue with my ODROIDC2. In what file should the [xrdp1] section be added?

Thanks
tjohannvr
 
Posts: 30
Joined: Tue Apr 12, 2016 11:29 pm
languages_spoken: english
ODROIDs: ODROID XU4 * 4

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby TeHashX » Mon Aug 01, 2016 5:16 pm

tjohannvr wrote:Hi

Thanks for the information. I have the same issue with my ODROIDC2. In what file should the [xrdp1] section be added?

Thanks

/etc/xrdp/xrdp.ini
User avatar
TeHashX
 
Posts: 172
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby ssds » Thu Nov 03, 2016 3:59 am

I find it extremely slow.

I am running i3wm and kodi only on C2. No high CPU usage, but extreme lag on my home network.
I connect via xtightvncviewer from debian.

I am just trying to turn on cartoons for my son, he can't read or write well yet so I need to search stuff for him sometimes.
ssds
 
Posts: 4
Joined: Fri May 27, 2016 2:56 am
languages_spoken: english, polish
ODROIDs: ODROID-C2

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby meveric » Thu Nov 03, 2016 4:37 am

there is a remote control app for Kodi, that you can use to control a Kodi "server" over WLAN (or even internet) that way you have an easy to use Android app for your phone or tablet.. that should be much better than using VNC.
Seach for "Kore" or "Kodi remote" and you should find it :)
You need to activate this option on your Kodi first though.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7181
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby Axeman » Thu Dec 01, 2016 1:37 pm

This was a big help, but a question please.

For the 14.04 release on the C1, I used X11VNC and everything went fine. For the latest 16.04, X11VNC was having problems (ignoring -clip and giving me a 1920x12960 resolution) so I tried Vino out.

How do I enable the cursor to show what is accurately on the screen? When it goes to the waiting animation, it still shows up on my end as a pointer, so I don't know if it's busy or not. Does anyone know how to enable it, or get X11VNC working instead?
Axeman
 
Posts: 2
Joined: Mon Apr 06, 2015 4:03 am
languages_spoken: english
ODROIDs: C1

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby odroid » Thu Dec 01, 2016 2:30 pm

Refer this link to solve the Ubuntu 16.04 Mate VNCserver issue.
viewtopic.php?f=136&t=24835
User avatar
odroid
Site Admin
 
Posts: 23153
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby Axeman » Sat Dec 03, 2016 3:34 am

odroid wrote:Refer this link to solve the Ubuntu 16.04 Mate VNCserver issue.
viewtopic.php?f=136&t=24835


Different issue I think, I can see the desktop and it works. It's just that the cursor is incorrect. When I do something that makes the cursor change to "waiting", the HDMI display shows the correct cursor "waiting" animation, but the VNC client shows a pointer. This was working with X11VNC, but doesn't seem to work in Vino. The consequence is that I can't tell remotely if my the system is busy or if the click didn't register.

When I installed X11VNC, the screen would display but with the wrong resolution, definitely not all gray.
Axeman
 
Posts: 2
Joined: Mon Apr 06, 2015 4:03 am
languages_spoken: english
ODROIDs: C1

Re: Ubuntu 15.04 VNC Remote Desktop [and RDP]

Unread postby crashoverride » Fri Apr 21, 2017 1:06 pm

TeHashX wrote:Can I change setting from terminal only? i don't have access to desktop to change Applications/System Tools/dconf Editor

I updated the first post to include commands for setting up a remote desktop from the terminal. This should now allow "headless" desktops to access remotely.
crashoverride
 
Posts: 2884
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1


Return to Ubuntu (All Linux'es)

Who is online

Users browsing this forum: No registered users and 3 guests