23 Mayıs 2012 Çarşamba

Remote Desktop via Vncserver on Unix OS



If you want to set via remote desktop for Unix,you may use vncserver.But don't forget one thing while connecting.

1)Open a terminal,then open vncserver session like below.
[applprod@erpapps appl]$ vncserver

You will require a password to access your desktops.

Password:
Verify:
xauth:  creating new authority file /home/applprod/.Xauthority

New 'erpapps:3 (applprod)' desktop is erpapps:3

Creating default startup script /home/applprod/.vnc/xstartup
Starting applications specified in /home/applprod/.vnc/xstartup
Log file is /home/applprod/.vnc/erpapps:3.log

2)Vncserver create a file which name is .vnc under /home/applprod/

3)Go to /home/applprod/.vnc

[applprod@erpapps appl]$ cd /home/applprod/.vnc

4)You can see file list via ls command

[applprod@erpapps .vnc]$ ls

erpapps:3.log  erpapps:3.pid  passwd  xstartup

5)We open xtartup,because of using 'vi' command to change xstartup content

[applprod@erpapps .vnc]$ vi xstartup



---------------------------------------------------------------------------------------------
#!/bin/sh

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

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

6)We should delete '#' from '#exec /etc/X11/xinit/xinitrc' line.Like below

---------------------------------------------------------------------------------------------
#!/bin/sh

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

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

7)Then you have to open another vncserver session

[applprod@erpapps appl]$ vncserver

8)connect this session via vncserver.

old:bold blue one


new:bold red one

                                                                  Good Luck:)

Hiç yorum yok:

Yorum Gönder