Bug 29986

Summary: Improving Skype wiki page
Product: Mageia Reporter: Nikolay Sabelnikov <79625490833>
Component: Release (media or process)Assignee: Documentation Team <doc-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal CC: 79625490833, davidwhodgins, fri, paul.blackburn, sysadmin-bugs
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://wiki.mageia.org/en/Skype_with_video
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: the output of the Skype installation terminal via the terminal.

Description Nikolay Sabelnikov 2022-02-02 07:50:39 CET
After learning that 2 batch managers are used in the system. I decided to check the installation of Skype from rpm and was surprised that Skype was installed without any problems. 
Then the following comes to mind, is it impossible to register the ability to add Skype turnips in the welcome window?
And update the wiki information on adding a Skype repository via dnf.
Comment 1 Nikolay Sabelnikov 2022-02-02 07:51:53 CET
Created attachment 13113 [details]
the output of the Skype installation terminal via the terminal.

CC: (none) => 79625490833

Nikolay Sabelnikov 2022-02-02 07:52:15 CET

URL: (none) => https://wiki.mageia.org/en/Skype_with_video

Comment 2 sturmvogel 2022-02-02 10:08:15 CET
You mixed several topics.

In Mageia Welcome screen there is already mentioned that there are two package managers: RPMdrake and Dnfdragora.

In Mageia Welcome screen only packages are recommended that are available via the Mageia repositorys. Skype is an external program and has no own repository. So it is not possible to add Skype as recommended program to the welcome screen.

The only thing which should be possible is to change the Magei Wiki. The problem with the Skype package from Microsoft is, that it is badly packaged by Microsoft. With the urpmi command the libatomic1 dependency can not be resolved, but it is possible with dnf. So the original source of the problem is Microsoft. We can only work around. Thats another reason why we can't add Skype to the Welcom screen when you can not install it with urpmi/RPMdrake.
Comment 3 sturmvogel 2022-02-02 10:10:04 CET
And also with dnf the problem that there is no auto update mechanism for skype is still not solved. The way with the urpmi script in the wiki is a clever way to work around the crappy Microsoft package.
Comment 4 Morgan Leijström 2022-02-02 11:29:31 CET
First, i dont really get the subject "Add the update command to both the wiki and the welcome window"  Mageiawelcome have links to configure repos, perform updates, install software... ?


Regardign skype:

Another way to solve install and updating Skype is to install using flatpak.
Flatpak also provides some sandboxing.
(That said I have not installed or used Skype in any way, I just checked "flatpak install skype" say it is available)

Yes, maybe dnf and flatpak methods should be added to skype wiki page.

I see no reason Skype of all available alternatives should be the one added to mageiawelcome.

In mageiawelcome the tab on installing software have a link to our nice wiki page listing some prominent applications.  There is a link to our Skype wiki page.


I would say we have all you suggest, except anyone could improve the Wiki page.

CC: (none) => fri

Comment 5 sturmvogel 2022-02-02 12:45:11 CET
I have done an overhaul to the wiki page and make a proposal for the new wiki at my personal scrapbook:
https://wiki.mageia.org/en/User:Sturmvogel/scrapbook

- Note was added that urpmi won't work because of unsolved dependencies. Note that experienced users can use rpm -ivh --nodeps
- check_skype script was cleaned up: support for Mageia 6 and 6 removed
- check_skype script was adapted to use dnf instead of urpmi
- (imho) not necessary change history from the site is removed. 99% of our wiki pages don't have such (wiki page cluttering) chapter. The change history is available via the wiki itself.
- i didn't change anything for the author part of the check_skype script. So i made sure that Paul Blackburn is honoured as the original creator of this script!


Anny comments?

CC: (none) => paul.blackburn

Comment 6 sturmvogel 2022-02-02 12:46:53 CET
I also added the note that you have to install and configure sudo if you want to follow the instructions.
Comment 7 sturmvogel 2022-02-02 13:05:18 CET
Also added the note that you have to adapt the script ("Download" directory) if you are using an other language/locale as english.
Comment 8 Morgan Leijström 2022-02-02 13:20:52 CET
Reading your comments here it sounds all very good :)
I agree about history.

I wonder if the Download folder naming obstacle could be avoided by using a variable name for that folder - is there one?  Or use temp?  Or simply in users root - is to be deleted anyway after install.

