6
Install XRDP Server on CentOS 6.3 (X86_64) Posted on September 10, 2012 by Vernon Spangler Recientemente he pensado que sería bueno para instalar un método que me permite utilizar el cliente de Escritorio Remoto de Windows para conectarse a un CentOS 6.3 mi sistema. Este método utiliza el servidor xrdp conectar localmente a un Servicio de VNC. Le tomó una buena cantidad de investigación en línea sin ningún tipo de instrucciones reales sobre lo que debe hacer. Install/Update EPEL & RPMforge to CentOS 6.3 #rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2- 2.el6.rf.x86_64.rpm #rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6- 8.noarch.rpm #yum -y update #yum repolist Install needed Packages #yum install -y xrdp tiger-vncserver autoconf automake libtool openssl- devel pam-devel libX11-devel libXfixes-devel Download and install the updated version of XRDP I downloaded mine to roots home directory in order confirm that everything is being installed correctly http://www.xrdp.org/ #tar -zxf xrdp-v0.6.0.tar.gz #mv xrdp-v0.6.0/ /usr/lib64/xrdp-v0.6.0/ #cd /usr/lib64/xrdp-v0.6.0/ Now to install updated version of XRDP #./bootstrap #./configure #make #make install Setup Users Groups #groupadd tsusers #groupadd tsadmins Edit Groups file #nano -w /etc/groups Edit the following lines to look like this. tsusers:x:501:YOURUSERNAME tsadmins:x:502:root

Instalacion XRDP en Centos 6

  • Upload
    jmmmax

  • View
    49

  • Download
    1

Embed Size (px)

DESCRIPTION

Sobre el proceso de instalacion del protocolo XRDP en Centos 6

Citation preview

Page 1: Instalacion XRDP en Centos 6

Install XRDP Server on CentOS 6.3 (X86_64)Posted on September 10, 2012 by Vernon Spangler

Recientemente he pensado que sería bueno para instalar un método que me permite utilizar el cliente de Escritorio Remoto de Windows para conectarse a un CentOS 6.3 mi sistema. Este método utiliza el servidor xrdp conectar localmente a un Servicio de VNC. Le tomó una buena cantidad de investigación en línea sin ningún tipo de instrucciones reales sobre lo que debe hacer.

Install/Update EPEL & RPMforge to CentOS 6.3#rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm#rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm#yum -y update#yum repolist

Install needed Packages#yum install -y xrdp tiger-vncserver autoconf automake libtool openssl-devel pam-devel libX11-devel libXfixes-devel

Download and install the updated version of XRDPI downloaded mine to roots home directory in order confirm that everything is being installed correctlyhttp://www.xrdp.org/#tar -zxf xrdp-v0.6.0.tar.gz#mv xrdp-v0.6.0/ /usr/lib64/xrdp-v0.6.0/#cd /usr/lib64/xrdp-v0.6.0/

Now to install updated version of XRDP#./bootstrap#./configure#make#make installSetup Users Groups#groupadd tsusers#groupadd tsadminsEdit Groups file#nano -w /etc/groupsEdit the following lines to look like this.tsusers:x:501:YOURUSERNAMEtsadmins:x:502:rootNow to setup VNC Password for the user that you want to use XRDP Services#su YOURUSERNAME#vncpasswdInsert your password twice#exitTo return root userTime to Edit the VNC Server#nano -w /etc/sysconfig/vncservers

Page 2: Instalacion XRDP en Centos 6

Insert at the end of fileVNCSERVERS="1:YOURUSERNAME"VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"Now to hook XRDP Server to the rc.local file#nano -w /etc/rc.localor#nano -w /etc/rc.d/rc.localAdd the following to the end of the file/etc/xrdp/xrdp.sh startNow to turn on the services and setup the Startup when you reboot#chkconfig vncserver on#service vncserver start#/etc/xrdp/xrdp.sh startNow you should be able to RDP to your linux system. Please keep in mind that you may need to port forward port 3389 if your firewall is enabled. If you are unable to connect try rebooting your systems and see if it will let you connect. I found it has a 50/50 chance to allow you to connect on the first time without a reboot. Below is a screen shoot of what you should see when you connect to system.

 

Page 3: Instalacion XRDP en Centos 6

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.rpmRetrieving http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpmwarning: /var/tmp/rpm-tmp.BIUgyM: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEYPreparing...                ########################################### [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=yesbitmap_compression=yes#address=127.0.0.1port=3389crypt_level=highchannel_code=1

[xrdp1]name=sesman-Xvnclib=libvnc.sousername=askpassword=askip=127.0.0.1port=5901---------------------------------------

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

$ su -

Page 4: Instalacion XRDP en Centos 6

# useradd user

-------------------------

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

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

--------------------------------------me logueo como root

su

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

VNCSERVERS="1:NOMBREDELSUARIOCREADO(user)"VNCSERVERARGS[1]="-geometry 640x480"

------------------------------------

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 startStarting VNC server: 1:userNew 'dev:1 (alex)' desktop is dev:1Starting applications specified in /home/user/.vnc/xstartupLog 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 startIniciando xrdp:                                            [  OK  ]Iniciando xrdp-sesman:                                     [  OK  ]

Page 5: Instalacion XRDP en Centos 6

---------------------------------------No olvidar bajar el firewall