Mike Caldwell
asked on
Setting up VNC for Ubuntu server and Windows 7 client
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.
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.
ASKER
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"
Don't know if it is important, but I notice as ubuntu booted it said "sda5_crypt started"
The encrypt message is ok, you probably selected that during setup.
Can you ping the device? It may not being connected to the network?
Can you ping the device? It may not being connected to the network?
ASKER
Yes; note that RDS reaches it, just doesn't show anything.
ASKER
BTW: I connect from the desktop to two other Windows machines using TightVNC, so doubtful the router is making trouble.
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.
If firewall is not up and VNC is running but you can't connect then it must be some incompatibility between VNC versions.
you need to use a different desktop not the 3D one and also set up a non root account to login as
ASKER
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?
ASKER
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."
these instructions worked for me
sudo nano /etc/init.d/vncserver
---------------
and add the following lines:
---------------
sudo nano /home/vnc/.vnc/xstartup
-----------
https://www.digitalocean.com/community/tutorials/how-to-setup-vnc-for-ubuntu-12
apt-get -y install ubuntu-desktop tightvncserver xfce4 xfce4-goodies
adduser vnc
passwd vnc
echo "vnc ALL=(ALL) ALL" >> /etc/sudoers
// or use nano to edit the filesu - vnc
vncpasswd
exit
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
------sudo nano /home/vnc/.vnc/xstartup
-----------
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
startxfce4 &
---------------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
https://www.digitalocean.com/community/tutorials/how-to-setup-vnc-for-ubuntu-12
you may prefer gnome over the default unity
sudo apt-get upgrade
sudo apt-get install gnome-session-fallback
ASKER
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what was the link that you followed?
ASKER
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.
ASKER
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.
#sudo ufw disable