Just recently for work we had to migrate all of our users from evolution to Thunderbird, this is a boring process if you have to do it manually for an office full of people so I wrote a little script. Feel free to edit to match your needs. #!/bin/bash #Check
Read moreLatest Articles
Sudo is Mean
If you are tired of the normal error messages that come from typing your password wrong when you sudo then why not have it insult you instead, great idea. echo “Defaults insults” >> /etc/sudoers Why, Because why not?
Read moreExtend a KVM Disk
A simple one liner to extend the disk of a virtual machine running in KVM. qemu-img resize vmdisk.img +10G The disk will be extended by 10GB, it may take a reboot of the guest machine to pickup the change and you will also need to extend your partitions inside of
Read moreSerial using Screen
I thought that I had already documented this but it appears not, something I get asked now and again is how to access serial devices using the Linux terminal, a perfect example of this is older Lights out Management modules. The answer is Screen. screen /dev/SERIALPORT 9600 8N1 Just replace
Read moreOpenShift – PHP not sending email. An SELinux problem.
This is an email i sent to the OpenShift user group which may be of interest to others. Hence it’s place on this blog. Subject: Openshift and php mail not sending – SELinux issue – SOLVED From: Andrew Galdes <[email protected]> To: “[email protected]” <[email protected]> Hi all, I want to share my
Read moreGet SELinux to tell you the reason for access errors – Redhat/CentOS
This article shows how to get SELinux to tell you the solution to access issues. For example, if your PHP script is no longer sending emails because SELinux is stopping it, you can get suggestions from SELinux on how to resolve the issue. For this example, we’ll fix the php/apache
Read moreUse Formail to split and send old mbox emails
This article demonstrates how to process a single mbox file with multiple emails within it. We will split the file into individual emails and then send those emails to a specific email account. First we split the mbox into individual files – one email per file: cat /var/spool/mail/root | formail
Read moreVarnish load balancer with failover on Redhat
This article shows how to use a Varnish server on a CentOS/Redhat server to load balance and exclude faulty or overloaded backend servers. Make sure that your Varnish server is able to listen on port 80. This may mean turning off your web server or using different ports. Install Varnish
Read moreInstall vsFTP on CentOS/Redhat and enable TLS
This tutorial demonstrates how to install vsftp on CentOS/Redhat and configure it to allow connections over TLS for additional security. We’ll also chroot the users to their own directory. Install vsftp: yum install vsftp Edit the config file “/etc/vsftpd/vsftpd.conf” and set the following: rsa_cert_file=/etc/vsftpd/vsftpd.pem rsa_private_key_file=/etc/vsftpd/vsftpd.pem chroot_local_user=YES anonymous_enable=NO ssl_enable=YES allow_anon_ssl=NO force_local_data_ssl=YES
Read moreDetect newly added disks. Linux on VMWare.
This one liner shows how to get Linux (CentOS in this case) to detect a newly added disk on a VMWare host. This was found on “http://wingloon.com/2013/05/07/how-to-detect-a-new-hard-disk-without-rebooting-vmware-linux-guest/”. ls /sys/class/scsi_host/ | while read host ; do echo “- – -” > /sys/class/scsi_host/$host/scan ; done There you have it.
Read more