LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2021, 11:26 AM   #7366
arcctgx
Member
 
Registered: Mar 2006
Location: EU
Distribution: Slackware, Gentoo
Posts: 58

Rep: Reputation: 23

Quote:
Originally Posted by Ser Olmy View Post
It looks to me like the Terminus font incorrectly uses the italic variant of some Cyrillic characters. See the table at the bottom of this paragraph of the Wikipedia article.
I spoke to an Ukrainian colleague about this today. His comment was that the variants used by Terminus are "handwritten" variants. This is also mentioned in your Wikipedia link.

So Terminus enables these alternative glyphs by default for "de", "i" and "j" letters. It also provides such glyph for letter "ge", but it's not enabled by default. I don't know the reason. But it seems to me that it would be a good idea to apply the patches I mentioned in my previous post, so that the normal glyphs are used consistently.

Last edited by arcctgx; 04-13-2021 at 01:39 PM.
 
Old 04-13-2021, 11:34 AM   #7367
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,061

Rep: Reputation: Disabled
Quote:
Originally Posted by drgibbon View Post
I don't know what the state of play with the installer is, but it would be nice to have encryption support out of the box for Slack 15. I haven't tried it, but I believe the Slint installer has a bunch of new features that could be worth importing?
An extensive documentation about the new Slint installer is provided here. The stuff used to build the installation ISO is there. Some caveats:
  • As set up in Slint, full encryption with no LVM uses GRUB for unlocking the drive and puts a LUKS key in the initrd (the initial one and the one built for each new kernel).
  • More generally some modifications in the installed system (mostly in scripts) are necessary to bring the new features provided in Auto mode, running 'auto'.
  • I do intend to port some of these features in the Manual mode, running 'setup', but this is not in top of my TODO list.
I won't go into the gory details here, but if there is an interest to bring some of the listed features to Slackware I am available, by email, text chat via IRC (server irc.freenode.net, channel #slint) and voice chat via mumble (server slint.fr, default port number).

PS I suggest to first install Slint in Auto mode in a Qemu VM to assess the new features of the installer. It takes less than 15 minutes with a decent hardware, needs 2G of RAM and a 30G virtual hard disk.

Last edited by Didier Spaier; 04-13-2021 at 11:37 AM.
 
2 members found this post helpful.
Old 04-13-2021, 12:35 PM   #7368
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,217

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Quote:
Originally Posted by LuckyCyborg View Post
And there is also the stand-alone XWayland 21.1.1 server, with the same CVE fix and tons of other features for Wayland - compared with the monolithic Xorg:

https://lists.freedesktop.org/archiv...il/060679.html

https://xorg.freedesktop.org/archive...-21.1.1.tar.xz
https://xorg.freedesktop.org/archive...1.1.tar.xz.sig

Already built it, and it runs exceptionally fine with Wayland/Plasma5 of -current.
Same here
 
3 members found this post helpful.
Old 04-13-2021, 11:18 PM   #7369
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
Quote:
Originally Posted by franzen View Post
This will add way to much fonts with strange font effects in various apps.
See https://www.linuxquestions.org/quest...ts-4175693179/ for building lilypond with the Tex Gyre fonts.
Do you mean in the font chooser widgets? At least half of the entries in there already are for non-Latin characters, and I just scroll past them. After enabling 09-texlive.conf, I get a bunch of new entries for Latin Modern and TeX Gyre variants, and just a few others. Let me know if you meant something else.
 
Old 04-14-2021, 01:49 AM   #7370
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by elyk View Post
Do you mean in the font chooser widgets? At least half of the entries in there already are for non-Latin characters, and I just scroll past them. After enabling 09-texlive.conf, I get a bunch of new entries for Latin Modern and TeX Gyre variants, and just a few others. Let me know if you meant something else.
If i remember right, some default fonts changed here and there, so this might not be what the usual user wants to have. conf.avail is there, so anybody may enable it easily. It's not necessary to build lilypond.
 
