Instruction on running the script

  1. Clone the git repository locally

git clone https://github.com/AbdurroheemSherifdeen/netbox-installer.git

  1. change directory to the repository folder in your local environment

cd netbox-installer

  1. Run the installer, include your ip address and the database name of your choice

./netbox-installer.sh

  1. 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

  2. Save and Exit the script

Ctrl X, Y and Enter

  1. Wait for the installer to finish

  2. Your netbox installation is successfull

  3. Lets get netbox to auto start and keep running

  4. Change the ip address in the autostart-netbox.sh => sudo nano autostart-netbox.sh

  5. Copy the autostart-netbox script to systemd/system => sudo cp autostart-netbox.service /etc/systemd/system

  6. 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