# Porta Installation Guide
## Requirements
- Linux (Ubuntu 20.04+, Debian 11+, Fedora 36+)
- Root access (sudo)
- WireGuard kernel module
## Install from source
```bash
# Install Rust (if not installed)
# Clone and build
git clone https://github.com/yourusername/porta-rs.git
cd porta-rs
cargo build --release
# Install binary
sudo cp target/release/porta /usr/local/bin/
```
## Install via Cargo
```bash
cargo install porta-rs
```
## Install WireGuard (if not installed)
```bash
# Ubuntu/Debian
sudo apt update
sudo apt install wireguard
# Fedora
sudo dnf install wireguard-tools
# Arch
sudo pacman -S wireguard-tools
```
## Systemd Service
```bash
# Copy service file
sudo cp templates/porta.service /etc/systemd/system/
# Enable and start
sudo systemctl enable porta
sudo systemctl start porta
```
## Verify Installation
```bash
porta --version
```