CentOS 7 Courier Repo & Work on Self-hosted Email

  

I've created a repository with Courier RPM packages built for CentOS 7 x86_64. The packages are compiled and signed automatically in a toolchain I have automated - but no particular reseach, tweaks or testing has been done to ensure that the packages are suitable for deployment. The packages were created because I want to work on Ajenti-V's Mail plugin and support my platform of choice for servers (CentOS) which doesn't currently have Courier packages available through repos (at least none of any repute).

Read more…

Comments

Encrypted Backup to Amazon S3 (2014)

  

The following is a guide on how to do encrypted backups to Amazon S3. This is an updated version of my older system which used the Dt-S3-Backup script but I've decided to try a replacement which is available from the EPEL repository - duply. This guide has been updated for and tested on CentOS 6.

Read more…

Comments

New Site New Server

  

DDEVnet.net is now running on a new server, in Australia. I also took the opportunity to replace my personal website, HTTP server and change my mail setup. Rather than coming out scarred, I've come through enlightened and more enthusiastic than ever.

Read more…

Comments

Encrypted Backup to Amazon S3

  

The following is a guide on how to do encrypted backups to Amazon S3.

Read more…

Comments

Root Login Detector

  

Getting an email alert when an account is logged in is really simple to set up.

To add a login detector to an account just append the following to the end of the user's (usually root) ~/.bash_profile and you can have an email alert sent to the desired address.

echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" alerts@example.com

Comments

Keeping MySQL Optimised

  

The following is a guide on how to keep databases in MySQL optimised.

Like a hard disk drive running a file-system such as FAT32, MySQL gets a bit fragmented during use. Databases that only have data inserted and read searially do not need optimisation run on the tables often. However, databases that are used in a transactional fashion need table optimisation performed regularly. You can write a script to manually run the MySQL "optimise" command iterating through a list of tables or you can simply use the "mysqlcheck" utility provided with MySQL (at least on Linux anyway).

The best way perform automatic optimisation is to create a Cron job. This one runs 11PM every Sunday and optimises every database on the MySQL server.

0 23 * * 0 mysqlcheck -u[your MySQL user] -o -A -p[your password here]

According to the mysqlcheck man page:

mysqlcheck uses the SQL statements CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, and OPTIMIZE TABLE So as you would guess this utility also has options to automatically check the validity of tables and repair them.

Comments

SSH Tunnel VPN Alternative

  

This is not a proper SSH VPN as described at http://www.debian-administration.org/articles/539 But if you are in the situation where you cannot use TUN/TAP modules such as on a Virtuozzo/OpenVZ based VPS and the hosting provider refuses to enable those modules for you then this is a way to be able to link back to internal services.

We will use SSH, SSH Keys for password-less authentication and AutoSSH to achieve a poor mans' (but secure!) VPN.

Read more…

Comments

Contents © 2015 Daniel Devine - Nikola Powered - Flattr Me! Flattr this