What to do after centos Installation

Source: Internet
Author: User
Tags gstreamer

Reproduced http://blog.csdn.net/audered/article/details/7292988

01. System Installation
Log on to the official website to download the latest livecd image and install it on a dial.
#####
02. Set root to log on directly
Open the terminal and enter the following command:
$ Su

Enter the root password (the password is not displayed at this time, enter it directly)
Enter the following command:
# Gedit/etc/PAM. d/TPD

Comment out "auth required pam_succeed_if.so user! = Root quiet ". Add" # "before this line to change it
# Auth required pam_succeed_if.so user! = Root quiet

After saving and exiting, enter the following command in the terminal:
# Gedit/etc/PAM. d/TPD-Password

Also Comment out "auth required pam_succeed_if.so user! = Root quiet.
Save and exit, so that you can log on directly to the root user.
(You can use VI to open and edit the above two files)
#####
03. Set sudo
Enter the command as root in the terminal
# Mongodo

Find the following lines in the configuration file:
# Allow root to run any commands anywhere
Root all = (all) All

Then, add the following content under the upstream content
XXXX all = (all) All

Replace XXXX with your username, so that you can use the sudo command later.
#####
04. Disable SELinux
Edit the/etc/SELinux/config file as the root user and change the value of The SELinux item to disable and enable the SELinux service.
Change to SELinux = Disable to disable SELinux
Change to SELinux = enforcing and use SELinux
If you want to temporarily disable SELinux, enter the following in the terminal:
$ Sudo setenforce 0

#####
05. Internet access through campus network
For campus network users, download the ruijie client mentohust. RPM installation, address http://code.google.com/p/mentohust/downloads/list
The specific instructions are provided on the website.
#####
06. Add Yum Source
Generally, the update source provided by the system is slow. You can use images from Netease or Sohu in China.
Go to its open-source image website http://mirrors.163.com/and http://mirrors.sohu.com/download the source configuration file of fedora.
To differentiate the image, open the downloaded image file and replace the fedora in the three brackets [] with fedora-163 and Fedora-Sohu respectively.
Save the modified configuration file to the/etc/yum. Repos. d/directory.

Centos image help
Indexing Architecture
I386
X86_64
Srpms
Included versions
4
5
6
Update Time
Updated every 5 hours

Instructions for use
Back up/etc/yum. Repos. d/CentOS-Base.repo first

MV/etc/yum. Repos. d/CentOS-Base.repo/etc/yum. Repos. d/CentOS-Base.repo.backup
Download the corresponding version of the repo file and put it in/etc/yum. Repos. d/(back up the file before the operation)

Centos4
Centos5
Centos6
Run Yum makecache to generate Cache

Finally, enter:
$ Sudo Yum makecache
Generate a cache.
#####
07. Install the fastestmirror Yum plug-in
When there are many yum sources, installing the fastestmirror plug-in allows Yum to be downloaded from the fastest Yum source.
Enter the following command in the terminal:
$ Sudo Yum install Yum-plugin-fastestmirror

More Yum plug-ins can run
$ Sudo Yum info Yum-plugin -*
To view
#####
08. upgrade the system
Run the following command on the terminal:
$ Sudo Yum update

#####
09. delete old Kernel
After the system is upgraded, there are usually several kernels. How can we delete the old kernel:
Rpm-Qa | grep kernel // view and list all kernels
Rpm-e kernel name // Delete the kernel with the selected name

Example:
[Xie @ Xie ~] $ Rpm-AQ | grep Kernel
Abrt-plugin-kerneloopsreporter-1.0.0-1.fc12.i686
Kernel-firmware-2.6.31.9-174.fc12.noarch
Kernel-2.6.31.5-127.fc12.i686
Kernel-2.6.31.9-174.fc12.i686
Kernel-headers-2.6.31.9-174.fc12.i686
Abrt-addon-kerneloops-1.0.0-1.fc12.i686
[Xie @ Xie ~] $ Rpm-e kernel-2.6.31.5-174.fc12.i686

When Yum update is used, the kernel is upgraded by default. However, after upgrading the kernel, some server hardware (especially assembled machines) may not recognize some hardware. It is very troublesome to reinstall the driver. Therefore, do not upgrade the kernel easily in the production environment, unless you are sure to upgrade the kernel without any trouble.

If you do not want to upgrade the kernel but only update other software packages, you can use either of the following methods:

