[SOLVED] slackpkg+ and AlienBob's latest instructions for KDE-5_20.06
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.
After upgrading to KDE 5_20.06, don't forget the last part in the README:
Quote:
- Move the new X session files into place which SDDM uses to start your
login-session, but first check that you won't accidentally overwrite
any of your customizations:
# mv /usr/share/sddm/scripts/Xsession.new /usr/share/sddm/scripts/Xsession
# mv /usr/share/sddm/scripts/Xsetup.new /usr/share/sddm/scripts/Xsetup
Slackpkg and Slackpkgplus can get a little tricky with the blacklist as well. If you are using slackpkgplus for ktown then you shouldn't have 'kde' listed in the blacklist because it will skip the kde folder of ktown. However, if you comment out ktown from the slackpkgplus.conf file then slackpkg will try to install the kde4 packages, because it no longer sees ktown taking priority there.
In short, you could comment out ktown, blacklist kde, upgrade slackware64, unblacklist kde, uncomment ktown, then upgrade ktown. At least that's how I tackled it. Note that you should run 'slackpkg update' after editing slackpkgplus.conf, or it will complain at you.
Also don't forget to run 'slackpkg install ktown' in the process to pick up the new packages that Eric added. Otherwise you will miss out on elogind and a few other packages.
However, if you comment out ktown from the slackpkgplus.conf file then slackpkg will try to install the kde4 packages, because it no longer sees ktown taking priority there.
this is not true with
Code:
slackpkg upgrade-all
unless you already have kde4. But in the original post aikempshall said it was updating ktown (which means no kde4 installed)
upgrade-all only upgrades already installed packages. this is the reason why you also have to run:
Actually what I wrote out wasn't 100% accurate. I looked back at how I upgraded yesterday and my approach was to disable slackpkgplus by setting SLACKPKGPLUS=off, then I upgraded slackware with normal slackpkg, with kde blacklisted, then re-enabled slackpkgplus and went on with the ktown upgrade. In that process slackpkg upgrade-all offered to put kde4 back so I had to temporarily blacklist it while slackpkgplus was off. Guess I should have looked at my configs before posting the other response.
If you already have KDE-5_20.05, the steps for upgrading to KDE-5_20.06 with slackpkg+ are pretty simple if you read carefully the README.
I upgraded as follows:
Code:
init 3
# log in as root
slackpkg update
slackpkg remove ConsoleKit2
# Install new ktown packages
slackpkg install elogind autoconf-archive kwayland-server plasma-wayland-protocols
# Upgrade all packages for both Slackware and ktown repositories
# Check manually that dbus and polkit packages will be upgraded with the ktown packages
slackpkg upgrade-all
# Move the new X session files into place which SDDM uses to start your
# login-session, but first check that you won't accidentally overwrite
# any of your customizations:
mv /usr/share/sddm/scripts/Xsession.new /usr/share/sddm/scripts/Xsession
mv /usr/share/sddm/scripts/Xsetup.new /usr/share/sddm/scripts/Xsetup
Should the upgrade also included a new kernel, don't forget to do the usual post-upgrade kernel configuration (create initrd.gz, edit /etc/lilo.conf, run lilo)
Last edited by gegechris99; 06-20-2020 at 09:58 AM.
Reason: typo
Unfortunately when I was about to embark on the 2nd step I noticed that KDE4 was going to be reinstalled. What have I done wrong.
The highlighted above, specifically slackware64 is why it tried to do KDE4. You should not use multilib this why either.
The README says to remove consolekit2 first.
Based on your post and not knowing the update state of your system. If I was to to this upgrade using slackpkg I would do it this way.
First make sure I am at runlevel 3. If that is what I boot to, then just log out of Plasma switch to root and proceed. If runlevel 4 what the system boots to. Then Ctrl-Alt-F1, login as root, type "init 3" and proceed.
slackpkg update
slackpkg remove consolekit2
slackpkg install multilib #<< Doesn't hurt, if no new packages, nothing will happen.
slackpkg install ktown #<< There are new packages in this ktown.
slackpkg upgrade-all #<< this upgrades everything.
slackpkg clean-system #<< never hurts.
Then complete the other steps outlined in the README
How I will do it.
I mirror the ktown repository locally. This gives me total control over whether or not it gets updated. For example right now I have not refreshed my local mirror, so the updated ktown is not available to slackpkg so running slackpkg will not do anything to upgrade ktown. Note: The README has instruction for creating a local copy.
I have already upgraded to the latest slackware64-current (Fri Jun 19 19:59:04 UTC 2020)
I am refreshing my ktown mirror now as I type this to tackle this upgrade tomorrow morning.
Tomorrow I will:
slackpkg update #<< include the updated ktown mirror
slackpkg remove ConsoleKit2
Next I will upgrade to KDE 5_20.06 using the steps outlined in README
I use this in a script (edited for brevity).
Code:
cd /home/non-slack/ktown/current/latest/
upgradepkg --reinstall --install-new x86_64/deps/*.t?z
upgradepkg --reinstall --install-new x86_64/kde/*/*.t?z
Then complete these steps as outlined in the README
Code:
- Move the new X session files into place which SDDM uses to start your
login-session, but first check that you won't accidentally overwrite
any of your customizations:
# mv /usr/share/sddm/scripts/Xsession.new /usr/share/sddm/scripts/Xsession
# mv /usr/share/sddm/scripts/Xsetup.new /usr/share/sddm/scripts/Xsetup
Note: The only entries I have in /etc/slackpkg/blacklist are kernel entries.
In my case I will also do the following based on the README:
Add to my lilo.conf:
Code:
# This is needed to run wayland with NVIDEA
append = "nvidia-drm.modeset=1"
Run lilo
Create /etc/profile.d/kwin.sh (and kwin.csh just for gp)
Code:
#!/bin/sh
# KWin needs to use EGLStreams for accelerated graphics support:
export KWIN_DRM_USE_EGL_STREAMS=1
Then reboot.
Log in from runlevel 3 and run "startkwayland"
And see what happens.
Last edited by chrisretusn; 06-20-2020 at 11:48 AM.
I added kde5 to the greylist and then ran slackpkg+. This updated slackware, but left the KDE install alone.
I upgraded kde5 using the upgradepkg --install-new (/path/to/kde5/) route as I've previously found that for some reason, slackpkg+ doesn't always pick up new kde5 files, and there were some very critical ones in this update.
Once I had everything working, I un-greylisted kde5, so everything should upgrade as before now.
A couple of minor things: I've never used wayland before, but since it now appears a s a option, I thought I'd give it a try. everything works except the analogue audio out to my speakers for some reason. It can't even find the analogue out device! It finds the HDMI out, though. Reverting to X restores normal operation.
Also, Dolphin now lists numerically named folders (for example) in the order 1, 10, 11, 2, 3, 4, etc. Never did this before...!
Probably configuration funnies on my part, but I haven't changed anything.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646
Rep:
Quote:
Originally Posted by pchristy
I upgraded kde5 using the upgradepkg --install-new (/path/to/kde5/) route as I've previously found that for some reason, slackpkg+ doesn't always pick up new kde5 files, and there were some very critical ones in this update.
I noticed this as well, but "slackpkg install ktown" presented me the new packages. As far as I can tell it looked complete.
That is the correct way. 'slackpkg install-new' ONLY works on slackware packages.
Slackpkg yes, but not Slackpkg+. I have an old laptop that I use for testing purposes, and as this has an up-to-date install of slackware and plasma5, I used it as a test bed. Slackpkg+ failed to pick up elogind!
I then went back and used the upgradepkg method, and as well as picking up elogind, it picked up a few other things too (didn't note what they were). So when I came to upgrade my main machine, I used the upgradepkg method for kde5, as detailed above, and everything went smoothly.
The only problem I've encountered so far is that "Notifications" try and use the Xfce daemon instead of Plasma. Not experienced that before, but there is another thread hereabouts about that!
I've now got a working system. The only strange bit is that before the login screen I get a keyboard pop up. Have to close it down before I see the userid icons.
I'll reread this thread a number of times to ensure that I understand everything. I will then revert to the system immediately before I embarked on the latest set of changes. I'm upgrading a VirtualBox guest and had taken a clone of the guest before embarking on the upgrade to KDE-5_20.06. Reading the README gave me the impression this upgrade wasn't going to be straigt forward especially as I had a nagging doubt as to whether I understood all intricacies of slackpkg+. Once everything is in place in 15.0 life should be simpler!
The
Code:
slackpkg install ktown
was a bit of an eye opener for me.
Thanks for all your help. I'll mark this as solved once I've reread, understood and successfully put into practice!
Slackpkg yes, but not Slackpkg+. I have an old laptop that I use for testing purposes, and as this has an up-to-date install of slackware and plasma5, I used it as a test bed. Slackpkg+ failed to pick up elogind!
Like I said " 'slackpkg install-new' ONLY works on slackware packages." elogind is part of ktown.
When it comes to a major update to ktown, I never use slackpkg (w/slackpkg+) to upgrade. I use the method outlined in the ktown README file that uses "upgradepkg --install-new --reinstall". I only use slackpkg (w/slackpkg+) on minor updates.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.