XManager5连接CentOS7

2023-05-16

XManager5连接CentOS6的方法已经行不通了,那么如何用XManager5连接CentOS7

从Xmanger官网博客得知: 
“Gnome in CentOS 7 tries to use local hardware acceleration and this becomes a problem when trying to connect remotely using XDMCP. To avoid this problem, you have to use an alternative display manager (other than ‘gdm’) and desktop environment.” 
“This guide explains how you can change the display manager to lightdm from gdm and desktop environment from Gnome to Xfce.” 
这就是使用Xfce而不用gdm的原因(仅限CentOS7),嗯,不懂的可以百度一下。

参考: 
http://blog.netsarang.com/89/connecting-to-centos-7/ 
http://blog.csdn.net/lic95/article/details/48948099 
http://blog.csdn.net/wuzhimang/article/details/51523867

 

1.安装源

# yum install epel-release -y

2.安装lightdm

# yum install lightdm -y

3.编写配置文件

# vi /etc/lightdm/lightdm.conf

[XDMCPServer]

enabled=true

port=177

4.设置默认显示为lightdm

# systemctl disable gdm ; systemctl enable lightdm

5.启动lightdm

#systemctl start lightdm

 

6.安装xfce桌面,

#yum groupinstall -y xfce

7.删除gnome文件

关键的一步,删除gnome文件,不然启动的时候还是gnome而不是xfce

# cd /usr/share/xsessions/
# mkdir bak
# mv gnome* bak
# systemctl restart lightdm

8.将Display Manager切换为lightdm

#systemctl disable gdm && systemctl enable lightdm
9.启动lightdm

#systemctl start lightdm

10.关闭防火墙

#systemctl stop firewalld.service

11、查看可用的中文安装包

#  yum list kde*chinese

12、安装中文包

# yum install kde-l10n-Chinese.noarch

13、修改开启启动模式
[root@k8smaster /]# vi /etc/inittab

# multi-user.target: analogous to runlevel 3
graphical.target: analogous to runlevel 5

上面multi-user.target是命令行模式
上面graphical.target图形界面模式

14、设置启动模式
[root@k8smaster /]# systemctl set-default graphical.target

 

转载于:https://www.cnblogs.com/amoyzhu/p/6603959.html

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

