Conexión Escritorio Remoto Windows a CENTOS6


Este es un tutorial que me ha servido para acceder a través de Escritorio Remoto Windows a un Linux Centos instalado en un servidor accesible por comunicaciones.

Espero que también os funcione a otros….

Como instalar VNC-SERVER en Linux Centos

yum install tcpdump
yum install telnet
yum install tigervnc-server


Hi this is an old thread, but for the sake of completing it, you can find the answers about how to get beyond the «gray vnc screen» here (ok the forum won’t let me post a URL for security reasons, so go to the «virtuatopia» website and search for «Running and Connecting to VNC Servers on a Xen Guest (domainU) System» and there you will find a possible fix to get past grey screen.

What it says there is that you have to edit the /home/username/.vnc/xstartup file as follows: uncomment these two lines:

# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

and add at the end of the file the line (for a gnome desktop on vnc):

gnome-session &

—–
#!/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 80×24+10+10 -ls -title «$VNCDESKTOP Desktop» &

gnome-session &
——

then of course restart vnc on the server and reconnect from fresh session on the client. By the way, the «vncviewer» from the command line can be buggy. There are many free 3rd party vnc viewer type tools which work better/look better.

Como instalar XRDP en Linux Centos

Descargo repositorio

[root@dev ~]# rpm -Uhv http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
Retrieving http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
warning: /var/tmp/rpm-tmp.BIUgyM: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing…                ########################################### [100%]
1:epel-release           ########################################### [100%]
[root@dev ~]#

————————————-
Instalamos XRDP

Install XRDP On CentOS Linux Using Yum:
[root@dev ~]# yum install xrdp

———————————
Chequeo la configuracion de /etc/xrdp/xrdp.ini

Example xrdp.ini Configuration File For XRDP:
[root@dev ~]# less xrdp.ini
[globals]
bitmap_cache=yes
bitmap_compression=yes
#address=127.0.0.1
port=3389
crypt_level=high
channel_code=1

[xrdp1]
name=sesman-Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=5901
—————————————

—————————————

2.1. Creo los usuarios de vnc
Atencion: si el usuario ya existe no es necesario crearlo

$ su –
# useradd user

————————-

Me logueo con el usuario , y escribo el comando vncpassd
Esto crea el directorio .vnc

su user
vncpasswd  # ingreso el mismo password del usuario (en este caso user)
[~]$ cd .vnc
[.vnc]$ ls
passwd

————————————–
me logueo como root

su

—————————————————-
edito /etc/sysconfig/vncservers, y agrego lo siguen en el archivo.

VNCSERVERS=»1:NOMBREDELSUARIOCREADO(user)»
VNCSERVERARGS[1]=»-geometry 640×480″

————————————

Set XRDP And TigerVNC To Start At Boot On CentOS Linux:
[root@dev ~]# chkconfig xrdp on
[root@dev ~]# chkconfig vncserver on
[root@dev ~]# /etc/init.d/vncserver start
Starting VNC server: 1:user
New ‘dev:1 (alex)’ desktop is dev:1
Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/alex/.vnc/dev:1.log
[  OK  ]
[root@dev ~]#

—————————————————

[root@localhost user]# /etc/init.d/xrdp stop
[root@localhost user]# /etc/init.d/xrdp start
Iniciando xrdp:                                            [  OK  ]
Iniciando xrdp-sesman:                                     [  OK  ]

—————————————
No olvidar bajar el firewall

3 comentarios sobre “Conexión Escritorio Remoto Windows a CENTOS6

Deja un comentario