VNC connection with
Gnome systems in the RedHat world is easy. Just search in the Gnome menu for
the Remote Desktop setting (different location depending on distribution,
usually in systems settings or administration or accessories or likewise).
Ignore any VNC application for now. On the system you want to remote-control,
click on the necessary settings allowing remote view and control of the
desktop; probably choose that the connection must be confirmed or setup a
password.
Firewall needs to be
disabled or configured accordingly.
On the system to be in
control (remote system) just type in a terminal:
#vncviewer :0
You can see the local
user’s typing and mouse movement on the screen and can interfere!
If the remote system
is OpenSuse (i.e. 11.1) the process is the same. But if the system
to-be-controlled is OpenSuse (problem occurred with 11.1 32-bit) then more work
is necessary.
Also make sure the
“vino” software package and other remote control packages are installed on the
system (use Yast2 software manager to search, type “remote”). Package names
depend on version number.
1) Switch off firewall
or configure accordingly.
2) In Yast2 settings
search the remote control server and configure it to allow for remote
connections
3) In Yast2 search for
the local security settings and allow for remote start of GUI and remote access
(takes testing out which setting is really needed here to re-fine this
procedure).
4) Type
# vncserver
It will say:
You will require a password to access your desktops.
Type the password.
It will then say:
Would you like to enter a view-only password (y/n)? n
New 'X' desktop is suselinux:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/suselinux:1.log
5) change startup script:
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/suselinux:1.log
5) change startup script:
# vi .vnc/xstartup
You will see:
#!/bin/sh \
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twd &
Replace twd or
whatever desktop is chosen there by “gnome-session” or “startkde” depending on
what is your preference.
6) Kill current vncserver:
6) Kill current vncserver:
# vncserver -kill :1
7) Start new vnc server:# vncserver
You can try to access
the target system with # vncviewer
If you choose #vncviewer
:2 or likewise
you might get other sessions with simpler GUIs, especially if there was a
problem starting up Gnome or KDE for remote access.



