April 8, 2020
Sudoed podman cannot listen to privileged ports
It's impossible to reach any exposed privileged port from external net when running podman
sudo podman run -p 80:80 -it nginxSetup: dedicated Centos 8, clean install + docker, no firewalld, iptables at "allow-all" default ruleset. With docker however it works without problem.
What I was trying to run which needed to listen to privileged ports is a certbot inside docker. Motivation is to avoid installing python dependencies or else downloading and running unknown binary.
Labels: centos, centos8, certbot, docker, letsencrypt, linux, opensource, podman
April 4, 2020
Fresh centos8 podman/buildah issues related to alpine
Lately I'm trying out Centos 8 and move to openshift with podman and buildah as docker replacements. So far not without interesting problems!
In a freshly installed updated centos8 it's impossible to build any alpine-based repo or even pull alpine itself:
$ podman pull alpine ... Error committing the finished image: error adding layer with blob "sha256:aad63a9339440e7c3e1fff2b988991b9bfb81280042fa7f39a5e327023056819": Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:42 for /etc/shadow): lchown /etc/shadow: invalid argument
The following solution is mentioned in libpod issue 2788:
# dnf reinstall shadow-utilsI did not investigate this deep down, however seem capabilities are set wrong for shadow-utils with yum installation (yum reinstall does not fix this):
$ getcap /usr/bin/newuidmap /usr/bin/newgidmapHere's expected output for the command above:
/usr/bin/newuidmap = cap_setuid+ep /usr/bin/newgidmap = cap_setgid+ep
Labels: buildah, centos, centos8, dnf, opensource, podman, yum
August 2, 2019
Debian Buster (10) no Java 8 support
This resembles me a lot this almost comedian video on how hard to describe the life of sysadmin to non-it people. Palm, palm, palm.
Video link
So no Debian 10 for my X220. Thinking about arch (used it for some years, with some luck of failing video drivers - I don't have a good feeling about it being on laptop) or centos (happy with it on server, not sure about client). Also maybe a Debian 9 is a logical choice as seems like it has Java 8 supported by default.
Labels: arch, centos, debian, java, java 8, laptop, linux, openjdk, opensource, x220
June 11, 2019
An "Ungoogled" Chromium: how to move from Chrome
What I came into is "ungoogled chromium" which can be downloaded as many other chromium variants from here. Not sure on next step, can possibly compile it myself with importing latest patches or reverting patch related to API cut (I'm sure they'll make it impossible. though).
There're some challenges in process of moving to Chromium from Chrome, though. Copying profile is not enough ;)
- If you want to move to Chromium smooth and save your opened tabs, the trick is to copy user profile while Chrome is opened (as Chromium resets some of settings while opening newly copied profile it starts with "Open with new tab" option effectively forgetting all your tabs
- In Chromium passwords cannot be imported. At all. Or saved. Until you delete "Login Data*" files (DB itself and -journal).
- Extensions cannot be set up from chrome store. Download process is manual using download URL below or here with pictures (if you don't mind some Japanese).
- Look through
https://clients2.google.com/service/update2/crx?response=redirect&prodversion=[PRODVERSION]&acceptformat=crx2,crx3&x=id%3D[EXTENSIONID]%26ucPS Speaking of privacy and adblock-related extensions, I'm using uBlock origin (gorhill's one) and Tampermonkey with some Medium-related scripts. Cannot imagine browsing without them - internet is just hell (from my point of view I can compare it with popups and blinking banners of 90s).
Labels: chrome, chromium, extensions, google, opensource, privacy, security, ublock
April 18, 2017
Wrong frameworks?
- Telegram consumes 1% CPU time (14 minutes in total for 3 days) and 68Mb RAM
- WinWord with 2 docs opened consumes 0% CPU (0 (zero) minutes 34 seconds in total for 3 days) and 43Mb RAM
Labels: cpu, memory, opensource, ram, resources, telegram, winword, word
April 14, 2017
Patch to stop video autoplay in Chrome
So I've patched Chrome (chromium actually) source code and compiled it for myself from source. Voila, it works! Patch is below just to know how simple the change (that is being discussed for 2 years with no effect, while the problem itself exists for much more than 5 years) is.
And yes, I don't mind pressing manually for video to start every time. Also I don't mind stop wasting my data plan and draining laptop battery. Thanks Google for being unfriendly and not having any user settings for this ;-)
Disclaimer: published under MIT License. That is, simply: "as-is", no guarantees, by downloading this patch you know what are you doing.
Labels: ads, autoplay, chrome, chromium, linux, opensource, patch, video, webkit
April 13, 2017
Notes on Brave browser
Second thing (which could be not relevant, but looks strange anyways), is that it used npm as package manager in previous days.
April 12, 2017
Arch with mate: cannot lock screen with mate-screensaver, had to move to xscreensaver
I use Arch as desktop OS, with mate. After latest update pacman -Syu I noticed that I can lock screen only once after restart or so. It works like this: when selecting "Lock screen" from menu it just does nothing, and it's nothing also in .xsession-errors. So screen remains unlocked.
When I (maybe mistakenly) try to manually execute mate-screensaver it says like "screensaver is already running for this session".
So I took way of getting rid of mate-screensaver and installing and using xscreensaver instead (pacman -S xscreensaver). It works just fine.
Labels: arch, linux, mate, mate-scresnsaver, opensource, screensaver, xscreensaver
April 5, 2017
ag regex syntax
man pcrepattern
Labels: ag, linux, man, opensource
February 26, 2017
SSH SHA-256 fingerprint is not human readable
$ ssh ... The authenticity of host '... (...)' can't be established. RSA key fingerprint is SHA256:qSj/We80nmhTc8Pc4XPazxlpGrnv95EZNXSZB1YsGl0.Looks like
Compare that with SHA-1 fingerprint (actually connecting to the same SSH server):
The authenticity of host '...' can't be established. RSA key fingerprint is 77:5f:3b:1f:84:eb:d2:0c:ca:bd:b3:5d:f7:3c:c3:6f
Grouped hex digits, no trash.
Maybe I'm wrong, but it looks for me that ssh maintainers in this case are blindly following a modern fashion to use sha256 instead of considering which UX leads to less human errors.
I'm not sure if that's somehow connected to using ECDSA keys or not. Anyway this change to sha256 increases human mistakes in using crypto tools like SSH which is very bad.
November 10, 2014
Openfire installation bugs
1. Automated redhat init.d and user script openfire/bin/extra/redhat-postinstall.sh has bug on line 27: it states wrong openfire.sh filename (really no ".sh"). WTF?
solution: open redhat-postinstall.sh and remove .sh on line 27
2. after going through install web guide I cannot log in to admin console. (now it reminded me how much sometimes I hate opensource).
solution: username IS NOT admin@domain as you typed in. username = admin without any @domain. f%%ck you.
3. openfire cannot live behind non-root web context (in my case it's proxypass of /openfire through https apache vhost).
solution: no?
Labels: centos, installation, openfire, opensource, shit, xmpp
January 10, 2014
no alt-tab in ubuntu 12.04
Labels: opensource, shit, ubuntu
March 10, 2013
firefox default pdf viewer
Labels: firefox, opensource, pedofirefox, shit
April 13, 2012
solution: if linux (ubuntU?) freezes in boot (splash or log)
GRUB_CMDLINE_LINUX_DEFAULT="acpi_skip_timer_override"
and possibly disable acpi 2.0 (not all acpi, 2.0 only) in BIOS
This problem seems to be frequent on AMD (I have AMD Phenom X6 1090T).
Bug exists at least in Ubuntu since 2008: bug on launchpad. Problem started to appear in 10.04, but exists even in Ubuntu 11.11. The bug on launchpad had been discussed in MANY comments from 2008 to May 2011, until in July 2011 it was AUTO CLOSED with resulution Confirmed->WON'T FIX. IDIOTS?
April 10, 2012
binary logs?! go to hell!
Go to hell with that binary logs bullshit and code something really useful.
Labels: binary logs, linux, logs, opensource, shit, systemd
April 3, 2012
Android: multiple logons breaks C2DM (android push)
April 1, 2012
firefox 11 crashreporter privacy issues
By the way, this bug exists starting from FF version 4!..
I wonder, is that possible to have clipboard info in a memory snapshot in firefox crashreport?
Labels: bug, firefox, opensource, shit
January 12, 2012
Ubuntu hanging during boot problem fix
May 31, 2011
FF4 sucks for lack of F6!!!
![]() | =>Перекрасился?!=> Changed color?! | ![]() |
![]() | <=Смени название!<= Change name! | ![]() |
Labels: firefox, firefox 4, opensource, pedofirefox, pedofox, shit
May 16, 2011
Firefox 4: usability regression (bug?)
Labels: firefox, opensource, shit