XManager5连接CentOS7 的相关文章

  • centos mail报错:550 Mailbox not found or access denied

    运行了几年的发邮件脚本 最近体发邮件都发生了报错 无法发出 smtp server 550 Mailbox not found or access denied 报错信息提示邮箱找不到 但是接收人邮箱确定没有错误 因为一直正常运行 网上说5
  • windows系统下安装linux(centos7)虚拟机详细教程(virtualbox环境)

    目录 一 概念 1 1 什么是镜像 1 2 关于镜像的基本概念 二 centos镜像下载 2 1 centos官网下载镜像 2 2 通过其他官网下载镜像 三 下载virtualbox 3 1 为什么要使用virtualbox 3 2 下载v
  • WebSSH2 界面ssh

    工具 Virtual Machines14 1 系统环境 CentOS 7 64位 2个 IP 192 168 163 138 IP 192 168 163 141 概述 在138系统中安装部署WebSSH服务 通过浏览器 http Web
  • Centos系统中mongodb的安装详解

    1 mongodb安装 MongoDB的下载网址 Download MongoDB Community Server MongoDB 将下载的压缩包文件上传到centos系统中 可以直接使用rz scp或者可视化工具上传 解压缩文件 Mon
  • Centos7忘记root密码怎么办,root重置密码

    忘记系统管理员密码真是件头疼的事 centos7的拯救之路如下 第一步 重启系统 按 e 进入启动文件界面后 第二步 按 拉到底部 找到linux16这一行 将ro改成rw 在这行最后面加上 init bin sh 第三步 然后按 Ctrl
  • 使用 JeMalloc 查找 Java 应用程序中的本机内存泄漏

    目前我正在尝试解决 Java 内存问题 我的 Java 应用程序不断使用越来越多的内存 最终它被 Linux OOM 杀手杀死 很可能是本地内存泄漏 因为经过检查 使用 VisualVM 的 JVM 的元空间和堆看起来都不错 使用top命令
  • PHP 警告:第 0 行的未知模块已加载

    在 Mac OSX Mavericks 上使用 homebrew php55 每当我运行 php 命令时 我都会收到以下错误消息 一切运行正常 只是很烦人 PHP Warning Module intl already loaded in
  • 具有多个位置指令和子域的 nginx

    我正在尝试在 nginxconf 中实现类似的东西 子域 sub domain com gt 提供 html sub domain com api gt 代理到端口 3001 sub domain com viewer gt 提供另一个 h
  • 如何在 CentOS 7 中安装 pip?

    CentOS 7 EPEL 现在包含 Python 3 4 yum install python34 然而 当我尝试这样做时 即使 Python 3 4 安装成功 它似乎也没有安装 pip 这很奇怪 因为pipPython 3 4 应该默认
  • 如何在centOS 7中启动apache

    我使用以下命令启动 Apache service httpd start in centOS6 今天我下载了centOS7 64bit minimal并想在安装后启动 Apache 当我使用service httpd start 操作系统会
  • Centos 7 Postgres 服务的环境变量

    最近我遇到了使用自定义 PGDATA 路径启动 postgresql 服务的问题 它尝试查找未初始化的默认数据目录 var lib pgsql 9 3 data 因此触发了这些错误 问题似乎是 Centos 7 上的服务启动器删除了所有环境
  • 安装 hunspell 包

    我期待使用 pip 安装 hunspell 包 但它会抛出以下错误 Collecting hunspell Using cached hunspell 0 4 1 tar gz Building wheels for collected p
  • 大文件上传时出现 Apache 错误 500 (mod_security)

    据我所尝试 通常的解决方案都不适合我 好吧 我的问题是 每次上传 大文件 600 KB 时 我都会收到 500 错误 而较小的图像则可以正常工作 所以 即使使用这个 极端 htaccess 文件 它仍然会发生 是的 htaccess 是活动
  • 在我的 CentOS 机器上找不到wireshark init.lua

    所以我试图在我的 CentOS 7 服务器上获取一个与 tshark 一起使用的脚本 但我遇到了问题 该脚本在我的Windows笔记本电脑上运行良好 我只是将其放在appdata的plugins文件夹中 但我在linux上找不到类似的位置
  • git-http-backend 与 apache2.4 Centos 7

    我尝试在我的 apache 服务器上设置 Git 服务器 但它不起作用 我得到了以下 git conf SetEnv GIT PROJECT ROOT var www html git project1 SetEnv GIT HTTP EX
  • 是什么导致我的 SDL2 程序中出现杂散像素?

    我发现使用 SDL2 绘制的对象上附加了很多杂散像素 添加额外像素的对象包括线条 填充矩形以及转换为纹理的 TTF 文本 这SDL RenderFillRect https wiki libsdl org SDL RenderFillRec
  • GNU shell 函数在意外标记“(”附近出现语法错误

    我想确定我的 makefile 中 Intel Fortran 编译器的版本 因此我添加了一些脚本GNU shell功能如下进行测试 VERIFORT shell ifort version VERIFORT shell ifort ver
  • Dotnet 构建失败:Linux 中的代理背后的 NuGet

    这看起来可能是一个类似的issue https stackoverflow com questions 9232160 nuget behind a proxy但在 CentOS 上 我已经尝试过此线程以及其他线程上的所有解决方案 但是我仍
  • 无法在 CentOS 7 上的 PHP 中打开 file_put_contents 上的流

    我知道这是许多线程的常见错误 但我厌倦了搜索 但仍然没有解决它 当我尝试运行该函数时文件放置内容我收到以下错误 Warning file put contents test txt failed to open stream Permiss
  • MariaDB 未启动:“插件‘反馈’已禁用。”

    我在 CentOS 7 上安装了 MariaDB 10 2 10 但它停止运行 如果我做 If I do systemctl restart mariadb service I get mariadb service main proces

随机推荐