So, no more working Skype for Slackware 15? The older versions crash because the new GLIBC, the newer ones needs systemd-logind
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not going to hijack the thread, i'm not DV after all
In that case, please feel free to contribute something useful (something other than your usual snarking) to this thread. No one is perfect but in terms of contributions at LQ discussions, DV leaves you in the dust.
chris
Last edited by chris.willing; 09-24-2018 at 05:04 PM.
Reason: politeness
Distribution: Slackware/Salix while testing others
Posts: 1,718
Rep:
Quote:
Originally Posted by chris.willing
In that case, please feel free to contribute something useful (something other than your usual snarking) to this thread. No one is perfect but in terms of contributions at LQ discussions, DV leaves you in the dust.
chris
Considering it was in a discussion with the OP, is relevant to the use of Skype and was a continuation of an earlier suggestion, it may behoove you to review threads before taking things personally. Obviously, DV did not see the post as snarky or not contributing, given the content of his reply to my post and he obviously understood the content/meaning/intention of my post.
During 'meson setup' I do get one warning. Since it's a warning not to worried about it. Though I am puzzled a bit.
Code:
Message: WARNING:
The local user with the configured user name "nobody" of the nobody user does not have UID 65534 (it has 99).
Your build will result in an user table setup that is incompatible with the local system.
In the linux kernel 65334 is the uid and gid number for overflows. See 'cat /proc/sys/fs/overflowuid' and 'cat /proc/sys/fs/overflowgid'. It is used by the kernel for subsystems which only support 16-bit IDs where an ID is encountered of greater than 65535. (In 16-bit two's complement it is -2.)
Some distributions map the nobody user and group to it: see https://lwn.net/Articles/695526/ for some discussion about that. logind and elogind synthesize nobody on UID/GID 65334 and report a mismatch when compiling if the local system has it on another number.
If you wanted to solve the warning, one answer is specify in /etc/passwd and /etc/group that ID 99 is for oldnobody and 65534 for nobody: that would prevent any files being unreachable. But the best thing is to ignore it. It almost certainly makes no difference in relation to skype or anything else you are going to meet in practice.
I patched the /usr/share/skypeforlinix/skypeforlinux to run elogind before starting skype and then kill it after quitting skype.
[snip]
The patch for skypeforlinux is attached.
A problem with this approach is that skype cannot then be started from the Applications->Internet (xfce) menu as an ordinary user; the script's command 'sudo -b /lib/elogind/elogind &' needs a command line to enter the user's password.
Maybe someone who knows how could write a .policy file so that the script could launch elogind using pkexec, which would pop up a dialog box to ask for a password. Ideally it should work with the user's password (like sudo) rather than root password. Any takers?
chris
Edit: I just tried it with gksudo (from SBo's gksu package) rather than plain sudo and that seems to work OK. It's one more thing to have to install though, so if we could make pkexec work like sudo it would still be preferable.
Last edited by chris.willing; 09-24-2018 at 07:16 PM.
Reason: Mention gksudo
A problem with this approach is that skype cannot then be started from the Applications->Internet (xfce) menu as an ordinary user; the script's command 'sudo -b /lib/elogind/elogind &' needs a command line to enter the user's password.
Maybe someone who knows how could write a .policy file so that the script could launch elogind using pkexec, which would pop up a dialog box to ask for a password. Ideally it should work with the user's password (like sudo) rather than root password. Any takers?
chris
Edit: I just tried it with gksudo (from SBo's gksu package) rather than plain sudo and that seems to work OK. It's one more thing to have to install though, so if we could make pkexec work like sudo it would still be preferable.
I don't use skype so I'm not going to try, but it should also work with kdesu, in which case there's nothing additional to install (assuming a full Slackware installation).
I see you guys are advanced with elogind thing. I'm facing the same problem as the OP: no skype version works on -current anymore. I've been using skype rpm (after rpm2tgz) for years, but this is not an option anymore. Official snap never worked on Slackware, so it's not an option too.
I then ditched skype client out of my box and have been using skype web ever since. It works pretty nice even for audio and video calls. It has the drawback to keep a browser window open to interact with my skype contacts, but this proven to be a nice thing at the end as I can be online there only when I need to.
Maybe this could be a workaround while skype client complain in Slackware-current.
I would suggest that all Slackware Skype users open a new topic with microsoft support online, to make this issue more visible with their engineers.
It would not be hard for them to do as KDE and others have done before: accept ConsoleKit2's implementation of the dbus logind API and add support for it. This would take only a couple of lines of code.
See for instance how KWin does it: https://github.com/KDE/kwin/blob/9ad...logind.cpp#L66
If you wanted to solve the warning, one answer is specify in /etc/passwd and /etc/group that ID 99 is for oldnobody and 65534 for nobody: that would prevent any files being unreachable. But the best thing is to ignore it. It almost certainly makes no difference in relation to skype or anything else you are going to meet in practice.
Thanks for the information, that was interesting reading. Always learning things. As you have suggested I'm choosing to ignore it. I thought about "fixing" it when I first encounter the warning but, decided not to mostly as that link pointed out possible problems. I figure if it needed "fixing" our BDFL would be the one to do that.
I actually got two warnings, adding '-Dnobody-group=nogroup' to the build fix this error.
Code:
Message: WARNING:
The local group with the configured group name "nobody" of the nobody group does not have UID 65534 (it has 99).
Your build will result in an group table setup that is incompatible with the local system.
The output of meson setup gives these two messages. Just before the warning messages.
Code:
Message: maximum system UID is 999
Message: maximum system GID is 999
A problem with this approach is that skype cannot then be started from the Applications->Internet (xfce) menu as an ordinary user; the script's command 'sudo -b /lib/elogind/elogind &' needs a command line to enter the user's password.
I can start skype via the (plasma) menu as a normal user.
I added an entry to sudoers to allow chris to run '/lib/elogind/elogind &' and 'killall elogind' with no password.
Code:
chris ALL= NOPASSWD: /lib/elogind/elogind, /bin/killall elogind
I could easily modify sudoer for other users.
Last edited by chrisretusn; 09-25-2018 at 09:52 AM.
I don't use skype so I'm not going to try, but it should also work with kdesu, in which case there's nothing additional to install (assuming a full Slackware installation).
A full install is a good assumption with me, with Ktown installed. <grin>
It does work with kdesu. There are issues. It's not seamless. A few seconds after the kdesu dialog appears, the skype window starts and covers up the password prompt dialog. Skype starts without elogind. It is eventually started after the password is entered and skype does not complain. Just annoying to have to click in the kdesu dialog to get it on tip again.
Then there is the killall after skype is closed, really don't like the idea of prompting for root password again.
I did try using 'wait' in the wrapper script thinking kdesu would die after passing the command to start elogind, but kdesu does not die, wait isn't going to work. I could use 'sleep' to delay long enough to enter the password but I'm fine with my solution. No prompts, elogind starts before skype and is kill after skype is exited. I just noticed skype is reported a new version... maybe we will get lucky.
Edit: Nope on the lucky. 8.31.76.93 still needs elogind.
Last edited by chrisretusn; 09-25-2018 at 09:46 AM.
I use elogind as a traditional package, build after the SlackBuild I attached in a previous post. It works, and the Skype works like a charm too.
However, I noticed that elogind hijacked the computer power button, and now it execute right on the shutdown. Well, an eventual behavior like this was expected.
To note that by Plasma5 it was configured on Power Management to execute "Suspend"
The funny part is that a friend of mine, using slackware-curent and Plasma5 on a laptop, and who previously lamented of having issues with the LID (closing the display on laptop) which supposedly should go "Suspend", now using my elogind build to save his Skype, resulted also on his LID working fine now.
So, apparently elogind do its job better than ConsoleKit2. In fact, that's expected, because looks like everyone uses logind, either natively (from systemd) or as a cut away elogind. Then it is much better tested than that stray ConsoleKit, who nobody uses excluding us.
So, I will ask our friend Eric, IF is trivial to switch between ConsoleKit2 and elogind - and apparently the sole major distribution using today ConsoleKit2 instead of systemd or elogind is Slackware,
WHY we use ConsoleKit2 instead of elogind? And WHY we do NOT switched already to elogind too, as any other "systemd-free" distribution?
Heck, even the Devuan which forked Debian because systemd-hate politics uses elogind.
Last edited by Darth Vader; 09-25-2018 at 10:17 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.