# OpenIPC Wiki
[Table of Content](../README.md)

Step by step commands to run GroundStation on Ubuntu 22.04
---------------------------------------------------------

<p align="center">
  <img src="https://github.com/OpenIPC/wiki/blob/master/images/fpv-logo.jpg?raw=true" alt="Logo"/>
</p>

Video version: - [OpenIPC - Prepare GroundStation: Ubuntu + QGroundControl](https://www.youtube.com/watch?v=JMtRAsOm0Dc)

### Prepare
```
sudo apt update
```
```
sudo apt install dkms git python3-all-dev net-tools virtualenv fakeroot debhelper python3-twisted
 libpcap-dev python3-pyroute2 python3-future python3-configparser python3-all libsodium-dev
```

### Libsodium
```
git clone https://github.com/jedisct1/libsodium --branch stable
cd libsodium
./configure
make && make check
sudo make install
```

### Wifi card driver
```
git clone -b v5.2.20 https://github.com/svpcom/rtl8812au.git
cd rtl8812au/
sudo ./dkms-install.sh
```

### WFB-NG
```
git clone -b stable https://github.com/svpcom/wfb-ng.git
cd wfb-ng
sudo ./scripts/install_gs.sh wlan0
```

### Channel configuration
```
vi /etc/wifibroadcast.cfg
```

### Start WFB CLI
```
wfb-cli gs
```
###GS IS READY FOR USE###

### Start, stop, restart service
```
systemctl status wifibroadcast@gs
systemctl stop wifibroadcast@gs
systemctl start wifibroadcast@gs
```

### Qground control manual

- https://docs.qgroundcontrol.com/master/en/getting_started/download_and_install.html

### Get last logs from service
```
journalctl -xu wifibroadcast@gs -n 100
```

### Useful commands
```
nmcli
ifconfig
iwconfig

```