1. Modify the yum configuration file Vim/etc/yum. conf and add exclude = kernel * at the end of [main *
2. Add the following parameters directly after the yum command:

Yum -- exclude = kernel * update

To complete the upgrade, use
Yum-y update

1. Run uname-ra to check the kernel version.

[Root @ linji ~] # Uname-
Linux linji.org 2.6.32-220. el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386 GNU/Linux
2. Start upgrading

[Root @ linji ~] # Yum-y update
Start after upgrade

3. Run the rpm-Qa | grep kernel command to check the number of kernels.

[Root @ linji ~] # Rpm-Qa | grep Kernel
Dracut-kernel-004-256.el6_2.1.noarch
Kernel-2.6.32-220.el6.i686
Kernel-firmware-2.6.32-220.4.2.el6.noarch
Kernel-2.6.32-220.4.2.el6.i686
Kernel-headers-2.6.32-220.4.2.el6.i686
4. Delete redundant kernels

[Root @ linji ~] # Rpm e kernel-2.6.32-220.el6.i686

[Root @ linji ~] # Rpm-Qa | grep Kernel
Dracut-kernel-004-256.el6_2.1.noarch
Kernel-firmware-2.6.32-220.4.2.el6.noarch
Kernel-2.6.32-220.4.2.el6.i686
Kernel-headers-2.6.32-220.4.2.el6.i686
#####
10. Add the rpmfusion Source
Rpmfusion source is an influential third-party software warehouse that provides free software with copyright (nonfree) and patent (free) issues. For general users, rpmfusion source can be said to be essential.
Enter the following command in the terminal:
$ Sudo rpm-IVH http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Finally, enter $ sudo Yum makecache to generate the yum cache, so that the rpmfusion source is installed.
(The above two links can also be replaced with links)
#####
11. Install a multimedia Decoder
By default, the fedora video decoder is not installed, so you cannot listen to the songs to watch the video. When the song is opened, a message indicating a lack of MPEG-1 layer3 is displayed.
First, make sure that the system has installed the rpmfusion source. Enter the following command in the terminal:
$ Sudo Yum install FFMPEG-libs gstreamer-FFMPEG libmatrosca xvidcore libdvdread libdvdna v lsdvd
$ Sudo Yum install gstreamer-plugins-Good gstreamer-plugins-bad gstreamer-plugins-uugly

In this way, the system comes with a player to play music and videos.
#####
12. garbled player music tags
Most of the methods on the Internet use the following command to convert the tags of files in MP format: mid3iconv-e GBK *. MP3. After this operation, garbled characters are fixed in Linux, but garbled characters appear in windows.
The perfect method is to modify the environment variable and modify the/etc/profile file as root:
Add the following two lines to the end of the file:
Export gst_id3_tag_encoding = GBK: UTF-8: gb18030
Export gst_id3v2_tag_encoding = GBK: UTF-8: gb18030

After cancellation, re-import the song information to solve the Garbled text.
#####
13. garbled files opened by gedit
Because of the different encoding formats of fedora, garbled characters often occur when opening text files in windows.
The solution on the internet is usually to modify the environment variables through the/etc/sysconfig/i18n file. This method is not allowed here.
Method 1:
Terminal input command:
$ Gsettings set Org. gnome. gedit. preferences. encodings auto-detected "['utf-8', 'gb18030', 'gb2312', 'gbk', 'big5', 'current', 'utf-16']"
$ Gsettings set Org. gnome. gedit. preferences. encodings shown-in-menu "['utf-8', 'gb18030', 'gb2312', 'gbk', 'big5', 'current ', 'utf-16']"

Method 2:
Install dconf-Editor (upgraded version of gconf-editor ):
Enter the following command in the terminal:
$ Sudo Yum install dconf-Tools

Enter the following command in the terminal:
$ Dconf-Editor

Choose org> gnome> gedit> preferences> encodings.
Add 'gb18030' to the value of auto-detected and write it in the second place;
Add 'gb18030' to the value item of shown-in-menu and write it in the second place.
(Corresponding to the value in brackets in the method)
(In fedora14 and earlier versions, enter the command $ sudo Yum install gconf-editor on the terminal to install gconf-editor, and then enter the command: $ gconf-Editor click apps> gedit-2> preferences> auto-detected in encodings, and add gb18030, GBK, and gb2312 in the double-click pop-up dialog box)
#####
14. Right-click the current directory to open the terminal
Enter the following command in the terminal:
$ Sudo Yum install Nautilus-open-Terminal

Restart X (CTRL + ALT + backspace)
#####
15. Install Vim
Vim is an enhanced version of VI, which can highlight function variables in the program source code.
Enter the following command in the terminal:
$ Sudo Yum install Vim

Installation is complete.
#####
16. ibus Input Method
In fedora, because the default installation environment is English, the Chinese input method is not enabled. You can enable it and set it to available. Select Chinese Input Method pinyin.
If there is no input method, you can install ibus and enter the following command in the terminal:
$ Sudo Yum install ibus
$ Sudo Yum install ibus-sunpinyin

#####
17. Install libreoffice
First install the libreoffice.org suite. Enter the following command in the terminal:
$ Sudo Yum groupinstall "office/productivity"

After installation, because the language is English by default, enter the following command in the terminal to install the Chinese Language Pack:
$ Sudo Yum list libreoffice *

....
Libreoffice-langpack-ur.i686. 3.2.2-7. fc15 Fedora
Libreoffice-langpack-ve.i686. 3.2.2-7. fc15 Fedora
Libreoffice-langpack-xh.i686. 3.2.2-7. fc15 Fedora
Libreoffice-langpack-zh-Hans.i686. 3.2.2-7. fc15 Fedora
Libreoffice-langpack-zh-Hant.i686. 3.2.2-7. fc15 Fedora
Libreoffice-langpack-zu.i686. 3.2.2-7. fc15 Fedora
....

Then install the Chinese Language Pack and enter the following command in the terminal:
$ Sudo Yum-y install libreoffice-langpack-ZH-Hans
$ Sudo Yum-y install libreoffice-langpack-ZH-HANT

In this way, the Chinese OpenOffice Chinese version is installed.
(The OpenOffice method is the same, but you can change libreoffice to OpenOffice)
#####
18. Install GCC G77
Enter the following command in the terminal:
$ Sudo Yum install GCC *
Install gcc
Enter the following command in the terminal:
$ Sudo Yum search G77
We can see that
Compat-gcc-34-g77.i686: Fortran 77 support for compatibility Compiler

Enter the following command in the terminal:
$ Sudo Yum install compat-gcc-34-g77
Install G77.
#####
19. Install CHM Reader
Gnochm is a perfect CHM reader in the gnome environment. It can be said that it supports Chinese perfectly.
Enter the following command in the terminal:
$ Sudo Yum install gnochm

Installation is complete.
#####
20. Install the Firefox flash plug-in
Method 1:
Download the flash plug-in installation in Linux from the Adobe official website.
Method 2:
First, add the Adobe software warehouse and import the key, and enter the command in the terminal:
$ Sudo rpm-IVH http://linuxdownload.adobe.com/linux/i386/adobe-release-i386-1.0-1.noarch.rpm
$ Sudo rpm -- import/etc/pki/rpm-GPG-key-Adobe-Linux

Then enter the command in the terminal:
$ Sudo Yum install flash-plugin

Installation is complete.
#####
21. Install unrar
By default, rar ora cannot directly open RAR compressed files. You need to install unrar.
Enter the following command in the terminal:
$ Sudo Yum install unrar

Installation is complete.
#####
22. Install bleachbit.
Bleachbit is a system cleanup tool designed for Linux. With bleachbit, you can clear unwanted items such as cache, history, temporary files, and cookies in the system, so that you can release your disk space. Currently, bleachbit can clear junk files generated by software such as Beagle, Firefox, opera, epiphany, Flash, and OpenOffice.org.
Enter the following command in the terminal:
$ Sudo Yum install bleachbit

Installation is complete.
#####
23. Install Comix
Comix is a very useful image reader in Linux. It supports reading images directly from a compressed package and is especially suitable for reading cartoons.
Enter the following command in the terminal:
$ Sudo Yum install Comix

Installation is complete.
#####
24. Install the gnome3 tweak Tool
After gnoora 15 adopts gnome3, gnome-tweak-tool is an essential tool for desktop configuration.
Enter the following command in the terminal:
$ Sudo Yum install gnome-tweak-Tool

Installation is complete.
#####
25. Set the delete key to delete the file directly.
In the gnoora 15 gnome 3 environment, when the delete key is used by default to delete files, it must be followed by the ctrl key. In general, this is very troublesome. You can use the following method to change this setting.
First, enter the following command in the terminal:
$ Gsettings set org. gnome. desktop. interface can-change-accels true

Next, open the Nautilus File Manager, select any file, open the "edit" option, and move the cursor to "move to trash (move to the recycle bin, press the "delete" button twice in a row. In this way, you can set the delete key to directly delete the file.
Finally, disable the shortcut key setting function and enter the following command in the terminal:
$ Gsettings set org. gnome. desktop. interface can-change-accels false

#####
26. Install Faenza icon set
Enter the following command in the terminal:
$ Sudo Yum search Faenza
You can get
Faenza-icon-theme.noarch: icon theme designed for Equinox GTK theme

Enter the following command in the terminal:
$ Sudo Yum install Faenza-icon-theme
Install the Faenza icon set.
After the installation is complete, use the gnome3-tweak-tool to enable the topic, and select Faenza In the icon theme item in the interface bar.
#####
27. Install Windows Fonts
Copy the font in the Windows system to/usr/share/fonts/msfonts. If there is no directory, create mkdir.
Enter the following command in the terminal:
$ Sudo chmod-r 755 usr/share/fonts/msfonts
Add the running permission to the font file.
Enter the following command in the terminal:
$ Sudo FC-Cache-FV
Update the font cache.
The font has been installed.
#####
28. Improved the font display effect of fedora 15
First install this software package for http://www.infinality.net/fedora... po-1.0-1.noarch.rpm.
Then sudo Yum search infinality. We can see that two packages are installed.
The system logon takes effect.

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.