This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

VNC set up

michaelhchan

Sat Aug 02, 2014 8:15:11 am

Has anyone set up Zorin to allow for access by vnc?
what do I put in my ~/.vnc/xstartup file to allow for the Zorin desktop to start in my vnc session?
Thanks.

Linx

Sat Aug 02, 2014 9:13:25 pm

I have never used VNC on Linux as I have never had a need for it. Perhaps this will help you
https://www.digitalocean.com/community/ ... -ubuntu-12

It looks like some things may need to be changed, but it would depending on the VNC software you are using and the desktop environment you want. Sorry I can't be of more help.

Have you tried X11 forwarding or SSH? That I can be of more help with :D

For both you have to have an ssh server installed and running
Code:
sudo apt-get install openssh-server -y; sudo service ssh start

then for SSH you can use a program called putty, or any other ssh client.
http://www.chiark.greenend.org.uk/~sgtatham/putty/
and for X11 forwarding then I would suggest you use mobaxterm.
http://mobaxterm.mobatek.net/
After you have connected via either method, you just run the command you need for your program. GUI related programs will need to be ran with mobaXterm. super simple, you just ned to know how to start the program from terminal.

michaelhchan

Wed Aug 13, 2014 4:21:37 pm

Thanks for your post.

I have successfully installed vnc4server onto Zorin OS 9.

The only thing that remains is knowing how to invoke the desktop in the vnc start up.

I've successfully done this for Linux Mint 17 MATE and Ubunty 14.04 xfce4 using the following scripts in my ~/.vnc/xstartup. But I have yet to know how to successfully do this for Zorin OS 9. I want to set up a Zorin back end server and be able to manage it remotely. Yet I am not sure about using the built in desktop sharing as vnc viewer allows multiple users to be logged in and running the desktop simultaneously on their vnc session. At least that is what I have been able to do in Mint and Ubuntu/xfce.

Here is my xstartup script for Mint/MATE:

Code:
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
mate-session &


And here is my xstartup script for Ubuntu/xfce4:

Code:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &


So I am trying to come up with a way to get the Zorin OS desktop to show up in a vnc window. Is there a similar way to code up my xstartup script to fire up the Zorin OS 9 desktop? Similar to the mate-session or startxfce4 commands above?

Thanks ahead for any help! I just love the Zorin OS 9 desktop!

Linx

Wed Aug 13, 2014 5:31:56 pm

In most cases, you can follow the Ubuntu config information and it will work fine with Zorin, Have you tried using the Ubuntu config ?