1.挂载镜像
- [root@RHEL601 ~]# mount -o loop /dev/cdrom /mnt
- [root@RHEL601 ~]# vim /etc/fstab
- /dev/cdrom /mnt iso9660 ro,loop 0 0
3.新建一个本地repo文件
- [root@RHEL601 ~]# vim /etc/yum.repos.d/local.repo
- [Server]
- name=Server
- baseurl=file:///mnt/Server
- enabled=1
- gpgcheck=0
4.安装桌面组件:
- [root@RHEL601 ~]# yum groupinstall "X Window System"
- [root@RHEL601 ~]# yum groupinstall "Desktop"
5.启动X window:
- [root@RHEL601 ~]# startx
- [root@RHEL601 ~]# yum install nautilus-open-terminal
- [root@RHEL601 ~]# vim /etc/fstab
- id:3:initdefault: