My linux experience

Some linux tips just not to forget.
Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Problem: Need to quickly translate phrase avoiding opening google translate, copy-pasting etc.

I need often to translate a phrase from one language to another. Currently I often need to translate English to German. KDE Klipper is a perfect tool to do it from keyboard quickly, without opening google translate in browser. There is still some delay while requesting a remote server, but it's much quicker the opening a browser tab and doing a number of other copy-paste-click-task-switch tasks.

Translation from to Klipper demo

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

spider skull on backI switch my keyboard layout in my OpenSuse linux via Caps Lock. It's much more convenient then any other key combination. JIC, to make Caps Lock work as Caps Lock I use Shift+Caps Lock.

Suddenly in KDE apps (e.g. system settings or plasma desktop widgets, but not in Firefox or VS code) pressing Caps Lock started to work as Undo (like if I was pressing ctrl+z).

Solution was to edit ~/.config/kdeglobals .

On some reason the undo shortcut looked like

[Shortcuts]
Undo=Ctrl+Z;\s

I removed \s to make it look like

[Shortcuts]
Undo=Ctrl+Z;

Saved and reloaded KDE. It works!

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Disable XDebug for Code Sniffer but enable for CLII scripts I use VS Code for php development. I use XDebug, but out of the box it catches phpcs calls on linting documents, making impossible to use xdebug due to numerios interruptions.

The solution was to disable XDebug globally and enable per virtual host.

Globally it can be disabled in php.ini (or another ini file for php, in my case of OpenSuse I use custom file /etc/php7/conf.d/xdebug.ini) and then enable it in .htaccess for needed hosts or for all of them.

So in my php .ini file I have directives

xdebug.remote_autostart = 1
xdebug.remote_enable = off

And in my .htaccess file I have directive

php_flag xdebug.remote_enable on

This worked till I needed to debug a php command line script with XDebug in my VS Code. The solution was to run php with a proper key like

php -d xdebug.remote_enable=1 script.php

And finally, not to forget a key, I created a shortcut script ~/bin/pd containing code

#!/bin/bash
set -o xtrace
php -d xdebug.remote_enable=1 $@

So to run a CLI script and let XDebug listen to I run command pd script.php

P.S. set -o xtrace line is not needed in general. I use it to debug bash scripts.

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
Multithumb found errors on this page:

There was a problem loading image http://static.xscreenshot.com/small/2017/09/02/12/screen_9f1481d6e69cb5f42a33e41631214653
There was a problem loading image http://static.xscreenshot.com/small/2017/09/02/12/screen_9f1481d6e69cb5f42a33e41631214653

