Posts

Showing posts with the label ubuntu

How to compile Percona XtraDB Cluster 5.6 on Ubuntu 14.04 Trusty Tahr

Getting a new server with the latest LTS started out like great news, but soon turned out to be a "couple" of hours wasted on google'n without success. #percona on freenode is sadly still very very idle and of no help, and after reading different sources such as http://www.percona.com/doc/percona-xtradb-cluster/5.5/installation/compiling_xtradb_cluster.html http://www.percona.com/doc/percona-xtradb-cluster/5.6/installation/compiling_xtradb_cluster.html https://mariadb.com/kb/en/building-the-galera-wsrep-package-on-ubuntu-and-debian/ I managed to get it all working and wanted to share the success. Note: There might be more packages that need to be installed that I already had when installing another application, if you get an error along the way, leave a comment and I'll help out and update the blog as we go along. apt-get install bzr openssl cmake libncurses5-dev bison xinetd socat build-essential flex bison automake autoconf bzr libtool libaio-dev zlib1...

Enabling Pure-ftpd TLS

Tell pure-ftpd to accept tls connections echo 1 > /etc/pure-ftpd/conf/TLS Setup your certificate mkdir -p /etc/ssl/private openssl req -x509 -nodes -newkey rsa:1024 -keyout \ /etc/ssl/private/pure-ftpd.pem \ -out /etc/ssl/private/pure-ftpd.pem chmod 600 /etc/ssl/private/*.pem Restart pure-ftpd /etc/init.d/pure-ftpd restart Enjoy.

Remove unused kernels in Ubuntu

Update @20:th Aug 2015 The old dpkg trick was unstable and wanted to delete tons of unwanted things more than 50% of the time, so I found another useful command which has a higher success rate of doing what we want. aptitude purge ~ilinux-image-\[0-9\]\(\!`uname -r`\) source: http://www.upubuntu.com/2011/11/how-to-remove-unused-old-kernels-on.html Run the following command to see what the command will remove: dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get --dry-run remove And finally to actually remove the kernels use: dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge source: http://tuxtweaks.com/2010/10/remove-old-kernels-in-ubuntu-with-one-command/