Archive

Archive for the ‘HowTo’ Category

centos 7 disable useless services

January 4th, 2017 No comments

This some of the tuning I do on a centos 7 install

REMOVE USLESS NETWORK INTERFACE
brctl delbr virbr0
systemctl get-default
systemctl set-default multi-user.target

Read more…

Python 3 Django Mariadb

December 7th, 2016 No comments

Centos 6 x64 Python 3 Django Mariadb
I found out the hard way that python 3 default mysql driver does not work
Anyways You will need to install mariadb devel

Read more…

Categories: HowTo, Linux Tags: , , , ,

Centos 6 python 3.5 django

December 7th, 2016 No comments

I do like working with RedHat / Centos 6 (python 2.6.6) but when it comes to Python, urghh…They just remain old old, its sad. I dont know why. Solution is to use virtualenv and install a second python version.

Read more…

URBACKUP CENTOS 7 HOW TO INSTALL

November 25th, 2016 1 comment

URBACKUP CENTOS 7 HOW TO INSTALL

Centos 7 x64bit urbackup-server-2.0.36

Requirements:
yum install autoconf automake binutils bison flex gcc gcc-c++ gettext libtool make patch pkgconfig redhat-rpm-config rpm-build rpm-sign
yum install zlib-devel.x86_64 zlib.x86_64 libcurl-devel.x86_64 cryptopp-devel.x86_64

Read more…

Categories: HowTo, Linux Tags: , , , , , ,

VPN openvpn howto linux

November 17th, 2016 No comments

yum install -y openvpn
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.4.0.1/2 -o eth0 -j MASQUERADE
cd /etc/openvpn/
openvpn –genkey –secret vpn.key
vi openvpn.conf
openvpn.conf
port 8080
proto tcp-server
dev tun1
ifconfig 10.4.0.1 10.4.0.2
status server-tcp.log
verb 4
secret vpn.key

Categories: HowTo Tags: , ,

Reverse SSH Tunnel

November 14th, 2016 No comments

The idea is to have my IP autostart connect to my Cloud server,
this way I can remote control my Raspberry PI without having to configure DynDNS and firewall rules.
The only requsisite is that PI has internet and run a simple script on startup to estabilish the SSH tunnel

Read more…

Cisco auto login script

September 29th, 2016 No comments

Maybe you need to login in 500 differente switches and execute a command.

here is the solution:

Categories: Linux, Uncategorized Tags:

Nagios Notify html Script

September 29th, 2016 No comments

The default notification script for nagios is very simple, why not get more information on the email. Like: hostgroup, how long has the problem happened, link to the possible documentation. And format it in a nice html table.

Read more…

check hp array disk

September 21st, 2016 No comments

check HP array disks modified script to fix Upgrade situations

Read more…

Categories: bash, HowTo, Linux Tags:

embed github code in wordpress

September 15th, 2016 No comments

This is the simples way to embed a file from a github repository to your webpage/blog

Gist-it

Read more…

Categories: HowTo Tags: , ,