Fedora/Applications

From Segfault
Jump to: navigation, search

Adobe Flash

 $ yum install http://linuxdownload.adobe.com/linux/i386/adobe-release-i386-1.0-1.noarch.rpm
 $ rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Now we should have an Adobe repository in /etc/yum.repos.d/adobe-linux-i386.repo

 $ cat /etc/yum.repos.d/adobe-linux-i386.repo
 [adobe-linux-i386]
 name=Adobe Systems Incorporated
 baseurl=http://linuxdownload.adobe.com/linux/i386/
 enabled=1
 gpgcheck=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Finally we're able to install Flash. For i386 it's pretty straightforward, for x86-64 one has to go through a few more hoops.

x86-32

 $ yum install flash-plugin alsa-plugins-pulseaudio

x86-64 (wrapped)

 $ yum install flash-plugin nspluginwrapper.{x86_64,i686} alsa-plugins-pulseaudio.i686 --disablerepo=adobe-linux-i386

x86-64 (native)

Although it's a preview version only, we can try:

tbd

A/V Codecs

First we'll install the RPM Fusion repository:

yum localinstall --nogpgcheck \
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm \
  http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Or, for Rawhide:

yum localinstall --nogpgcheck \
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm \
  http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm
 
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion*-`uname -m`

Now we can still the missing codecs, e.g.:

yum install gstreamer-ffmpeg gstreamer-plugins-ugly

Google Play Music Manager

Download (login required) the Google Music Manger and install it:

dnf install google-musicmanager-beta_current_i386.rpm

This should install all the dependencies too:

Transaction Summary
Install  158 Packages
Total size: 79 M
Total download size: 74 M
Installed size: 248 M
Is this ok [y/N]: y

Motion

For Fedora, the RPM Fusion repository was needed:

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo yum install motion

If not already loaded:

sudo modprobe uvcvideo

Add the user controlling camera to the video group:

sudo usermod -a -G video dummy

SELinux fixes:

semanage fcontext -a -t textrel_shlib_t /usr/lib/libx265.so.51
restorecon -v /usr/lib/libx265.so.51

semanage fcontext -a -t textrel_shlib_t /usr/lib/libswresample.so.1.1.100
restorecon -v '/usr/lib/libswresample.so.1.1.100

semanage fcontext -a -t motion_data_t /opt/tmp/video
restorecon -R -v /opt/tmp/video

Allow access to /dev/urandom[1]:

setsebool -P global_ssp 1

Oracle Java

yum install icedtea-web

...should be enough to get the Java browser plugin running.

Picasa

This seems to work in FC15:

 yum localinstall http://dl.google.com/linux/rpm/testing/i386/picasa-3.0-current.i386.rpm

Picasa might crash with:

 /usr/bin/picasa: line 189: 32346 Segmentation fault  (core dumped) "$PIC_BINDIR"/wrapper check_dir.exe.so
 /usr/bin/picasa: line 248: 32460 Segmentation fault  (core dumped) "$PIC_BINDIR"/wrapper set_lang.exe.so

We could try:

 yum wine-core.i686
 mv  /opt/google/picasa/3.0/wine/bin/wine-preloader{,.google}
 ln -fs /usr/bin/wine-preloader /opt/google/picasa/3.0/wine/bin/wine-preloader

