linux

How to just send logs from files to graylog2

That solution allows to read logs from file and just send them to remote syslog/graylog server. Logs will not influent on current syslog settings, you won’t need to filter them out of any syslog facility (like local7), all you need – the rsyslog (I’ve used v8). My task was to send logs which wrote by […]

Tags: , , , ,

Posted in Linux related, Security related | No Comments »

Fixing startup error of STMCubeMX on linux

After STMCubeMX was upgraded from version 4 to version 5, it can’t start. I’ve tried to reinstall it, but without result. Last messages in console after application stuck looks like: 2019-01-24 21:03:54,692 [INFO] PluginManage:339 – Loaded plugin projectmanager (category:projectmanager,tabindex:3) 2019-01-24 21:04:38,908 [ERROR] IntegrityCheckThread:90 – Cannot obtain updater plugin 2019-01-24 21:04:38,909 [INFO] IntegrityCheckThread:94 – End integrity […]

Tags: ,

Posted in Linux related | No Comments »

Fixing Gutenberg error “The editor has encountered an unexpected error”

After update to WP 5, I’ve faced with next issue, I’ve couldn’t add new post or edit existed. Looks like error happens because of misconfigured nginx and when new ‘Gutenberg’ editor is active (which is true by default for wordpress 5.0 and above). Earlier I had nginx location / configured in next manner: location / […]

Tags: , ,

Posted in Linux related, Web related | No Comments »

How to configure redmine service via terraform with persistent storage on amazon ECS

First of all, I have very little experience of AWS and terraform, so it can be obviously for them who have enough experience, but it definitely saved me a lot of time if I found article like that early. It wasn’t simple to figure out how to run redmine container on ECS.The main problem was […]

Tags: , , , , , ,

Posted in Linux related | No Comments »

How to block IP ranges of specified autonomous system

If you want to prohibit access to your host for specified AS, you can use solution below. I made it some time ago, when I found out, that mail.ru hunting for hosts which help to bypass telegram censorship. It’s not perfect because I didn’t make much effort to it. Whois can return sub-networks and networks […]

Tags: , , ,

Posted in Linux related, Security related | No Comments »

Galaxy S3: /efs/prox_cal doesn’t affect calibration settings under LineageOS

Few days ago I replaced front glass on samsung i9300 and flashed LineageOS 14.1. After that I’ve found that proximity sensor stays in triggered state, it may happened because of lack of experience (I’ve used too much UV-glue, so it was everywhere) or because of additional screen protector which been installed. Anyway, always-triggered-proximity-sensor made phone […]

Tags: , , ,

Posted in Linux related, Security related | No Comments »

Dirty hack to add values mappings in Zabbix

“I’ll be brief.” © Here is two things about script published in ZBXNEXT-1424, first it can help you to automate creation of large mappings (and it’s cool), second it will broke your DB (not so cool, maaan). When you will try to add mapping in broken DB you will see something like this: The “Error […]

Tags: , , , ,

Posted in Linux related | No Comments »

LVM recovery

Few days ago i made mistake and forced fsck to check partition that contain LVM instead of logic volume, as result i got broken LVM metadata. I was unable to see volume group an logic volumes. pvs output looked like that: # pvs -v Scanning for physical volume names Incorrect metadata area header checksum I […]

Tags: , ,

Posted in Linux related | No Comments »

Simple OpenVPN profile generator

Few month ago i learned that OpenVPN support profiles. Before that i generate config for every client, create keys and certs with easy-rsa, tar it’s all together and put on client. Now i can create profile that will contain all necessary keys, certs and config in one file, so i write simple script that generate […]

Tags: , ,

Posted in Linux related, Security related | No Comments »

Zram

Few months ago, i tried very cool feature called ‘zram’. It is linux kernel module that allow to create compressed block devices into memory, it can be used for creating compressed fs in ram  (/tmp for example) or for swap. May be you think, that in context of swap, it is dumb to keeping  memory […]

Tags: ,

Posted in Linux related | No Comments »


Powered by WordPress. Designed by Försäkra Online.