Previous use of Ubuntu more, but server requirements, decided to start learning CentOS
1. Desktop width is not adaptive after installing CentOS
If you are using GNOME, click the menu "System--Preferences Display, adjust the resolution
2.Centos installed Firefox, the original response is very slow
Extract
# cd/usr/local
# su-c "Tar zxvf/home/wandering/firefox-2.0.0.5.tar.gz"
Replace
# which Firefox
/usr/bin/firefox
# mv/usr/bin/firefox/usr/bin/firefox-1.5.0.9
# ln-s/usr/local/firefox/firefox/usr/bin/firefox
Under command line: Firefox
Small knowledge:
. tar.gz format extracted to TAR-ZXVF xx.tar.gz
. tar.bz2 format extracted to TAR-JXVF xx.tar.bz2
3.yum Update Source
The CentOS Software Installation tool Yum, which uses a foreign CentOS update source by default, causes the default update source to be installed or is slow to update the software, and the default Yum update source needs to be configured as a domestic update source. The Yum update source configuration file is located under the CentOS directory/etc/yum.repos.d/.
The most frequently used update sources in China are as follows:
http://mirrors.163.com/centos/163-NetEase
http://mirrors.ta139.com/centos/China Mobile Communications (Shandong Mobile)
Http://centos.ustc.edu.cn/centos/China University of Science and Technology
http://mirror.neu.edu.cn/centos/Northeastern University
Edit Yum configuration file:
#vi/etc/yum.repos.d/centos-base.repo
[base]name=centos-$releasever-basemirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch=$ basearch&repo=os#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/baseurl=http:// mirrors.163.com/centos/$releasever/os/$basearch/http://mirrors.ta139.com/centos/$releasever/os/$basearch/http ://centos.ustc.edu.cn/centos/$releasever/os/$basearch/http://mirror.neu.edu.cn/centos/$releasever/os/$basearch /gpgcheck=1gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#released Updates [updates]name=CentOS-$ releasever-updatesmirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo= updates#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/baseurl=http://mirrors.163.com/ centos/$releasever/updates/$basearch/http://mirrors.ta139.com/centos/$releasever/updates/$basearch/http:// centos.ustc.edu.cn/centos/$releasever/updates/$basearch/http://mirror.neu.edu.cn/centos/$releasever/updates/$ Basearch/gpgcheck=1gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#additional packages that could be useful[extras]name=centos-$ releasever-extrasmirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo= extras#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/baseurl=http://mirrors.163.com/ centos/$releasever/extras/$basearch/http://mirrors.ta139.com/centos/$releasever/extras/$basearch/http:// centos.ustc.edu.cn/centos/$releasever/extras/$basearch/http://mirror.neu.edu.cn/centos/$releasever/extras/$ Basearch/gpgcheck=1gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#additional packages that extend Functionality of existing packages[centosplus]name=centos-$releasever-plusmirrorlist=http://mirrorlist.centos.org /?release= $releasever &arch= $basearch &repo=centosplus#baseurl=http://mirror.centos.org/centos/$ releasever/centosplus/$basearch/baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/http:// mirrors.ta139.com/centos/$releasever/centosplus/$basearch/http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/http:// mirror.neu.edu.cn/centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http://mirror.centos.org/ Centos/rpm-gpg-key-centos-6#contrib-packages by CentOS users[contrib]name=centos-$releasever-contribmirrorlist= http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=contrib#baseurl=http:// mirror.centos.org/centos/$releasever/contrib/$basearch/baseurl=http://mirrors.163.com/centos/$releasever/ contrib/$basearch/http://mirrors.ta139.com/centos/$releasever/contrib/$basearch/http://centos.ustc.edu.cn/ centos/$releasever/contrib/$basearch/http://mirror.neu.edu.cn/centos/$releasever/contrib/$basearch/gpgcheck= 1enabled=0gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
As can be seen from the above configuration file, there are several items that need to be selected according to the individual source conditions [base] [updates] [addons] [extras] [Centosplus].
Each item can be modified as long as the BaseURL and Gpgkey are the corresponding source addresses.
Then use the following command to update to the latest system:
#rpm –import/etc/pki/rpm-gpg-key*
#yum Upgrade
After the above configuration is complete, to empty the Yum cache and rebuild the Yum cache, execute the following command:
Yum Clean all && yum clean metadata && yum clean dbcache && yum makecache && Yum Update
CentOS Small White Study