您的当前位置:首页 --> CentOS入门 |
Centos纯命令行文本界面下安装桌面 |
浏览次数:1385 关键词 ( 命令行 界面 文本 桌面 ) |
一.配置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.安装桌面右键终端: |
下载次数:8 |
下载地址:点击下载 |
本资源为程序自动采集,如有侵权请联系我们移除 admin#80vps.com 来信请将#替换为@ |
下一条 centos系统中网络配置相关 上一条 Centos下查看另一台主机的某个端口是否启动命令 |