Old 04-14-2021, 03:26 AM   #7371
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by arcctgx View Post
So Terminus enables these alternative glyphs by default for "de", "i" and "j" letters. It also provides such glyph for letter "ge", but it's not enabled by default. I don't know the reason. But it seems to me that it would be a good idea to apply the patches I mentioned in my previous post, so that the normal glyphs are used consistently.
They are already normal. But suggested by these patches glyphs are harder to read on small resolutions (8x8, 8x14, 8x16).
As for me that it would be a bad idea to apply the patches mentioned in your previous post for all users of Terminus. My native language is Russian.
 
Old 04-14-2021, 04:45 AM   #7372
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
Quote:
Originally Posted by bormant View Post
They are already normal. But suggested by these patches glyphs are harder to read on small resolutions (8x8, 8x14, 8x16).
That's a very good argument, and would probably explain why these glyphs were chosen in the first place.

But could you confirm whether or not these glyphs generally belong in italic and cursive scripts? And if so, do they not look slightly out of place when they appear among upright characters?
 
Old 04-14-2021, 05:12 AM   #7373
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,221

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
Quote:
Originally Posted by Ressy View Post
When you do, be interesting to know what model UPS too and if its the bcmxcp_usb driver.
Finally got around to installing and testing, no problems here on -current with an Eaton 5E650iUSB and usbhid-ups driver (apart from the annoying need to boot with "usbhid.quirks=0x0463:0xffff:0x08").

Last edited by drgibbon; 04-14-2021 at 05:14 AM.
 
Old 04-14-2021, 06:48 AM   #7374
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by Ser Olmy View Post
But could you confirm whether or not these glyphs generally belong in italic and cursive scripts?
Yes for "i" and "j"; "de" usually uses glyph with up-to-left curve for italic and with lower loop for handwritten.
Quote:
Originally Posted by Ser Olmy View Post
And if so, do they not look slightly out of place when they appear among upright characters?
Don't think so. In any case rebuilding this font package with or without cosmetic patches is not rocket science.
 
Old 04-14-2021, 03:10 PM   #7375
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,024

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
Quote:
Originally Posted by ZhaoLin1457 View Post
Please consider adding this small daemon supervisor developed by @raforg for a proper handing of the PipeWire daemons.

https://github.com/raforg/daemon

The latest version 0.8 added an unique support for interacting with elogind and auto-quitting on user logout, at our feature request accepted by this friendly developer.

https://github.com/raforg/daemon/releases/tag/v0.8

I can say that this elogind integration was added specially for Slackware and developed under Debian and its systemd(-logind) then this is a supplementary guarantee that the logind API is fully respected, until it works similarly under systemd, but of course there is no need for this feature.

This feature of auto-quitting on user logout is particularly useful for running programs which are developed as "user target" daemons for systemd, like are the three PipeWire daemons. But the daemon itself is a program developed since 12 years, for multiple operating systems, and it could be generally useful to run system services which has no ways to daemonize themselves.

For example, it can help to create a complete rc.d script/service (with start/restart/stop/status) for xBrowserSync, which is a NodeJS based server.

Also, please note that this daemon supervisor has a really small footprint, and it could be packaged in a 100KB package, which installs a 200KB program (the daemon itself), a man file and a configuration file.

I should also note that I use this daemon supervisor with great success since its elogind integration development started, as I described also in a dedicated thread, where I described also a packaging approach:

https://www.linuxquestions.org/quest...ed-4175691414/

In other hand, please consider to add on the PipeWire package the following three sample files for the global XDG autostart.

/etc/xdg/autostart/pipewire.desktop-sample
Code:
[Desktop Entry]
Version=1.0
Name=PipeWire Media System
Comment=Start the PipeWire Media System
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire /usr/bin/pipewire
Terminal=false
Type=Application
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1
/etc/xdg/autostart/pipewire-media-session.desktop-sample
Code:
[Desktop Entry]
Version=1.0
Name=PipeWire Media Session
Comment=Start the PipeWire Media Session
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire-media-session /usr/bin/pipewire-media-session
Terminal=false
Type=Application
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1
/etc/xdg/autostart/pipewire-pulse.desktop-sample
Code:
Desktop Entry]
Version=1.0
Name=PipeWire Pulse
Comment=Start the PipeWire Pulse
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire-pulse /usr/bin/pipewire-pulse
Terminal=false
Type=Application
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1
The first two files, IF renamed with a proper .desktop extension, will start the main daemons of PipeWire, and this will enable the standard support from PipeWire, as expected by Wayland/Plasma5 and various features of it will start working, for example the taskbar thumbnails.

