当前位置:   article > 正文

Linux系统centos7安装桌面及远程桌面_linux7 centos yuanchengzhuomian

linux7 centos yuanchengzhuomian

yum 源使用是阿里的:https://developer.aliyun.com/mirror/

  1. rm -rf /etc/yum.repos.d/*
  2. curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 

一、桌面环境

首先安装桌面环境,这里安装 GNOME。

yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

关于桌面环境相关命令

  1. # 从命令行切换到桌面环境
  2. startx
  3. # 获取当前启动模式
  4. systemctl get-default
  5. # 修改启动模式为图形化
  6. systemctl set-default graphical.target
  7. # 修改启动模式为命令行
  8. systemctl set-default multi-user.target

默认启动桌面环境后以 root 用户自动登录

  1. # 修改配置文件
  2. vi /etc/gdm/custom.conf
  3. # 增加如下配置
  4. [daemon]
  5. AutomaticLoginEnable=True
  6. AutomaticLogin=root

二、远程服务设置

  1. # Windows 远程登录需要安装 Xrdp,需要 epel 源
  2. wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
  3. yum install -y xrdp
  4. # Xrdp 会调用 VNC,
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/879713
推荐阅读
相关标签
  

闽ICP备14008679号