Alternate method for Viber on MGA6

Here you'll find a place for solutions and hints.

Please use one of the support subforums below for questions or if you have any issues and need support.

Alternate method for Viber on MGA6

Postby rolf » Nov 6th, '17, 17:35

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.
rolf
 
Posts: 116
Joined: Mar 25th, '11, 02:58

Re: Alternate method for Viber on MGA6

Postby doktor5000 » Nov 6th, '17, 21:34

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 ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15643
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Alternate method for Viber on MGA6

Postby rolf » Nov 11th, '17, 13:30

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.
rolf
 
Posts: 116
Joined: Mar 25th, '11, 02:58


Return to The magician suggests...

Who is online

Users browsing this forum: No registered users and 1 guest