...but now Xorg might crash, too :-(

Signal

As there's no RPM package for Signal yet[2] and we don't want to build Signal from source, we an download and extract[3] the Ubuntu package:

$ xz -9c get-signal.sh | base64
/Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4AcjA0JdABGIQkY99BY0cwoNj8U0dYCNuPBnuEzjXKHd
RAspn6px7estxHWLCOtROGMa/lHH0kr0Cwz5m8L+i0pG+jMYn56SXO7knlGhcnY2EiKqbpeNO1q2
evCk6aMXBe1+vIjcOYmhEsA/K04ojGQqqkxL10PTiBq5Otsx9ipvNFMmtNrK57Yw7yh1F3Mgkj7f
KjEuTNty99eWnpfhCh3jl1SUYvWoB+92sS4dTJoBu3dYhrmSCGo/IsKrubQtn+WOyFt4XGCs+jGl
LLTafq4DC2bCRKdYD9vDKCKERm2zg2mJu5gfX0hOQdfxt+1G8nRBw1UIQ+2jpb73DuF74trfMtCU
YjyyMQAvlz7JxDjxCoasQBcL6G5L5zcLsg7Lg8u9u4GabFLhlfkBcfZ5zTiUrU3vEDnL+T/4JTCJ
zWimtN5pcotZOEU/JJmJ13LX+MAub6qoeMC+HKPreHDkZDkulX8lCx0VJOcNcDGGGAnreUaPCqnr
vf5pWl8BCul7aanGEjDyaGHRxoPvNFDwqdDfFEDPKKkvqpELYD3dl5JFHapY9Br7NIWjQ8DavEHl
lO3A2jYKfOQNqazWf43ydMzq3RiXbaMutUm0lb1oeryULrED5cSF3IQYdp8855NydFUH0y6HF51M
2hDdBKKugXFZx1sgVhpVXoitQvRFxWB8yuhrG6I7H/UDyMV23jR06x4hSecLehJCbvdsO5rm7iSI
O/e7Sf2bSVGgelMpmXXYLrjD/LMBYzgjk9pYXHf8wPwDqsAIVSk5uolZaeHXdb31QBUkXQNbk118
HpTc3lcdrviwpJ1VIPAFvw2SWhO2ZefbiIvlY/v+FMwelhw5j5D9b8eEBbPtGiHDGzrylTYgU/8z
0oeCaEbjL4LFD/QrxHt862xQFNyKmW3trpC2VOQnbjzHpXIZwWWD+Wj93Yb5iF1ZzIvAovkzk3kL
ZNK4ZlITpBpN6Tp7+ggaahSFLxijcaR/+unwj/9Kz0LNJdEscGns4e56bXyo/DFxiD5wdc7G/br+
5JaSFstk8y8g15+K+jAZCRGpsp+VLwSZK8NR7y2OBr19jbmI0pkAeEpcFwUgdhRHg46ddK70WYsE
Lk+AS2080hrvIAAAAGt1XID/tIz8AAHeBqQOAAB6/7asscRn+wIAAAAABFla

Skype

Skype on x86-64 is a bit tricky, as it's only available for i586 for Fedora 13+:

 yum install libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 alsa-plugins-pulseaudio.i686 ~/skype-2.2.0.25-fedora.i586.rpm 

With all that, Skype should start. Sometimes, even the test call fails, one "solution" would be to delete the configuration directory, ~/.Skype, and try again.[4]

RealPlayer

Yeah, this thing still exists, although has been discontinued for Linux[5]. Get it while it's still there[6]

wget http://client-software.real.com/free/unix/RealPlayer11GOLD.rpm
sudo yum install RealPlayer*rpm

But it may not start just yet on this 64-bit Fedora 20 system:

$ realplay
/opt/real/RealPlayer/realplay.bin: error while loading shared libraries: libgdk-x11-2.0.so.0: \
                                   cannot open shared object file: No such file or directory

$ ldd /opt/real/RealPlayer/realplay.bin | grep not
       libgdk-x11-2.0.so.0 => not found
       libatk-1.0.so.0 => not found
       libpangox-1.0.so.0 => not found
       libgtk-x11-2.0.so.0 => not found

Let's see if we have packages for that:

$ yum provides libgdk-x11-2.0.so.0 libatk-1.0.so.0 libpangox-1.0.so.0 libgtk-x11-2.0.so.0 
[...]

And we do! In our case, this was a matter of:

$ sudo yum install gtk2-2.24.22-2.fc20.i686 atk-2.10.0-1.fc20.i686 pangox-compat-0.0.2-3.fc20.i686 gtk2-2.24.22-2.fc20.i686

Bluetooth

tbd

dbus: [system] Activating via systemd service name='org.bluez' unit='dbus-org.bluez.service'
dbus: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service faile
d to load: No such file or directory. See system logs and 'systemctl status' for details.
dbus: [system] Activating via systemd service name='org.bluez' unit='dbus-org.bluez.service'
dbus: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service faile
d to load: No such file or directory. See system logs and 'systemctl status' for details.

Webserver

Let's use Nginx for this:

sudo yum install nginx php-fpm php-common
sudo systemctl enable nginx php-fpm
sudo systemctl start nginx php-fpm

The /etc/nginx/nginx.conf should be already in place and will include .conf files from /etc/nginx/conf.d/:

server {
       listen          80;
       server_name     www.example.org;
       root            /var/www;
       index           index.html index.php;
       autoindex       on;

       # PHP
       location ~ \.php$ {
       #       # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
       #       fastcgi_split_path_info ^(.+\.php)(/.+)$;
       #       fastcgi_pass unix:/var/run/php5-fpm.sock;
               include /etc/nginx/fastcgi_params;
               fastcgi_pass 127.0.0.1:9000;
               fastcgi_index index.php;
               fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
       }
}

References