As for sudo, dnf need to be configured.  You could simply say so and add a link to https://wiki.mageia.org/en/Using_DNF
Comment 9 sturmvogel 2022-02-02 13:35:56 CET
For the script the directory needs to be existent and writable by a normal user (no root). Also the folder is not deleted after the check. I'm not aware of a variable for "Downloads".


BUT:
I found another quirk that makes the complete script useless:
The dnf command does indeed add a skype repo "/etc/yum.repos.d/skype-stable.repo". And it is possible to update Skype with "dnf update" then. Testet it by installing an outdated skype package and updated it with the dnf update command. So the script is not needed for checking of updates.

That would mean that we could scrap the complete script part from the wiki page:
- (I would be sorry for Pauls good work)
- We have to mention that only the dnf command works for installation of Skype (adding repo and automatic updating)
- We have to mention that it is not possible to add a skype repository with urpmi because Microsoft doesn't provide compatible metadata for their repo
- ....
Comment 10 Morgan Leijström 2022-02-02 13:47:50 CET
( Just to clarify: by "users root", I meant ~/ )

Well it is a good "quirk" that dnf is so good it do not need a script ;)
And we don't need a Download folder either then.

Curious: how do dnf know to add "/etc/yum.repos.d/skype-stable.repo", or do we tell it to?

We can move Paul's script to the end, or into a file.
It is good if someone really want to avoid dnf.
Comment 11 sturmvogel 2022-02-02 13:52:29 CET
I would prefer to scrap the urpmi part including the script. Because it would be really hard to make the script compatible with the actuaul problem that the installation fails because of unsolved libatomic1 dependency. It would need first to issue the "urpmi skypeforlinux-64.rpm" command to install all dependencies besides libatomic1 (there are some dependencies on systems when skype is installed the first time). After installation of most of the deps the script will fail because of missing libatomic1 dependency. Now it would have to switch to "rpm -ivh -nodeps skypeforlinux-64.rpm" to finish the installation.

Uhm, no thanks!
Comment 12 sturmvogel 2022-02-02 13:57:04 CET
(In reply to Morgan Leijström from comment #10)
> Curious: how do dnf know to add "/etc/yum.repos.d/skype-stable.repo", or do
> we tell it to?

I believe that a script inside the rpm does this. And this script is not compatible with urpmi/Drakrpm.
Comment 13 Morgan Leijström 2022-02-02 14:23:06 CET
Ah nice
(sounds a bit dangerous to me that an rpm can alter repos, but... convenient)

I suggest then to skip the automatic install and sudo requirement (as you use "su - in" manual description)  Users should know they can use sudo if they like.

So if i get this all correct it is rather easy:

§ Download the rpm and install it using dnf - which also configure the repo

§ To update spotify run "dnf upgrade --refresh spotify"  Or it is updated with all other packages if you generally use dnf to update your system.

For both installing and updating, dnf should first be configured with Mageia repos to find dependencies.
Comment 14 Morgan Leijström 2022-02-02 14:27:35 CET
doh, i meant skype - not spotify... ;)

Summary: [feature request]: Add the update command to both the wiki and the welcome window. => Improving Skype wiki page
Source RPM: mageiawelcome => (none)

Comment 15 sturmvogel 2022-02-02 15:10:17 CET
I have an additional draw for the Skype wiki. 
https://wiki.mageia.org/en/User:Sturmvogel/scrapbook_2

The urpmi part is for experienced users (the script will fail if you don't install it in manual mode as described.

And we have the new dnf way described.

As the original wiki from Paul was a mix between su - and sudo (script needs sudo but all other commands used su -) i changed all commands at the new wiki page to sudo. So there is no mix anymore and Pauls script can still be used by semi experinced users (experienced users should know how to use su - or sudo anyway...).
Comment 16 Morgan Leijström 2022-02-02 15:39:43 CET
Really improving :)

I find the test for installed cheese occupying much place. And user may already have another cam app installed, depending on desktop choice or preference!

I think we can tell users:

"Please check that your camera is working using any simple webcam application like cheese, kamerka, kamoso, luvcview, webcamoid, wmwebcam, wxcam.  You can find them among our packaged programs."

(
Another idea to make it both shorter and automated:
rpm -qa | grep -q cheese && echo Cheese is installed || sudo urpmi cheese
  - and omit example to minimize text bulk.
But that may lead to unnecessary installation especially for dependencies per what I just wrote
  )
Comment 17 sturmvogel 2022-02-02 15:51:13 CET
Morgan i agree completely on that part with cheese! This step was introduced by Paul at the now archived "Google Talk" wiki.

