Jump to content


Photo

OpenPLi-py3


  • Please log in to reply
1139 replies to this topic

Re: OpenPLi-py3 #861 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 4 March 2023 - 12:40

but where to find menu sort?
standard options?sorry did not understand ur reply...dont mind


No need to install anything
Try blue button in menu.

Re: OpenPLi-py3 #862 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 4 March 2023 - 12:45

I don't want to use openresolv.
It automatically adds the gateway as a nameserver in /etc/resolv.conf when use DHCP.


In that case, when uninstalling openresolv, you need to remove link creation as /etc/resolv.conf.
Instead of creating a hack in enigma, who on enigma strat writes a file instead of this link.


Edited by Taapat, 4 March 2023 - 12:45.


Re: OpenPLi-py3 #863 taree

  • Senior Member
  • 48 posts

0
Neutral

Posted 4 March 2023 - 14:14

 

but where to find menu sort?
standard options?sorry did not understand ur reply...dont mind

No need to install anything
Try blue button in menu.

===========================

but i cannot find blue button after pressing menu.like openatv images

 


Edited by taree, 4 March 2023 - 14:15.


Re: OpenPLi-py3 #864 Dimitrij

  • PLi® Core member
  • 10,322 posts

+350
Excellent

Posted 4 March 2023 - 14:22

[Network] completely rewrite the DNS name server code

 

I know it's far from ideal, but it really does work.


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: OpenPLi-py3 #865 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 4 March 2023 - 15:19

I don't want to use openresolv.

It automatically adds the gateway as a nameserver in /etc/resolv.conf when use DHCP.

 

And

When using two interfaces, all dns servers automatically write in /etc/resolv.conf.

 

No, it doesn't, it writes the DNS issued via DHCP to resolv.conf, and yes, that is often the same as the default gateway (i.e. your home router).

 

And when both interfaces are up, openresolv will also write both DNS entries to resolv.conf. When the interface is down, it doesn't, because obviously that entry could not be reachable.

 

I think you failed to understand how it works...


Edited by neo, 4 March 2023 - 15:20.


Re: OpenPLi-py3 #866 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 4 March 2023 - 15:23

 

I don't want to use openresolv.
It automatically adds the gateway as a nameserver in /etc/resolv.conf when use DHCP.


In that case, when uninstalling openresolv, you need to remove link creation as /etc/resolv.conf.
Instead of creating a hack in enigma, who on enigma strat writes a file instead of this link.

 

Every Linux distro uses a volatile resolv.conf, which is why OE starting with Hardknott also does that, it is standard linux.

 

imho removing openresolv is not an option, and I don't see a need to provide this option in the plugin, is will only lead to confusion and complaints.

 

To remove it you need to hack in OE, and when the autobackup is adapted, you also need to hack that.

 

All that without any benefit, only because a misunderstanding of what resolvconf does and how it works...



Re: OpenPLi-py3 #867 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 4 March 2023 - 16:02

but i cannot find blue button after pressing menu.like openatv images


It is not displayed in the menu, but it works.



Re: OpenPLi-py3 #868 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 4 March 2023 - 16:04

Every Linux distro uses a volatile resolv.conf, which is why OE starting with Hardknott also does that, it is standard linux.
 
imho removing openresolv is not an option, and I don't see a need to provide this option in the plugin, is will only lead to confusion and complaints.
 
To remove it you need to hack in OE, and when the autobackup is adapted, you also need to hack that.
 
All that without any benefit, only because a misunderstanding of what resolvconf does and how it works...


That's why I'm writing that you don't need complicate the code to use /etc/resolv.conf.


Edited by Taapat, 4 March 2023 - 16:36.


Re: OpenPLi-py3 #869 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 4 March 2023 - 23:06

Here my offer without openresolv removing: https://github.com/O...igma2/pull/3629



Re: OpenPLi-py3 #870 display name

  • Senior Member
  • 627 posts

+26
Good

Posted 4 March 2023 - 23:28

openresolv \ should be removed from image.bb ?
 


Re: OpenPLi-py3 #871 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 5 March 2023 - 02:10

No !

 

The plugin had the option to remove it, but it should never be removed, that will break DNS resolving.



