This is a tutorial on using a CD: 1. first, mount the CD. Note that the directory will not be automatically created when the CD is mounted, therefore, create the mkdir/mnt/cdrommount/dev/cdrom/mnt/cdrom # dev directory as the device Directory. 2. change the local source address cd/etc/yum. r
Here is the installation tutorial using a CD:
1. first, attach the disc. Note that the directory will not be automatically created when the disc is mounted. Therefore, you need to create a directory by yourself.
Mkdir/mnt/cdrom
Mount/dev/cdrom/mnt/cdrom # The dev directory is the device directory.
2. change the local source address
Cd/etc/yum. repos. d/# you can see CentOS-Base.repo and CentOS-Media.repo files
Note:
CentOS-Base.repo records the address and path information of the yum source on the network.
The CentOS-Media.repo records the media and paths that can be used locally as The yum source
So we can change the CentOS-Media.repo.
Baseurl = file: // media/CentOS/
File: // media/cdrom/
File: // media/cdrecorder/
File: // mnt/cdrom # add this sentence
3. we have installed gnome, but in centos6, gnome has been changed to Desktop.
Yum -- disablerepo = * -- enablerepo = c6-media groupinstall "Desktop"
# Of course, you can also check whether groupinstall is changed to grouplist.
4. after gnome is installed, you need to install X Window.
Yum -- disablerepo = * -- enablerepo = c6-media groupinstall "X Window System"
5. then we install the Chinese language
Yum -- disablerepo = * -- enablerepo = c6-media groupinstall "Chinese Support"
6. the most critical step is to start gnome.
Startx
Then press Ctrl + Alt + F2
OK, go to the desktop