The third file, IF renamed with a proper .desktop extension, will start the Pulse Audio replacement daemon (just like Fedora intends to do), and this will need also the disabling of PA server by the user, by renaming the file /etc/xdg/autostart/pulseaudio.desktop and changing on /etc/pulse/client.conf
Code:
autospawn = no
So, probably somewhere should be added those instructions of how to disable the PulseAudio server while using the PipeWire Pulse-compat server.

However, please note that I do NOT ask for enabling the PipeWire daemons by default, BUT about adding a consistent infrastructure at user decision whether s/he would enable those PipeWire daemons, considering our past experiences with them.

So, I would say that my proposal is about transforming the Slackware-current on being "PipeWire ready", to facilitate for its users to experiment with the PipeWire features, and definitely is NOT about requesting a fully switching to PipeWire, like Fedora intends to do.
Please consider this proposal!

It's only about adding a really small program which could be useful in many ways and about adding just three sample files!

And this little program adds an unique feature to Slackware, which no other non-systemd distribution has yet: ability to handle properly the "user target" daemons made for systemd.

It's a feature added on this daemon supervisor by @raforg specially for Slackware and we can be the first ones having this feature. It could be something unique compared with other distributions.

Last edited by ZhaoLin1457; 04-14-2021 at 03:53 PM.
 
3 members found this post helpful.
Old 04-14-2021, 03:27 PM   #7376
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,024

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
Quote:
Originally Posted by LuckyCyborg View Post
I have finally find out how openSUSE do the setup of Wayland/Plasma5 and I think that I have a proposal of big importance for our own Wayland/Plasma5.

As a preamble, I noticed since long time that on opeSUSE the "standard" sessions of Wayland/Plasma5 are much more stable and some applications uses XCB (so, XWayland) backend and others the native Wayland backend.

For example, on openSUSE, will use the XCB backend applications like: Konsole, KWrite, Kate, KMail, Dolphin, Krusader or even SMPlayer, while another ones somehow prefers the native Wayland.

The openSUSE has also another Wayland session: "fullwayland" which is visible less stable and where everything uses only the Wayland backend, and it behaves roughly similar with what Slackware do today.

I lurked on the sources of openSUSE since really long time - since the Plasma5 was still in KTown, trying to understand how they do that "graphical backend auto-switching" and why the "standard" Wayland/Plasma5 sessions are much stable.

So, finally I managed to emulate this behavior on Slackware.

Well, looks like the Plasma5 applications are capable to choose alone between the XCB and native Wayland backend, IF the Qt5 is built in a particular way:
Code:
--- qt5.SlackBuild.orig	2021-03-27 21:20:06.135958397 +0200
+++ qt5.SlackBuild	2021-04-13 01:09:17.279033081 +0300
@@ -196,10 +196,12 @@
   -opengl \
   -openssl-linked \
   -optimized-qmake \
-  -qpa xcb \
+  -qpa "xcb;wayland" \
   -qt-harfbuzz \
   -verbose \
   -xcb \
+  -egl \
+  -eglfs \
   -nomake examples \
   -nomake tests \
   -no-mimetype-database \
This is a patch for the current qt5.SlackBuild which generates this particular setup. Essentially they literally specify "-egl" and "-eglfs" BUT I think the real trick is that they have "xcb;wayland" instead of "xcb" for "-qpa"

Aditionally, they patches the plasma-workspace
Code:
From 3deadbfcdf776eb0c994bb4d719e601160943bfa Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Wed, 28 Aug 2019 15:09:49 +0200
Subject: [PATCH] Set GTK_BACKEND=x11 in a wayland session

Works around missing window decorations and broken config file reading
---
 startkde/startplasma-waylandsession.cpp | 5 +++++
 1 file changed, 5 insertions(+)

