To add to @Timo's answer there sounds like there are 3 ways to setup VNC access.
- At the user level (that's what you're using now)
- At the system level
- At the Host level (when running inside of a VM) - this is Timo's suggestion
NOTE: This tutorial shows how to do #1, it's titled: How to install VNC server on CentOS 6.
If you think for a second #3 is actually just another form of #1 & #2, depending on where you provide access to the desktop. At the user level (#1) or at the system level, (#2).
So I think what you want is actually #2. To get this type of setup working there are basically 2 methods that I'm aware of.
x11vnc
You can install the package x11vnc
and then use this to gain access to the current X11 session on a remote system. It's generally in most of the Red Hat based distro repos so I won't cover installation, but once installed you'd ssh
into a system that you want to access the console display (:0.0), and manually run it like so:
$ x11vnc -nopw -display :0.0
There are methods for making this more permanent so that it just runs as part of the session. One such method is discussed in this blog post, titled: x11vnc on CentOS5 with GDM.
X11 + vnc
The second method is to install a module/driver into X11 so that you can connect to any running X11 desktop. The one I'm familiar with is called vnc
. This driver needs to be installed into the host system's X setup so that you can access the system's login manager. I'm not sure what it is on Oracle (most likely it's GDM - GNOME Display Manager) since it derives from RHEL.
The good news is that if you'e installed the package vnc-server
you already have the X11 driver installed. Simply add this to your host system's X11 setup.
First you'll need to add this line to your xorg.conf
's Module
section:
# /etc/X11/xorg.conf
Section "Module"
Load "vnc"
EndSection
Next you'll need to add several lines to this same files Screen
section:
Option "SecurityTypes" "VncAuth"
Option "UserPasswdVerifier" "VncAuth"
Option "PasswordFile" "/root/.vnc/passwd"
Last setup a password for this connection, using the tool vncpasswd
, then restart X.
References
Best Answer
SSH into debian from linux-mint
Update
There are some problem to connect through VNC to a remote host with cinnamon desktop using the regular way. The problem can be solved by installing
x11vnc
on the server and usingvncviewer
to connect.Install and configure
x11vnc
:To configure the password for remote access :
By default the password will be stored under
~/.vnc/passwd
To force connecting using the password run :
To connect without password run
x11vnc
.sample output:
To connect use the following command:
On debian
Install
tightvncserver
:Then run :
to set up your password.
Adjust your parametres :
On linux mint:
install
xtightvncviewer
:Connect:
To exit run: