This shows you the differences between two versions of the page.
| software:netbox [2025/02/17 23:37] – created - external edit 127.0.0.1 | software:netbox [2025/07/29 04:21] (current) – adminent | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | < | ||
| + | 4 GB RAM | ||
| + | 25 GB HDD | ||
| + | 8 Processor Cores | ||
| + | Ubuntu 24.04.2 Server | ||
| + | sudo apt update -y | ||
| + | sudo apt upgrade -y | ||
| + | sudo apt install -y git nano apache2 postgresql postgresql-common libpq-dev redis-server git python3 python3-pip python3-venv python3-dev build-essential libxml2-dev libxslt1-dev libffi-dev | ||
| + | sudo systemctl status apache2 | ||
| + | sudo systemctl status postgresql | ||
| + | sudo systemctl status redis | ||
| + | psql -V | ||
| + | Must be version 12 or later | ||
| + | |||
| + | sudo -u postgres psql | ||
| + | CREATE USER netbox LOGIN CREATEDB PASSWORD ' | ||
| + | CREATE DATABASE netboxdb OWNER netbox; | ||
| + | \l | ||
| + | \du | ||
| + | \q | ||
| + | |||
| + | sudo -u postgres psql --username netbox --password --host localhost netboxdb | ||
| + | ISEisC00L! | ||
| + | \conninfo | ||
| + | \q | ||
| + | |||
| + | sudo nano / | ||
| + | Search nano with Ctrl+w | ||
| + | requirepass foobared | ||
| + | requirepass ISEisC00L! | ||
| + | Save with Ctrl+o and then Ctrl+x to exit | ||
| + | |||
| + | sudo systemctl restart redis | ||
| + | sudo systemctl status redis | ||
| + | redis-cli | ||
| + | AUTH ISEisC00L! | ||
| + | PING | ||
| + | exit | ||
| + | |||
| + | sudo useradd -r -d /opt/netbox -s / | ||
| + | cd /opt; sudo git clone -b master --depth 1 https:// | ||
| + | sudo chown -R netbox: | ||
| + | cd / | ||
| + | sudo -u netbox python3 ../ | ||
| + | sudo -u netbox cp configuration_example.py configuration.py | ||
| + | |||
| + | sudo -u netbox nano configuration.py | ||
| + | ALLOWED_HOSTS = [' | ||
| + | DATABASE = { | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | REDIS = { | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | SECRET_KEY = ' | ||
| + | End of edit | ||
| + | Save | ||
| + | |||
| + | sudo -u netbox / | ||
| + | |||
| + | source / | ||
| + | python3 / | ||
| + | netadmin | ||
| + | n@n.com | ||
| + | ISEisC00L! | ||
| + | |||
| + | (Don't use sudo) | ||
| + | python3 / | ||
| + | Now open up a browser and navigate to http:// | ||
| + | To deactivate: | ||
| + | Ctrl+c | ||
| + | |||
| + | |||
| + | |||
| + | #sudo chown --recursive netbox / | ||
| + | #sudo chown --recursive netbox / | ||
| + | #sudo chown --recursive netbox / | ||
| + | |||
| + | sudo ln -s / | ||
| + | |||
| + | To start Netbox server: | ||
| + | source / | ||
| + | python3 / | ||
| ====Backlinks==== | ====Backlinks==== | ||
| [[software: | [[software: | ||