CentOS7安裝GNOME可視化界面 和 遠程訪問

服務器客戶要求使用linux,未了操做方便,因而考慮如何使用可視化界面操做,如下是使用CentOS7安裝GNOME可視化界面流程的步驟總結和概括:linux

1:使用Xshell或jutty等鏈接工具進入系統(默認用戶名root)docker

2:執行命令安裝 Gnome 包shell

$sudo  yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

(若是安裝過程當中出現如下錯誤)windows

Transaction check error:
  file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64

Error Summary

則須要先執行如下兩條安裝命令bash

yum install -y libdevmapper*
yum install -y docker

安裝完成後從新執行上面的安裝 Gnome包命令服務器

3 更新系統的運行級別,若是你想在系統下次啓動的時候自動進入圖形界面,那麼咱們須要更改系統的運行級別,輸入下面的命令來啓用圖形界面。app

$sudo ln -sf /lib/systemd/system/runlevel5.target/etc/systemd/system/default.target

 systemctl set-default graphical.target 

 

4.安裝 工具

# yum install -y epel-release

# yum install -y xrdp  

# systemctl enable xrdp xrdp-sesman && systemctl start xrdp xrdp-sesman

 

5.重啓完成GNOME的安裝spa

能夠用windows Remote Desktop Connection訪問linux了code

相關文章
相關標籤/搜索