I just realized that 'tunctl' is not required anymore.
Now you can create tun/tap devices with 'ip':
ip tuntap add eth0 user USER11 group GROUP11 mode tap
Linux usage and development notes
2016-07-14
Proper way to print errno value.
I use this combination of bash and python to print meaning of errno value:
strerror () { python -c "import os; print os.strerror($1)"; }
There is also 'perror' program, but it is distributed with mysql only.
strerror () { python -c "import os; print os.strerror($1)"; }
There is also 'perror' program, but it is distributed with mysql only.
2015-05-12
sysctl with autocompletion is really great.
> sysctl -n net.
Display all 758 possibilities? (y or n)
> sysctl -n net.ipv
Display all 711 possibilities? (y or n)
> sysctl -n net.ipv4.ip_
net.ipv4.ip_default_ttl net.ipv4.ip_forward net.ipv4.ip_local_reserved_ports
net.ipv4.ip_dynaddr net.ipv4.ip_forward_use_pmtu net.ipv4.ip_nonlocal_bind
net.ipv4.ip_early_demux net.ipv4.ip_local_port_range net.ipv4.ip_no_pmtu_disc
> sysctl -n net.ipv4.ip_forward
net.ipv4.ip_forward net.ipv4.ip_forward_use_pmtu
> sysctl -n net.ipv4.ip_forward
0
> sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
Display all 758 possibilities? (y or n)
> sysctl -n net.ipv
Display all 711 possibilities? (y or n)
> sysctl -n net.ipv4.ip_
net.ipv4.ip_default_ttl net.ipv4.ip_forward net.ipv4.ip_local_reserved_ports
net.ipv4.ip_dynaddr net.ipv4.ip_forward_use_pmtu net.ipv4.ip_nonlocal_bind
net.ipv4.ip_early_demux net.ipv4.ip_local_port_range net.ipv4.ip_no_pmtu_disc
> sysctl -n net.ipv4.ip_forward
net.ipv4.ip_forward net.ipv4.ip_forward_use_pmtu
> sysctl -n net.ipv4.ip_forward
0
> sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
2012-05-21
release of Matreshka 0.2.1 framework
We are pleased to announce minor release of Matreshka 0.2.1 framework. It contains several fixes from Matreshka 0.2.0. Release Notes: http://forge.ada-ru.org/matreshka/wiki/ReleaseNotes/0.2#Matreshka0.2.1 Download page: http://forge.ada-ru.org/matreshka/wiki/Download Matreshka is framework to develop information systems, it includes: - support for localization, internationalization and globalization based on Unicode standard; - XML support module, including SAX reader/writer and XML Catalogs resolver; - FastCGI module; - SQL database access module, with drivers for Oracle, PostgreSQL and SQLite3; - modeling framework to process UML models.
2011-12-20
Code @ C++: Find sum of elements in the array
Code @ C++: Find sum of elements in the array: Наткнулся на задачу, которую предлагают в Yandex на собеседовании: Ниже приведены три варианта суммирования чисел с плавающей точкой (предп...
2011-12-12
Emacs column marker
Very often some code style has limited length of code line and its quite good, when IDE knows about such limits.
I've added to Emacs column-marker
(add-to-list 'load-path (expand-file-name "~/emacs/column-marker"))
(require 'column-marker)
(add-hook 'ada-mode-hook (lambda () (interactive) (column-marker-3 79)))
Now, if in Ada code some line exceeds 79-symbols limit, Emacs will highlight it with red.
I've added to Emacs column-marker
(add-to-list 'load-path (expand-file-name "~/emacs/column-marker"))
(require 'column-marker)
(add-hook 'ada-mode-hook (lambda () (interactive) (column-marker-3 79)))
Now, if in Ada code some line exceeds 79-symbols limit, Emacs will highlight it with red.
2011-12-04
Error: Value too large for defined data type
During compilation of program sources in Ubuntu Linux in folder, which was mounted via CIFS from windows I've got the following error from gcc:
Error: Value too large for defined data type
At the first thought it is an error in gcc, but actually the problem was in mounting directory via CIFS .
To fix this error the following options should be added to fstab or mount command line:
Error: Value too large for defined data type
At the first thought it is an error in gcc, but actually the problem was in mounting directory via CIFS .
To fix this error the following options should be added to fstab or mount command line:
nounix,noserverino
I've got this info from here.
Subscribe to:
Posts (Atom)