qicinga – a short python script I’ve written to display Icinga Service Statuses (Statii?) at the commandline.
Linux tools I never knew about #1: lsblk
lsblk displays all block devices as a tree, eg:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T 0 disk ├─sda1 8:1 0 886.5G 0 part / ├─sda2 8:2 0 878.9G 0 part /home ├─sda3 8:3 0 19.5G 0 part [SWAP] ├─sda4 8:4 0 1K 0 part └─sda5 8:5 0 78.1G 0 part └─vms-vm1 (dm-0) 253:0 0 30G 0 lvm /mnt/vm1
More info via Karel Zak’s blog: lsblk8.
OpenSSH Tip: Check Syntax Errors before Restarting Server
sudo /usr/sbin/sshd -t
via OpenSSH Tip: Check Syntax Errors before Restarting Server.
389 directory server quick note
To avoid “cannot find name” when looking up GIDs for LDAP users, you need to do New->Other in the Directory tab, choose a new object “posixgroup” and fill in the name & GID.
Highlight your source code in the console
Eight reasons to upgrade to Apache 2.4
- The Event MPM is no longer experimental and is fully supported – this gives greater performance ala nginx.
- Conditionals in config – so you can have for example, a generalized config across multiple hosts with slightly different requirements. Similarly, you can have config file variables.
- mod_remoteip – allows you to easily get the “true” client IP when behind load balancers.
- mod_sed – rewrite input and output.
- mod_auth_form – HTML login forms for basic authentication. Much easier for the end user than the unfriendly pop-up dialogue.
- mod_ratelimit – very basic DOS protection.
- mod_ssl supports sharing SSL session details across servers via memcached for performance.
- mod_lua (experimental) allows hooks into Apache to be written in Lua!
Mosh: the mobile shell
The #1 reason you should replace ssh with mosh, if your environment permits:
“With Mosh, you can put your laptop to sleep and wake it up later, keeping your connection intact. If your Internet connection drops, Mosh will warn you — but the connection resumes when network service comes back.”
Conspy – remote control of Linux virtual consoles
Conspy allows a possibly remote user to see what is displayed on a Linux virtual console, and send keystrokes to it. It works with Linux and FreeBSD, as far as I know.It is rather like VNC, but where VNC takes control of a GUI conspy takes control of a text mode virtual console. Unlike VNC, conspy does not require a server to be installed prior to being used.
Critical Kernel update for Centos 6 vulnerability available
kernel-2.6.32-358.6.2.el6 has been released and it’s currently syncing to mirrors. I’ve verified that this kernel does indeed fix the issue.
via www.centos.org – Forums – CentOS 6 – Security Support – Kernel 2.6.32-358 Local Privilege Escalation.
Change default config file for pynag
Create a shell function in your ~/.profile like:
function pn() { pynag "$@" --cfg_file=/etc/icinga/icinga.cfg ;}
If you use icinga instead of nagios