We are still actively working on the spam issue.

Difference between revisions of "Fedora"

From InstallGentoo Wiki
Jump to: navigation, search
(31 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[File:fedora_logo.png|thumb|Fedora]]
+
[[File:fedora_logo.png|thumb|The Fedora GNU/Linux Logo.]]
  
 
[http://fedoraproject.org/ Fedora] is a fast, stable, and powerful [[GNU/Linux]] distribution for everyday use built by a worldwide community of friends. It's completely free to use, study, and share.
 
[http://fedoraproject.org/ Fedora] is a fast, stable, and powerful [[GNU/Linux]] distribution for everyday use built by a worldwide community of friends. It's completely free to use, study, and share.
  
==New users==
+
Yum is deprecated as of Fedora 23, and is replaced by ''' [[DNF]] ''' (dandified yum). [[Yum]] calls from command line are redirected to DNF. Yum literally ''does not exist anymore'' in a default Fedora installation as of version 22.
If you're new to linux and you want to use fedora then an excelent place to start is [http://easylifeproject.org/ easyLife]. It sets up essential software, installs some commonly used properitary software, installs codecs, installs and configures flash, sets up properitary drivers, sets up oracle java and much more. It's only recommended if you are an inexperienced user or if you're REALLY lazy.
 
  
==Basic setup==
+
==Why use Fedora?==
Althought the default fedora installation contains most of the stuff it needs it's always usefull to add the following essentials:
+
* Default repos only contain [[free software]]
<code>sudo yum install wget nano git gcc clang gnome-tweak-tool vim -y</code>
+
* More bleeding edge software
This installs some basic software that is sadly not packaged with Fedora by default
+
* RHEL-based
  
===Codecs===
+
'''NOTE:''' If you have AMD hardware you might as well install Ubuntu LTS right now. Catalyst will '''not''' install correctly with Fedora 20+.  
By default fedora doesn't have a lot of codecs installed you can fix this by running
 
<pre>sudo yum install gstreamer{1,}-{ffmpeg,libav,plugins-{good,ugly,bad{,-free,-nonfree}}} ffmpeg -y</pre>
 
Although this adds a lot of codecs non-free codecs will not be installed this way using the default repos (see RPMFusion and redo this command).  
 
  
==How to use yum==
+
==New users==
Yum is very easy to use compared to [[aptitude]], [[pacman]] etc. It has three basic commands that you need to remember:
+
If you're new to GNU/Linux and you want to use Fedora then an excellent place to start is [http://easylifeproject.org/ easyLife]. It sets up essential software, installs some commonly used '''proprietary software''' (emphasis on installing propriety software, however, you can customize to not include non-free packages with your installation), installs codecs, installs and configures Adobe Flash, sets up proprietary drivers, sets up Oracle Java and much more. It's only recommended if you are an inexperienced user or if you're REALLY lazy.
* yum install
 
* yum search
 
* yum remove
 
  
===Basics===
+
When installing easylife use dnf instead of rpm as rpm doesn't resolve dependencies.
The yum command supports a range of wildcards etc. For example:
 
if you want to install all the gstreamer plugins all you need to do is
 
<code>yum install gstream*plugin*</code>
 
By adding the -y flag you skip the confirmation process and yum will assume yes for most questions.
 
  
==RPMFusion==
+
<pre>su -c "dnf localinstall </path/to/easylife.rpm> --nogpgcheck"</pre>
The RPMFusion repos add non-[[free software]] to fedora. This includes a lot of codecs, steam, etc.
 
Installing RPMFusion is extreemly easy:
 
  
<pre>su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'</pre>
+
==Basic setup==
 +
Although the default Fedora installation contains most of the packages the average user needs, it's always useful to install the following essentials that are sadly not packaged with Fedora by default:
  
==Flash==
+
<pre>sudo dnf install wget nano git gcc clang gnome-tweak-tool vim -y</pre>
Flash is not installed by default and is [https://fedoraproject.org/wiki/Flash officially not recommended] due to the fact that it's non-[[free software]]. If you do wish to install the Flash player plugin anyway then please follow these steps.
 
  
===Firefox===
+
Fedora 20 (apparently) ships with vim, and will complain when running this command. If you're on Fedora 20 run:
x86_64 (64-bit)
 
  
<pre>sudo yum install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm -y</pre>
+
<pre>sudo dnf install wget nano git gcc clang gnome-tweak-tool</pre>
  
x86 (32-bit)
+
===Codecs===
 +
By default, Fedora doesn't have a lot of codecs installed. You can fix this by running:
 +
<pre>sudo dnf install gstreamer{1,}-{ffmpeg,libav,plugins-{good,ugly,bad{,-free,-nonfree}}} ffmpeg -y</pre>
 +
You'll have to install [[Fedora#RPMFusion|RPMFusion]] if you want non-free codecs, as they will not be installed this way when only using the default repositories.
  
<pre>sudo yum install http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm -y</pre>
+
{{warning|Some of these codecs (especially the ones labeled ''bad'') might be [https://archive.fo/99lrm unmaintained and vulnerable]. You probably don't need them all, so if you care about security it's better to install codecs as you need them.}}
  
===Installing the plugin===
+
== How to use dnf ==
  
<pre>sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
+
DNF  has four basic commands that you need to remember:
sudo yum install flash-plugin -y</pre>
 
  
===Checking the plugin in Firefox===
+
* <code>dnf install</code>
 +
* <code>dnf remove</code>
 +
* <code>dnf update</code>
 +
* <code>dnf search</code>
  
Type the following text in the Firefox address bar:
+
''See [[Yum|the main article]] for detailed usage.''
  
<pre>about:plugins</pre>
+
=== Basics ===
  
Also check the Adobe Flash Player test page
+
The <code>dnf</code> command supports a range of wildcards and other options. For example, to install all the <code>gstreamer</code> plugins, you can run the following command:
  
===Installing the plugin on Chromium web browser===
+
<pre>dnf install gstream*plugin*</pre>
  
Follow all of the instructions in the Enabling Flash Plugin section. Then:
+
The commonly used <code>-y</code> flag will skip the confirmation process and dnf will assume yes for most questions.
  
On 64-bit, create a symbolic link that tells Chromium how to find the 64-bit plugin:
+
==RPMFusion==
<pre>sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib64/chromium-browser/plugins/libflashplayer.so</pre>
+
The RPMFusion repos add '''non-free''' software to Fedora. This includes a lot of codecs, steam, etc. Installing RPMFusion is extremely easy:
  
On 32-bit, create a symbolic link that tells Chromium how to find the 32-bit plugin:
+
<pre style="overflow: auto;">sudo -c 'dnf localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'</pre>
<pre>sudo ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/chromium-browser/plugins/libflashplayer.so</pre>
 
  
Exit all Chromium windows and restart Chromium. In the Chromium address bar, type "about:plugins" to check whether the plugin loaded. You may have to re-run Chromium with the --enable-plugins command line switch to force Chromium to re-scan its plugins folder.
+
==Flash==
 +
Flash is not installed by default and is [https://fedoraproject.org/wiki/Flash officially not recommended] due to the fact that it's '''non-free''' software. If you do wish to install the Flash player plugin anyway, follow the steps listed below.
  
===Installing Gnash===
+
===Firefox===
 +
After you have Firefox working properly (you can install it using dnf):
  
There is a free and open source alternative called Gnash available in Fedora's software repositories. Gnash can play flash videos but the audio portion of flash is often under the MP3 format which is patent encumbered. Since Gnash uses Gstreamer, you can install the gstreamer codecs from RPM Fusion
+
====Install The Plugin====
  
 +
<pre>sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
 +
sudo dnf install flash-plugin -y</pre>
  
<pre>sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm  -y
+
====Verify Your Installation====
sudo yum install gstreamer{1,}-{ffmpeg,libav,plugins-{good,ugly,bad{,-free,-nonfree}}} ffmpeg -y</pre>
 
  
Gnash is very modular and includes plugins for Mozilla and Konqueror as well as a desktop player. You likely want the Mozilla plugin.
+
To verify that Adobe Flash has been installed successfully, type the following text in the Firefox address bar:
  
<pre>sudo yum remove nspluginwrapper -y
+
<pre>about:plugins</pre>
sudo yum install gnash-plugin -y</pre>
 
  
If you use Konqueror as your web browser,
+
For further verification, navigate to the Adobe Flash Test Page. There, you should be able to see whether or not Adobe Flash if working properly.
  
<pre>sudo yum install gnash-klash -y</pre>
+
===Installing the plugin on Chromium web browser===
  
If you would like to have a desktop flash player,
+
Follow all of the instructions in the Enabling Flash Plugin section. Then, on 64-bit, create a symbolic link that tells Chromium how to find the 64-bit plugin:
 +
<pre>sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib64/chromium-browser/plugins/libflashplayer.so</pre>
  
<pre>sudo yum install gnash -y</pre>
+
On 32-bit, create a symbolic link that tells Chromium how to find the 32-bit plugin:
 +
<pre>sudo ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/chromium-browser/plugins/libflashplayer.so</pre>
  
==Why use Fedora?==
+
Exit all Chromium windows and restart Chromium. In the Chromium address bar, type "about:plugins" to check whether the plugin loaded. You may have to re-run Chromium with the --enable-plugins command line switch to force Chromium to re-scan its plugins folder.
* Default repo's only contain [free software]
 
* More bleeding edge software.
 
* RHEL-based.
 
  
 +
==External links==
 +
*[https://fedoraproject.org/wiki/Fedora_Project_Wiki Fedora Project Wiki]
 +
*[https://fedoraproject.org/wiki/How_to_create_an_RPM_package How to create an RPM package] - Details packaging in Fedora, recommended you use [https://fedoraproject.org/wiki/Using_Mock_to_test_package_builds Mock] to build.
  
 
[[Category:GNU/Linux]]
 
[[Category:GNU/Linux]]
 +
[[Category:Distros]]
 +
[[Category:Operating systems]]

Revision as of 20:52, 1 February 2017

The Fedora GNU/Linux Logo.

Fedora is a fast, stable, and powerful GNU/Linux distribution for everyday use built by a worldwide community of friends. It's completely free to use, study, and share.

Yum is deprecated as of Fedora 23, and is replaced by DNF (dandified yum). Yum calls from command line are redirected to DNF. Yum literally does not exist anymore in a default Fedora installation as of version 22.

Why use Fedora?

  • Default repos only contain free software
  • More bleeding edge software
  • RHEL-based

NOTE: If you have AMD hardware you might as well install Ubuntu LTS right now. Catalyst will not install correctly with Fedora 20+.

New users

If you're new to GNU/Linux and you want to use Fedora then an excellent place to start is easyLife. It sets up essential software, installs some commonly used proprietary software (emphasis on installing propriety software, however, you can customize to not include non-free packages with your installation), installs codecs, installs and configures Adobe Flash, sets up proprietary drivers, sets up Oracle Java and much more. It's only recommended if you are an inexperienced user or if you're REALLY lazy.

When installing easylife use dnf instead of rpm as rpm doesn't resolve dependencies.

su -c "dnf localinstall </path/to/easylife.rpm> --nogpgcheck"

Basic setup

Although the default Fedora installation contains most of the packages the average user needs, it's always useful to install the following essentials that are sadly not packaged with Fedora by default:

sudo dnf install wget nano git gcc clang gnome-tweak-tool vim -y

Fedora 20 (apparently) ships with vim, and will complain when running this command. If you're on Fedora 20 run:

sudo dnf install wget nano git gcc clang gnome-tweak-tool

Codecs

By default, Fedora doesn't have a lot of codecs installed. You can fix this by running:

sudo dnf install gstreamer{1,}-{ffmpeg,libav,plugins-{good,ugly,bad{,-free,-nonfree}}} ffmpeg -y

You'll have to install RPMFusion if you want non-free codecs, as they will not be installed this way when only using the default repositories.

Warning: Some of these codecs (especially the ones labeled bad) might be unmaintained and vulnerable. You probably don't need them all, so if you care about security it's better to install codecs as you need them.

How to use dnf

DNF has four basic commands that you need to remember:

  • dnf install
  • dnf remove
  • dnf update
  • dnf search

See the main article for detailed usage.

Basics

The dnf command supports a range of wildcards and other options. For example, to install all the gstreamer plugins, you can run the following command:

dnf install gstream*plugin*

The commonly used -y flag will skip the confirmation process and dnf will assume yes for most questions.

RPMFusion

The RPMFusion repos add non-free software to Fedora. This includes a lot of codecs, steam, etc. Installing RPMFusion is extremely easy:

sudo -c 'dnf localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

Flash

Flash is not installed by default and is officially not recommended due to the fact that it's non-free software. If you do wish to install the Flash player plugin anyway, follow the steps listed below.

Firefox

After you have Firefox working properly (you can install it using dnf):

Install The Plugin

sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
sudo dnf install flash-plugin -y

Verify Your Installation

To verify that Adobe Flash has been installed successfully, type the following text in the Firefox address bar:

about:plugins

For further verification, navigate to the Adobe Flash Test Page. There, you should be able to see whether or not Adobe Flash if working properly.

Installing the plugin on Chromium web browser

Follow all of the instructions in the Enabling Flash Plugin section. Then, on 64-bit, create a symbolic link that tells Chromium how to find the 64-bit plugin:

sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib64/chromium-browser/plugins/libflashplayer.so

On 32-bit, create a symbolic link that tells Chromium how to find the 32-bit plugin:

sudo ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/chromium-browser/plugins/libflashplayer.so

Exit all Chromium windows and restart Chromium. In the Chromium address bar, type "about:plugins" to check whether the plugin loaded. You may have to re-run Chromium with the --enable-plugins command line switch to force Chromium to re-scan its plugins folder.

External links