Customize your profile on CentOS 7

Installing EPEL Repository for CentOS 7

EPEL (Extra Packages for Enterprise Linux) is an opensource and free community based repository project from Fedora team which provides 100% high quality software packages for Linux distribution including RHEL (Red Hat Enterprise Linux) and CentOS.

Most people who run CentOS 7 usually add these repository to their systems. To enable it in CentOS 7, run the commands below to install it.

sudo yum install epel-release

In the past, one had to add its repository and install the repository. Now all you need to do is run the yum install commands to install and enable EPEL in CentOS7.

Installing Remi Repository on CentOS 7

The Remi repository provides newer version of popular opensource software for CentOS and Red Hat Enterprise Linux. It depends on the EPEL repository so you must first install EPEL before installing Remi.

To enable Remi repository on CentOS 7, run the commands below.

cd /tmp && wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

Next, run the commands below to install it.

sudo rpm -Uvh remi-release-7*.rpm

Installing RPMForge Repository on CentOS 7

Another useful repository for CentOS system is the RPMForge repository. It’s a community maintained repository which contains newer packages and software for CentOS and Red Hat Linux. More than 5000 individual packages are included in the repository. It’s a great repository to add to your system if you’re running CentOS or Red Hat servers.

To add it, run the commands below.

cd /tmp && wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

Next, run the commands below to install it

sudo rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

By default CentOS puts all repositories file at /etc/yum.repos.d/ directory. Each of the repository file will have an extension ending in .repo. You can edit individual repository file to enable or disable it.

A simple repository file may contain something like what’s below:

[rpmforge-extras]
name = RHEL $releasever – RPMforge.net – extras
baseurl = http://apt.sw.be/redhat/el7/en/$basearch/extras
mirrorlist = http://mirrorlist.repoforge.org/el7/mirrors-rpmforge-extras
enabled = 0 
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

You can enable or disable a repository by changing the value for enabled to 1 to enable and 0 to disable. When you’re done, save the file and exit.

Run the yum update commands to see if there are newer updates for your systems.
There may more third-party repositories, but these are the most popular.

Customize the profile

I put my profile on github, and you have to install git first.

sudo yum install -y git

Install Chinese fonts

sudo yum install *chinese*

Install Chrome

wget https://chrome.richardlloyd.org.uk/install_chrome.sh
sh install_chrome.sh

Install mysql

wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
yum localinstall mysql57-community-release-el7-7.noarch.rpm
yum install mysql-community-server

# get root temporary password
grep 'temporary password' /var/log/mysqld.log
# set new root password
mysql_secure_installation

Now follow the onscreen instructions carefully, for reference see the output of the above command below.

Securing the MySQL server deployment.
Enter password for user root: Enter New Root Password
VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No: y
There are three levels of password validation policy:
LOW    Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary                  file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 2
Using existing password for root.
Estimated strength of the password: 50 
Change the password for root ? ((Press y|Y for Yes, any other key for No) : y
New password: Set New MySQL Password
Re-enter new password: Re-enter New MySQL Password
Estimated strength of the password: 100 
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
- Dropping test database...
Success.
- Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!

Misc

Following cmds are precondition for wxPython 3.0 src installing.

yum -y groupinstall "Development tools"
yum -y install gtk+-devel gtk2-devel
yum -y install mesa-libGL-devel
yum -y install mesa-libGLU-devel
yum -y install gstreamer-devel
yum -y install gstreamer-python-devel
yum -y install GConf2-devel
yum -y install gstreamer-plugins-base-devel
yum -y install xorg-x11-fonts-Type1
yum -y install wxGTK-devel
yum -y install webkitgtk-devel

results matching ""

    No results matching ""