Re: OpenPLi-py3 #872 Dimitrij

  • PLi® Core member
  • 10,322 posts

+350
Excellent

Posted 5 March 2023 - 08:52

In vain.

 

I don't want to use openresolv.

It automatically adds the gateway as a nameserver in /etc/resolv.conf when use DHCP

 

Now you have to delete openresolv through telnet.


Edited by Dimitrij, 5 March 2023 - 08:53.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: OpenPLi-py3 #873 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 5 March 2023 - 18:51

Why are you so obsessed with removing it? Perhaps you need to understand what has changed and how it works.

 

There is absolutely no need for it, unless you're busy fucking up the image. It is required to make a volatile /etc/resolv.conf work.

 

I can only repeat:

 

it DOES NOT add a gateway to resolv.conf. It only adds DNS IP's to resolv.conf, so if your gateway IP is in there, it is because your DHCP server told the box that is the DNS IP.

 

the scripted dhcpc hook would have done the same in the past.


Edited by neo, 5 March 2023 - 18:54.


Re: OpenPLi-py3 #874 Dimitrij

  • PLi® Core member
  • 10,322 posts

+350
Excellent

Posted 6 March 2023 - 06:45

 

it DOES NOT add a gateway to resolv.conf. It only adds DNS IP's to resolv.conf, so if your gateway IP is in there, it is because your DHCP server told the box that is the DNS IP.

I know it.

But without openresolv, this did not happen, especially automatically.


Edited by Dimitrij, 6 March 2023 - 06:47.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: OpenPLi-py3 #875 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 6 March 2023 - 15:24

What did not happen? The DNS provided by DHCP wasn't added to resolv.conf? Then you've changed or broken more in the past, because dhcpc has a hook for that.

 

To verify, I've flashed and booted 8.3-release.

 

It doesn't even support DHCP + static nameservers, when DHCP is active, dhcpc rewrites /etc/resolv.conf with the DNS given by DHCP, and removes all static or manually added entries.

 

The only way to use static nameservers in 8.3 is to disable DHCP, and configure a fixed IP address for the interface.

 

The changes proposed by WanWizard addresses this, and provide support for both. And resolvconf should add the static nameservers to resolv.conf before any DHCP ones, so the staticly configured DNS entries are used first.

 

If you remove openresolv, none of this works anymore, and you fall back to 8.3 behaviour, with the bonus of a volatile resolv.conf that is always empty at boot.

 

Unless you manually change that. But I can only repeat, there is no reason for it, and you have given me no reason to believe this is needed.

 

So, what specific situation do you have, that is not covered by WanWizards proposal?


Edited by neo, 6 March 2023 - 15:25.


Re: OpenPLi-py3 #876 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 6 March 2023 - 15:29

I've now tested the same in the current develop: Interface on DHCP, one static nameserver (Google secondary) configured.

 

resolvconf writes this to resolv.conf

# Generated by resolvconf
nameserver 8.8.4.4
nameserver 192.168.10.5

the first one being the staticly defined DNS, the second one being the DNS issued by DHCP.
 



Re: OpenPLi-py3 #877 Dimitrij

  • PLi® Core member
  • 10,322 posts

+350
Excellent

Posted 6 March 2023 - 18:46

 

So, what specific situation do you have, that is not covered by WanWizards proposal?

All OK.

I agree with all the current changes.

 

next step support inet6


Edited by Dimitrij, 6 March 2023 - 18:58.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: OpenPLi-py3 #878 display name

  • Senior Member
  • 627 posts

+26
Good

Posted 7 March 2023 - 00:47

With the latest develop changes to Network, when I exit Adapter Settings screen,

the next time I open it, it shows a blank network name (SSID) encryption and key configuration.

I have to restart Enigma2 to see this data again. I am using a wlan connection.


Edited by Amai, 7 March 2023 - 00:53.


Re: OpenPLi-py3 #879 display name

  • Senior Member
  • 627 posts

+26
Good

Posted 7 March 2023 - 01:14

Hi
Pager.py renderer was added to enigma2 develop
but not to Makefile.am file to have it in new image build.

Edited by Amai, 7 March 2023 - 01:16.


Re: OpenPLi-py3 #880 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 7 March 2023 - 01:21

Thanks for letting us know, added.




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users