linux-wifi-hotspot icon indicating copy to clipboard operation
linux-wifi-hotspot copied to clipboard

Package for opensuse

Open Evan-aja opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. I'm currently using opensuse tumbleweed and I can't for the life of me configure create_ap to run on it. And there's no obs (aur of opensuse) version of this app so I'm stuck with not having hotspot on the same interface

Describe the solution you'd like I would like to request an rpm package for opensuse or obs so that I could use this app there (I'm new to Linux hence why I'm struggling to do it myself)

Describe alternatives you've considered None

Additional context None

Evan-aja avatar May 01 '21 09:05 Evan-aja

You can try the general installation approach. check https://github.com/lakinduakash/linux-wifi-hotspot#dependencies in README.md. Install those dependencies via your package manager( probably RPM). Then clone the repo and follow https://github.com/lakinduakash/linux-wifi-hotspot#installation-1

I will try to release a RPM package.

lakinduakash avatar May 01 '21 10:05 lakinduakash

i'm sorry for my late response, but when i'm trying to build from source, please note that i have installed all the needed dependencies and followed the all the steps written to make sure it will work, yet i was presented with this error

Installing...
cd src && make install
make[1]: Entering directory '/home/evan/linux-wifi-hotspot/src'
make[1]: *** No rule to make target '../build/wihotspot-gui', needed by 'install'.  Stop.
make[1]: Leaving directory '/home/evan/linux-wifi-hotspot/src'
make: *** [Makefile:9: install] Error 2

Evan-aja avatar May 02 '21 04:05 Evan-aja

i had a sucessful instal using cli only option

Installing command line interface only...
cd src/scripts && make install
make[1]: Entering directory '/home/evan/linux-wifi-hotspot/src/scripts'
install -CDm755 create_ap /usr/bin/create_ap
install -CDm644 create_ap.conf /etc/create_ap.conf
install -CDm644 create_ap.service /usr/lib/systemd/system/create_ap.service
install -CDm644 bash_completion /usr/share/bash-completion/completions/create_ap
install -CDm644 README.md /usr/share/doc/create_ap/README.md
install -CDm755 wihotspot /usr/bin/wihotspot
make[1]: Leaving directory '/home/evan/linux-wifi-hotspot/src/scripts'

but when i'm trying to execute it it gave me this error message. which can only be fixed with disconnecting from wifi, which defeats the entire purpose of this program

sudo create_ap wlp18s0 wlp18s0 asd 12345678

Config dir: /tmp/create_ap.wlp18s0.conf.BMDJqxTs
PID: 1261
Network Manager found, set ap0 as unmanaged device... DONE
wlp18s0 is already associated with channel 7 (2442 MHz)
multiple channels not supported,

fallback to channel 7
Creating a virtual WiFi interface... ap0 created.
Sharing Internet using method: nat
Setting /usr/sbin/dnsmasq to complain mode.
Warning: profile dnsmasq represents multiple programs
Warning: profile dnsmasq represents multiple programs
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp18s0.conf.BMDJqxTs/hostapd_ctrl
Configuration file: /tmp/create_ap.wlp18s0.conf.BMDJqxTs/hostapd.conf
Could not open configuration file '/tmp/create_ap.wlp18s0.conf.BMDJqxTs/hostapd.conf' for reading.
Failed to set up interface with /tmp/create_ap.wlp18s0.conf.BMDJqxTs/hostapd.conf
Failed to initialize interface

Error: Failed to run hostapd, maybe a program is interfering.
If an error like 'n80211: Could not configure driver mode' was thrown
try running the following before starting create_ap:
    nmcli r wifi off
    rfkill unblock wlan

Doing cleanup.. done

Evan-aja avatar May 02 '21 05:05 Evan-aja

use this https://github.com/QwertyTheCoder/linux-wifi-hotspot-RPM-OPENSUSE

QwertyTheCoder avatar Aug 07 '22 09:08 QwertyTheCoder