• 【转】Getting xrdp to work on CentOS 6.4


    vi /etc/selinux/config

    SELINUX=disabled

    reboot

    Step 1:

    #rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
    #rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
    #yum -y update
    #yum repolist

    Step 2:

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

    Step 3:

    Download the latest version of xrdp. That’s probably going to be 0.6.0. Unzip/tar it to a folder on your desktop

    #cd /home/username/Destkop/xrdp-v0.6.6/
    #chmod u+x bootstrap
    #./bootstrap
    #chmod u+x configure
    #./configure
    #make
    #make install

    This will compile a bunch of stuff.

    #groupadd tsusers
    #groupadd tsadmins

    Fantastic. All the easy work is done, now let’s modify a bunch of config files manually.

    Step 4:

    #nano -w /etc/group

    Now add these two lines to the group file. Note it is group, not groups.

    tsusers:x:501:YOURUSERNAME
    tsadmins:x:502:root

    Setting up the password for xrdp/vnc

    #su YOURUSERNAME
    #vncpasswd
    Insert your password twice
    #exit
    To return root user

    Edit VNC server files

    #nano -w /etc/sysconfig/vncservers

    Add to end of vncservers file. You can adjust the resolution from microsoft’s RDC app, but it’s good to have a resolution to start with.

    VNCSERVERS=”1:YOURUSERNAME”
    VNCSERVERARGS[1]=”-geometry 1355×768 -depth 16″

    Edit another text file

    #nano -w /etc/rc.local

    Dump this line at the end on a new line

    /etc/xrdp/xrdp.sh start

    And then start up the service. Awesome. You shouldn’t need to muck around with the firewall, but if you do the port number is 3389

    #chkconfig vncserver on
    #service vncserver start
    #/etc/xrdp/xrdp.sh start

    And… behold! Hopefully it was worth it.

    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    jvm05
    jvm04
    jvm03
    jvm02
    jvm01
    rabbitmq-01
    lock接口认识及可重入锁的实现
    volitile的使用
    自旋锁,死锁与重入锁
    上机实验4--求序列的最大元素和最小元素
  • 原文地址:https://www.cnblogs.com/yuliyang/p/3583397.html
Copyright © 2020-2023  润新知