linux 7 远程登陆,CentOS7 远程登录配置(xrdp)

2023-05-16

Automatic (recommended):

Install EPEL and nux Desktop repository rpms.

# rpm -ivh

https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm

# rpm -ivh

http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

Installation: Issue the following command

to install xrdp

# yum -y install xrdp

tigervnc-server

You will get the following output, make sure you are getting

package from the newly created repository.

-->

Running transaction check

---> Package xrdp.x86_64

0:0.6.1-2.el7.nux will be installed

--> Finished Dependency

Resolution

Dependencies Resolved

================================================================================

Package

Arch

Version

Repository

Size

================================================================================

Installing:

xrdp

x86_64

0.6.1-2.el7.nux

xrdp

271 k

Transaction Summary

================================================================================

Install 1 Package

Total download size: 271 k

Installed size: 1.5 M

Is this ok [y/d/N]: y

Downloading packages:

xrdp-0.6.1-2.el7.nux.x86_64.rpm | 271 kB

00:05

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing : xrdp-0.6.1-2.el7.nux.x86_64 1/1

Verifying :

xrdp-0.6.1-2.el7.nux.x86_64

1/1

Installed:

xrdp.x86_64 0:0.6.1-2.el7.nux

Install Japanese Keyboard

# cd /etc/xrdp

# wget

http://www.mail-archive.com/xrdp-devel@lists.sourceforge.net/msg00263/km-e0010411.ini

# cp km-e0010411.ini km-0411.ini

# cp km-e0010411.ini km-e0200411.ini

# cp km-e0010411.ini km-e0210411.ini

Once it is installed, lets start the xrdp

service.

# systemctl start

xrdp.service

xrdp will listen on 3389, lets confirm this by issuing

following command.

# netstat -antup

| grep xrdp

tcp 0

0 0.0.0.0:3389

0.0.0.0:*

LISTEN

1508/xrdp

tcp 0

0 127.0.0.1:3350

0.0.0.0:*

LISTEN

1507/xrdp-sesman

By default, services wont auto start after system reboot.

Issue the following command to enable the service at system start

up.

# systemctl enable

xrdp.service

lets start firewall enabled

# systemctl start

firewalld

By default, firewall wont auto start after system reboot.

Issue the following command to enable the firewall at system start

up.

# systemctl enable

firewalld

Next is to create iptables rule to allow rdp connection from

the external machines, following command will add the exception for

rdp port (3389).

# firewall-cmd --permanent

--zone=public --add-port=3389/tcp

# firewall-cmd --reload

Configure SELinux

# chcon --type=bin_t /usr/sbin/xrdp

# chcon --type=bin_t /usr/sbin/xrdp-sesman

Test:

Now take rdp from any windows machine using Remote Desktop

Connection, enter ip address of Linux server in computer field and

click on connect.

e6193589847bb5ca9490d687c4df7612.png

CentOS 7 – xrdp MSTSC

You would be asked to enter the user name and password, you

can either use root or any user that you have it on system. Make

sure you use module “sesman-Xvnc”.

86507e6cf83b1b1acafb4fa157fbb89c.png

CentOS 7 – xrdp Login page

If you click ok, you will see the processing. In less than a

half min, you will get a desktop.

bcdbee94771b06872eb6fa08b8a80bd4.png

CentOS 7 – xrdp Desktop

That's All, you have successfully configured xRDP on CentOS 7 /

RHEL 7. We welcome your comments.

[Reference]

[Xrdp-devel] Keyboard issue and Japanese Keyboard Layout

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

