Elino on Life and Shell https://lifeandshell.com/tags/elino/ Recent content in Elino on Life and Shell Hugo -- gohugo.io en-us Mattias Hemmingssion mattias@lifeandshell.com Fri, 15 Apr 2016 22:15:11 +0000 WordPress multisite to wordpress singelsite (Easy linux) https://lifeandshell.com/posts/wordpress-multisite-wordpress-singelsite-easy-linux/ Fri, 15 Apr 2016 22:15:11 +0000 https://lifeandshell.com/posts/wordpress-multisite-wordpress-singelsite-easy-linux/ So i hade to slip up my wordpress multisite to singel sites and it was not that hard when i found out how. First start with setting up the new wordpress and then we migrate over the old wordpress site into the new. 1. Setup the new wordpress site Install and setup the new wordpress site. You can run the instalation we will clean out the instalaltion later. 2. In the old multisite find the site id. Install Pandora fms monitoring system on Centos https://lifeandshell.com/posts/install-pandora-fms-monitoring-system-on-centos/ Sat, 22 Mar 2014 13:10:54 +0000 https://lifeandshell.com/posts/install-pandora-fms-monitoring-system-on-centos/ So for many years i use nagios to monitor my server and now im would say i can handle nagios config files good. But I fund pandora fms monitoring and this i must try. From the pandora console its mutch easy to from the webbrowser setup new task and tweek task so you alarms realy are correct. Doing this in nagios then i had to change config files and restart nagios and nrpe. ejabber users from postfixadmin (python,mysql,md5crypt) https://lifeandshell.com/posts/ejabber-users-from-postfixadmin-pythonmysqlmd5crypt/ Fri, 10 Jan 2014 21:28:51 +0000 https://lifeandshell.com/posts/ejabber-users-from-postfixadmin-pythonmysqlmd5crypt/ So Im running my emails with postfix and have postfix admin to manager my users and domains. But now it should be nice to have i jabber server running and to have the same user and password for both email and jabber. Ejabber support custom auth plugins and with some python i now have a working plugin.   First install python packages yum install MySQL-python yum install python-passlib   Add this script to you ejabber folder Private GIT server on centos 6 https://lifeandshell.com/posts/private-git-server-on-centos-6/ Tue, 15 Oct 2013 14:40:50 +0000 https://lifeandshell.com/posts/private-git-server-on-centos-6/ So i need to have an private git server. The plan is to fill the git server with my backups so I can see changes done to my git server.   Set up the local GIT server Users adduser git passwd git Become the git user and go to home folder su git cd ~ Create the repo mkdir myrepo.git cd myrepo.git/ git --bare init So now the repo is done lets connect to it and start using it. restrict sms in nagios / icinga https://lifeandshell.com/posts/limit-sms-flood-in-nagios-icing/ Mon, 05 Aug 2013 16:13:58 +0000 https://lifeandshell.com/posts/limit-sms-flood-in-nagios-icing/ Im using nagios as primary monitoring tool. And to get alerts we use an sms gateway. The problem is that sometimes when we work we bring down and server and we get so many sms from icinga that you trow away you phone. So for bringing the sms cost down and to have not so many sms to you phone i build a small email blocking script. This will take the address of the sms and only send one sms / email every 5 min (can be set to anything). Install HA-Proxy for load-balansing on Centos https://lifeandshell.com/posts/install-ha-proxy-for-load-balansing-on-centos/ Tue, 30 Jul 2013 20:25:36 +0000 https://lifeandshell.com/posts/install-ha-proxy-for-load-balansing-on-centos/ For load balasing my weebtraffic im setting up HA-proxy. The proxy recives reqest on one ip and then even loads the reqest between my web server nodes. First install and enable Epel repo yum install haproxy open the configfile /etc/haproxy/haproxt.cfg and ad to the buttom of the file listen http_web 192.168.44.20:80 mode http balance roundrobin # Load Balancing algorithm option httpchk option forwardfor server server1 192.168.44.21:80 weight 1 maxconn 512 check server server2 192.