Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: julcar on April 12, 2019, 02:18:47 PM

Title: Skype outdated and cannot connect
Post by: julcar on April 12, 2019, 02:18:47 PM
One of the things that I most use on windows is Skype, my business depends on it and is a needed on my environment...
I tried to run the Skype version available on TCL's repo but it is very very old and outdated, even to get connected to Skype servers  :-\
If any one could update Skype to last version (or at least to a version compatible) I would be gratefully joy
Title: Re: Skype outdated and cannot connect
Post by: Juanito on April 12, 2019, 10:13:11 PM
Did you try the getskype extension?
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 13, 2019, 03:07:24 AM
Did you try the getskype extension?

Of course, getskype.tcz creates skype.tcz, no problem with that...

But, the Skype version downloaded is really old (even older than Microsoft purchase, though) and is unable to get connection to Skype servers, maybe you know something that I do not, but if you find a way to get skype.tcz working please tell me.
Title: Re: Skype outdated and cannot connect
Post by: Juanito on April 13, 2019, 03:25:51 AM
Maybe modifying the getskype script is the way to go - I cannot help as skype and skype url's are blocked here.
Title: Re: Skype outdated and cannot connect
Post by: Rich on April 13, 2019, 08:41:44 AM
Hi julcar
If you are running 32 bit you may have a problem. Near as I can tell, Skype is only available in 64 bits now. You could look into
Skype for web,  though that requires you to run  Chrome (or maybe Chromium)  browser according to:
https://web.skype.com/
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 14, 2019, 08:37:56 PM
Hi julcar
If you are running 32 bit you may have a problem. Near as I can tell, Skype is only available in 64 bits now. You could look into
Skype for web,  though that requires you to run  Chrome (or maybe Chromium)  browser according to:
https://web.skype.com/

Do you mean that switching to corepure64 could allow me install skype for linux?
thanks
Title: Re: Skype outdated and cannot connect
Post by: Juanito on April 14, 2019, 09:42:14 PM
You would probably need to figure out which is the most recent version for linux, download and install it and then adjust it to work with CorePure64.
Title: Re: Skype outdated and cannot connect
Post by: coreplayer2 on April 15, 2019, 06:05:16 PM
Here’s some useful information about installing the latest Skype for Linux
https://linuxhint.com/skype-arch-linux/


Sent from my iPhone using Tapatalk
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 20, 2019, 04:00:58 PM
You would probably need to figure out which is the most recent version for linux, download and install it and then adjust it to work with CorePure64.

Right now I am setting up a dCore64 in a vm to test the deb package from skype, any problem I will post here
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 30, 2019, 02:33:02 AM
Taking again this topic...

I tried to download the .deb file supplied by skype

also installed a tinycore pure 64 in a vm

with windows help I was able to uncompress and squash the skype deb file into a tcz extension

but I have 2 problems

doing a ldd to the skype binary, I could download and install the dependencies except one, for some reason skype is looking for libgconf-2.so.4 which I am unable to find in the TCL repos

the second trouble is about where to run skype, they supply a .desktop file but I don't know where to put it, also there is a script installed in /usr/bin but running it has no response in the console

for the missing library I found this http://ftp.ee.debian.org/debian/pool/main/g/gconf/libgconf-2-4_3.2.6-4+b1_amd64.deb I tried to squash this too but without success.
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 30, 2019, 02:50:52 AM
Well, first trouble fixed with help of this post: http://forum.tinycorelinux.net/index.php/topic,21919.msg141607.html#msg141607

second trouble still...

running sudo skypeforlinux on console does nothing
Title: Re: Skype outdated and cannot connect
Post by: Juanito on April 30, 2019, 03:45:18 AM
gconf has been depreciated in favour of dconf for years - you must have chosen an old version of skype.

desktop files go in /usr/local/share/applications - it would be a good idea to check the "exec" line in skype.desktop to see how skype should be started.

Perhaps I'm mistaken, but I would have thought it would be easier to get the most recent version of skype for linux from the skype website and install that?
Title: Re: Skype outdated and cannot connect
Post by: Juanito on April 30, 2019, 06:06:31 AM
Hmm - I got hold of what looks to be the latest skypeforlinux (8.x) and, although it depends on gtk3, it also depends on gconf.

Since gconf is from gnome-2.x, it looks like this has been done specifcally to make things difficult for linux users...
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 30, 2019, 11:18:25 AM
gconf has been depreciated in favour of dconf for years - you must have chosen an old version of skype.

desktop files go in /usr/local/share/applications - it would be a good idea to check the "exec" line in skype.desktop to see how skype should be started.

Perhaps I'm mistaken, but I would have thought it would be easier to get the most recent version of skype for linux from the skype website and install that?

You can be sure that I am using the latest skype binary from skype website.

here is the extract from skypeforlinux.desktop

Code: [Select]
[Desktop Entry]
Name=Skype
Comment=Skype Internet Telephony
Exec=/usr/bin/skypeforlinux %U
Icon=skypeforlinux
Terminal=false
Type=Application
StartupNotify=true
StartupWMClass=Skype
Encoding=UTF-8
Categories=Network;Application;
MimeType=x-scheme-handler/skype;
X-KDE-Protocols=skype
Actions=QuitSkype;

and here is what looks the launcher script in /usr/bin

Code: [Select]
#!/bin/sh

SCRIPT=$(readlink -f "$0")
USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)

SKYPE_PATH="$USR_DIRECTORY/share/skypeforlinux/skypeforlinux"
SKYPE_LOGS="$HOME/.config/skypeforlinux/logs"

mkdir -p $SKYPE_LOGS

nohup "$SKYPE_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$SKYPE_LOGS/skype-startup.log" 2>&1 &
Title: Re: Skype outdated and cannot connect
Post by: andyj on April 30, 2019, 11:21:57 AM
I made a copy of gconf for TCL 8.x a while back to get chrome working. You can try this one: http://www.asjohnson.com/tinycorelinux/8.x/x86_64/test/GConf.tcz (http://www.asjohnson.com/tinycorelinux/8.x/x86_64/test/GConf.tcz)
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 30, 2019, 05:16:58 PM
I made a copy of gconf for TCL 8.x a while back to get chrome working. You can try this one: http://www.asjohnson.com/tinycorelinux/8.x/x86_64/test/GConf.tcz (http://www.asjohnson.com/tinycorelinux/8.x/x86_64/test/GConf.tcz)

Thankyou, but I think that your extension has a lot of files unneeded, instead what I did is uncompress only the needed library and place it on the same dir on the skype binary
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 30, 2019, 07:14:07 PM
Well, I think I am in the right way, now the thing is related to permissions

I modified skypeforlinux.desktop to add /local/ to the Exec parameter

and then moved all the files in /usr to /usr/local and then redid the mksquash process

now I have the "Skype" item in apps menu, but attempting to launch it does anything, in the log file shows:

Code: [Select]
nohup: can't execute '/tmp/tcloop/usr/local/share/skypeforlinux/skypeforlinux': Permission denied

doing a ls to the binary says this

Code: [Select]
tc@box:~$ ls -la /usr/local/share/skypeforlinux/skypeforlinux
lrwxrwxrwx 1 root root 69 Apr 30 19:58 /usr/local/share/skypeforlinux/skypeforlinux -> /tmp/tcloop/usr/local/share/skypeforlinux/skypeforlinux

My guess is about the owner of the file, but don't know exactly what to do
Title: Re: Skype outdated and cannot connect
Post by: Juanito on April 30, 2019, 10:29:19 PM
If you've named your extension "skype", then the command needed to check the permissions would be:
Code: [Select]
$ ls -la /tmp/tcloop/skype/usr/local/share/skypeforlinux/skypeforlinux
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 30, 2019, 11:19:07 PM
If you've named your extension "skype", then the command needed to check the permissions would be:
Code: [Select]
$ ls -la /tmp/tcloop/skype/usr/local/share/skypeforlinux/skypeforlinux

Sorry, I did a mistake because I copied manually the path and missed the extension name, the right path is

Code: [Select]
/tmp/tcloop/skypeforlinux/usr/local/share/skypeforlinux/skypeforlinux
and doing a ls to the tcz

Code: [Select]
tc@box:~$ ls -la /tmp/tcloop/skypeforlinux/usr/local/share/skypeforlinux/skypeforlinux
-rw-r--r-- 1 197611 197121 81125488 Oct 12 2018 /tmp/tcloop/skypeforlinux/usr/local/share/skypeforlinux/skypeforlinux
Title: Re: Skype outdated and cannot connect
Post by: Juanito on April 30, 2019, 11:40:04 PM
That file should be root:root and executable.

Did you unpack the deb as root?
Title: Re: Skype outdated and cannot connect
Post by: julcar on April 30, 2019, 11:43:18 PM
That file should be root:root and executable.

Did you unpack the deb as root?

No, I did the whole process in windows XP, I uncompressed the deb file with 7zip and created the extension with a windows version of mksquashfs
Title: Re: Skype outdated and cannot connect
Post by: Juanito on April 30, 2019, 11:53:44 PM
You need to unpack the deb in linux:
Code: [Select]
$ sudo ar vx skypeforlinux-64.deb
$ sudo tar xf data.tar.xz
$ ls -l /tmp/pkg/usr/local/share/skypeforlinux/skypeforlinux
-rwxr-xr-x    1 root     root      81125488 Oct 12  2018 /tmp/pkg/usr/local/share/skypeforlinux/skypeforlinux
Title: Re: Skype outdated and cannot connect
Post by: julcar on May 01, 2019, 12:54:42 PM
Ok, the permission denied error is gone, but still don't want to run, is very weird this
Title: Re: Skype outdated and cannot connect
Post by: andyj on May 01, 2019, 01:09:19 PM
64-bit executables copied from other distros typically want files in /lib64. Try:

Code: [Select]
ldd /path/to/skypeforlinux | grep /ld-

and see what it's looking for. You may need to create a link to /lib/ld-2.28.so for it.
Title: Re: Skype outdated and cannot connect
Post by: Juanito on May 01, 2019, 10:42:45 PM
Even if you symlink /lib64 -> /lib, the latest skypeforlinux will fail with:
Code: [Select]
dbus[10875]: dbus message iterator has already been closed, or is uninitialized or corrupt
Apparently this is because skypeforlinux now depends on systemd - google indicates that versions 8.29.76.43 and 8.29.0.50 do not require systemd if you can find them somewhere...
Title: Re: Skype outdated and cannot connect
Post by: mocore on May 02, 2019, 12:42:46 AM
skypeforlinux now depends on systemd

this could be relevant ?
https://forums.gentoo.org/viewtopic-t-1086741-start-0.html - skypeforlinux 8.30.0.50 segfaults with dbus
Quote
it does look like systemd or OpenRC+elogind could be required for >skypeforlinux-8.29.0.50.

Title: Re: Skype outdated and cannot connect
Post by: julcar on May 03, 2019, 03:53:14 AM
Even if you symlink /lib64 -> /lib, the latest skypeforlinux will fail with:
Code: [Select]
dbus[10875]: dbus message iterator has already been closed, or is uninitialized or corrupt
Apparently this is because skypeforlinux now depends on systemd - google indicates that versions 8.29.76.43 and 8.29.0.50 do not require systemd if you can find them somewhere...

I guess I have now the correct tcz extension for skype, but it doesn't go further than the same error message
Title: Re: Skype outdated and cannot connect
Post by: julcar on May 03, 2019, 04:07:54 AM
Here are some skype deb packages, including the 8.29.0.50 version
http://mirror.cs.uchicago.edu/skype/pool/main/s/skypeforlinux/
Title: Re: Skype outdated and cannot connect
Post by: julcar on May 04, 2019, 01:28:09 PM
Here are some skype deb packages, including the 8.29.0.50 version
http://mirror.cs.uchicago.edu/skype/pool/main/s/skypeforlinux/

this version does not run because an error "No such file or directory" even when ldd says all the dependencies are in place, gonna try with another version
Title: Re: Skype outdated and cannot connect
Post by: Juanito on May 04, 2019, 10:53:51 PM
Did you remember to make the symlink /lib64 -> /lib?
Title: Re: Skype outdated and cannot connect
Post by: julcar on May 05, 2019, 03:34:55 AM
Did you remember to make the symlink /lib64 -> /lib?

even with the symlink

Code: [Select]
nohup: can't execute '/tmp/tcloop/skypeforlinux/usr/share/skypeforlinux/skypeforlinux': no such file or directory

but the binary is in place and has 777 permissions
Title: Re: Skype outdated and cannot connect
Post by: Juanito on May 05, 2019, 04:01:05 AM
/usr/local/share?
Title: Re: Skype outdated and cannot connect
Post by: andyj on May 05, 2019, 07:33:23 AM
Maybe try strace? You'll see everything it's looking for before giving up.