Racktable Installation


Racktables :
—————
RackTables is “A management framework for rackspace, IP addresses, servers, switches, routers and much more!”. To me, it is the solution to a project that I have been working on for some time – A means of mapping out our data center at work. I have, for a long time, wanted a way to map out and make available in a web interface, our server racks

Download and Deploy RackTables Web Application :
——————————————————————-
cd /tmp/
wget wget –no-check-certificate https://downloads.sourceforge.net/project/racktables/RackTables-0.19.6.tar.gz
tar -xvzf RackTables-0.19.6.tar.gz
sudo cp -r RackTables-0.19.6/wwwroot /var/www/racktables

CentOS & Redhat :
————————–
sudo mv -r RackTables-0.19.6/wwwroot /var/www/html/racktables

Create Database And Database User :
———————————————–
mysql -u root -p
create database racktables;
grant all on racktables.* to root;
grant all on racktables.* to root@localhost;
grant all on racktables.* to rackuser;
grant all on racktables.* to rackuser@localhost;
set password for rackuser@localhost=password(‘rackpw’);
exit

Racktables Installation Script :
————————————–
#/bin/bash

echo “Creating MySQL ROOT Password”

sqlpass=”Password”

echo “Updating System”

sudo apt-get update

echo “Creating Dir”

mkdir temp

cd temp

echo “Download and Deploy RackTables Web Application”

wget wget –no-check-certificate https://downloads.sourceforge.net/project/racktables/RackTables-0.19.6.tar.gz

tar -xvzf RackTables-0.19.6.tar.gz

echo “Copying to Document Root”

sudo cp -r RackTables-0.19.6/wwwroot /var/www/racktables

echo “Creating Database And Database User”

mysql -u root -p$sqlpass -e “create database racktables;”
mysql -u root -p$sqlpass -e “grant all on racktables.* to root;”
mysql -u root -p$sqlpass -e “grant all on racktables.* to root@localhost;”
mysql -u root -p$sqlpass -e “grant all on racktables.* to rackuser;”
mysql -u root -p$sqlpass -e “grant all on racktables.* to rackuser@localhost;”
mysql -u root -p$sqlpass -e “set password for rackuser@localhost=password(‘Password’);”
mysql -u root -p$sqlpass -e “FLUSH PRIVILEGES;”

echo “Setting Permissions”

sudo touch /var/www/racktables/inc/secret.php

sudo chmod 666 /var/www/racktables/inc/secret.php

echo “Installation Completed”

echo “Please Check Racktables http://Ip-address/racktables

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s