GithubHelp home page GithubHelp logo

hotspotd's Introduction

Prahlad's profile

prahladyeri | Email prahladyeri | LinkedIn prahladyeri | Twitter

prahladyeri | Instagram

patreon paypal

Hello, I am Prahlad Yeri, Freelance Programmer and Writer.

Educate and solve problems is my mantra and I'm here to provide you IT solutions ๐Ÿ’ป.

I work on Web and Desktop Development projects. My technology stack typically includes PHP, CodeIgniter, Python, Flask, JavaScript, jquery, Bootstrap, C#/WinForms, etc.

For more information, visit my weblog.


Prahlad's GitHub stats

Top Langs

hotspotd's People

Contributors

mrahul17 avatar prahladyeri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hotspotd's Issues

Does not install on Ubuntu 14.04. Missing python dependency?

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

Create a deb package for hotspotd daemon

  • Contact a Debian maintainer/developer.
  • Ask them to have a look at hotspotd and whether it is of any use in the distro.
  • List down what all changes need to be done to integrate this in Debian.

Unable to authenticate with hotspot

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.

No such file or directory: 'VERSION'

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.

devices keep connecting forever

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.

unable to turn on hotspot after the upgrade on kali linux

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.

How can i configure wlan to get internet connection from ethernet?

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

Block access

Hi @prahladyeri , is there a way one can block a certain device using the MAC addr from accessing your hotspot?

How to use this on Boss Operating System

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

No module named hotspotd.__main__

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#

setup.py complaints / issues

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?

Authentication problem using hotspotd with USB Adapter on Debian 8

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?

Not an issue, a doubt

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?

Works very well! [Adding basic web server]

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)

Not an issue, a question

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?

Ubuntu 14.04 LTS Connection Failure

Hi Yeri
After installing you hotspotd and running it two things I observe

  • ubuntu won't connect to internet anymore
  • device connects but data not downloading

Hotspot not being detected by android phone

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?

Provide a way to uninstall

I realize there is no way to uninstall your package. It would be good to provide a setup.py uninstall commande.

hostapd

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

Statically embed hostapd

To minimize a dependency of the app,

  • Look into how permissible the hostapd license and whether it allows static binding.
  • If it does, then see the feasibility of including hostapd in this app itself.
  • Test hotspotd in a "headless server" setup.
  • Change the name of the app from from hotspotd to something better.

prompts "not installed" after succesfull installation on sbc

DETAILS

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

COPY OF CONSOLE LOG

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?

setup.py fails when trying to generate an RPM

[    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

"Wireless interface could not be found on your device."

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.

Can't share eth1 (no PPP?)

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)

Does not work in Linux mint 17.1 64-bit

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.

installation failure

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

screenshot from 2017-10-02 10-56-09

Thanks in advance

Error running on BegaleBoard Ubuntu 14

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?

configure wizard: wrong interface id in run.conf

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.

hostapd workarounds needed not just for ubuntu

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.

hotspot is having issue in kali linux(Rolling)

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.
screenshot from 2016-02-22 01-06-10
screenshot from 2016-02-22 01-07-53

Slave Raspberry Pi with Arduino

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.

hotspotd start is not working in fedora

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?

On CentOS 7 this doesn't works.

[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

When starting, got "eth1 interface was not found. Make sure you are connected to the internet."

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)

Doesn't work in Ubuntu 15.04 64bit

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

Not an issue just a question?

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.

Does it work on Ubuntu 18.04?

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!

Serving content

When people use the hotspot can I serve content over it ?

Error during install v0.1.5

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.