linux-wifi-hotspot/README.md

143 lines
4.3 KiB
Markdown
Raw Normal View History

2019-04-14 16:43:50 +00:00
## Linux Wifi Hotspot
2019-04-17 20:19:58 +00:00
[![Build Status](https://travis-ci.com/lakinduakash/linux-wifi-hotspot.svg?branch=master)](https://travis-ci.com/lakinduakash/linux-wifi-hotspot)
2019-04-17 20:52:12 +00:00
[![Gitter](https://badges.gitter.im/linux-wihotspot/community.svg)](https://gitter.im/linux-wihotspot/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Flakinduakash%2Flinux-wifi-hotspot.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Flakinduakash%2Flinux-wifi-hotspot?ref=badge_shield)
2019-04-17 20:19:58 +00:00
2020-05-06 11:07:26 +00:00
### Update
2020-10-30 19:20:25 +00:00
* Add MAC filter
2020-11-14 13:51:33 +00:00
* Support enabling IEEE80211n and IEEE80211ac
2020-10-30 19:20:25 +00:00
* Release Debian package
2020-05-06 11:07:26 +00:00
2019-04-14 16:43:50 +00:00
### Features
2019-04-15 21:30:14 +00:00
2020-12-15 23:37:58 +00:00
* Share your wifi like in Windows - Use wifi and enable hotspot at the same time.
2019-04-16 21:14:18 +00:00
* Share access point from any network interface
2020-10-30 19:44:48 +00:00
* MAC filter
2019-04-15 21:30:14 +00:00
* Includes Both command line and gui.
2020-11-04 00:28:43 +00:00
* Support both 2.4GHz and 5GHz (Need to be compatible with your wifi adapter). Ex: You have connected to the 5GHz network and share a connection with 2.4GHz.
2019-04-17 21:14:17 +00:00
* Select Channel.
* Hide SSID
2019-04-14 16:43:50 +00:00
2019-04-17 19:36:57 +00:00
![screenshot](docs/sc2.png)
2019-04-17 18:32:30 +00:00
2020-09-18 21:37:48 +00:00
2020-12-22 14:58:36 +00:00
### Command line help and documentation
2019-04-17 18:12:59 +00:00
2020-12-22 14:58:36 +00:00
Read [Command line help and documentation here](src/scripts/README.md).
If you only need the command-line without GUI run `make install-cli-only` as root user.
2020-12-22 14:37:55 +00:00
2019-05-27 21:15:43 +00:00
### Notes
2019-09-02 04:25:48 +00:00
Sometimes there are troubles with **5Ghz bands** due to some vendor restrictions. If you cannot start hotspot while you are connected to 5Ghz band, Unselect **Auto** and select **2.4Ghz** in frequency selection.
2019-05-27 21:15:43 +00:00
If any problems with **RealTeK Wifi Adapters** see [this](docs/howto/realtek.md)
2019-09-05 12:01:16 +00:00
2020-10-28 15:13:23 +00:00
### Installation
#### Debian/Ubuntu
2021-01-17 21:06:48 +00:00
2020-10-28 15:13:23 +00:00
Download the debian package from latest [release](https://github.com/lakinduakash/linux-wifi-hotspot/releases/latest)
2021-01-17 21:06:48 +00:00
<!-- - [linux-wifi-hotspot_3.5.1_amd64.deb](https://github.com/lakinduakash/linux-wifi-hotspot/releases/download/v3.5.1/linux-wifi-hotspot_3.5.1_amd64.deb) -->
2020-10-28 15:13:23 +00:00
**OR**
```bash
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com' --recv-key CF5822229C773847E8E991972E2DF77ABB5D3237
sudo add-apt-repository --remove ppa:lakinduakash/lwh
sudo apt install linux-wifi-hotspot
```
2020-10-28 15:13:23 +00:00
#### Arch based distributions
Install with:
2020-10-28 15:13:23 +00:00
```bash
yay -S linux-wifi-hotspot
```
2020-10-28 15:13:23 +00:00
### Dependencies
2019-04-14 16:43:50 +00:00
#### General
2019-04-16 21:14:18 +00:00
* bash
* util-linux (for getopt)
* procps or procps-ng
* hostapd
* iproute2
* iw
* iwconfig (you only need this if 'iw' can not recognize your adapter)
* haveged (optional)
2019-04-14 16:44:26 +00:00
2019-04-16 21:14:18 +00:00
_Make sure you have those dependencies by typing them in terminal. If any of dependencies fail
install it using your distro's package manager_
#### For 'NATed' or 'None' Internet sharing method
* dnsmasq
* iptables
#### To build from source
2019-04-14 16:44:26 +00:00
* make
2019-04-15 21:30:14 +00:00
* gcc and g++
* build-essential
* pkg-config
* gtk
2019-04-17 20:32:12 +00:00
* libgtk-3-dev
On Ubuntu or debian install dependencies by,
```bash
2020-10-28 16:01:38 +00:00
sudo apt install -y libgtk-3-dev build-essential gcc g++ pkg-config make hostapd
2019-04-17 20:32:12 +00:00
```
## Installation
git clone https://github.com/lakinduakash/linux-wifi-hotspot
cd linux-wifi-hotspot
2019-04-17 20:32:12 +00:00
#build binaries
make
2019-04-17 20:32:12 +00:00
#install
sudo make install
## Uninstallation
2019-04-16 21:14:18 +00:00
sudo make uninstall
## Running
You can launch the GUI by searching for "Wifi Hotspot" in the Application Menu
or using the terminal with:
2020-07-30 18:48:43 +00:00
wihotspot
2019-04-16 21:14:18 +00:00
## Run on Startup
The `wihotspot` GUI uses `create_ap` to create and manage access points. This service and core logic was originally created by
[@oblique](http://github.com/oblique), and are now maintained in this
repository.
2019-04-17 18:18:17 +00:00
Start the hotspot service on startup (using your saved configuration) with:
2019-04-18 07:00:07 +00:00
systemctl enable create_ap
2019-04-18 07:00:07 +00:00
### Tested with Ubuntu from 16.04 to 20.04. If any issue is found, file an issue on github.
2019-04-18 07:00:07 +00:00
## Contributing
2020-12-22 14:19:32 +00:00
2020-12-22 14:31:14 +00:00
If you found a bug or you have an idea about improving this make an issue. Even a small contribution make open source world more beautiful.
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for more info.
2020-12-22 14:19:32 +00:00
2021-01-22 20:42:23 +00:00
## Disclaimer
<div>Icons made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
2019-04-18 07:00:07 +00:00
2019-04-17 18:18:17 +00:00
## License
FreeBSD
Copyright (c) 2013, oblique
2020-02-02 06:57:35 +00:00
Copyright (c) 2020, lakinduakash
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Flakinduakash%2Flinux-wifi-hotspot.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Flakinduakash%2Flinux-wifi-hotspot?ref=badge_large)