Latest interface: 0.3.1
Latest system: 010
karmantyu
User

131 posts

Posted on 16 September 2016 @ 09:56edited 10:00 28s
MATE is slick, nice and stable but we don't have a graphical remote desktop service to access it.
Most of this how-to is synthetized from https://malacube.wordpress.com/tag/freebsd-10-1-remote-desktop/ so the credit goes there.

At first install MATE desktop service from ZFSguru's web interface.
Disable screen saver login password because most likely you will be not able to log in to MATE if it's kicking in.
SSH to your server or open a su terminal and install x11vnc.
# pkg install x11vnc
From SSH su type
# x11vnc -auth /home/x11/.Xauthority
your vnc server will start signaling the port it is using (default 5900).

Now you can start a vnc viewer from your Windows desktop and have full access to your server's graphical interface. (I personally prefer http://www.uvnc.com/) Be aware that you vnc server is running without password so your server is accessible for everyone knowing the service and port to look for. After closing the remote viewer the temporary vnc server will terminate on your server side too.

If you are looking for a something safer server listening for incoming viewer then do the next after installing x11vnc.
# x11vnc -storepasswd (then put your password in, it will put it in a file .vnc/passwd)
# ee /usr/local/bin/vnc.sh
and type
x11vnc -rfbauth ~/.vnc/passwd -auth /home/x11/.Xauthority -forever &
which makes the a vnc service listening for calls authenticated with the given password.
##### exit and save the file.
# chmod a+x /usr/local/bin/vnc.sh
# /usr/local/bin/./vnc.sh

Now your vnc service is listening for incoming calls.
If you want vnc to come up at start up, on your desktop go to System > Preference > Startup Applications. There put in a name for your App, the directory to the vnc.sh we just made and a comment if you want. That's it. Not it will start up every time you reboot.
Do not forget that this is still not the safest method because the stored password on your sever is investigable (ps) by users with certain privileges. So if you are concerned by the security of your server create a vnc server tunneling through ssh service.
http://www.karlrunge.com/x11vnc/index.html#tunnelling
Last Page

Valid XHTML 1.1