Instruction on running the script
- Clone the git repository locally
git clone https://github.com/AbdurroheemSherifdeen/netbox-installer.git
- change directory to the repository folder in your local environment
cd netbox-installer
- Run the installer, include your ip address and the database name of your choice
./netbox-installer.sh
-
A configuration file will open during the installation. Edit the following Allow Host = ['ip address or hostname'] DATABASE = { Name = 'your data base name' User = 'your database user' Password = 'password' } SECRET_KEY = '' Generate a randome secret key of about 50 characters and paste it here
-
Save and Exit the script
Ctrl X, Y and Enter
-
Wait for the installer to finish
-
Your netbox installation is successfull
-
Lets get netbox to auto start and keep running
-
Change the ip address in the autostart-netbox.sh => sudo nano autostart-netbox.sh
-
Copy the autostart-netbox script to systemd/system => sudo cp autostart-netbox.service /etc/systemd/system
-
Enable and start the service
sudo systemctl enable autostart-netbox.service sudo systemctl start autostart-netbox.service
copy the ip address and open it in your browser