Sunday, October 21, 2018

CLion: "external file changes sync may be slow" warning

Native file system watcher for Linux

Inotify requires a “watch handle” to be set for each directory it monitors.
Unfortunately, the default limit of watch handles may not be enough for reasonably sized projects.
The current limit can be verified by executing:

cat /proc/sys/fs/inotify/max_user_watches
It can be raised by adding following line to the /etc/sysctl.conf file:

fs.inotify.max_user_watches = 524288
… and issuing this command to apply the change:

sudo sysctl -p

Wednesday, May 3, 2017

Use HMI remotely

Main principles:
- login via ssh as root (sudo) to create tun interface
- enable IP forwarding on the proxy

Monday, November 14, 2016

Enable natural scrolling in xfce4

- Run /usr/lib/gnome-settings-daemon/gnome-settings-daemon.
It can be enabled in Settings -> Session and Startup -> Autostart -> GNOME Settings Daemon

- In dconf-editor find touchpad.
It can be in org.gnome.settings-daemon.peripherals.touchpad or in org.gnome.desktop.peripherals.touchpad.
Enable natural-scroll option.

- Reboot

Note:
reverse scroll direction option in System Settings should be disabled in my case

Sunday, December 20, 2015

Шифрованный контейнер

1) Create an empty container:
$ dd if=/dev/zero of=container.img count=20000
20000+0 records in
20000+0 records out
10240000 bytes (10 MB) copied, 0,0348345 s, 294 MB/s

Saturday, November 14, 2015

Использование .pac файла для коммутации прокси-серверов

Полезная ссылка

chromium

You may enforce that all chromium browser instances on a machine use the autoconfig url. Place a file (e.g. proxyConfig) below /etc/chromium-browser/policies/managed/ with the following content

Saturday, November 7, 2015

Use git through a proxy

Tutorial: how to use git through a proxy

What kind of proxy
The most common are an HTTP proxy, and a SOCKS5 proxy - for example, one opened with the ssh -D command, documented in ssh(1)