bookmark_borderKDE Plasma 5.27.0 on Fedora (via our COPR)

After the announcement upstream, Fedora’s @kde-sig follows up by making KDE Plasma 5.27.0 available on Fedora 36 and Fedora 37.

There’s a catch though: you will have to use our COPR.

The regular update on Fedora repositories will follow shortly, I will keep you all posted.

Feel free to join us at our Matrix room!.

bookmark_borderClipboard tricks

Clearing the clipboard every 15 minutes

A few days ago, a member of our matrix room shared with us a small systemd timer and systemd unit to clear the clipboard every 15 minutes.

You can find the source code here. (credits to @cipherseven)

Quick instructions:

  • Create .config/systemd/user/
mkdir -p ~/.config/systemd/user
  • Create clipclear.timer with the contents:
[Unit]
Description=Run clipclear service every 15 mins

[Timer]
Unit=clipclear.service
OnCalendar=*:0/15

[Install]
WantedBy=timers.target
  • Create clipclear.service with the contents:
[Unit]
Description=run clear clipboard command

[Service]
Type=oneshot
ExecStart=/usr/lib64/qt5/bin/qdbus org.kde.klipper /klipper org.kde.klipper.klipper.clearClipboardHistory 

[Install]
WantedBy=graphical.target
  • Enable the timer: systemctl --user enable --now clipclear.timer

Now our clipboard will be cleared on the clock at 0, 15, 30 and 45 minutes 🙂

pbcopy

Mac users are probably used to having this little helper pbcopy so I decided to create my own.

  • Create /usr/local/bin/pbcopy with the contents:
#!/usr/bin/env python
"""Copy input to clipboard."""

import os
import subprocess

if os.getenv("WAYLAND_DISPLAY"):
    with subprocess.Popen(['wl-copy']) as proc:
        proc.wait()
else:
    with subprocess.Popen(['xsel', '--clipboard', '--input']) as proc:
        proc.wait()
  • Execute permissions: chmod a+rx /usr/local/bin/pbcopy

NOTE: it uses two little programs: wl-copy on wayland and xsel on X11

NOTE: I created it in python only because I am forcing myself to write pyton code to become more proficient on it

tmux vi style copy/paste

If you are a tmux and vi/nvim user, perhaps you will find this trick useful. Add this to your .tmux.conf file:

# Enable vi on copy-mode
set -g mode-keys vi

# vi style copy/paste
bind p paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle \
                             \; send-keys -X begin-selection
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'pbcopy'
bind-key -T copy-mode-vi \
         MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'pbcopy'

And now you can use vi copy/paste style on your tmux and get it both into the tmux buffer and into the clipboard!

selection by columns vi style 🙂

bookmark_borderKDE Gear 22.12.2 available on Fedora 37

After the announcement upstream, Fedora’s @kde-sig follows up by making KDE Gear 22.12.2 available on Fedora 37.

As per Fedora’s policy, the software will first land on updates-testing and after receiving feedback and karma it will land on the updates repository.

If you want to help, make sure to follow the instructions on the update. You only need to run:

sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-17c31eabf7

Feel free to join us at our Matrix room!.

bookmark_borderIntroducing @kdesig/kde-beta COPR

We at the @kde-sig are happy to announce we have created a COPR repository which currently contains the KDE Plasma 5.27.0 Beta (aka: 5.26.90).

We intend to use this COPR repository in the future for KDE beta releases so that those Fedora users who want to help the KDE Community can test and report bugs to the KDE developers.

Enabling this COPR repository is very simple:

sudo dnf copr enable @kdesig/kde-beta
sudo dnf update

Your system should now have the Plasma Beta:

Plasma 5.26.90!

For our users using Kinoite, you should check out this blog post by @siosm

That’s all for now.

Feel free to join us at our Matrix room!.

bookmark_borderTizen SDK on Fedora 26

I recently bought a Samsung Gear S3 which uses Tizen as its operating system.

As I have been trying to improve my development skills, I would also like to develop some app for the watch ( my first thought was something related to Telegram ).

Let’s start with installing the SDK!

Get the SDK from here. Samsung doesn’t officially support anything other than Windows, Mac OS X or Ubuntu but I thought I could give a try to installing it on my Fedora Workstation.

Once I downloaded the installer and tried to run it:

chmod +x web-ide_Tizen_Studio_1.2_usa_ubuntu-64.bin  
./web-ide_Tizen_Studio_1.2_usa_ubuntu-64.bin

There is apparently something not right:
run installer

So some dependencies are missing? let’s install them:

dnf install libgnome qemu-user expect  

install dependencies

Triggering again the installer brought me to this:
OpenJDK not supported

If you follow the link suggested:

java jdk webpage.

Trying to download the JDK will lead you to:

sdk rpm download

Download the 64 bits RPM (after agreeing to the license, of course…)

Now it’s time to install it:

dnf install jdk-8u144-linux-x64.rpm  

oracle jdk installation

Now, to make the Oracle one the prefered JVM:

alternatives --config java  
alternatives --config javac  
alternatives --config javaws  

java alternatives

Now time to check everything is as we want:

java -version  
javac -version  

java version

Now, running the installer again:

./web-ide_Tizen_Studio_1.2_usa_ubuntu-64.bin

First thing it will ask you is to accept the Software License Agreement:
tizen license

Choose where to install the SDK:
tizen sdk location
And… et voilà:
tizen finish installation

Once the installation has finished, it will by default launch the package manager:
tizen package installation
Some of the packages, like the emulator, will need extra permissions:
tizen package sudo
Here is the list of the packages I installed:
tizen packages installed

Everything is ready…:
tizen first launch
Oh oh… seems that we need to fix something manually…

Quick investigation lead me to finding out there is a tool named sdb and apparently is missing a library: libcrypto.so.1.0.0:
sdb missing library
A quick research on-line lead me here. I don’t really like the solution of installing the Ubuntu library system wide, so I decided to do a small workaround:

mkdir -p /home/marc/Code/SDKs/tizen/ubuntu_libraries  

And I copied from this package the files libcrypto.so.1.0.0 and libssl.so.1.0.0 into that folder.
Turn to create a file in /home/marc/.local/.bin/tizen with this content:

#!/usr/bin/env bash                                                                                        
export LD_LIBRARY_PATH=/home/marc/Code/SDKs/tizen/ubuntu_libraries  
/home/marc/Code/SDKs/tizen/tizen-studio/ide/TizenStudio.sh

and

chmod +x /home/marc/.local/.bin/tizen  

Now I simply need to type tizen and my Tizen Studio will launch:
tizen studio running

WARNING: if you launch the SDK from the menus this will not work. The menu entry will still launch /home/marc/Code/SDKs/tizen/tizen-studio/ide/TizenStudio.sh. You can either modify the menu entry or start the IDE via my launcher

Happy hacking!!!