Page 1 of 1

Alternate method for Viber on MGA6

PostPosted: Nov 6th, '17, 17:35
by rolf
I've found other solutions in Search but not exactly this method, afaict.

Viber has packaged a deb for Ubuntu and rpm for Fedora, 64-bit only, iianm.
I tried urpmi on the rpm but

Code: Select all
A requested package cannot be installed:
viber-7.0.0.1035-2.x86_64 (due to unsatisfied libssl.so.10()(64bit))


Google revealed a somewhat aged howto from opensuse for extracting the pertinent parts of the deb to disk with a handy script, Generic Installation Method

Since the current deb uses a different compression for the data archive, I needed to edit the file name and switches to tar in that script to get it to succeed:

Code: Select all
#! /bin/sh
TMPDIR=/tmp/viber
DEBFILE=${1/\/*\//}
if [ ! -r $1 ]; then
   echo "Usage: $0 <viber DEB distribution file>"
   exit 1;
fi
mkdir $TMPDIR > /dev/null 2>&1
if [ -d $TMPDIR ]; then
        cp $1 $TMPDIR
        echo -n 'Extracting DEB file contents...'
        cd $TMPDIR && ar x $DEBFILE
        echo 'done.'
        echo -n 'Installing Viber files...'
        cd / &&  tar xf ${TMPDIR}/data.tar.xz
        echo 'done.'
        echo -n 'Cleaning up...'
        rm -rf $TMPDIR
        echo 'finished.'
else
        echo "Can't create temporary directory ${TMPDIR}!"
        exit 1;
fi


First, I was a little worried about fouling up my system running this script as root, comparable to --force with rpm, but I just did it. Early days but system is still working and this desktop Viber seems very nice. The program is at /opt/viber/Viber and I created a menu entry with the KDE application menu editor. So far, so good.

Re: Alternate method for Viber on MGA6

PostPosted: Nov 6th, '17, 21:34
by doktor5000
As mentioned in the older threads, installation of the rpm should work fine with urpmi --allow-nodeps.
Or you could use alien to convert the .deb to rpm. Not sure why a custom script would be necessary for that ...

Re: Alternate method for Viber on MGA6

PostPosted: Nov 11th, '17, 13:30
by rolf
doktor5000 wrote:Not sure why a custom script would be necessary

It's an "Alternate method", not necessary. I spent some time, did some work, learned some things, and discovered a solution to a problem. After what might be significant effort, I occasionally find a method that solves a problem for me and think it might be worthwhile to post it, possibly being of interest to others. It's a choice, not a directive.