We are still actively working on the spam issue.

Difference between revisions of "Fedora"

From InstallGentoo Wiki
Jump to: navigation, search
(fixed a grammar mistake, changed yum commands to dnf because yum is deprecated)
m (fixed yum to dnf things i missed)
Line 3: Line 3:
 
[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.
  
Yum is deprecated as of Fedora 22, and is replaced by ''' dnf '''. Trying to run any yum commands will warrant an explanation of why your command will not work, and then runs the transaction as a dnf command.  
+
Yum is deprecated as of Fedora 22, and is replaced by ''' dnf ''' (dandified yum). While using Fedora 22, trying to run any yum commands will warrant an explanation of why your command will not work, and then runs the transaction as a dnf command. Yum literally ''does not exist anymore in a default Fedora installation.'' See
  
 
==Why use Fedora?==
 
==Why use Fedora?==
Line 15: Line 15:
 
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.
 
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.
  
When installing easylife use yum instead of rpm as rpm doesn't resolve dependencies.
+
When installing easylife use dnf instead of rpm as rpm doesn't resolve dependencies.
  
<pre>su -c "yum localinstall </path/to/easylife.rpm> --nogpgcheck"</pre>
+
<pre>su -c "dnf localinstall </path/to/easylife.rpm> --nogpgcheck"</pre>
  
 
==Basic setup==
 
==Basic setup==
Line 30: Line 30:
 
===Codecs===
 
===Codecs===
 
By default, Fedora doesn't have a lot of codecs installed. You can fix this by running:  
 
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>
+
<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.
 
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.
  
Line 55: Line 55:
 
The RPMFusion repos add '''non-free''' software to Fedora. This includes a lot of codecs, steam, etc. Installing RPMFusion is extremely easy:
 
The RPMFusion repos add '''non-free''' software to Fedora. This includes a lot of codecs, steam, etc. Installing RPMFusion is extremely easy:
  
<pre style="overflow: auto;">sudo -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>
+
<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>
  
 
==Flash==
 
==Flash==
Line 90: Line 90:
 
In addition to Adobe Flash, a free and open source alternative exists called Gnash. Gnash plays Flash videos correctly, but audio is often in a '''proprietary''' MP3 format. Since Gnash uses Gstreamer, you can install the Gstreamer codecs from RPM Fusion:
 
In addition to Adobe Flash, a free and open source alternative exists called Gnash. Gnash plays Flash videos correctly, but audio is often in a '''proprietary''' MP3 format. Since Gnash uses Gstreamer, you can install the Gstreamer codecs from RPM Fusion:
  
<pre style="overflow: auto">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
+
<pre style="overflow: auto">sudo dnf 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
sudo yum install gstreamer{1,}-{ffmpeg,libav,plugins-{good,ugly,bad{,-free,-nonfree}}} ffmpeg -y</pre>
+
sudo dnf 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.
 
Gnash is very modular and includes plugins for Mozilla and Konqueror as well as a desktop player. You likely want the Mozilla plugin.
  
 
<pre>sudo dnf remove nspluginwrapper -y
 
<pre>sudo dnf remove nspluginwrapper -y
sudo yum install gnash-plugin -y</pre>
+
sudo dnf install gnash-plugin -y</pre>
  
 
If you use Konqueror as your web browser,
 
If you use Konqueror as your web browser,

Revision as of 20:38, 14 June 2015

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 22, and is replaced by dnf (dandified yum). While using Fedora 22, trying to run any yum commands will warrant an explanation of why your command will not work, and then runs the transaction as a dnf command. Yum literally does not exist anymore in a default Fedora installation. See

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.

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.

Installing Gnash

In addition to Adobe Flash, a free and open source alternative exists called Gnash. Gnash plays Flash videos correctly, but audio is often in a proprietary MP3 format. Since Gnash uses Gstreamer, you can install the Gstreamer codecs from RPM Fusion:

sudo dnf 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
sudo dnf install gstreamer{1,}-{ffmpeg,libav,plugins-{good,ugly,bad{,-free,-nonfree}}} ffmpeg -y

Gnash is very modular and includes plugins for Mozilla and Konqueror as well as a desktop player. You likely want the Mozilla plugin.

sudo dnf remove nspluginwrapper -y
sudo dnf install gnash-plugin -y

If you use Konqueror as your web browser,

sudo dnf install gnash-klash -y

If you would like to have a desktop flash player,

sudo dnf install gnash -y

External Links

Fedora Project Wiki How to create an RPM package - Details packaging in Fedora, recommended you use Mock to build.