Re: [Dorset] Debugging dnsmasq and dhcpd

2022-03-29 Thread Terry Coles
Messages go to syslog as I've since found out.

Apparently there is an address conflict but it doesn't show up until I've tried 
to connect several times.  I'm confused.

I'll look at this tomorrow.

⁣Sent from Blue ​

On 29 Mar 2022, 18:11, at 18:11, Peter Merchant via dorset 
 wrote:
>On 29/03/2022 15:14, Terry Coles wrote:
>> Hi,
>>
>> The system that I've been talking about for a few days seems to have
>a problem
>> with WiFi.  It generally works OK the first time a user connects, but
>after
>> that the message 'Obtaining IP Address' is displayed for ever.  What
>I can't
>> work out is how to debug this.  Can anyone tell me where to find the
>log file(s)
>> for dnsmasq?
>>
>A quick search gets me:
>
>Ok then your are using hostapd and dnsmasq. For the clients
>informations you can parse the 'leases' file of dnsmasq
>in|/var/lib/misc/dnsmasq.leases|
>
>|I don't know whether the logfiles are close to it. |
>
>|In dnsmasq.conf I found:|
>
>|# For debugging purposes, log each DNS query as it passes through #
>dnsmasq. #log-queries # Log lots of extra information about DHCP
>transactions. #log-dhcp |
>
>|But I can't find any logfiles in rootfs partition. |
>-- 
>  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
>  Check to whom you are replying
>  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
>  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk
-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Debugging dnsmasq and dhcpd

2022-03-29 Thread Peter Merchant via dorset

On 29/03/2022 15:14, Terry Coles wrote:

Hi,

The system that I've been talking about for a few days seems to have a problem
with WiFi.  It generally works OK the first time a user connects, but after
that the message 'Obtaining IP Address' is displayed for ever.  What I can't
work out is how to debug this.  Can anyone tell me where to find the log file(s)
for dnsmasq?


A quick search gets me:

Ok then your are using hostapd and dnsmasq. For the clients informations you 
can parse the 'leases' file of dnsmasq in|/var/lib/misc/dnsmasq.leases|

|I don't know whether the logfiles are close to it. |

|In dnsmasq.conf I found:|

|# For debugging purposes, log each DNS query as it passes through # dnsmasq. 
#log-queries # Log lots of extra information about DHCP transactions. #log-dhcp 
|

|But I can't find any logfiles in rootfs partition. |
--
 Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Next Meeting - One Week Tonight

2022-03-29 Thread Terry Coles
Hi,

The next Meeting will be one week tonight Tuesday, 2022-05-04 20:00 using 
Jitsi.

Details are as for the previous meetings, but they will be re-posted  on the 
day.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Debugging dnsmasq and dhcpd

2022-03-29 Thread Terry Coles
Hi,

The system that I've been talking about for a few days seems to have a problem 
with WiFi.  It generally works OK the first time a user connects, but after 
that the message 'Obtaining IP Address' is displayed for ever.  What I can't 
work out is how to debug this.  Can anyone tell me where to find the log 
file(s) 
for dnsmasq?

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Brother Laser Printers on (K)Ubuntu

2022-03-29 Thread Peter Merchant via dorset

On 29/03/2022 10:30, Terry Coles wrote:

Hi,

I currently have an excellent HP A3 Inkjet printer which does scan, copy and
print very well, but costs an arm and a leg for ink.  Not only does it appear
to drink the stuff, a full set of cartridges are currently well over £100.

My Birthday is coming up, so I thought that I would use that as an excuse to
get a Laser Printer.  I initially looked at HP, because their HPLIP package
pretty much guarantees that any of their printers will work on Linux.
However, at the cheaper end of the market they are all monochrome only and /
or don't do double sided printing automatically.  I print a lot of documents
with coloured diagrams, so need both colour and double sided printing.

At Which? there are three best buy colour Lasers; the HP Color LaserJet Pro
M255dw at £799, another HP printer that only does manual double-sided and the
Brother HL-L3230CDW, which does everything that I need.  However, I've never
owned a Brother printer.

So what are the gotchas?  Do Brother Printers generally work on Linux?  Does
anyone already own or have experience of this printer?

Alternatively, can anyone recommend a laser printer that meets my requirements
and also works well on Linux?


I have a Brother HL 1212W wireless laser printer and have never had any trouble 
with it. It is only black and single sided. I seem to remember having to 
download the drivers from the brother support site but I have had it for a few 
years now.

Peter M.


--
 Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Follow Up to my WMT Webserver Problem

2022-03-29 Thread Terry Coles
On Tuesday, 29 March 2022 11:59:39 BST Hamish McIntyre-Bhatty wrote:
> Hmm interesting. Are you not having the SSH connection issues to the
> webserver when it's at your house then? That was the issue we were
> originally debugging, and shouldn't have anything to do with either
> nodogsplash or Android if I understand things correctly.

That's fixed.  I had accidentally set up the wrong default route during some 
earlier work.

I've now discovered a timeout value in the config file for nodogsplash.  The is 
a unitless number for the timeout while a client is connecting (called 
PreAuthIdleTimeout) and another for after he has connected (called 
AuthIdleTimeout).  The docs suggest that these are in minutes, but while I was 
debugging, one of the clients was de-authenticated after 120 seconds instead 
of 2 hours.  This gave me the clue that the number represents seconds so I 
increased the PreAuthIdleTimeout from 2 to 20 and things seem a lot better 
now.

