RackTables is an open-source data center infrastructure management (DCIM) tool that helps administrators manage their data center's physical assets. In this tutorial, you will learn how to install RackTables on a Fedora Server.
Before you start, ensure that you have the following:
The first step before installing any software is to update the system to the latest packages.
Open a terminal window.
Type the following command to update the system:
sudo dnf update
Press Enter and wait for the system to update.
RackTables requires several packages that need to be installed before installing RackTables.
Type the following command to install the required packages:
sudo dnf install httpd php php-xml mod_ssl openssl mariadb-server php-mysqlnd php-gd
Press Enter and wait for the packages to install.
To download RackTables, follow the steps below:
Open a terminal window.
Type the following command to download the latest version of RackTables:
wget https://github.com/RackTables/racktables/archive/v0.21.5.tar.gz
Press Enter and wait for the download to complete.
Go to the directory where you downloaded RackTables using the following command:
cd /path/to/downloaded/racktables/archive/
Extract the archive using the following command:
tar xzf racktables-0.21.5.tar.gz
Move the RackTables folder to the Apache configuration folder using the following command:
sudo mv racktables-0.21.5 /var/www/html/racktables
Set the appropriate permissions on the RackTables folder using the following command:
sudo chown -R apache:apache /var/www/html/racktables
Set the appropriate SELinux contexts for RackTables using the following command:
sudo chcon -R -t httpd_sys_rw_content_t /var/www/html/racktables
Create a new database for RackTables using the following command:
sudo mysql -u root -p
Enter your MySQL root password when prompted.
Type the following command to create a new database:
CREATE DATABASE racktables;
Type the following command to create a new user:
CREATE USER 'rackuser'@'localhost' IDENTIFIED BY 'rackpassword';
Note: Substitute "rackuser" and "rackpassword" with the desired username and password.
Type the following command to grant privileges on the new database to the new user:
GRANT ALL PRIVILEGES ON racktables.* TO 'rackuser'@'localhost';
Type the following command to flush the privileges:
FLUSH PRIVILEGES;
Exit the MySQL console using the following command:
exit
Open the Apache configuration file using the following command:
sudo nano /etc/httpd/conf/httpd.conf
Add the following lines at the bottom of the file:
Alias /racktables /var/www/html/racktables/wwwroot/
<Directory "/var/www/html/racktables/wwwroot/">
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Save and close the file.
Enable and start Apache using the following commands:
sudo systemctl enable httpd
sudo systemctl start httpd
Enable and start MariaDB using the following commands:
sudo systemctl enable mariadb
sudo systemctl start mariadb
You can now access RackTables by opening a web browser and navigating to:
http://localhost/racktables
You will be prompted to enter the database details during the first login. Use the following details:
You have now installed RackTables on your Fedora Server.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!