Centos 5.5 configuration (update source firefox3.6 flash plug-in compilation boost1.43.0)

Source: Internet
Author: User
Tags gpg

Although unbuntu is good, it is not very good for development. Many libraries are relatively new, and the compatibility and portability of the developed items are poor. Therefore, we finally chose centos5.4.

After centos is installed

Solve the Problem of surfing the internet

After the installation, the eth0 unlimited network connection cannot be identified, so the problem of surfing the internet is solved,
System> Management> Server Settings> Service
Select the NetworkManager option and click Restart service. Then we can see that there is a network connection in the upper right corner.

Update Yum Source


MV/etc/yum. Repos. d/CentOS-Base.repo CentOS-Base.repo_bak
VI/etc/yum. Repo. d/CentOS-Base.repo
This is the source of China Telecom.

[Base]
CentOS-5-Base
Baseurl = http://centos.ustc.edu.cn/centos/5/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

# Released updates
[Update]
CentOS-5-Updates
Baseurl = http://centos.ustc.edu.cn/centos/5/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

# Packages used/produced in the build but not released
[Addons]
CentOS-5-Addons
Baseurl = http://centos.ustc.edu.cn/centos/5/addons/?basearch/
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
# Additional packages that may be useful
[Extras]
Name = CentOS-5-extras
Baseurl = http://centos.ustc.edu.cn/centos/5/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

# Additional packages that extend functionality of existing packages
[Centosplus]
CentOS-5-plus
Baseurl = http://centos.ustc.edu.cn/centos/5/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

# Contrib-packages by centos users
[Contrib]
Name = CentOS-5-contrib
Baseurl = http://centos.ustc.edu.cn/centos/5/contrib/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

# Packages in testing
[Testing]
CentOS-5-Testing
Baseurl = http://centos.ustc.edu.cn/centos/5/testing/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

Install Firefox


Download the latest Firefox from the official website and decompress it
CD/usr/local/Firefox
Wget http://dl1.g-fox.cn/chinaedition/releases/partners/monline/FirefoxChinaEdition-latest.tar.bz2
Tar jxvf/usr/local/FirefoxChinaEdition-latest.tar.bz2
Rm-RF/usr/local/FirefoxChinaEdition-latest.tar.bz2
Rm-RF/usr/bin/Firefox
Rm-RF/bin/Firefox
Ln-S/usr/local/Firefox/usr/bin/Firefox
Ln-S/usr/local/Firefox/bin/Firefox

Install the browser flash plug-in

The browser always fails to install the plug-in, so install the flash plug-in separately. Copy the following link to the browser to download the RPM package.
Wget http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-10.0.45.2-release.i386.rpm
Rpm-IVH/opt/backup/flash-plugin-10.0.45.2-release.i386.rpm

Install the font

In this way, you can use the font in the font settings of netbeans, browsers, and other software.
CD/usr/share/fonts/zh_tw/TrueType
Wget http://johntech-resource.googlecode.com/files/myfonts.tar.gz
Tar zxvf myfonts.tar.gz
Rm-RF myfonts.tar.gz

Compile boost1.43.0
With ICU supports RegEx unicode encoding
Install ICU, a universal transcoding library of IBM
Wget http://downloads.sourceforge.net/project/icu/ICU4C/4.0/icu4c-4_0-src.tgz? Use_mirror = cdnetworks-kr-2
Tar zxvf icu4c-4_0-src.tgz
Cd icu/source
./Configure -- prefix =/usr
Make
Make install
Ldconfig
Download and install boost

Wget http://sourceforge.net/projects/boost/files/boost/1.43.0/boost_1_43_0.tar.gz/download
Tar zxvf boost_000043_0.tar.gz
CD boost_000043_0
Rm-RF/usr/include/Boost/
Rm-RF/usr/lib/libboost *
./Bootstrap. Sh
./Bjam-shave_icu = 1
Compilation takes about half an hour. After compilation:
CP./stage/lib/*/usr/lib
CP./Boost/usr/include/
Ldconfig
In the past, I used bjam install -- prefix =/usr, but it was very slow. Sometimes the copy of something under lib cannot be used. Now I have compiled the CP directly and there is no problem at all.

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.