I will remove the commands as it makes the wiki page more complicated as it is already and take your recommendation:
"Please check that your camera is working using any simple webcam application like cheese, kamerka, kamoso, luvcview, webcamoid, wmwebcam, wxcam.  You can find them among our packaged programs."
Comment 18 Morgan Leijström 2022-02-02 15:53:32 CET
:)

Further comments

§ Add note in top of appendix that this script is not needed when you use dnf, recommended method above (link)

§ Regarding "/bin/sudo dnf update": it will update the whole system, user may not want that. (may prefer urpmi & co)  Also it will not first refresh repo.  See my example in comment 13 (not tested)
Comment 19 Paul Blackburn 2022-02-02 16:17:38 CET
Hello, I wrote the original wiki page for installing Skype in Mageia.

I tried to keep things simple with what worked for me.

Over time, it has become apparent that the Skype RPM has had changes that now require other pre-requisites in place.

It is clear to me that simply downloading the RPM and trying to fix things up for it to work is a bit too clunky and crude.

I thought about this a lot and I have a more elegant urpmi solution in mind.

I do not use DNF and an quite happy working with urpmi.
Personally, I think it is rather confusing using two different packages managers on a single system: how are rpm details aver going to be kept in sync between urpmi and dnf?

Anyway, I would like to propose that whoever likes to use DNF might write up a DNF install of Skype wiki page (or perhaps appendix?).

I am going to update the urpmi method and wiki page for the solution I have in mind.
Comment 20 sturmvogel 2022-02-02 16:21:17 CET
Add note at top of appendix: Done

Changed and tested command for upgrade to "/bin/sudo dnf upgrade --refresh skypeforlinux"


(Sidenote: The more i work with dnf the more i like urpmi :) )
Comment 21 sturmvogel 2022-02-02 16:25:16 CET
IMHO it makes absolut no sense to have two separate wikis for one program only because you are able to install it whith two commands. It's tru that you cann install ALL Mageia packages with dnf or urpmi and mix it. No probs there.

The external Skype package is an exception because Microsoft screwed up to provide a correct repository.

So please, before you create a new page have a look at this draw:
https://wiki.mageia.org/en/User:Sturmvogel/scrapbook_2
Comment 22 Morgan Leijström 2022-02-02 17:26:56 CET
This solution with dnf is elegant.

Some users do use dnf only (after system install)

But most use urpmi

So i think it is good to have both alternatives, especially if urpmi method and description could get substantially simplified.

There are potential screw ups using both urpmi & dnf. The orphans issue is debated, but also consider user need to have same repos configured and updated, i.e 32 bit or not on 64 bit systems, tainted or not, backports or not, testing repos...

