Wednesday, February 14, 2018

KUser In Slackware64-current Plasma 5 - KDE 5

One part of systems administration is adding, removing and modifying groups and users. These tasks can be accomplished via a terminal session using the following commands:

Adding a group: groupadd groupname
Adding a user: useradd username
Adding a user to a group: usermod -aG groupname username

More information on how to add, remove and modify groups and users can be found here: https://www.tecmint.com/delete-remove-a-user-account-with-home-directory-in-linux/

In Slackware, I used KUser until KDE 4. KUser allowed me to manage groups and users graphically. KDE 5 does not have KUser installed. I downloaded KUser from Slackware-current, copied three libraries needed by KUser to run (libkabc.so.4.14.38, libkldap.so.4.14.38 and libkresources.so.4.14.38) and created symbolic links. All libraries have to be in /usr/lib64

The dynamic links I created were:

libkabc.so.4 as a symbolic link to libkabc.so.4.14.38
libkabc.so as a symbolic link to libkabc.so.4
libkldap.so.4 as a symbolic link to libkldap.so.4.14.38
libkldap.so as a symbolic link to libkldap.so.4
libkresources.so.4 as a symbolic link to libkresources.so.4.14.38
libkresources.so as a symbolic link to libkresources.so.4

Regards,

F. Bobbio C.

Friday, February 2, 2018

Plasma 5 - KDE5 In Slackware64-current

Technology changes constantly, and as such, we need to adapt. One of those changes, in my field of work, is the Graphical User Interface (GUI). In Linux, my OS of choice, I use KDE. Slackware-current comes with KDE 4.14.3 installed. KDE 5 has been around for a while, though, so I decided to "bite the bullet" and installed on my Slackware-current system, using the instructions on https://slackware.nl/alien-kde/current/latest/README

I took a different approach, since I still consider myself a "novice" in the Linux world, even though I have been using it for quite a while, due to the fact that I am constantly learning something new. The steps I took were:

00) Take a screenshot of your whole screen, especially if you are using specific icons on the "Panel", since you will need to dock those icons after this whole procedure
01) rsync -Hav --exclude=x86 rsync://slackware.nl/mirrors/alien-kde/current/5/ 5/
02) telinit 3 would not work for me, since /etc/inittab was set to id:4:initdefault:
03) Modified /etc/inittab to id:3:initdefault:
04) Rebooted
05) slackpkg remove kde
06) cd to the location of the folder where you "rsynced" 5 in step 01)
07) upgradepkg --reinstall --install-new x86_64/deps/*.t?z
08) upgradepkg --reinstall --install-new x86_64/deps/telepathy/*.t?z
09) upgradepkg --reinstall --install-new x86_64/kde/*/*.t?z
10) find /etc/ -name "*.new"
11) slackpkg new-config
12) Reboot
13) xwmconfig 'xinitrc.plasma' as your desktop session
14) Modify /etc/inittab to id:4:initdefault:
15) startx
16) Dock any icons you may need (see step 00)
17) Change settings for keyboard layout, etc.
18) Enabled multiple monitors (http://conoacum.blogspot.com/2018/02/multiple-monitors-in-slackware-current.html)

Regards,

F. Bobbio C.

Multiple Monitors In Slackware64-current

I use a Toshiba Satellite S55 laptop for personal and sometimes work related tasks. The laptop has an HDMI port which works fine when I plug in an external monitor/LCD TV. At work I sometimes need the extra space and do not have a big TV that I can plug into it at all. I purchased a USB 3.0 Lenovo ThinkPad docking station, which features two DVI ports, which I use with a DVI to VGA converter and a DVI to HDMI converter to two HP w2338h LCDs. Since this docking station is based on the DisplayLink chipset, I downloaded and installed the DisplayLink drivers using alienBOB's excellent wiki for it:
https://docs.slackware.com/howtos:hardware:displaylink
I will not repeat what he already mentions on the wiki, since the instructions are self explanatory and spot-on

I also created a shell script that I use to setup the monitors properly that I run when I am at work, since I do not use the same docking station at home. The proper --output will be displayed when running xrandr with the docking station plugged in. The script is as follows:

xrandr --listproviders
xrandr --setprovideroutputsource 1 0
xrandr --setprovideroutputsource 2 0
xrandr --output DVI-I-1-1 --auto *** Change DVI-I-1-1 to proper output
xrandr --output DVI-I-2-2 --auto *** Change DVI-I-2-2 to proper output
xrandr --output DVI-I-1-1 --pos 1920x0 *** Change DVI-I-1-1 to proper output. This is the center monitor (1920x1080)
xrandr --output DVI-I-2-2 --pos 0x0 *** Change DVI-I-2-2 to proper output. This is the monitor on the left (1920x1080)
xrandr --output eDP1 --pos 3840x312 *** Change eDP1 to proper output. This is the built-in laptop monitor, on the right (1366x768)

Save it to a proper location (monitors.sh), make it executable (chmod +x monitors.sh) and run it whenever you plug in the USB 3.0 docking station (sh monitors.sh)

I have tested this setup on Slackware 14.0, 14,1, 14.2 and Slackware-current, even with KDE5, without any issues

Regards,

F. Bobbio C.