screen_9f1481d6e69cb5f42a33e41631214653My Klipper clipboard manager refused to open on keyboard shortcut (I use Ctrl+`) in LXQT. The problem was, that my LXQT local is in Ukrainian, but shortcut is set in English.

The strange behavior was also because in global shortcut manager, when setting a keyboard shortcut was not possibel. The old ones were working.

After several hour of googling and experiments I have found out the global shortcuts must be selected when my LXQT local and current keyboard input language are the same.

So since my local is Ukrainian, I had to switch to Ukrainian input language and then assign shortcuts.

The shortcuts fire needed actions work with any active input language.

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
Multithumb found errors on this page:

There was a problem loading image http://static.xscreenshot.com/2017/06/05/17/screen_a4ded3298fe6c189cfc4b5e115ee7611
There was a problem loading image http://static.xscreenshot.com/2017/06/05/17/screen_a4ded3298fe6c189cfc4b5e115ee7611
screen_a4ded3298fe6c189cfc4b5e115ee7611
Effective UID is not root (euid=1000 egid=100 uid=1000 gid=100) (rc=-10)
Please try reinstalling VirtualBox.
where: SUPR3HardenedMain what: 2 VERR_PERMISSION_DENIED (-10) - Permission denied.

After each OpenSuse update (I have Leap 42.2 by now) I get the same error with VirtualBox.

Just a note for mysefl to fix it

sudo chmod 4711 /usr/lib/virtualbox/VirtualBox

I'm really tired to do it manually myself, but see no other way out by now.

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Hyptiotes cavatus nonvenomous Clear Creek Hocking Co. OH December 12 2015Native slack .rpm package refuses to install at OpenSuSE. It requers appindicator, which in fact is installed. Slack doesn't see it, so installation fails.

The workaround is to extract the slack rpm file somewhere and to run it for your user only, not system-wide.

So, download slack rpm somewhere. I used my local temp directory, which has nothing with any system /tmp. Just a folder where I place some temporary file.

In my case it was /home/user/Desktop/temp/slack-2.6.2-0.1.fc21.x86_64.rpm

I went to /home/user/Desktop/temp/ and run command rpm2cpio < ./slack-2.6.2-0.1.fc21.x86_64.rpm | cpio -idmv

This created a usr folder with all needed slack files. Next I went to /home/user/Desktop/temp/usr/bin and just run slack executable from it.

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

SSL spiderI tried to install SSL at my local apache under OpenSuse. Manuals say to run /usr/bin/gensslcert

I got a long output with some errors the fist of which was

creating CA request/certificate ...
problems making Certificate Request
140601438258832:error:0D07A098:asn1 encoding routines:ASN1_mbstring_ncopy:string too short:a_mbstr.c:147:minsize=1
something ugly seems to have happened in line 119...

As it turned out it needed a hostname to be specified and on some reason my configuration somewhere didn't have it specified. So to elimitane the error I had to use -n key and domain name. Since it's for local usage, I just used gruz

/usr/bin/gensslcert -n gruz

 

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

OpenSuseAfter OpenSuse update I sometimes cannot load X window. It stalls at some point.

The problem in my case is that Yast installs some kernels from Factory and/or Tumbleweed. So loading with the latest kernel is impossible as the NVidia drivers are incompatible with the latest non-official kernel.

Solution:

Login in Recover mode, go to yast and remove unneded kernels.

Or, as an option, select to boot with the proper kernel version, not with the latest one.

Or lock the kernel version in the Yast install software.

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Look into my eyesI like Kopete, especially because of global short keys working in KDE, but the autoreconnect bug for ICQ have been making me upset for a long time.

Finally I found a way to avoid the bug. I added my ICQ account as a Jabber transport. Here are docs: http://userbase.kde.org/Kopete/Jabber_Transport

Now I'm happy!

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Robot spider for disastersAfter upgrading my OpenSuse to 12.3 I could not start mysql.

# systemctl start mysql.service
Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -n' for details.

journalctl -n gave me among others:

Mar 17 05:55:09 gruz systemd[1]: mysql.service: control process exited, code=exited status=1
Mar 17 05:55:09 gruz systemd[1]: Failed to start LSB: Start the MySQL database server.
Mar 17 05:55:09 gruz systemd[1]: Unit mysql.service entered failed state

Running # mysql_secure_installation asked passwrod but didn't accept any:

Enter current password for root (enter for none): 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)

Solution:

I had two problems - mysql database folder and files owner and an empty file .run-mysql_upgrade.

So here is how I solved it:

chown -R mysql:mysql /var/lib/mysql; rm /var/lib/.run-mysql_upgrade
FaLang translation system by Faboba
ОУН-УПА: легенда спротиву Українська Дивізія «Галичина» Зиновій Книш: спогади й матеріали до діяння УВО і ОУН Реаніматор електронних текстів Забуттю не підлягає 1917-1991

See a typo?

Select the text block and press

CTRL+Enter

Comments

  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Gullo Gullo 03.12.2018 18:36
    Hello, I don't resolved my problem.... The Plug don't save the changes. I tried reinstallation but ...

    Read more...

     
  • MVC Override - change joomla extensions behaviour without changing core files

    rogerco rogerco 01.12.2018 23:30
    Sorry for the delay replying, the notification got trapped as spam on the mail server so I have only ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 28.11.2018 23:11
    Thanks for reporting. Need to find time to check.

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Gullo Gullo 28.11.2018 22:30
    Hello, the plugin NotificationAry don't save the changes. Joomla 3.9.1 NotificationAry 0.2.6

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 23.11.2018 08:25
    Yes, I'll work at it maybe tonigh, or at the weekend.

    Read more...