Update README.md with new install instruction

This commit is contained in:
Lakindu Akash 2020-10-04 16:17:55 +05:30
parent c968b8a54c
commit 020f473d11
No known key found for this signature in database
GPG Key ID: 87D9889F7A634A38

View File

@ -6,6 +6,7 @@
### Update
* Config files are wriiten to /etc/wh.config (Previously, configurations were wriiten to home directory as `.wh.config`).
* `.desktop` file is added. So You can start from app launcher
* Use `make` to build instead of `cmake`
### Features
@ -46,9 +47,8 @@ install it using your distro's package manager_
* dnsmasq
* iptables
#### For building from source
#### To build from source
* cmake (https://cmake.org)
* make
* gcc and g++
* build-essential
@ -59,14 +59,15 @@ install it using your distro's package manager_
On Ubuntu or debian install dependencies by,
```bash
sudo apt install -y libgtk-3-dev build-essential cmake gcc g++ pkg-config make hostapd
sudo apt install -y libgtk-3-dev build-essential gcc g++ pkg-config make hostapd
```
## Installation
**Note: If you have installed previous version of this project make sure to uninstall it by checking out to the previous version (v2.1.1 or below).
Also you can use `sudo make clean-old` without checking out to the previous version. After that install the binaries. Otherwise your system might left orphaned binaries and files.**
git clone https://github.com/lakinduakash/linux-wifi-hotspot
cd linux-wifi-hotspot
@ -81,6 +82,22 @@ sudo apt install -y libgtk-3-dev build-essential cmake gcc g++ pkg-config make h
## Uninstallation
sudo make uninstall
#### To build with cmake (Deprecated)
You need additionally `cmake`
Use the `Makefile.cmake`
cd linux-wifi-hotspot
#Build binaries
make -f Makefile.cmake
#Install
sudo make -f Makefile.cmake install
#Uninstall
sudo make -f Makefile.cmake uninstall
## Running
You can run it from terminal or from application menu.