CentOS6.5LiveCD installation process record

Source: Internet
Author: User
The reason is that the debian system is used all the time. after a long time, I want to change it to something new. I used fedora for a while, but I don't feel used to the rpm system. so I switched back to debian. this time I decided to use centos. after some trade-offs, choose centosLiveCD. this is the most refreshing feeling. there is no unnecessary software. you can install it on your own if you want to use it. Cause

The debian system has been used all the time. after a long time, I want to replace it with something new. I used fedora for a while, but I don't feel used to the usage habits of the rpm Series. so I switched back to debian. I decided to use it this time.CentosTry the system. after some trade-offs, chooseCentosLiveCD version. this is the most refreshing and there is no additional software. you can install it on your own if you want to use it.

Install the system

In windows, the disc burned with UltraISO cannot be started successfully, so you can run the dd command to burn it in the original Debian system. but this method has a bad thing: the entire USB flash disk only uses a little bit. I only use 700 MB for 4G USB flash drives and cannot identify it in windows, I usually don't need a USB flash drive.


Dd if = '/CentOSLiveCD ISO file path' of =/dev/sdb bs = 1 M


If dev/sdb4 is used, startup may fail. Therefore, the entire sdb is used for burning.

Configuration update source

Restart the installation, after the installation is complete, first configure the network. then update the source, I am using the source of the University of Science and Technology of China, this varies from person to person. First back up the CentOS-Base.repo


Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.backup


Then create a new CentOS-Base.repo file and put the following content in the file


# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and
# Update status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for CentOS updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#
[Base]
Name = CentOS-$ releasever-Base-mirrors.ustc.edu.cn
Baseurl = http://mirrors.ustc.edu.cn/centos/?releasever/ OS /?basearch/
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = OS
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

# Released updates
[Updates]
Name = CentOS-$ releasever-Updates-mirrors.ustc.edu.cn
Baseurl = http://mirrors.ustc.edu.cn/centos/?releasever/updates/?basearch/
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = updates
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

# Additional packages that may be useful
[Extras]
Name = CentOS-$ releasever-Extras-mirrors.ustc.edu.cn
Baseurl = http://mirrors.ustc.edu.cn/centos/?releasever/extras/?basearch/
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = extras
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

# Additional packages that extend functionality of existing packages
[Centosplus]
Name = CentOS-$ releasever-Plus-mirrors.ustc.edu.cn
Baseurl = http://mirrors.ustc.edu.cn/centos/?releasever/centosplus/?basearch/
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = centosplus
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

# Contrib-packages by Centos Users
[Contrib]
Name = CentOS-$ releasever-Contrib-mirrors.ustc.edu.cn
Baseurl = http://mirrors.ustc.edu.cn/centos/?releasever/contrib/?basearch/
# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = contrib
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6


Then use


Su-c 'yum makecache'


Update cache

Install rpmforge source

The NTFS-3G can be installed after this source is installed to support Windows NTFS partition read and write.


Wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm


Then


Su-c 'rpm-ivh rpmforge *. RP'


That's all.

Install and configure sudo
Su-c 'yum install sudo'


After the installation is complete, change the permission of the/etc/sudoers file.


Su-c 'chmod 744/etc/sudoers'


Edit the sudoers file and add your username to the root user group. then you can use the sudo command to find


Root ALL = (ALL) ALL


Add a row below (change username to your username)


Username ALL = (ALL) ALL


Exit after editing and change sudoers file permissions again


Su-c 'chmod 0440/etc/sudoers'


Then exit the root permission with exit. try again.


Sudo whoami


If it is normal, it should return


Root


Install NTFS-3G
Sudo yum install NTFS-3G


Then you can mount the NTFS partition. if you want to, you can change the/etc/fstab file and write the NTFS partition here to enable automatic mounting upon startup.


UUID = 000C28CA000A356A/media/Sys NTFS-3G ULTS ults, utf8, uid = 500 0


The above is the NTFS uuid. how can we see the uuid of the NTFS partition?


Cd/dev/disk/by-uuid
Ls-al


Then we can see the uuid of different partitions. according to the above example, first create the folder you want in the/media directory, then write each partition to the folder corresponding to the fstab file, and then execute


Sudo mount-


You can. note that the default uid of centos is different from that of Debian. uid = 500 is used here. if debian is used, change it to 1000, otherwise, files cannot be deleted to the recycle bin but are deleted permanently after the NTFS partition is automatically mounted.

Install google chrome

In the/etc/yum. repo. d folder, create a new google-chrome.repo or add the following content to the CentOS-Base.repo:


[Google]
Name = Google? I386
Base url = http://dl.google.com/linux/rpm/stable/i386
Enabled = 1
Gpgcheck = 1
Gpgkey = https://dl-ssl.google.com/linux/linux_signing_key.pub


Then


Yum makecache
Sudo yum install google-chrome-stable


You can.

Install file-roller

After installing centos, I found a problem, such as a zip package. instead of double-clicking it, I used archivemounter to mount it to the/media directory before opening it. the specific reason is that centosLiveCD does not have a commonly used archive manager installed, so let's install it, and install unrar along with it.


Sudo yum install file-roller unrar


Fix bash auto-completion

After LiveCD version is installed, bash does not have the automatic complementing function.


Http://www.caliban.org/files/redhat/RPMS/noarch/


Download the latest bash-completion-20060301-1.noarch.rpm, then install it, and then in ~ /. Find a place to add bashrc


[-F/etc/bash_completion] &./etc/bash_completion


Restart bash.

Install configuration editor
Sudo yum install gconf-editor


After the installation is complete, you can perform simple configuration. because I like the desktop to be clean, and I do not want to mount the volume home directory and my computer to appear on the desktop, so make changes.

The specific change options are as follows:


Button layout of the window title
Gconf key/app/metacity/general/button_layout
Activate the screen saver after a certain period of time on the computer
/Apps/gnome-screensaver/idle_acivation_enable
Lock the screen when the screen saver is activated
/Apps/gnome-screensaver/lock_enabled
Lock the screen after sleep
/Apps/gnome-power-manager/lock/hibernate
Lock the screen after suspension
/Apps/gnome-power-manager/lock/suspend
Icon
Show desktop content
/Apps/nautilus/preferences/show_desktop
Display the mounted volume icon
/Apps/nautilus/desktop/volumes_visible
Show my computer icons
/Apps/nautilus/desktop/computer_icon_visible
Show main directory icon
/Apps/nautilus/desktop/home_icon_visible
Show Network server icons
/Apps/nautilus/desktop/network_icon_visible
Display the recycle bin icon
/Apps/nautilus/desktop/trash_icon_visible


Installation input method
Sudo yum install ibus-table-wubi


Install audacious player

Create a repo file with the content


[Linuxtech]
# Audacious install
Name = LinuxTECH
Base url = http://pkgrepo.linuxtech.net/el6/release/
Enabled = 1
Gpgcheck = 1
Gpgkey = http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET


Then install

Playback list garbled preferences-in "playlist", change the title format to "Custom", and then change the Custom format to "% f" (no quotation marks ).

Skin position skin position ~ /. Local/share/audacious/Skins

Select the general status icon in the status bar icon option plug-in.

Nothing else. just install it on your own.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.