LinuxQuestions.org
Help answer threads with 0 replies.
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 12-31-2023, 09:17 AM   #1
estatistics
LQ Newbie
 
Registered: Sep 2018
Posts: 19

Rep: Reputation: Disabled
Arrow why debian set hostname to easy?


why debian set hostname to easy?

This creates a lot of problems.

Installed the latest debian lxqt bookworm 12 distribution.
Same problem again.

I must set kernel.hostname in sysctl.conf, then in bashrc to write
sudo sysctl --system -p.

However, even sometimes, the hostname goes back to "easy" for unknown reasons.
Sadly, it is populated in a lot of files. Especially in .Xauthority that creates the following problems:
"invalid magic number", "problems to open display :0".

So, I tried to report the bug in debian bug tracker using sysctl package.
But it is said unknown package.
How i can properly report this problem to debian devs?
What package i must use?





Sincerely,
Elias

ps. 5 years vegan
 
Old 12-31-2023, 09:50 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,813
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
What does "to easy" mean? Is "easy" the content of /etc/hostname? Do you rather mean /etc/hostname is excessively easy to change?

Have you ever tried setting hostname with hostnamectl?
 
Old 12-31-2023, 09:53 AM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
What are the contents of /etc/hostname?

Try altering the contents of /etc/hostname to be a single line with your desired new hostname. Then reboot.
 
Old 12-31-2023, 10:30 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,719

Rep: Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912
I typically use the net install option and the default hostname is "debian" and I would expect the live versions to be the same.
 
Old 12-31-2023, 10:32 AM   #5
estatistics
LQ Newbie
 
Registered: Sep 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by IsaacKuo View Post
What are the contents of /etc/hostname?

Try altering the contents of /etc/hostname to be a single line with your desired new hostname. Then reboot.
Quoting myself: "why debian set hostname to easy?". `kernel.hostname=easy`.
Hostname has my NAME, not "easy" name. Nothing to do there.
I have found as i described a temporary solution.

It is a bug of debian. How i can report it this to debian bug report system?
What package to put as bug? sysctl? hostname or other?
 
Old 12-31-2023, 10:51 AM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,813
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Code:
HOSTNAMECTL(1)                                    hostnamectl                                    HOSTNAMECTL(1)

NAME
       hostnamectl - Control the system hostname

SYNOPSIS
       hostnamectl [OPTIONS...] {COMMAND}

DESCRIPTION
       hostnamectl may be used to query and change the system hostname and related settings.
You may expect your bug report to be designated invalid.

Last edited by mrmazda; 12-31-2023 at 10:53 AM.
 
Old 12-31-2023, 11:04 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,719

Rep: Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912
I have several debian virtual and physical machines of different versions and none of them have exhibited a similar problem. For me:

/proc/sys/kernel/hostname = /etc/hostname

Are you actually writing to /etc/sysctl.conf? The file is only writable by root.
 
Old 12-31-2023, 11:59 AM   #8
estatistics
LQ Newbie
 
Registered: Sep 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Of course i am writing to sysctl.conf as root user.

2 different machines (no virtual ones), same problem! This is not random error.
(latest stable debian distribution).
 
Old 12-31-2023, 12:16 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,719

Rep: Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912
I have 4 machines both physical and virtual running latest stable and none of them have your problem. Are they standalone and not part of a domain etc?
 
Old 12-31-2023, 12:38 PM   #10
estatistics
LQ Newbie
 
Registered: Sep 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
standalone on same router

standalone on same router
 
Old 12-31-2023, 02:06 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,719

Rep: Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912
Are you using a reservation from the router to assign an address to the computers?
 
Old 12-31-2023, 02:13 PM   #12
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
FYI: none of my Debian machines exhibit this problem. I doubt it is the Debian install that is caused the symptoms, and if that is correct it is not something the Debian team can address in the software.
 
Old 01-02-2024, 06:59 AM   #13
estatistics
LQ Newbie
 
Registered: Sep 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
I find the cause of my problems.

please check your file, and tell me what do you see in your machines.
in file: /var/lib/dhcp/dhclient.enp3s0.leases

in the line `option host-name "easy.box";` before .box what it writes? your hostname or another?

It seems, that in latest debian distribution, somehow this line it cannot modified with any proper command like eg. hostname, or even sysctl exept aftermath but in every boot, its there.

The file "dhclient.enp3s0.leases" is created from what application/package?
 
Old 01-02-2024, 07:40 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,719

Rep: Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912Reputation: 5912
The leases file is basically a log of valid dhcp leases from the DHCP server created by dhclient. Of the two debian 12 systems I just checked Network Manager is the DHCP client not dhclient.

The option host-name in the leases file indicates the router is sending the hostname to the client. This is why I asked if you have a address reservation in the router for this PC.
 
1 members found this post helpful.
Old 01-02-2024, 08:21 AM   #15
estatistics
LQ Newbie
 
Registered: Sep 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
what means an address reservation in the router for this PC? How i can check that? i go to 192.168.2.1 and i enter router. then? can you send some relevant screenshot?
 
  


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 12:33 AM.

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