linux 7 远程登陆,CentOS7 远程登录配置(xrdp) 的相关文章

  • 数百个空闲线程的影响

    我正在考虑使用可能数百个线程来实现通过网络管理设备的任务 这是一个在带有 Linux 内核的 powerpc 处理器上运行的 C 应用程序 在每个任务进行同步以将数据从设备复制到任务的初始阶段之后 任务变得空闲 并且仅在收到警报或需要更改一
  • 在命令行上解密使用 PHP openssl_encrypt 制作的文件

    我有一个要加密的字符串 encryptThis Super Secret Text echo openssl encrypt encryptThis aes 128 cbc 1234 FALSE F68A9A229A516752 然后我通过
  • C中的内存使用问题

    请帮忙 操作系统 Linux 其中 sleep 1000 中 此时 top 显示Linux任务 给我写了7 7 MEM使用 valgrind 未发现内存泄漏 我明白 写得正确 所有 malloc 结果都是 NULL 但是为什么这次 睡眠 我
  • 如何让 PHP、符号链接和 __FILE__ 很好地协同工作?

    在本地主机上 我有以下目录结构 share www trunk wp content plugins otherfolders share www portfolio wp content symlink Where symlink是一个符
  • 将用户添加到组但运行“id”时未反映

    R 创建了一个名为 Staff 的组 我希望能够在不以 sudo 身份启动 R 的情况下更新软件包 所以我使用以下方法将自己添加到员工中 sudo usermod G adm dialout cdrom plugdev lpadmin ad
  • 干净地销毁System V共享内存段

    我在用shmget shmat and shmctl分别获取和创建共享内存段 将其附加到进程地址空间中并删除它 我想知道进程是否仍然可以使用共享内存段 即使它已被分离并要求使用删除 shmctl id IPC RMID 在一个过程中 我无法
  • 当存在点和下划线时,使用 sed 搜索并替换

    我该如何更换foo with foo sed 只需运行 sed s foo foo g file php 不起作用 逃离 sed s foo foo g file php Example cat test txt foo bar sed s
  • 如何从脚本向 sudo 提供密码?

    请注意 这是在我的本地计算机上运行的来宾虚拟机 VBox 我不担心安全性 我正在编写一个将在 Linux Ubuntu VM 上执行的脚本myuser用户 该脚本将在下面创建一个非常大的目录树 etc myapp 目前我必须手动完成所有这些
  • 当我通过 shell 脚本创建 .txt 文件时,为什么文件名末尾出现问号? [复制]

    这个问题在这里已经有答案了 我正在编写一个 shell 脚本 我应该在其中创建 1 个文本文件 当我这样做时 文件名末尾出现一个问号 是什么原因 我正在 bash 脚本中尝试以下方法 1 grep ERROR a1 gt text txt
  • 如何使用 tmuxinator 在 tmux 中拆分水平窗格内的两个垂直窗格

    目前我的 tmuxinator yml 文件中有这个 windows editor layout main horizontal panes vim server rails s 这给了我两个窗口 一个用于编辑器 另一个用于服务器 在编辑器
  • 如何“grep”连续流?

    可以用吗grep在连续的流中 我的意思是有点tail f
  • Nasm 打印到下一行

    我用 nasm Assembly 编写了以下程序 section text global start start Input variables mov edx inLen mov ecx inMsg mov ebx 1 mov eax 4
  • Bash 中 $() 和 () 之间的区别

    当我打字时ls l echo file 支架的输出 这只是简单的回显 被获取并传递到外部ls l命令 就等于简单的ls l file 当我打字时ls l echo file 我们有错误 因为不能嵌套 内部外部命令 有人可以帮助我理解之间的区
  • 跟踪 pthread 调度

    我想做的是创建某种图表 详细说明 Linux 中 两个 线程的执行情况 我不需要查看线程的作用 只需查看它们何时被安排以及持续多长时间 基本上是一条时间线 在过去的几个小时里 我一直在互联网上搜索跟踪 pthread 调度的方法 不幸的是
  • 无法为 Python 3.4 创建工作虚拟环境

    I 安装Python 3 4 2 https docs python org 3 using unix html building python和我的 Linux Mint 17 1 中的 Virtualenv 12 0 5 然后我尝试创建
  • 对 sf:: 的未定义引用

    我想用 C 制作 GUI 应用程序 发现 SFML 是一个不错的选择 幸运的是 我使用的是 Linux 所以 SFML 2 4 已经安装在我的系统上 所以我开始搜索一些教程并找到了一个制作简单窗口的教程 但是当我运行代码时 出现错误 提示未
  • 如何使用libaudit?

    我试图了解如何使用 libaudit 我想接收有关使用 C C 的用户操作的事件 我不明白如何设置规则 以及如何获取有关用户操作的信息 例如 我想获取用户创建目录时的信息 int audit fd audit open struct aud
  • 在 Ubuntu 上纯粹通过 bash 脚本安装 mysql 5.7

    我想要一个无需任何手动输入即可安装 MySQL 5 7 实例的 bash 脚本 我正在关注数字海洋教程 https www digitalocean com community tutorials how to install mysql
  • gnome-terminal 新选项卡,使用别名作为要执行的命令

    我已经创建了一个别名 bashrc文件如下 alias myproject cd Desktop myproject 当我重新启动终端时保存文件后 输入myproject带我到项目目录 但是当我尝试使用别名作为新的命令参数时gnome te
  • 在中断时获取 current->pid

    我正在Linux调度程序上写一些东西 我需要知道在我的中断到来之前哪个进程正在运行 当前的结构可用吗 如果我在中断处理程序中执行 current gt pid 我是否可以获得我中断的进程的 pid 你可以 current gt pid存在并

随机推荐