If this works, I'll probably change both to the equivalent number of seconds 
for the original values, so 120 for PreAuthIdleTimeout and 7200 for 
AuthIdleTimeout.  The numbers were originally chosen to give the Visitor 2 
minutes to work out what to do initially and 2 hours on site before he had to 
reconnect.

I also have an intermittent issue connecting to the WiFi in the first place, so 
I may be back :-)

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Follow Up to my WMT Webserver Problem

2022-03-29 Thread Hamish McIntyre-Bhatty

On 29/03/2022 11:37, Terry Coles wrote:

After realising that the problem had nothing to do with the VPN Server, I've
done further investigation and the most likely cause of this is the check that
all Android phones have to do before they will connect to a WiFi Network.

On occasions I've caught an error from 'connectivitycheck.gstatic.com/
generate_204'.  Sometimes I'm getting 'net::ERR_CONNECTION_ABORTED' and
sometimes I get 'net::ERR_TIMED_OUT'.  I've posted a typical screenshot at:

https://hadrian-way.co.uk/Misc/Android_Screenshot_2022-03-29.jpg

The trouble is that during WiFi connection checks a message is sent to that
URL by the phone and if the response isn't received, then Android believes
that there is no Internet access and (normally) flags this up to the user with
an option to ignore before connecting.  It seems that nodogsplash somehow gets
into the middle of this sometimes and the Welcome splash screen doesn't get
displayed.

Even so, a user 'in the know' can still connect to the content by browsing to
the Home Page, so the connection is still made.  Unfortunately there will be
no Visitors to WMT who are in the know.

The trouble is that development of nodogsplash seems to be moribund, the last
commits being about 2 years ago and there have been no issues added since
October last year.  I therefore suspect that I can't get much help from that
source.

Has anyone any thoughts on this?  As mentioned elsewhere this problem isn't
new; we just had less understanding of it 2-3 years ago and it was less
prevalent.  Before that, I used to display a notice on site which gave
instructions on how to browse to the Home Page, but this was deemed to be too
complicated and nodogsplash was installed to make it easier..  I don't really
want to have to go back to the original approach if possible.


Hmm interesting. Are you not having the SSH connection issues to the 
webserver when it's at your house then? That was the issue we were 
originally debugging, and shouldn't have anything to do with either 
nodogsplash or Android if I understand things correctly.


Hamish


--
 Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Follow Up to my WMT Webserver Problem

2022-03-29 Thread Terry Coles
After realising that the problem had nothing to do with the VPN Server, I've 
done further investigation and the most likely cause of this is the check that 
all Android phones have to do before they will connect to a WiFi Network.

On occasions I've caught an error from 'connectivitycheck.gstatic.com/
generate_204'.  Sometimes I'm getting 'net::ERR_CONNECTION_ABORTED' and 
sometimes I get 'net::ERR_TIMED_OUT'.  I've posted a typical screenshot at:

https://hadrian-way.co.uk/Misc/Android_Screenshot_2022-03-29.jpg

The trouble is that during WiFi connection checks a message is sent to that 
URL by the phone and if the response isn't received, then Android believes 
that there is no Internet access and (normally) flags this up to the user with 
an option to ignore before connecting.  It seems that nodogsplash somehow gets 
into the middle of this sometimes and the Welcome splash screen doesn't get 
displayed.

Even so, a user 'in the know' can still connect to the content by browsing to 
the Home Page, so the connection is still made.  Unfortunately there will be 
no Visitors to WMT who are in the know.

The trouble is that development of nodogsplash seems to be moribund, the last 
commits being about 2 years ago and there have been no issues added since 
October last year.  I therefore suspect that I can't get much help from that 
source.

Has anyone any thoughts on this?  As mentioned elsewhere this problem isn't 
new; we just had less understanding of it 2-3 years ago and it was less 
prevalent.  Before that, I used to display a notice on site which gave 
instructions on how to browse to the Home Page, but this was deemed to be too 
complicated and nodogsplash was installed to make it easier..  I don't really 
want to have to go back to the original approach if possible.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Brother Laser Printers on (K)Ubuntu

2022-03-29 Thread Terry Coles
Hi,

I currently have an excellent HP A3 Inkjet printer which does scan, copy and 
print very well, but costs an arm and a leg for ink.  Not only does it appear 
to drink the stuff, a full set of cartridges are currently well over £100.

My Birthday is coming up, so I thought that I would use that as an excuse to 
get a Laser Printer.  I initially looked at HP, because their HPLIP package 
pretty much guarantees that any of their printers will work on Linux.  
However, at the cheaper end of the market they are all monochrome only and / 
or don't do double sided printing automatically.  I print a lot of documents 
with coloured diagrams, so need both colour and double sided printing.

At Which? there are three best buy colour Lasers; the HP Color LaserJet Pro 
M255dw at £799, another HP printer that only does manual double-sided and the 
Brother HL-L3230CDW, which does everything that I need.  However, I've never 
owned a Brother printer.

So what are the gotchas?  Do Brother Printers generally work on Linux?  Does 
anyone already own or have experience of this printer?

Alternatively, can anyone recommend a laser printer that meets my requirements 
and also works well on Linux?

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk