LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-03-2024, 05:30 PM   #31
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,719

Rep: Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911

I shutdown ConnMan and ran dhclient and here is the lease file.

It would also be interesting to see what command line parameters dhclient is using. Post the output of the command:
ps ax | grep dhclient
Attached Files
File Type: txt lease.txt (426 Bytes, 15 views)

Last edited by michaelk; 01-03-2024 at 08:40 PM.
 
Old 01-03-2024, 11:42 PM   #32
niceflipper8827
Member
 
Registered: Sep 2023
Location: Washington State,USA
Distribution: ChromeOS,SlackWare,Android and Lubuntu
Posts: 68

Rep: Reputation: 2
Unless you have a special use case i.e. you trying to segment out your network for certain use cases like a home lab situation. In most cases, it is recommended that someone who doesn't know what they're doing not try to alter the setting that your router manufacturer ships the device, and if you do just make sure that you use the firmware backup function of your device I'd also recommend that the OP start doing their research most every router manufacturer may even have user to user support communities.
 
Old 01-04-2024, 12:12 PM   #33
estatistics
LQ Newbie
 
Registered: Sep 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
By default lxqt uses ConnMan as the connection manager, not dhclient and what it uses as the lease file does not contain host name. For what is worth I included the screenshots as desired.
I specifically used that to install in two computers.
https://cdimage.debian.org/debian-cd...64/iso-hybrid/
and then chose this:
[ISO] debian-live-12.4.0-amd64-lxqt.iso



(these setups/logs are AFTER i have made changes to dhclient.conf)
ps ax | grep dhclient

936 ? Ss 0:00 dhclient -4 -v -i -pf /run/dhclient.enp3s0.pid -lf /var/lib/dhcp/dhclient.enp3s0.leases -I -df /var/lib/dhcp/dhclient6.enp3s0.leases enp3s0
803999 pts/1 S+ 0:00 grep dhclient




cat /var/lib/dhcp/dhclient.enp3s0.leases
default-duid "\000\001\000\001,\004^\355tV<?\007\037";
lease {
interface "enp3s0";
fixed-address 192........;
option subnet-mask 255.255.255.0;
option routers 192........;
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option domain-name-servers 192........;
option dhcp-server-identifier 192........;
option host-name "elme";
option domain-name "station";
renew 3 2024/01/03 20:54:32;
rebind 3 2024/01/03 20:54:32;
expire 3 2024/01/03 20:54:32;
}
lease {
interface "enp3s0";
fixed-address 192........;
option subnet-mask 255.255.255.0;
option routers 192.........;;
option dhcp-lease-time 864000;
option dhcp-message-type 5;
option domain-name-servers 192.........;;
option dhcp-server-identifier 192.........;;
option dhcp-renewal-time 432000;
option ntp-servers 192........;
option broadcast-address 192.........;
option dhcp-rebinding-time 756000;
option host-name "elme";
option domain-name "station";
renew 1 2024/01/08 22:58:06;
rebind 6 2024/01/13 09:36:09;
expire 0 2024/01/14 15:36:09;
}

in my processes, i found both

`connmand -n` and `device -4 -v -i -pf ....dhclient.enp3s0.pid -lf ...dhclient.enp3s0.leases -I -df .....dhclient.enp3s0.leases`

In my surprise, somehow, .xauthority got the central machine name given by router, again ("easy")!

cat .Xauthority
elme1MIT-MAGIC-COOKIE-1h���C_�W�,L�b��easy0MIT-MAGIC-COOKIE-1"y�"�X9���&�_��easy0MIT-MAGIC-COOKIE-1"y�"�X9���&�_��elme0MIT-MAGIC-COOKIE-1y����F8��߷����(base)"


I make it clear: I have not make any special adjustment to router or config files of debian live installation before this problem occur.rooter came preconfigured by the company (50mbs line)

Last edited by estatistics; 01-04-2024 at 12:31 PM.
 
Old 01-04-2024, 12:36 PM   #34
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,719

Rep: Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911
I used the same ISO but I forgot to mention that I selected the full desktop install (I forgot the exact words) at first boot. In the files I posted the host name was not changed from what I had entered during the install nor did my DHCP server send a random host name to the client with either connman or dhclient. I did not use a specific dhclient.conf file.
 
Old 01-04-2024, 01:24 PM   #35
estatistics
LQ Newbie
 
Registered: Sep 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
I used the same ISO but I forgot to mention that I selected the full desktop install (I forgot the exact words) at first boot. In the files I posted the host name was not changed from what I had entered during the install nor did my DHCP server send a random host name to the client with either connman or dhclient. I did not use a specific dhclient.conf file.
Yes, i did full desktop install too. So, I dont know what to say. It may be user-specific case for me triggered from something? Whatever, i think i cant add any useful additional information. we may close this thread.
 
Old 01-04-2024, 02:49 PM   #36
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,792

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
Quote:
Originally Posted by estatistics View Post
cat .Xauthority
Try 'xauth list'.
 
Old 01-04-2024, 03:14 PM   #37
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,719

Rep: Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911Reputation: 5911
There is something about the setting in the image you posted that has the value easy.box. I don't know it what it exactly means except for maybe a local domain name. You might want to ask your ISP.

Otherwise, yes the thread can be marked as solved using the thread tools pull down menu at the top.
 
  


Reply

Tags
bug, debian, hostname, xauthority



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOSTNAME = hostname -> HOSTNAME: command not found ? thomas2004ch Linux - Software 2 08-26-2013 08:25 PM
set linux hostname & question about set multiple domain on one ip l0pht Linux - Networking 4 06-08-2012 10:14 AM
hostname vs. HOSTNAME ? sirius56 Linux - Newbie 2 02-16-2007 08:16 AM
Easy Question - set hostname in RH 9 kkempter Linux - Software 2 05-23-2003 03:49 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration