Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Setting up VNC for Ubuntu server and Windows 7 client

Posted on 2015-02-14
16
Medium Priority
?
1,200 Views
Last Modified: 2015-02-22
I'm a rookie with ubuntu.  I have 14.10 installed on an older Fujutsu tablet.  I did a clean install; no dual boot, no virtual anything.  I have followed what I think are the instructions for installing VNC on ubuntu (installed vnc4server, then ran {vncserver}).  I have tried both Tight VNC and Real VNC from my Windows 7 desktop.  I always get this message: "Unable to connect to VNC server using your chosed security setting.  Either upgrade VNC Server to a more recent version from RealVNC, or select a weaker level of encryption.

I want to put the ubuntu machine in the garage and do everything from my desktop.

I installed XRDP too, and as advertised Windows Remote Desktop connected, but the display on my desktop is just a sea of gray; do not see the ubuntu desktop, and local mouse does not move the mouse on the ubuntu server.
0
Comment
Question by:Mike Caldwell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 4
  • 3
16 Comments
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 40609925
Try disabling the firewall on Ubuntu, from a terminal:

#sudo ufw disable
0
 
LVL 1

Author Comment

by:Mike Caldwell
ID: 40609962
Did it, restarted, no change.  Also no change with Windows RDS, and I tried all of the Tight VNC encryption selections (Raw, Hextile, Tight, RRE, ZRLE}.  I also tried RealVNC with encyrption {Prefer off} and {Let VNC Server Chose)}.

Don't know if it is important, but I notice as ubuntu booted it said "sda5_crypt started"
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 40609978
The encrypt message is ok, you probably selected that during setup.

Can you ping the device? It may not being connected to the network?
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 1

Author Comment

by:Mike Caldwell
ID: 40610001
Yes; note that RDS reaches it, just doesn't show anything.
0
 
LVL 1

Author Comment

by:Mike Caldwell
ID: 40610122
BTW: I connect from the desktop to two other Windows machines using TightVNC,  so doubtful the router is making trouble.
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 40610234
Ok, missed that RDS is (partly) working, you can connect through ssh (PuTTY)?

If firewall is not up and VNC is running but you can't connect then it must be some incompatibility between VNC versions.
0
 
LVL 83

Expert Comment

by:David Johnson, CD, MVP
ID: 40610288
you need to use a different desktop not the 3D one and also set up a non root account to login as
0
 
LVL 1

Author Comment

by:Mike Caldwell
ID: 40610518
David: I do not know what a 3D desktop is.  My desk machine is Windows 7.  Also, how do I set up a non-root account on the ubuntu machine?  If I am the only user, shouldn't I already have the highest level of permission?  Either way, how to make the nonroot account?
0
 
LVL 1

Author Comment

by:Mike Caldwell
ID: 40611062
I made a new account under a different name, and ubuntu indicates that it is a "standard" account, which I guess mean non-administrator, thus non-root?  But the step to enable the account has no password and indicates "Account disabled."
0
 
LVL 83

Expert Comment

by:David Johnson, CD, MVP
ID: 40613469
these instructions worked for me
apt-get -y install ubuntu-desktop tightvncserver xfce4 xfce4-goodies
adduser vnc
passwd vnc
echo "vnc ALL=(ALL)       ALL" >> /etc/sudoers

Open in new window

// or use nano to edit the file
su - vnc
vncpasswd
exit

Open in new window


sudo nano  /etc/init.d/vncserver
---------------
and add the following lines:
---------------
#!/bin/bash
PATH="$PATH:/usr/bin/"
export USER="vnc"
DISPLAY="1"
DEPTH="16"
GEOMETRY="1024x768"
OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
. /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 "Stoping vncserver for user '${USER}' on localhost:${DISPLAY}"
su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"
;;

restart)
$0 stop
$0 start
;;
esac
exit 0

Open in new window

------
 sudo nano /home/vnc/.vnc/xstartup
-----------
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
startxfce4 &

Open in new window

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

sudo chown -R vnc. /home/vnc/.vnc && chmod +x /home/vnc/.vnc/xstartup
sudo sed -i 's/allowed_users.*/allowed_users=anybody/g' /etc/X11/Xwrapper.config

sudo chmod +x /etc/init.d/vncserver && service vncserver start
sudo update-rc.d vncserver defaults

Open in new window



https://www.digitalocean.com/community/tutorials/how-to-setup-vnc-for-ubuntu-12
0
 
LVL 83

Expert Comment

by:David Johnson, CD, MVP
ID: 40613480
you may prefer gnome over the default unity
sudo apt-get upgrade
sudo apt-get install gnome-session-fallback

Open in new window

0
 
LVL 1

Author Comment

by:Mike Caldwell
ID: 40614266
David, I just too rookie I guess to understand your suggestions.  Are they "do this one or that one", or "do all the above"?  For the first one, I got "Permission denied, are you root?"  

I don't know what file you mean to be edited using nano, nor how to open nano.  
sudo nano  /etc/init.d/vncserver did open an editor, but it is blank; no file to which to add the suggested text.

Wow; it takes all this editing just to set up VNC?  A user password?
0
 
LVL 1

Accepted Solution

by:
Mike Caldwell earned 0 total points
ID: 40615588
Found how to do it on line, and was quite easy.  Just installed dconf, then followed the menu tree down thru desktop and unclicked encryption.
0
 
LVL 83

Expert Comment

by:David Johnson, CD, MVP
ID: 40615612
what was the link that you followed?
0
 
LVL 1

Author Comment

by:Mike Caldwell
ID: 40621745
Don't know, I didn't write it down or save as a bookmark, just followed the simple instructions and I was done.  It did not involve any of the suggested steps.  Sorry I didn't save it.
0
 
LVL 1

Author Closing Comment

by:Mike Caldwell
ID: 40624006
I was not able to understand the proposed instructions.  They seemed quite involved with several steps, including editing statements when I did no t know how to open the editor.  So I did a Google search, found simple step by step instructions, and worked just fine.  So I would not want to send someone that finds this later down that path.  Actually I think it would be best to just kill this question altogether.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question