佚名 通过本文向大家介绍了centos6.5命令界面,centos命令界面,centos调用命令行界面,centos 关机命令,centos重启命令等相关知识,希望对您有所帮助,也希望大家多多支持微课江湖
一.配置yum本地安装源:
su - root mkdir /mnt/cdrom mount -t iso9660 /dev/sr0 /mnt/cdrom cd /etc/yum.repos.d</div> </div> 查看目录是否有.repo后缀文件,没有则创建一个.repo文件,文件名随意。 </div>
vi local.repo [LOCAL] name=local baseurl=file:///mnt/cdrom enable=1 gpgcheck=0</div> </div> 保存退出 </div>
yum clean all</div> </div> </div> 1.安装桌面包 </div>
yum groupinstall “X Window System” yum groupinstall “Desktop”</div> </div> 2.启动桌面 </div>
init 5</div> </div> 3.更改启动模式 </div>
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) #</div> </div>
id:3:initdefault:
将上面红字部分的 3改成5 3为命令行界面 5为X window图形界面
4.安装桌面右键终端:
yum install nautilus-open-terminal</div> </div>