Getting rid of “kernel:nf_ct_ftp” messages

Sometimes firewall drops nf_ct_ftp messages to console and disturbs the work during increased amount of traffic to FTP port. [crayon-5883efdf50a45100358053/] Those messages may be redirected by creating a file /etc/rsyslog.d/iptables.conf with contents: [crayon-5883efdf50a51365365209/] Then restart rsyslog daemon, and all those messages should [...]

Read more

Adding bridge interface for lxc containers

You can make a bridge by changing network configuration file: [crayon-5883efdf49185814491097/] In this configuration I used br0 static configuration. If You need dhcp, [...]

Could not chdir to home directory /home/nsc: Permission denied /bin/bash: Permission denied Connection to closed.

after creating lxc container, I wasn't able to connect to it as a simple user. Also couldn't change to simple user using "su". All I got was an [...]

sudo without password

This line should do the job: [crayon-5883efdf499b9673211606/] You can edit sudoers file by entering command [...]

varnish+nginx as backend and real IP

With default config nginx all IP addresses shows as localhost. Here is configuration to show real client IP. Snippet from varnish [...]

Replace string in all files using sed in linux

Replaces all "OLDSTRING" to "NEWSTRING" in all files [crayon-5883efdf4a0e1405657499/] or using [...]

Installing debian to guruplug SD card

Before installing debian, You need to prepare tftp server and connect to guruplug via serial console. Also You'll need UTP cable for network connection and SD card for [...]

Centos wordpress php-fpm + nginx + apc

If you tired of having same old apache, and want something more fast and reliable, you can install nginx + php-fpm. Firstly you need to install new repo, to have ability to [...]