Centos純命令行文本界面下如何安裝桌面
添加時間:2019-9-14 17:22:19
添加:
思海網絡
一.配置yum本地安裝源:
su - root
mkdir /mnt/cdrom
mount -t iso9660 /dev/sr0 /mnt/cdrom
cd /etc/yum.repos.d
查看目錄是否有.repo后綴文件,沒有則創建一個.repo文件,文件名隨意。
vi local.repo
[LOCAL]
name=local
baseurl=file:///mnt/cdrom
enable=1
gpgcheck=0
保存退出
yum clean all
二. 安裝默認系統桌面(適于之前安裝系統時未選中桌面安裝)
1.安裝桌面包
yum groupinstall “X Window System”
yum groupinstall “Desktop”
2.啟動桌面
init 5
3.更改啟動模式
vi /etc/inittab
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:
將上面紅字部分的 3改成5 3為命令行界面 5為X window圖形界面
4.安裝桌面右鍵終端:
yum install nautilus-open-terminal
關鍵字:Centos、命令行、文本界面、桌面
新文章:
- CentOS7下圖形配置網絡的方法
- CentOS 7如何添加刪除用戶
- 如何解決centos7雙系統后丟失windows啟動項
- CentOS單網卡如何批量添加不同IP段
- CentOS下iconv命令的介紹
- Centos7 SSH密鑰登陸及密碼密鑰雙重驗證詳解
- CentOS 7.1添加刪除用戶的方法
- CentOS查找/掃描局域網打印機IP講解
- CentOS7使用hostapd實現無AP模式的詳解
- su命令不能切換root的解決方法
- 解決VMware下CentOS7網絡重啟出錯
- 解決Centos7雙系統后丟失windows啟動項
- CentOS下如何避免文件覆蓋
- CentOS7和CentOS6系統有什么不同呢
- Centos 6.6默認iptable規則詳解