committed by
							
								 GitHub
								GitHub
							
						
					
				
				 1 changed files with 50 additions and 0 deletions
			
			
		| @ -1 +1,51 @@ | |||
| # Installation for raspberry-pi 4 | |||
| These instructions are untested, and should be verified by someone. Please create a ticket :) | |||
| 
 | |||
| ### 1. Install dependencies | |||
| ``` | |||
| sudo apt-get update && sudo apt-get install git python3 python3-pip | |||
| ``` | |||
| 
 | |||
| ### 2. Setup required environment variables | |||
| ``` | |||
| export <ENV> <VALUE> | |||
| ``` | |||
| 
 | |||
| Make it permanent with putting it in bashrc | |||
| Refer to the list in the main readme file. | |||
| 
 | |||
| ### 2. Installing wireguard | |||
| ``` | |||
| # Get signing keys to verify the new packages, otherwise they will not install | |||
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC 648ACFD622F3D138 | |||
| 
 | |||
| # Add the Buster backport repository to apt sources.list | |||
| echo 'deb http://httpredir.debian.org/debian buster-backports main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/debian-backports.list | |||
| 
 | |||
| sudo apt update | |||
| sudo apt install wireguard wireguard-tools -y | |||
| ``` | |||
| 
 | |||
| ### 3. Installing node.js | |||
| ``` | |||
| curl -sL https://deb.nodesource.com/setup_13.x | sudo bash - | |||
| ``` | |||
| 
 | |||
| ### 3. Installing | |||
| ``` | |||
| # Building frontend | |||
| sudo git clone https://github.com/perara/wireguard-manager.git /opt/wireguard-manager | |||
| cd /opt/wireguard-manager/wg_dashboard_frontend | |||
| sudo npm install > /dev/null || sudo npm install @angular/cli > /dev/null | |||
| sudo ng build --configuration="production" > /dev/null | |||
| 
 | |||
| sudo mv dist ../wg_dashboard_backend/build | |||
| cd ../wg_dashboard_backend/ | |||
| sudo python3 -m venv venv && source venv/bin/activate | |||
| sudo pip install -r requirements.txt | |||
| sudo pip install uvicorn | |||
| sudo uvicorn main:app | |||
| #INFO:     Started server process [259296] | |||
| #INFO:     Waiting for application startup. | |||
| #INFO:     Application startup complete. | |||
| ``` | |||
|  | |||
					Loading…
					
					
				
		Reference in new issue