Fedora20 was officially released after two jumps. its main features include: Remote Desktop solution X2Go; network manager support for extended binding and bridging; improved 3D printer support. in this article, the author has installed and tried Fedora20 and shared his experience. I hope you will have a certain label: Fedora
Fedora 20 was officially released after two jumps. its main features include: Remote Desktop solution X2Go; network manager support for extended binding and bridging; improved 3D printer support. in this article, the author tries to install and try Fedora 20 and shares his experience in the trial.
I. Installation
There are no special instructions on installation. the installation interface of Fedora 20 is basically the same as that of Fedora 18 and 19, and is the same UI (mainly one is the centralized configuration interface ). But now the official no longer recommended download i386, but the X86-64 bit. The installation procedure is to set the partition, set the time zone, select the software source, set the keyboard, and set the network interface, which can be easily completed by Linux users. The first time you use GNOME, you need to perform simple settings, including several steps: first select the language, then select the input source, and then select the online account, then start using Gnome 3.
II. install the MATE desktop environment
In general, I do not like GNOME 3 desktop environment, so I installed the MATE desktop environment. MATE is a Linux desktop system developed based on Gnome 2. MATE is developed based on the GNOME 2 code library (GNOME2 has stopped maintenance) and renamed the code to avoid conflict with the establishment of GNOME 3. The release of GNOME3 was opposed by many users in the community. to continue developing the classic Gnome2 desktop environment, Arch Linux users began to build the MATE project. Later, Linux Mint developers also supported this project.
- #yum -y groupinstall "MATE Desktop"
- #echo "exec /usr/bin/mate-session" >> ~/.xinitrc
Log on again and select MATE desktop when logging on. 1:
498) this. width = 498; "src ="/upimg/allimg/c140717/14055O01M0310-2WD.jpg "/>
Select MATE desktop when logging on
In the MATE desktop environment, you can see that this interface has a kind of centos 6 feeling, the most familiar feeling.
498) this. width = 498; "src ="/upimg/allimg/c140717/14055O01ODP-31413.jpg "/>
MATE desktop environment
III. settings after installation
Here we will introduce some operation steps under the command line:
1. set the service
First, check the service list:
- #systemctl -t service
Stop unused services to improve performance, such as disabling telnet.
- #systemctl stop telnet.service #systemctl disable telnet.service
For some residual SysV service types, run the following command:
- #chkconfig ?list
To disable the netconsole service, run the following command:
- #chkconfig netconsole off
2. update the system
- # yum -y install yum-plugin-fastestmirror # yum -y update
You can also provide some other software sources, such as remi.
Remi repository is a Linux source that contains the latest PHP and MySQL packages. it is maintained by Remi. With this source, it is very convenient to use YUM to install or update server-related programs such as PHP, MySQL, and phpMyAdmin.
For Fedora 20 i386 or x86_64:
- # wget http://rpms.famillecollet.com/remi-release-20.rpm # yum install remi-release-20.rpm
Then modify the Remi source configuration file/etc/yum. repos. d/remi. repo.
Enable Remi Repository and change enabled = 0 to enabled = 1.
3. adjust the language
The language is not correctly set during the installation process. you need to adjust the language here.
View the current language commands:
First, the current encoding is displayed:
- # echo $LANG en_US
If it is changed to Chinese, it is:
- vi /etc/locale.conf
To:
- LANG=" zh_CN.UTF-8"
Reload:
- #source /etc/locale.conf
3. troubleshooting of common yum commands
When installing the software package using yum, the following common faults may occur:
(1) 404 errors
To fix the yum 404 error, clear the metadata (metadata ).
$ Sudo yum clean metadata
Or clear the cache.
$ Sudo yum clean all
(2) connection error
If the message "network is unreachable" or "couldn't connect to host" is displayed, check the network connection first. If no problem exists
Check whether the proxy server is used to access the Internet. The Yum proxy server is set:
- ___FCKpd___11nbsp;sudo vi /etc/yum.conf [main]
- proxy=http://proxy.com:8000
(3) modify metadata checksum errors
If the message "" Metadata file does not match checksum "" is displayed, clear the metadata (Metadata:
- ___FCKpd___12nbsp;sudo yum clean metadata
(4) yum lock errors
This error is the most common and usually shows:
- Loaded plugins: langpacks, presto, refresh-packagekit Existing lock /var/run/yum.pid: another copy is running as pid 1880.
- Another app is currently holding the yum lock; waiting for it to exit..
The simplest way is to kill the process:
- #rm ?f /var/run/yum.pid
Another way is to modify the software source settings and disable automatic updates. Operation 3. 4.
498) this. width = 498; "src ="/upimg/allimg/c140717/14055O01R3440-43Y4.jpg "/>
Select software source
498) this. width = 498; "src ="/upimg/allimg/c140717/14055O01U0-51928.jpg "/>
Disable automatic update
4. quickly build a web development environment
Unlike the introduction of Fedora 19, the web server here does not select Apache or nginx, and the author chooses Lighttpd. Lighttpd provides a secure, fast, compatible, and flexible web server environment for high-performance websites. It features low memory overhead, low cpu usage, good performance, and rich modules. Let's take a look at the integration configuration process of php and MariaDB databases:
1. install the MariaDB/mysql database
- #yum install mysql mysql-server
Start the service:
- #systemctl enable mysqld.service #systemctl start mysqld.service
The initialization operation is as follows:
- # mysql_secure_installation
The operation process mainly involves initializing the data directory and authorization table, and setting the root password.
2. install Lighttpd
Installation package:
- #yum install lighttpd
Start the service:
- #systemctl enable lighttpd.service #systemctl restart lighttpd.service
3. test the web server
Test whether the web service is successfully installed and started. the browser access IP address is shown as follows:
498) this. width = 498; "src ="/upimg/allimg/c140717/14055O01Y3K0-61534.jpg "/>
Test the web server
4. install the PHP5 software package
- #yum install php-fpm lighttpd-fastcgi
Note that the PHP-FPM is FastCGI server and the port is 9000.
Start the service:
- # Systemctl enable php-fpm.service # systemctl start php-fpm.service