Index: plasma-workspace-5.15.80git.20210121T134153~83e5f9011/startkde/startplasma-waylandsession.cpp
===================================================================
--- plasma-workspace-5.15.80git.20210121T134153~83e5f9011.orig/startkde/startplasma-waylandsession.cpp	2021-01-21 14:41:53.000000000 +0100
+++ plasma-workspace-5.15.80git.20210121T134153~83e5f9011/startkde/startplasma-waylandsession.cpp	2021-01-22 08:39:19.900539408 +0100
@@ -47,6 +47,11 @@
     out << "startplasma-waylandsession: Starting up...";
 
     if (qEnvironmentVariableIsSet("DISPLAY")) {
+        // GTK3 uses the wayland backend by default, but its implementation is not correct
+        // enough to work well here. Window decorations are missing, for instance.
+        if (!qEnvironmentVariableIsSet("GDK_BACKEND")) {
+            qputenv("GDK_BACKEND", "x11");
+        }
         setupX11();
     } else {
         qWarning() << "running kwin without Xwayland support";
This small patch is for fixing some eventual issues of GTK applications on Wayland.

And, finally, IF we want to have also the "full Wayland" sessions like openSUSE - it's specially useful to have a comparation term to what we have without this particular setup.
Code:
--- plasma-workspace.post-install.orig	2020-10-30 03:30:21.927833013 +0200
+++ plasma-workspace.post-install	2021-04-13 14:17:55.664952637 +0300
@@ -49,3 +49,9 @@
   sed -i $PKG/usr/share/xsessions/plasma.desktop \
       -e "s,^Exec=/,Exec=dbus-run-session /,"
 fi
+
+# Install custom "full wayland" session
+pushd $PKG/usr/share/wayland-sessions/
+sed '/^Name/d;s/^Exec=/Exec=env GDK_BACKEND=wayland QT_QPA_PLATFORM=wayland /' plasmawayland.desktop > plasmafullwayland.desktop
+echo 'Name=Plasma (Full Wayland)' >> plasmafullwayland.desktop
+popd
Well, so called "Full Wayland" session is just a session where is forced the Wayland backend, resulting the following execution line.
Code:
Exec=env GDK_BACKEND=wayland QT_QPA_PLATFORM=wayland /usr/lib64/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland
compared with the "standard" session which is run with
Code:
Exec=/usr/lib64/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland
From my experiences, what we do today on Slackware with the Wayland/Plasma5 sessions is equivalent with:
Code:
Exec=env QT_QPA_PLATFORM=wayland /usr/lib64/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland
This is my proposal for -current. Specially the Qt5 rebuilding part is essential, because it's a really laborious endeavor to leave it on the hands of users.

So, they are small changes - they are also insignificant for the X11/Plasma5 sessions, BUT the result is a visible better and more stable Wayland/Plasma5 sessions.

Okay, the visible better and more stable are the "standard" Wayland/Plasma5 sessions, because the Full Wayland ones are just like Slackware has today.

Oh, and really, really please upgrade to the stand-alone XWayland server!

The one included today in Slackware-current acts just like someone runs x11/Plasma5 with a VESA Xorg driver. It's fantastic slow.
I can confirm that the Qt5 rebuilding as proposed by you, associated with the the plasma-workspace patch, indeed results in a quite stable working of the Wayland/Plasma5 sessions and that indeed the Qt5 and KDE applications looks like choosing the graphical backend. Some uses XCB and some uses the native Wayland.

I do not believe that's an accidental behavior, but rather a design made to permit a seamless transition from X11 to Wayland of Plasma5 and its applications.

Unfortunately, looks like right now we force all programs to use a Wayland backend on the Wayland/Plasma5 sessions, with negative effects on functionality and stability. I hope this will be fixed.

There I presented my experiences with this rebuilt Qt5 and patched plasma-workspace:

https://www.linuxquestions.org/quest...ml#post6241079

Last edited by ZhaoLin1457; 04-14-2021 at 03:32 PM.
 
5 members found this post helpful.
Old 04-14-2021, 10:24 PM   #7377
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
I am sorry for bringing this up again, but honestly, this would make life much much easier, and the modification is tiny:

Add

Code:
find ./ -type f -exec setfattr --name=trusted.slackware_v1.makepkg.package_name "--value=${TAR_NAME}" {} +
to line 414 of /sbin/makepkg (just before archiving).

The "trusted" namespace means that only root is going to see (and use) this.

This would make it much easier to find out what is going on in the threads like this: https://www.linuxquestions.org/quest...ps-4175693511/ (/etc/mtab tagged by the package it is coming from). It would be much easier to find when some files are missed by updates, or whether there are stray files at the file system.

"-exec {} +" performance penalty is tiny, essentially comes at the same price as two additional "find ." On my machine (2014), it tags 5000 files per second.

Backwards compatibility is ultimate: if xattrs are unsupported, they are ignored. And you can just never use them at all.

Please, consider doing this.

Last edited by Lockywolf; 04-14-2021 at 10:47 PM.
 
7 members found this post helpful.
Old 04-15-2021, 06:39 AM   #7378
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by LuckyCyborg View Post
I have finally find out how openSUSE do the setup of Wayland/Plasma5 and I think that I have a proposal of big importance for our own Wayland/Plasma5.

As a preamble, I noticed since long time that on opeSUSE the "standard" sessions of Wayland/Plasma5 are much more stable and some applications uses XCB (so, XWayland) backend and others the native Wayland backend.

For example, on openSUSE, will use the XCB backend applications like: Konsole, KWrite, Kate, KMail, Dolphin, Krusader or even SMPlayer, while another ones somehow prefers the native Wayland.

The openSUSE has also another Wayland session: "fullwayland" which is visible less stable and where everything uses only the Wayland backend, and it behaves roughly similar with what Slackware do today.

...

So, they are small changes - they are also insignificant for the X11/Plasma5 sessions, BUT the result is a visible better and more stable Wayland/Plasma5 sessions.

Okay, the visible better and more stable are the "standard" Wayland/Plasma5 sessions, because the Full Wayland ones are just like Slackware has today.
You've probably already read this but there was a discussion
Please remove the xwayland ("Wayland") and wayland ("Full Wayland") sessions as we know them
about this openSUSE approach. I didn't follow it since i don't use wayland but i think it caused problems for many programs.
 
1 members found this post helpful.
Old 04-15-2021, 07:17 AM   #7379
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Quote:
Originally Posted by imitheos View Post
You've probably already read this but there was a discussion
Please remove the xwayland ("Wayland") and wayland ("Full Wayland") sessions as we know them
about this openSUSE approach. I didn't follow it since i don't use wayland but i think it caused problems for many programs.
Look, before to post this proposal, I do not just read articles on Internet, hopping Slackware to test the things instead for mine...

Contrary, I struggled since Plasma5 was in KTown with the Wayland/Plasma5 and I did myself those experiments, and I seen on bare metal how those things behaves.

And from my experience, the way we setup Wayland/Plasma5 today causes problems for many programs. AND, at least on Slackware, this graphical backend auto-selection does NOT happens, contrary of what that article quoted by you says.

On the Wayland/Plasma5 of ours, from Slackware-current, any Qt5 and KDE software uses the native Wayland backend - I seen non one to chose the XCB unless it is forced to do this. And I seen with my own eyes, that this causes crashes and misbehavior, up to not working, as SMPlayer cannot play something.

However, the setup which I proposed is way more stable. That was physically tested on bare metal by me and also the applications CHOOSE their graphical backend.

For example, Konsole or Dolphin uses XCB and KInfoCenter uses Wayland - on same Wayland/Plasma5 session.

Last edited by LuckyCyborg; 04-15-2021 at 08:16 AM.
 
2 members found this post helpful.
Old 04-15-2021, 07:21 AM   #7380
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by LuckyCyborg View Post
Look, before to post this proposal, I do not just read articles on Internet, hopping Slackware to test the things instead for mine...

However, the setup which I proposed is way more stable. That was physically tested on bare metal by mine.
That is why i mentioned that you have probably already read it. I didn't imply you didn't do your research and that you posted your suggestion out of the blue. I am sorry if my post appeared to do so but i didn't mean any offense.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration