My linux experience

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

spider web with water beads network dewdrop1We develop a web-site using docker. Well, using docker-compose. So we have it working at our localhosts per team member, but we need run the docker at a real server under a real domain.

My server uses CentOS and CWP(CentOS Web Panel, Pro version). Usually a create a user, domain/subdomain/database. Then upload my web-site files, edit database credentials in the web-site config etc.

Docker wokrs in other way. So to run my docker-based project at my CWP-powered server I did the following.

The idea is easy. Run docker (I did via terminal) and in CWP assign proxy to my domain and point it to the docker web-server port.

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!

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

    Berndi Berndi 30.06.2019 11:45
    The fields %TO_NAME% and %TO_USERNAME% are empty

    Read more...

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

    Berndi Berndi 30.06.2019 11:43
    My fault, I made it

    Read more...

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

    Berndi Berndi 30.06.2019 10:46
    I did. Now I'm asking me how to put the surename into the email... :-|

    Read more...

     
  • NavigationAry - navigate between Joomla menu items like between articles using "prev - next"

    Berndi Berndi 29.06.2019 15:59
    I also miss content in %TO_NAME%

    Read more...

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

    Berndi Berndi 29.06.2019 15:15
    Hi gruz, I have the problem, that when I use the %AUTHOR% tag, the plugin dosen't send the author ...

    Read more...