It is sometimes required especially when managing many servers to recognize the hardware setup you are running on especially if you have a zoo of different animals. Great tool for getting detailed hardware report including bios versions and memory / processor info : dmidecode While the output varies slightly across distros and sometimes you need to…
Month: February 2013
Installing Bacula Client on Centos
So the story goes like this : wget http://sourceforge.net/projects/bacula/files/latest/download?source=files tar zxvf bacula-*.tar.gz cd bacula-<fiolder> ./configure –enable-client-only make make install make install-autostart-fd nJoy 😉
Reset Mysql password from bash prompt
You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. Step # 2: Start the MySQL (mysqld) server/daemon process with the –skip-grant-tables option so that it will not prompt for password. Step # 3: Connect to mysql server as the root user. Step # 4:…
Setting a route for a nic in Linux
In file named after the interface you want to use as gateway: e.g. /etc/sysconfig/network-scripts/route-eth0 Create entries : ADDRESS=192.168.4.0 NETMASK=255.255.255.0 GATEWAY=192.168.1.250 NnJoy 🙂
Windows setting a static route from commandline
Just a note to myself really ! route add -p 192.168.4.0 mask 255.255.255.0 192.168.1.250 metric 2
Move files with progress and bandwith limit
rsync –progress -ah –remove-sent-files –bwlimit=1000 source/ /target nJoy 🙂
Limiting access iptables
This is a Script that I use to deploy and script iptables. Sample handles ssh and mysql it’s easy to extend. #!/bin/bash # # iptables example configuration script # # Flush all current rules from iptables # iptables -F # # Allow SSH connections on tcp port 22 # This is essential when working on…
Tracking user access to machines
Quick way not very detailed but it gives you a clue $ last nJoy ! 🙂 (I get shorter and sweeter 🙂 )