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

Add log file to assist debugging

Open ThomasFreedman opened this issue 2 years ago • 4 comments

I installed via the debian .deb file with dpkg -i and there is only a brief flash of the progress bar when I click the "create hotspot" button. It doesn't stay running. Does a config file need to be created first? I can't find any log file. I'm a bit lost and I don't see any mention of logging in the source code.

I was able to use create_ap on the command line, and using one of the examples was able to create a hotspot with the same WiFi device that provided the Internet.

Don't know what's going on with the GUI failure, could be I just don't have enough info about it to use it correctly.

ThomasFreedman avatar Feb 25 '22 01:02 ThomasFreedman

Can you try executing it in the terminal by running wihotspot? you may find some logs. But I agree there should be log file support as well.

lakinduakash avatar Feb 25 '22 15:02 lakinduakash

Good suggestion, I will do that & let you know if I need further input.

Still testing. There are several UI related errors printed. If I start the create_ap on command line & start the GUI in another terminal window it seems to work. I can stop & restart it, change SSID etc.

I think the issue that it wouldn't start is related to the default for gateway. I uncheck that and it starts.

It's a permissions issue related in part at least to write access to the config in /etc. If I run it on command line as root thru sudo it works.

The path to iw on my system is /sbin/bin/iw which isn't in the std users path, so wihotspot can't populate the wifi interface drop down.

Still need to test further, with specific conditions each iteration to isolate & correlate symptoms.

I'm attaching a screenshot showing the various GUI errors, when executed from cmd line. I'll post another when started from the window manager launcher with terminal set = true for more info.

Screenshot_wihotspot

ThomasFreedman avatar Feb 25 '22 16:02 ThomasFreedman

Thanks for the information. Most of the GUI errors can be ignored related to GTK. So you are saying if you uncheck the default gateway it start without issue?

lakinduakash avatar Mar 01 '22 21:03 lakinduakash

I believe that is necessary, not positive now. What is definitely necessary is to run it as root, so the .desktop launcher needs a sudo prefix.

The one capability I'm not sure create_ap (and for sure the GUI) provides I really would like to see is the ability to take an Internet feed coming in from WiFi and provide it to a wired ethernet interface with DHCP.

If that were possible via create_ap command line I'd like to know what that command line is.

I've thought about how the GUI could be restructured to make that intuitive:

  1. change drop down on left to: Interface providing Internet
  2. change right drop down to: Wireless interface for access point
  3. add a checkbox (activate only if item 1 is not ethernet or if more than 1 ethernet interfc)
  4. add a checkbox: provide DHCP on outgoing Internet interfaces
  5. add input fields for outgoing interfaces for static IP is item 4 is not checked.

ThomasFreedman avatar Mar 02 '22 13:03 ThomasFreedman