Then there is Flatpak.  We could just mention it and point to our Flatpak page.  The good thing in this case is that it is probably the easiest (but i have not tested if it works), and also provide some sandboxing.
Comment 23 Nikolay Sabelnikov 2022-02-02 17:45:50 CET
It is better not to use any blob on the likeness of flatpak.
Comment 24 Morgan Leijström 2022-02-02 17:59:45 CET
There are reasons to avoid flatpak, like total install is relatively big especially if only a few programs use it.  Other may be desktop integration and performance.  But some like me find executing an externally designed rpm:s scripts as root is a tad adventorous.
Comment 25 Nikolay Sabelnikov 2022-02-02 18:07:34 CET
Можно спокойно свою систему превратить в тыкву.(In reply to Morgan Leijström from comment #24)
> Есть причины избегать flatpak, например, общая установка относительно
> велика, особенно если ее используют всего несколько программ. Другими могут
> быть интеграция с рабочим столом и производительность. Но некоторые, такие
> как я, считают, что выполнение сценариев rpm:s, разработанных извне, как
> root, немного авантюрно.

Not that it's adventurous, but most likely you'll turn the system into a pumpkin faster than you'll get something useful.
Comment 26 Lewis Smith 2022-02-02 22:17:41 CET
Gosh, what a lot of activity!

First, big thanks to sturmvogel for his new Wiki page.
I was pleased to see Paul popping up here.

(In reply to sturmvogel from comment #21)
> IMHO it makes absolut no sense to have two separate wikis for one program
This is all I can comment on. I agree entirely: unless the page would be too big (they can be), PLEASE agree on just ONE which covers both methods, DNF & URPMI.
OTOH if this got too heavy, ideally create 1 page called 'Skype via URPMI' with cross-links to the other 'Skype via DNF'. Marja is the expert on changing a page title, not normally possible.

Your new work can be easily integrated (Ctrl/C, Ctrl/V !) into the revamped more comprehensive wiki page. I am willing to do any cosmetic tidying if wanted.

Paul:
> I have a more elegant urpmi solution in mind
> I am going to update the urpmi method and wiki page
> for the solution I have in mind
Good.
Morgan:
> So i think it is good to have both alternatives, especially if
> urpmi method and description could get substantially simplified.
Agree.

> It's tru that
> you cann install ALL Mageia packages with dnf or urpmi and mix it. No probs
> there.
This, in ignorance, looks dicey to me: mixing rpmdrake & DNF. But if it really does not matter - so much the better, & good to know.

CC: (none) => lewyssmith

Comment 27 Dave Hodgins 2022-02-02 22:39:05 CET
People who want to use dnf should switch to using it and only it as soon after
installation as possible.

Mixing can cause problems with both urpmi and dnf due to orphan handling.

CC: (none) => davidwhodgins

Comment 28 Nikolay Sabelnikov 2022-02-03 13:29:12 CET
(In reply to sturmvogel from comment #15)
> I have an additional draw for the Skype wiki. 
> https://wiki.mageia.org/en/User:Sturmvogel/scrapbook_2
> 
> The urpmi part is for experienced users (the script will fail if you don't
> install it in manual mode as described.
> 
> And we have the new dnf way described.
> 
> As the original wiki from Paul was a mix between su - and sudo (script needs
> sudo but all other commands used su -) i changed all commands at the new
> wiki page to sudo. So there is no mix anymore and Pauls script can still be
> used by semi experinced users (experienced users should know how to use su -
> or sudo anyway...).

you can shorten the command to dnf --ref up or dup
Comment 29 Nikolay Sabelnikov 2022-02-03 13:30:10 CET
I have already tried so, updates very well.
Comment 30 sturmvogel 2022-02-03 14:34:32 CET
As this page should also be intended for beginners, it is always good to use complete commands so that they know what this command is doing.
Lewis Smith 2022-02-03 21:19:35 CET

CC: lewyssmith => (none)

Comment 31 Lewis Smith 2022-02-04 09:49:57 CET
@sturmvogel, @Paul

Just to remind you that when you have broadly adjusted the wiki page(s) to your satisfaction, whether as 1 or 2, please close this bug - why not 'resolved'?
No need to await any final 'tuning' of the result. We cannot have open bugs for every wiki page change.
If I can help, ask me directly (not on this bug).
Comment 32 Paul Blackburn 2022-02-04 14:32:47 CET
IMHO, it is a bit odd to run a bug report for requesting changes to a wiki page.

Normally there would be discussion between users and the wiki page author or perhaps on a Mageia Forum.

Considering how much wiki we have that could be a huge number of opened bugs for each and every update to be considered.

Also, what is the criteria for "fixing" a wiki update bug? When does it close?
In my experience, wiki pages are continually being updated and refined.


I think bugzilla is not quite appropriate for requesting wiki updates.
So, what do you think?
Comment 33 sturmvogel 2022-02-04 15:10:32 CET
If you read this bug closely you will see that the topic was changed later by Morgan, because the original description/topic was unclear/misleading. We figured out that there is no real Mageia package problem. The "problem" can be solved by updating the wiki to a modern installation method (DNF) to work around a badly packaged Microsoft rpm.
Comment 34 sturmvogel 2022-02-04 15:13:23 CET
And most of the guys that are active here on Bugzilla don't show up in the English forum. Mailingliste are IMHO also a bad solution to discuss a problem in depth. That's why I was happy to see so much comments her in Bugzilla. But close this report if needed.
Comment 35 sturmvogel 2022-02-04 15:17:07 CET
And my last two cents: There seems to be no active wiki page maintainers anymore, or nobody has time to do something. You can look into doc ML. I'm still awaiting some useful feedback for this topics there....
Comment 36 Morgan Leijström 2022-02-04 16:20:05 CET
I think this works well.

Paul have valid points but as sturmvogel explained it transformed.

But yes not a bug.

For wiki issues I guess best asignee team is documentation team?

Assignee: bugsquad => doc-bugs

Comment 37 Dave Hodgins 2022-02-04 18:35:36 CET
A thread on the doc-discuss ml would be the most appropriate way to handle
wiki page changes.