libera/#devuan/ Friday, 2023-01-06

crhyloveYo!  How do I solve the daedalus repo issue?  Release file for http://deb.devuan.org/merged/dists/daedalus/InRelease is not valid yet (invalid for another 9h 33min 39s). Updates for this repository will not be applied.00:29
crhylovenm.  My clock was way off.00:37
* crhylove shrugs00:37
ibanja.01:39
ibanjaI have two modem wan ports. My router is hooked up to one as a firewall and access point for most of my LAN. I just hooked up a computer to the second wan port which now gets it's DHCP from my ISP. The problem is it getting assigned a weird hostname such as c09963002e81-000004. How can I pass my hostname to my ISP's DHCP server?01:39
Xenguyibanja, Idle awhile, and see if you get any feedback forthcoming01:40
ibanjaI have a that says "send host-name = gethostname();" in my /etc/dhcp/dhclient.conf file. Shouldn't that send my correct hostname?01:40
ibanjaI have a line that says...01:41
ibanjaidling01:41
rrqcheck with "dhclient -cf /etc/dhcp/dhclient.conf -v" for errors01:46
ibanjaI get the following output: https://paste.debian.net/1266266/ but I have semicolons in my dhclient.conf file: https://paste.debian.net/1266267/01:55
rrqline 16 is mising the "s" ?01:56
ibanjarrq: oops... that was not the original problem though.  I deleted the s by mistake while editing the file and trying the line: send host-name "myhost.com"04:06
rwpibanja, I have never seen Debian/Devuan set the hostname from DHCP.  But RHEL does this routinely.  Just confirming this is a Debian/Devuan system?  (I'll help either way.)05:00
rwpThe /etc/dhcp/dhclient.conf send host-name = gethostname(); sets the hostname that is *sent* to the DHCP server.05:01
rwpIf the hostname is changing after that point then it is something else that is receiving the hostname from the DHCP server and then setting it.05:01
rwpI always found that truly Evil but a lot of corporate sites do diskless servers that way routinely.05:02
buZzmy devuan&debian machines have zero issue configuring their DNS hostnames on my mikrotik with plain normal DHCP10:15
gnarfacethere's an optional extension to the DHCP protocol that allows the server to set the hostname of the client along with the other network setup info, and some ISPs require your client to accept their assigned hostname to work, i'm not completely sure both the dhcp clients support it11:47
buZzsome (many) consumer ISPs dont allow configuring DNS name at all11:48
gnarfaceyea i remember with comcast much earlier i was able to get it to work by simply figuring out their server-assigned dhcp hostname and setting it manually at the client end11:49
gnarface(at the time they were claiming linux couldn't work with their system but it turns out that was the only barrier)11:49
buZzhmhm11:50
gnarfaceduring the later incident when i was setting up both server and client ends, i recall having to add a shell script to a hook in the clients to make it work, but i'm not sure that's still required11:50
gnarfacethe thing is, it's not part of the base standard it's some microsoft extension11:51
gnarface(dhcp wasn't meant to be a security feature but some ISPs are using it that way anyway)11:59
tomtmymHello12:35
tomtmymi have problem with running virtualbox 6.1 on devuan12:36
tomtmymyesterday i installed virtualbox 6.1, it ran perfectly, today i start to run a VM it gives me error12:36
ibanjarwp: Yes, I'm running Devuan GNU/Linux 4 (chimaera).12:54
gnarfacetomtmym: what is the error?15:29
tomtmymgnarface: "kernel driver not installed (rc=-1908)", but as i said before, it was working fine yesterday, only today i get this error19:19
rwpibanja, With package isc-dhcp-client using dhclient?  That's my standard configuration too and it does not set the host's hostname for me.19:23
rwpHave you perhaps (just brainstorming) installed something else that would have installed a hook which would set the hostname?19:23
rwpYou might try running this "dpkg -S /etc/network/" looking at what packages install files there as a hint for possibilities.19:24
gnarfacetomtmym: the host OS is linux? or just the guest?19:30
tomtmymgnarface: the host is linux19:30
tomtmymdevuan19:30
gnarfacedid you upgrade the kernel between then and now?19:31
gnarfacetomtmym: my best guess based on google results (i don't use virtualbox) is that it's either a permissions problem or the vboxdrv isn't loaded19:39
gnarfacevboxdrv kernel module that is19:40
ibanjarwp:yes "with package isc-dhcp-client"... Looking at "dpkg -S /etc/network/" as you suggested doesn't show anything unusual installed, and nothing recent. I was getting a proper hostname when behind a router.  I think it might be something to do with the ISP.19:48
rwpibanja, I don't see how an ISP would have any special access to set a hostname, or not, on the DHCP client side of things.  That's all client side software.20:00
rwpThe /etc/dhcp/dhclient.conf sets up what data is exchanged in the request.  But then dhclient or other client side software acts upon it.20:02
gnarfacerwp: it's a real thing, it can be sent as part of the dhcp response it's just not a part of the core standard20:02
rwpAnd normally that does not include changing the local hostname to match what was returned.20:02
rwpIt's definitely a real thing.  dhclient has a "host-name" attribute which is requested from the dhcp server.  But that doesn't mean it actually changes the hostname.20:03
rwpAnd dhclient sends the hostname.  Because doing things like dual booting with different hostnames requires the dhcp server to offer different IP addresses.20:03
rwpIn the end though it is happening on ibanja's system and so whatever is happening must be debugged there.20:04
gnarfaceno you can also have the dhcp client request a host name20:04
gnarfacesome dhcp clients may use it out of the box, some may ignore it, some may require using a  script hook20:05
tomtmymgnarface: no, i did not upgrade the kernel20:06
gnarfacerwp, ibanja: https://askubuntu.com/questions/104918/how-to-get-the-hostname-from-a-dhcp-server20:07
gnarfacesome disagreement here, but if you read all the posts and fill in the blanks you should be able to figure it out20:07
gnarfaceit's an ancient post so like i said, you might not need to make your own script hook anymore20:09
gnarfacebut i definitely had to do that at one point20:09
gnarfacesome ISPs use an optional extension to the DHCP protocol where the server actually assigns a hostname but it's not default behavior for most linux distros to obey it20:10
gnarfacethe functionality tends to be buggy, missing, or just off by default20:10
gnarfacebut you can make it work and it's not the same thing as sending a hostname with the dhcp request20:11
ibanjagnarface: having a look at the link now20:18
ibanja"hostname -d" returns "hostname: Name or service not known"20:23
ibanjanot sure if that is meaningful20:24
gnarfacehostname -d returns the domain name20:27
gnarfacedomain name and host name are not the same thing in this context20:27
gnarfaceand you should have both but it is possible to have neither20:27
gnarfaceibanja: you should try to find a more recent discussion on this matter somewhere out there that will take into account updates in the dhcp client you're using20:29
gnarface(if there were any relevant ones)20:29
gnarfaceat the very minimum, you should have this line in your /etc/hosts file for things to work properly: 127.0.0.1localhost.localdomainlocalhost20:30
gnarfaceand the output of /sbin/ifconfig should show device lo set to 127.0.0.120:31
gnarfaceit's also possible for that to be wrong, but hopefully you're not so far off the path20:31
gnarfaceibanja: (also note that if you have moved the machine to a different location with a different dhcp server, you can't necessarily rely on any hostname or domain name being assigned and may have to set one yourself manually)20:40
gnarface(in that case you can just add it to /etc/hosts)20:41
gnarface(changes to that file take effect immediately but firefox may have to be restarted)20:41
rwpAs ibanja explained things the problem is the opposite of the current suggestions.  As I understand it, it is a problem that the system is setting the hostname to the DHCP'd hostname.  That's what needs to stop.20:42
ibanjagnarface: should localhost.localdomain be localhost.localdomain or localhost.mydomain ?21:01
ibanjaI have: "myhostname.domainname.com hostname in /etc/hosts21:02
ibanjayes, rwp is correct.21:02
rwpibanja, /etc/hosts should have a line "127.0.0.1 localhost" no .localdomain attached.  That's also the default install value.22:01
rwpA strategy adopted by Debian forever ago was to have an line "127.0.1.1 foo.example.com foo" for the local hostname and domain.22:02
rwp(Sidebar: That was proposed by Thomas Hood an eon ago.)22:02
rwpIt's a strategy and there are alternatives sometimes needed.  But that one works for most people.22:03
rwpThe localhost.localdomain thing is a different strategy for a generic machine configuration.  Generic without a customized hostname and without a customized domain.22:03
ibanjaI have that correct then.22:04
rwpWhen installing postfix, exim, sendmail, whatever, (for example) they can use that as the packaged default name and everything will be self consistent.22:04
rwpAnd if you don't have anything to set those too then they can continue to be used and things continue to work as installed.22:04
rwpI have a domain name that I use.  I like assigning names to my systems.  So when installing I tell the installer my hostname and domain name22:05
rwpand the installer will set up 127.0.1.1 angst.proulx.com angst" for my system for example at install time.22:05
rwpBut that's the story on the .localdomain thing.  It's a working placeholder for a generic system without a different domain name.22:06
rwpThe idea with 127.0.1.1 is that it is always available even when eth0/wlan0 is offline.  And so network daemons like sshd, ntpd, are happy regardless.22:07
rwpThe case where that sometimes does not work is most often corporate CAD/EDA design labs with software that runs across a distributed cluster of systems22:08
rwpand that passes what it thinks is it's own IP address around to other systems in the cluster.22:08
rwpSoftware that looks at the IP address associated with the hostname will see 127.0.1.1 and pass that to the sibling computer farm system in the collective22:09
rwpand that system will talk to itself instead of the sibling.  So in that particular type of environment we must revert back to the classic22:09
rwpway of setting up static IP address assignments and assigning that in /etc/hosts associated with the hostname hard coded.22:09
ibanjaOK, thanks for the explanation.22:12
ibanjaI don't know if this is meaningful, but when I run: "dig @myISP-DNS-server mydomain.com" on my desktop that is behind a router-firewall I get "mydomain.com IN A" When I run the same command from the edge computer I get "mydomain.com IN A 173.18.xx.xx"22:15
ibanjathe desktop behind the firewall doesn't return the IP address.22:16
rwpIs the DHCP server registering a dynamic DNS name for the address negotiated?  And you get that address when talking to the DHCP servers DNS server but not otherwise?22:19
rwpHonestly you redacted information which made looking at it confusing.  So I might have missed the mark by a lot there.22:19
HelenahHi22:21
rwpibanja, Is mydomain.com actually your real domain name?  Or is it an example.  If you are going to use examples please use one of example.com, example.net, example.org and then we know what they are since those are designated for that purpose.22:21
rwpHello Helenah.  Welcome to #devuan.  This is the community support channel.  Social chatter in #devuan-offtopic is welcome! :-)22:21
HelenahI see22:22
ibanjait is an example... example.com22:24
rwpNote that dig only looks at DNS information.  It does not look at files, does not look at /etc/hosts at all.  It's a DNS query tool only.22:34
HelenahWhat rwp said22:47
HelenahIt's accurate advice. :)22:47
HelenahOkay so at the Devuan installer I get "The exchange of keys and association with the access point failed. Please check the WPA/WPA2 parameters you provided" so I check the WPA/WPA2 parameters I provided against the router, they match so I try again, same problem, this has to be some non-free situation surely.22:51
rrqdid you chose an https mirror ?22:53
rwpWiFi problems!  Sigh.  Surely the weakest link in installer.  Which install image are you trying?  netinst?  Or one of the others?22:53
* rrq ah, right.22:53
rwpNote install documentation is here https://www.devuan.org/os/documentation/install-guides/chimaera/install-devuan22:53
Helenahrwp: *-server.iso22:53
Helenahyes that release22:53
Helenahrrq: Not at that stage yet and rightly so.22:54
rwpThen I would recommend completing the install completely from the included iso without a network connection.  Booting.  Then sorting out the WiFi afterward.22:54
HelenahNot necessary, I'll plug into Ethernet to continue, that way I'm not having to mess with sources.list later.22:55
rwpAlso knowing which WiFi device you have is useful as some are supported and some like Broadcom unfortunately have no working Linux kernel drivers.22:55
rwpDefinitely installing with a wired connection is most reliable.22:55
HelenahDon't worry, I've used GNU/Linux since 2005, I've learned to avoid broadcom wifi. :)22:56
rwpAwesome!  I'll just say in passing that wicd is python2 and no longer supported on the python3 based Devuan 4 Chimaera.  So connman is the heir apparent to wicd now.22:59
rwpOr there is, ahem, NetworkManager, which I hate it having screwed me over too many times.  So I avoid it.  But others do use it.23:00
rwpAnd of course there is the old standby way of configuring wpa_supplicant directly.  Which is mostly what I do these days.  But that's the deep detail method.23:00
HelenahI use NetworkManager on laptops.23:01
rwpThen you will be set. :-)23:01
HelenahYeah, any system which is portable, I found things like nettools, systemd-networkd, etc to be tedious when things need to change dynamically so NetworkManager is perfect here for me. :D23:04
HelenahBut yeah it has its problems like you pointed out.23:04
Helenahrwp: I ran a shell from the installer, I'm wanting to shrink a partition as small as possible.23:14
Helenahse7en: Great movie. :D23:15
fsmithredHelenah, try setting the wireless password to all lower-case alpha with no special characters. I've had that problem in the installer. After install, you can switch it back to lower/upper/special characgters.23:56

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!