My linux experience
- Details
- Category: My linux experience
- Hits: 3609
We 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.
- Details
- Category: My linux experience
- Hits: 2814
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.
- Details
- Category: My linux experience
- Hits: 2677
I 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!
- Details
- Category: My linux experience
- Hits: 4132
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.
- Details
- Category: My linux experience
- Hits: 4188
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
My 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.
- Details
- Category: My linux experience
- Hits: 6360
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
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.
- Details
- Category: My linux experience
- Hits: 6495
Native 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.
- Details
- Category: My linux experience
- Hits: 6091
I 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
- Details
- Category: My linux experience
- Hits: 11988
After 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.
- Details
- Category: My linux experience
- Hits: 12888
I 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!