zoukankan      html  css  js  c++  java
  • 【转】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.

    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    连续型随机变量
    离散型随机变量
    vue1.0生命周期
    vue2.0生命周期函数
    vue2.0 vue.set()
    vue2.0 vue.extend()的拓展
    vue2.0 自定义指令详解
    vue2.0 v-model指令
    vue2.0排序应该注意的问题
    vue2.0版本指令v-if与v-show的区别
  • 原文地址:https://www.cnblogs.com/yuliyang/p/3583397.html
Copyright © 2011-2022 走看看