Category:Architecture/Linux/Fedora

From aldeid
Jump to navigation Jump to search


You are here
Fedora

Installation

Installation of Fedora via ISO

I recommend to install Fefora via a netinst based ISO rather than from a full ISO. Indeed, there seems to be a bug while updating the system with the 2nd method.

Repositories

It is recommended to install the 2 following RPM Fusion repositories:

Free RPM Fusion:

$ su -lc 'dnf install --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm' 

Non Free RPM Fusion:

$ su -lc 'dnf install --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm' 

Flash & Java

Flash

To install Adobe proprietary Flash in Firefox:

$ sudo dnf install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
$ sudo dnf install flash-plugin

Java

Java (both 32bit and 64bit can be installed via RPM) or manually.

To install from RPM (downloaded from Java site):

$ sudo dnf install jre-8u101-linux-x64.rpm

It installs Java in /usr/java/jre1.8.0_101/

RSSOwl

If you prefer RSSOwl over liferea, first install RSSOwl to /opt/rssowl/. If you have the following error:

RSSOwl was unable to create a browser for reading news.
Please refer to the FAQ for further help.

Do as follows:

$ cd /opt/rssowl/xulrunner/
$ chmod 755 $(file * | grep executable | sed 's/:.*//')
$ ./xulrunner --register-user
./xulrunner-bin: error while loading shared libraries: libhunspell-1.2.so.0: cannot open shared object file: No such file or directory

Identify where libhunspell related *.so files are located:

$ locate libhunspell
/usr/lib64/libhunspell-1.3.so.0
/usr/lib64/libhunspell-1.3.so.0.0.0

And create a symbolic link:

$ sudo ln -s /usr/lib64/libhunspell-1.3.so.0 /usr/lib64/libhunspell-1.2.so.0

Now, you should be able to start RSSOwl as follows:

$ cd /opt/rssowl/
$ ./RSSOwl

VMWare

Refer to this page.

Tricks

Disable ipv6

  • Remove any reference to IPv6 in /etc/hosts
  • Disable IPv6 in Network Manager (tab IPv6 Settings). Set method to Ignore.
  • Add the following lines to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
net.ipv6.conf.enp0s25.disable_ipv6=1
net.ipv6.conf.wlp3s0.disable_ipv6=1
  • Apply changes:
$ sudo sysctl -p
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.enp0s25.disable_ipv6 = 1
net.ipv6.conf.wlp3s0.disable_ipv6 = 1

Disable SELinux

$ sudo sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config

gnome-shell

Useful packages

  • gnome-tweaks: tool to adjust advanced configuration settings for GNOME

extensions

Dash To Panel An icon taskbar for the Gnome Shell. This extension moves the dash into the gnome main panel so that the application launchers and system tray are combined into a single panel, similar to that found in KDE Plasma and Windows 7+
system-monitor-next Display system information in GNOME Shell status bar, such as memory, CPU, disk and battery usages, network rates…
tray-icons-reloaded Tray Icons Reloaded is a GNOME Shell extension which bring back Tray Icons to top panel, with additional features.

python-pip errors

While updating python packages with pip, if you have the following error:

g++ error:/usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory

fix this with:

$ sudo dnf install redhat-rpm-config

Change gnome-boxes default storage path

$ rm -f ~/.local/share/gnome-boxes
$ ln -s /data/virtualmachines/gnome-boxes ~/.local/share/gnome-boxes

Synology drive

Since Synology does not make Fedora packages anymore for Synology Drive, you'll need to make the package yourself using Alien (to convert *.deb to *.rmp).

Alien (prerequisite)

  • Install Alien:
$ sudo dnf install alien
  • Now you'll need to patch Alien because it does not handle dependencies correctly. To do that, download the patch:
$ cd /tmp/
$ wget https://sourceforge.net/p/alien-pkg-convert/tickets/_discuss/thread/34cd1f59/6647/attachment/alien-8.95-rpm-fix.tar.xz
$ tar xJf alien-8.95-rpm-fix.tar.xz
$ sudo mv alien-8.95/Alien/Package/Rpm.pm /usr/share/perl5/vendor_perl/Alien/Package/Rpm.pm

Installation

  • Go to the download center and get the *.deb file (e.g. synology-drive-client-11050.x86_64.deb)
  • Convert the DEB package to RPM using the following command:
$ sudo alien --to-rpm -vv synology-drive-client-11050.x86_64.deb
  • Now, you should be ready to install:
$ sudo rpm -ivh synology-drive-6.0.0-11051.x86_64.rpm --nodeps
$ sudo ln -s /usr/lib/nautilus/extensions-3.0/libnautilus-drive-extension.so /usr/lib64/nautilus/extensions-3.0/

This category currently contains no pages or media.