Category Archives: Linux

Best LXC blog. Ever.

I didn’t want to lose this link. So I posted it here. http://www.stgraber.org/category/lxc/

Posted in lxc | Comments Off on Best LXC blog. Ever.

Use ngrep to monitor all web requests

I can never remember the syntax to do this, so I posted it here. ngrep -d eth1 -W byline -qilw ‘get’ tcp dst port 80 -d eth1 (monitor eth1) So why would one want to do this? Monitor requests on … Continue reading

Posted in Linux, Malware | Comments Off on Use ngrep to monitor all web requests

xinetd port forwarding

I always forget how to do this. This little sample will help me next time: service my-web { type = UNLISTED socket_type = stream protocol = tcp wait = no user = root bind = 0.0.0.0 port = 80 only_from … Continue reading

Posted in Linux | Comments Off on xinetd port forwarding

locale: Cannot set LC_CTYPE to default locale: No such file or directory on Ubuntu 12.04

Some other messages you might see: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = “en_US.UTF-8” are supported and installed on your system. perl: warning: Falling back to … Continue reading

Posted in Linux | Comments Off on locale: Cannot set LC_CTYPE to default locale: No such file or directory on Ubuntu 12.04

ypbind – domain name not set

This one drove me bonkers. NIS refused to start with a cryptic “domain name not set”. Nothing seemed to fix it. I stumbled upon this: /bin/nisdomainname yourdomain.com That fixed it for me. Obviously substitude yourdomain.com for your real domain.

Posted in Linux | Comments Off on ypbind – domain name not set