新闻资讯
首页> 关于>新闻资讯
  • Linux开启3389远程桌面访问方法

  • 【时间】:2018-06-14  【来源】: 原创  【作者】:远程桌面
  •   
      yum install xrdp vnc-server安装远程桌面程序
      安装源的 key:
      rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6)
      2.vi /etc/sysconfig/vncservers 编辑配置文件
      在配置文件最后添加
      VNCSERVERS="2:test"(test为远程登陆用户名)
      VNCSERVERARGS[1]="-geometry 1024x768"
      允许root的如下:
      VNCSERVERS="1:root"
      VNCSERVERARGS[1]="-geometry 1024x768"
      3.vi /etc/group 编辑组文件允许用户远程登陆
      test:x:500:test
      注:假设允许用户“test”、“张三”远程登录,禁止用户“222”远程登录
      test:x:500:test
      222:x:501:
      张三:x:502:张三
      4.切换远程用户配置远程登陆密码
      su - bricom
      设置用户远程登录密码:
      执行 vncpasswd 设置远程密码
      5.启动远程登陆服务
      service vncserver start
      service xrdp start
      添加开启自启动
      chkconfig xrdp on
      chkconfig vncserver on
      6.如果启动了iptables则需要在防火墙规则中添加允许访问3389的规则
      vi /etc/sysconfig/iptables
      -A INPUT -m state --state NEW -m tcp -p tcp --dport 3389 -j ACCEPT
      保存重启防火墙服务
      service iptables restart 或直接关闭防火墙 service iptables stop
      备注1:yum安装时提示:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
      处理很简单,修改文件“/etc/yum.repos.d/epel.repo”, 将baseurl的注释取消, mirrorlist注释掉即可。
      备注2:替换为163yum源
      1.mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
      2.wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
      3.将CentOS6-Base-163.repo放到/etc/yum.repos.d/下改名为CentOS-Base.repo
      4.yum clean all 清理缓存 yum -y update 更新源
      http://jaist.dl.sourceforge.net/project/xrdp/xrdp/0.6.1/xrdp-v0.6.1.tar.gz xrdp源码包下载
      备注3:最小化安装的系统需要安装图形操作界面
      1.yum install Desktop
      2.yum groupinstall 'X Window System'  -y
      3.安装GNOME桌面环境
      #yum groupinstall  'GNOME Desktop Environment' -y 或 yum groupinstall “Desktop”
      4.安装中文字体
      #yum groupinstall "Chinese Support"
      ps:如果发生错误:
      Warning: Group GNOME Desktop Environment does not exist.
      No packages in any requested group available to install or update
      则可以先用yum grouplist 检查一下已安装的组可支持的组,获得对应的组名再安装
      备注4:安装火狐浏览器
      一: 安装火狐命令
      yum -y install firefox
      二:浏览器显示中文
      yum install fonts-chinese
      yum install fonts-ISO8859-2-75dpi
      修改 /etc/sysconfig/i18n ,内容如下
      LANG="en_US.UTF-8"
      SYSFONT="lat0-sun16"
       


    本文地址:http://www.lookmypc.com/news/20180614090648.shtml,转载请注明。
上一篇:远程桌面连接密码

下一篇: linux远程桌面连接软件xshell和ftp软件xftp安装图文教程


联系我们

电话:0771-3838454
电话/传真:0771-3838457
客服QQ:800003655
Email:kefu@zklan.com

首页 下载中心 使用帮助 在线商城 关于我们
0771-3838457
Copyright©2008-2016  All Rights Reserved 备案号:桂ICP备08000748号-7  
0771-3838454
  0771-3838457
13377196315
0771-3838457
×
×