Enable Quotas on CentOS 6

In this example I will be checking all user quotas on an LVM which is mounted as /data    1)  The first  step will be to check the fstab. As we see there are no mount options for quotas # cat /etc/fstab # /dev/mapper/centos-root / ext4 defaults 1 1 UUID=2fd24677-cf50-420b-a3dd-cea7c29aa185 /boot ext4 defaults 1 2 /dev/mapper/centos-swap Read More…

A fatal error has been detected by the Java Runtime Environment – Problematic Frame libc.so

I use Ahsay to do a  file level backup on a Linux (Centos 6.6) machine. The scheduled backups suddenly started being missed.   The following error appeared when I ran the backup manually.   # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000003337e7f5bf, pid=2150, tid=140190110197504 # Read More…

Rsync to QNAP

I wanted to sync some files from OSX (10.9.4) to my QNAP (TS-210 (Firmwre 4.1.2) NAS 1. Enable Rsync by going to Download Station -> Backup Server -> Rsync server  ->  tick the Allow remote Rsync server to back up data to NAS and fill out a username and password.   2. Create a shared folder Read More…

Create a PKCS#12 (.p12) file using OpenSSL

Scenario: I wanted to create PKCS12 file to import into a Sonicwall Firewall (FW 5.9.0.4) You'll need.  – Certificate from CA (my.crt) – Private key (my.key) – CA Bundle (myCA.crt) – The password for the private key From a UNIX based server pop all of the required files into a specific directory.  # openssl pkcs12 Read More…

Change DocumentRoot of main site in CPanel

To change the document root of a main site in CPanel you'll need root SSH access. Note that you will be able to change an "Add on domains" via the GUI.   # vi /var/cpanel/userdata/{myusername}/{jordansphere.co.uk} Once in Vi change the documentroot: /home/{username}/public_html  to whatever you want (eg /home/{username}/public_html/jordansphere.co.uk ) Afterwards you'll need to run this command: Read More…