prahladyeri / hotspotd Goto Github PK
View Code? Open in Web Editor NEWSimple daemon to create a wifi hotspot on Linux
License: MIT License
Simple daemon to create a wifi hotspot on Linux
License: MIT License
sudo hotspotd command is working all fine. My wifi card supports the AP mode as well. However, I cannot see the hotspot name on my android phone. Can you tell me where I am going wrong?
I have hotspotd configured on my raspberry pi and it works perfectly.
The only thing i now want to configure is that when an ethernet cable is connected, i also have internet on the hotspot i created.
For the moment i start hotspotd in my rc.local so i can always connect to the rpi.
I have looked on the internet to set this up but didn't find an obvious answer.
This is my ifconfig. Removed the mac adresses (and ipv6)
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.121 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 XXXXXXXXX prefixlen 64 scopeid 0x20<link>
inet6 XXXXXXXXX prefixlen 64 scopeid 0x0<global>
ether XXXXXXXXX txqueuelen 1000 (Ethernet)
RX packets 215 bytes 51856 (50.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 100 bytes 15088 (14.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.1 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 XXXXXXXXX prefixlen 64 scopeid 0x20<link>
ether XXXXXXXXX txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 44 bytes 8014 (7.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Hi everyone! I've been searching the internet about "slaving raspi with arduino" but I did not get any answer. All I see is "slave arduino with raspi". Does anyone here knows how to execute a python code on raspi using arduino via serial monitor? I am looking on how arduino send commands on serial monitor then to be executed by raspi.
Any comments and suggestions would be helpful.
Thank you and more power.
Sir! I am sorry I accidentally post this in here and I don't know how to transfer this post to where it belongs.
When people use the hotspot can I serve content over it ?
Hi Yeri
After installing you hotspotd and running it two things I observe
Was using hotspotd in Kali (Sana) without any trouble but after updating Kali to Rolling. hotspotd is not working properly. hotspot is created n its showing on the phone but when i connect to hotspotd internet cannot be accessed.Plus when i want to stop hotspotd, the command works n it shows hotspot has stopped, but still i can see the hotspot in my phone :/
help me bro.
When I do sudo python setup.py install
the script says
File "setup.py", line 13
print 'Removing files from ' + loc
^
SyntaxError: Missing parentheses in call to 'print'
Is it because something is broken with your code, or something wrong with my system?
I have Manjaro 17.0.5 x86_64 installed
Thanks in advance
Hi,
I followed your instructions and the youtube video https://www.youtube.com/watch?v=sZzvNeGS0eI
Everything is fine but i am not able to see the SSID of the name i have created during the configuration in my wifi scan on my android mobile.
Cmd output lspci -k | grep -A 3 -i network
04:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
Subsystem: Intel Corporation PRO/Wireless 3945ABG Network Connection
Kernel driver in use: iwl3945
0f:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
Subsystem: Acer Incorporated [ALI] Device 011f
Cmd Output modinfo ath9k | grep depend
depends: iwl-legacy,cfg80211,mac80211
Hi @prahladyeri , is there a way one can block a certain device using the MAC addr from accessing your hotspot?
Installing Hotspotd turns off Wifi Connection.
System: Ubuntu 18
Make a switch from MIT to GPL v3 license after finalizing the major issues.
I tried on both fedora 21 and archlinux. Both require the wifi to be turned off by nmcli and then unblocked by rfkill. And the command line has changed for nmcli in these newer distros.
So please add a check for the nmcli version. If its the new one, do nmcli r w off
. You can possibly remove the check for ubuntu.
I have been unable to join a hotspotd network from 3 android devices. The hotspots are visible, but android fails to connect in the WPA authentication stage.
after installing when I run "sudo hotspotd start" it says:
hostapd executable not found. Make sure you have installed hostapd.
If you could help me with this problem?
thx
I successfully installed everything on my Ubuntu 18.04 but i am unable to connect my android phone with the hotspot created with the hotspotd.
Well, i can't even see my hotspotd ssid on my phone, i tried "Add Network" thought it maybe a hidden network, but that doesn't work either!
Help Please!
Hello @prahladyeri
In an attempt to run it on Slackware GNU/Linux I refactored it. I'am quite happy with it. The changes and can be found here https://github.com/psachin/hotspotd
Let me know your view so that I start sending you changes.
ii already use any way to fix it ,but no one can solve permanently
Hi, this software is awesome. I would like to start and stop hotspotd from a python script and not from the terminal is there any way to do this?
I've been using your program for a few months now, after the first time I configured it, it kept running as intended. Now, I reinstalled it, the only things I changed in run.conf were ssid, wpa_passphrase, and interface (from wlan0 to wlp3s0). The hotspot shows up fine when my devices are looking for a wireless connection, and when I put in the correct passphrase, it seems to accept it, but then it just keeps attempting to connect forever. My devices did receive an IP-Address though, so they are obviously somewhat connected to the hotspot.
I also don't have a firewall turned on.
Another thing I don't understand is where the configuration files are for the hotspot. The real one, run.conf, I managed to locate, and when starting the hotspot, it seems to accept the configuration in run.conf, but when I try to configure the hotspot with sudo hotspotd configure , and add in a different configuration, and check run.conf again, I see that nothing had changed.
I tried using a different program, oblique/create_ap, and I was able to connect my devices through it, so I don't think it's an issue with my network settings.
I get the following error when I run install on CentOS 5.11. Looks like it should be 'run.dat' but I can't find where this is referenced in the code.
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/hotspotd
copying init.py -> build/lib/hotspotd
copying cli.py -> build/lib/hotspotd
copying main.py -> build/lib/hotspotd
error: can't copy 'un.dat': doesn't exist or not a regular file
Thanks for providing a way to uninstall !
I realised that there was (at least) a leftover : /usr/local/bin/hotstpod is still there (but cannot run obviously).
Thanks
[root@localhost hotspotd-0.1.4]# sudo hotspotd start
Verifying connections
Wireless interface could not be found on your device.
Traceback (most recent call last):
File "/bin/hotspotd", line 22, in <module>
hotspotd.main.main(args)
File "/usr/lib/python2.7/site-packages/hotspotd/main.py", line 302, in main
dc =json.load(open('hotspotd.json'))
IOError: [Errno 2] No such file or directory: 'hotspotd.json'
[root@localhost hotspotd-0.1.4]# ifconfig
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.16.1.27 netmask 255.255.255.0 broadcast 172.16.1.255
inet6 fe80::2e0:4cff:fe68:33c3 prefixlen 64 scopeid 0x20<link>
ether 00:e0:4c:68:33:c3 txqueuelen 1000 (Ethernet)
RX packets 12704 bytes 9533345 (9.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7091 bytes 1226289 (1.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 6 bytes 560 (560.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 560 (560.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:1e:2a:7d:82:af txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
system: dietpi
sbc: orange pi lite
there is dedicated wifi-hotspot software in dietpi-software, but from unknow reasons it can't find repository of it. Hotspotd installed succesfully, but it still think that it is not #installed
root@sbc:/path/hotspotd-0.1.4# sudo hotspotd configure
Verifying connections
Wifi interface found: wlan0
No network nic could be found on your deivce to interface with the LAN
Enter an IP address for your ap [192.168.45.1] :
Enter SSID [joe_ssid] :
Enter 10 digit password [1234567890] :
created hostapd configuration: run.conf
{'wlan': 'wlan0', 'SSID': 'joe_ssid', 'ip': '192.168.45.1', 'netmask': '255.255.255.0', 'password': '1234567890', 'inet': ''}
Configuration saved
root@sbc:/path/hotspotd-0.1.4# sudo hotspotd configure
Verifying connections
Wifi interface found: wlan0
No network nic could be found on your deivce to interface with the LAN
Enter an IP address for your ap [192.168.45.1] :
Enter SSID [joe_ssid] :montesque
Enter 10 digit password [1234567890] :KRACKcity874!
created hostapd configuration: run.conf
{'wlan': 'wlan0', 'SSID': 'montesque', 'ip': '192.168.45.1', 'netmask': '255.255.255.0', 'password': 'KRACKcity874!', 'inet': ''}
Configuration saved
root@sbc:/path/hotspotd-0.1.4# sudo hotspotd start
hostapd executable not found. Make sure you have installed hostapd.
root@sbc:/path/hotspotd-0.1.4# python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/bin/hotspotd to 755
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/hotspotd-0.1.4.egg-info
Writing /usr/local/lib/python2.7/dist-packages/hotspotd-0.1.4.egg-info
root@sbc:/path/hotspotd-0.1.4# hotspotd configure
Verifying connections
Wifi interface found: wlan0
No network nic could be found on your deivce to interface with the LAN
Enter an IP address for your ap [192.168.45.1] :
Enter SSID [joe_ssid] :zaq12wsxcde3
Enter 10 digit password [1234567890] :1234567890wertyuiop
created hostapd configuration: run.conf
{'wlan': 'wlan0', 'SSID': 'zaq12wsxcde3', 'ip': '192.168.45.1', 'netmask': '255.255.255.0', 'password': '1234567890wertyuiop', 'inet': ''}
Configuration saved
root@sbc:/path/hotspotd-0.1.4# hotspotd start
hostapd executable not found. Make sure you have installed hostapd.
root@sbc:/path/hotspotd-0.1.4# python hotspotd configure
Verifying connections
Wifi interface found: wlan0
No network nic could be found on your deivce to interface with the LAN
Enter an IP address for your ap [192.168.45.1] :
Enter SSID [joe_ssid] :raressid
Enter 10 digit password [1234567890] :secret_pass
created hostapd configuration: run.conf
{'wlan': 'wlan0', 'SSID': 'raressid', 'ip': '192.168.45.1', 'netmask': '255.255.255.0', 'password': 'secret_pass', 'inet': ''}
Configuration saved
root@sbc:/path/hotspotd-0.1.4# python hotspotd start
hostapd executable not found. Make sure you have installed hostapd.
root@sbc:/path/hotspotd-0.1.4# cd ..
root@sbc:/path# python hotspotd start
python: can't open file 'hotspotd': [Errno 2] No such file or directory
root@sbc:/path# hotspotd start
hostapd executable not found. Make sure you have installed hostapd.
root@sbc:/path# what's your problem?
Other device can't connect to hotspot
Just showing Authenticating..
Hello,
I use a USB WiFI dongle, but when I run hotspotd it says this:
Verifying connections
Wireless interface could not be found on your device.
Traceback (most recent call last):
File "/usr/local/bin/hotspotd", line 22, in
hotspotd.main.main(args)
File "/usr/local/lib/python2.7/dist-packages/hotspotd/main.py", line 308, in main
dc =json.load(open('hotspotd.json'))
IOError: [Errno 2] No such file or directory: 'hotspotd.json'
WiFi is enabled and I can see other WiFI networks.
The hotspot is working properly before I used the "apt-get dist-upgrade". After the process I can't turn on my hotspot anymore. I restarted the laptop but it wouldn't work.
Can someone please help me. I really need a hotspot for I am only using LAN.
/usr/bin/python: No module named hotspotd.main; 'hotspotd' is a package and cannot be directly executed
:(
When using my RPM from https://build.opensuse.org/package/show/home:Mailaender:branches:network/hotspotd
Hi,
I used this package to use wifi hotspot in Ubuntu 14.04 it was working fine, but after upgrading to 15.04 it doesn't seem work properly.
sudo hotspotd start
is running. but wifi signal is not there.
I used hotspotd-0.1.4 version
Downstream Linux distros will complain about these things.
"NOTE: sys.prefix doesn't equate to /usr/local for some reason" https://github.com/prahladyeri/hotspotd/blob/master/setup.py#L27
That reason is that the system prefix on most Linux systems is /usr, not /usr/local. (/usr/local is the prefix for Ports on BSD, though).
This whole mess to strip out the --prefix option? ( https://github.com/prahladyeri/hotspotd/blob/master/setup.py#L34 ) Distros set --prefix for a reason... this is objectionable.
In fact, a lot of this setup.py is just questionable. Why isn't it just the standard setup()
boilerplate and not much else?
When I do: sudo hotspotd configure
, it asks for password.
I would like to create a hotspot with SSID, but with no need for a password.
I installed a proprietary driver in my Ubuntu 16.10 device. My wireless card is 03:00.0 Network controller: Broadcom Limited BCM4313 802.11bgn Wireless Network Adapter (rev 01)
I ran lspci -k | grep -A 3 -i network
and it says
03:00.0 Network controller: Broadcom Limited BCM4313 802.11bgn Wireless Network Adapter (rev 01)
Subsystem: Broadcom Limited BCM4313 802.11bgn Wireless Network Adapter
Kernel driver in use: wl
Kernel modules: bcma, wl
So I ran modinfo wl | grep depend
and it says
depends: cfg80211
I ran sudo hotspotd start
it output something like these below. I believe there's something wrong with hotspotd itself:
Traceback (most recent call last):
File "/usr/local/bin/hotspotd", line 28, in <module>
mainmod.main(args)
File "/usr/local/lib/python2.7/dist-packages/hotspotd/main.py", line 291, in main
the_version = open("VERSION").read().strip()
IOError: [Errno 2] No such file or directory: 'VERSION'
So what happened?
BTW bcma doesn't support the 80211 stuff. It says depends:
and that is all.
I can start hotspotd without problem. I leave the default password, only changed the SSID name
The SSID name appears on my cellphone, I put the default password (123456890) but appears an error while trying to authenticate.
I'm running the hotspotd into a Debian 8 with an USB adapter Realtek RTL8188CUS.
What am I doing wrong?
hi,
whenever i am starting hotspotd in fedora its saying that you need root permission. i am already a root user.
[root@dhcp-0-40 hotspotd-0.1.4]# ls
build cli.py hotspotd init.py main.py PKG-INFO run.dat setup.py
[root@dhcp-0-40 hotspotd-0.1.4]# hotspotd start
You need root permissions to do this, sloth!
[root@dhcp-0-40 hotspotd-0.1.4]# strace hostspotd start
strace: Can't stat 'hostspotd': No such file or directory
[root@dhcp-0-40 hotspotd-0.1.4]# /bin/host
host hostid hostname hostnamectl
[root@dhcp-0-40 hotspotd-0.1.4]# type hostpotd
bash: type: hostpotd: not found
[root@dhcp-0-40 hotspotd-0.1.4]# type hotspotd
hotspotd is hashed (/bin/hotspotd)
[root@dhcp-0-40 hotspotd-0.1.4]# /bin/hotspotd start
You need root permissions to do this, sloth!
[root@dhcp-0-40 hotspotd-0.1.4]# sudo /bin/hotspotd start
You need root permissions to do this, sloth!
[root@dhcp-0-40 hotspotd-0.1.4]# sudo hotspotd start
You need root permissions to do this, sloth!
[root@dhcp-0-40 hotspotd-0.1.4]#
i have tested it with latest hotspotd repo but the same error is coming.
any clue regarding this issue?
Hello,
I am getting this error:
Traceback (most recent call last):
File "/usr/local/bin/hotspotd", line 9, in
hotspotd.main(sys.argv[1:])
AttributeError: 'module' object has no attribute 'main'
My distro is:
Linux arm 3.8.13-bone59 #1 SMP Sat Jul 5 02:59:43 UTC 2014 armv7l armv7l armv7l GNU/Linux
lsmod reports:
Module Size Used by
g_multi 51145 0
libcomposite 14931 1 g_multi
8812au 796224 0
cfg80211 352597 1 8812au
rfkill 16762 2 cfg80211
and
modinfo 8812au | grep depends:
depends: cfg80211
Please advise?
I have a doubt. Just want to know if it works or not. Say I have created two dhcp ranges using dnsmasq. Say the first range is from 192.168.45.20-40 and the second range is from 192.168.45.60-80. The first scope does not allow default gateway to the internet, the devices can only communicate with each other using TCP/UDP. The second scope allows access to the internet. Now, say a device is first allocated an IP address in the first scope. After connection, it changes its IP address to the second scope. Will it have access to the internet?
On systems other than ubuntu, the interface is not wlan0
. In archlinux, it is wlo1
and something else in fedora. This id is not properly saved by the configure wizard. It is always wlan0
. This triggers a silent failure; when start
is invoked without -v
it still says hotspot started, without any error text.
Whenever I start the hotspot the internet starts giving DNS not found error
Using Ubuntu 14.04
eth1 is connected to a router, not directly to the internet. So PPP is not running on that port as required per the script. Any ideas?
When I start the daemon, get this:
sudo hotspotd start
Verifying interfaces
eth1 interface was not found. Make sure you are connected to the internet.
ifconfig:
eth1 Link encap:Ethernet HWaddr 00:26:b9:7a:71:49
inet addr:192.168.1.135 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::226:b9ff:fe7a:7149/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3267551 errors:0 dropped:0 overruns:0 frame:0
TX packets:2923430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1613802714 (1.6 GB) TX bytes:433274305 (433.2 MB)
Interrupt:17
eth2 Link encap:Ethernet HWaddr 8a:53:95:7d:e2:b3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
The script seems not to find my ethernet interface, though it appears in ifconfig
eth1 Link encap:Ethernet HWaddr 00:24:9b:06:27:c9
inet addr:192.168.4.25 Bcast:192.168.7.255 Mask:255.255.248.0
inet6 addr: fe80::224:9bff:fe06:27c9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:190513 errors:0 dropped:341 overruns:0 frame:0
TX packets:9898 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:56733130 (56.7 MB) TX bytes:1113617 (1.1 MB)
How would I go about to configure a domain name for the hotspot? Example, instead of directing a user to use an IP address go to doSomthing.com and that would redirect them to localhost.
root@test:~# hotspotd
/usr/bin/python: No module named hotspotd.main; 'hotspotd' is a package and cannot be directly executed
root@test:~# hotspotd start
/usr/bin/python: No module named hotspotd.main; 'hotspotd' is a package and cannot be directly executed
root@test:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
root@test:~# cd hotspotd-0.1/
root@test:~/hotspotd-0.1# ls
build cli.pyc hotspotd.json init.py run.conf setup.py
cli.py hotspotd hotspotd.py PKG-INFO run.dat
root@test:~/hotspotd-0.1# hotspotd start
hotspot is already running.
root@test:~/hotspotd-0.1#
The install script fails on my machine with this trace:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/hotspotd
copying hotspotd.py -> build/lib.linux-x86_64-2.7/hotspotd
copying init.py -> build/lib.linux-x86_64-2.7/hotspotd
copying cli.py -> build/lib.linux-x86_64-2.7/hotspotd
copying run.dat -> build/lib.linux-x86_64-2.7/hotspotd
running install_lib
creating /usr/local/lib/python2.7/dist-packages/hotspotd
copying build/lib.linux-x86_64-2.7/hotspotd/run.dat -> /usr/local/lib/python2.7/dist-packages/hotspotd
copying build/lib.linux-x86_64-2.7/hotspotd/hotspotd.py -> /usr/local/lib/python2.7/dist-packages/hotspotd
copying build/lib.linux-x86_64-2.7/hotspotd/init.py -> /usr/local/lib/python2.7/dist-packages/hotspotd
copying build/lib.linux-x86_64-2.7/hotspotd/cli.py -> /usr/local/lib/python2.7/dist-packages/hotspotd
byte-compiling /usr/local/lib/python2.7/dist-packages/hotspotd/hotspotd.py to hotspotd.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/hotspotd/init.py to init.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/hotspotd/cli.py to cli.pyc
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/hotspotd-0.1.egg-info
Traceback (most recent call last):
File "setup.py", line 39, in
distutils.file_util.copy_file(loc + '/hotspotd/hotspotd.py','/usr/bin/hotspotd',link='sym',preserve_mode=1)
File "/usr/lib/python2.7/distutils/file_util.py", line 109, in copy_file
"can't copy '%s': doesn't exist or not a regular file" % src)
distutils.errors.DistutilsFileError: can't copy '/usr/lib/python2.7/site-packages/hotspotd/hotspotd.py': doesn't exist or not a regular file
To minimize a dependency of the app,
hostapd
license and whether it allows static binding.hotspotd
in a "headless server" setup.hotspotd
to something better.I realize there is no way to uninstall your package. It would be good to provide a setup.py uninstall commande.
Hello,
I've tested your software in my Linux Mint 17.1 machine but it does not seem to work properly.
The installation went smoothly, and I set up a hotspot using sudo hotspotd start
and entered necessary info. The outputs suggest that hotspot is running, but it is not visible to any devices. I tried to connect to that in my iphone but it says not reachable.
Edit README.md
and make the following changes:
[ 2s] Writing /home/abuild/rpmbuild/BUILDROOT/python-hotspotd-0.1-0.x86_64/usr/lib/python2.7/site-packages/hotspotd-0.1-py2.7.egg-info
[ 2s] Install base: /usr/lib/python2.7/dist-packages
[ 2s] Traceback (most recent call last):
[ 2s] File "setup.py", line 49, in <module>
[ 2s] distutils.file_util.copy_file(loc + '/hotspotd/hotspotd.py','/usr/bin/hotspotd',link='sym',preserve_mode=1)
[ 2s] File "/usr/lib64/python2.7/distutils/file_util.py", line 109, in copy_file
[ 2s] "can't copy '%s': doesn't exist or not a regular file" % src)
[ 2s] distutils.errors.DistutilsFileError: can't copy '/usr/lib/python2.7/dist-packages/hotspotd/hotspotd.py': doesn't exist or not a regular file
[ 2s] error: Bad exit status from /var/tmp/rpm-tmp.V2otRL (%install)
No idea why this happens https://build.opensuse.org/package/show/home:Mailaender:branches:network/hotspotd
Wow! hotspotd works out of the box (I tried it on Dragonboard 410c). Very nice.
Now a question - what's the right way to add a simple web server, so when a I browse from my phone to any url, a default web page will be shown? (This will be used for the wifi provisioning of the device)
Is there anyway in which we can see the mac address of device when it is trying to connect to my wifi and ask the device for additional details? Can we block certain mac addresses using hotspotd?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.