Forum › Forums › Official Releases › antiX-21/22 “Grup Yorum” › hostname shows not correctly as ¨easy¨ in commandline
- This topic has 7 replies, 4 voices, and was last updated Mar 5-11:16 pm by Dave.
-
AuthorPosts
-
March 5, 2022 at 1:46 pm #78572Member
anamesa
Hello,
I΄m facing a problem with the hostname, actually not with the hostname itself but with its changing, without the /etc/hostname being changed. The situation is peculiar and I΄ll try to describe it, but I΄m afraid it is a security problem. It happened few days ago.
My hostname is (for instance) ¨curiosity¨. My user is (for instance) ¨anamesa¨. Everytime I login in antix21, and open a terminal, it says: anamesa@easy:, not anamesa@curiosity:
I΄ve noticed it because the apps don΄t open, the desktop is not responsive. I have to ¨sudo hostname curiosity¨ though ¨cat /etc/hostname¨ gives indeed curiosity as a result. After defining the hostname as ¨curiosity¨, I go to Menu –> Desktop –> other desktops –> zzz-fluxbox (it΄s what I use) and relogin, so the hostname changes to curiosity in a new terminal and the desktop is responding. Today, even when I had done aforementioned workaround, after a while, a new tab I opened in the terminal showed again anamesa@easy: and only after giving as root the command ¨hostname curiosity¨ it changed again to ¨curiosity¨ in new tabs of the same terminal.
The problem is not computer related, cause face it in one laptop and one desktop in another place, and maybe not distro relevant, because I encountered it in artix linux (lxqt edition) on another laptop of mine. Till now I΄ve seen it in non systemd distros (artix, antix) but not in other distros. I΄m afraid it is related to security, and need advice how I should proceed.
March 5, 2022 at 2:29 pm #78573Forum Admin
anticapitalista
::Does etc/hosts also show your correct hostname under localhost?
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
March 5, 2022 at 2:41 pm #78574Memberanamesa
::Does etc/hosts also show your correct hostname under localhost?
Yes, it shows the correct hostname:
First 2 lines in /etc/hosts:
127.0.0.1 localhost
127.0.0.1 curiosity <– correct hostnameThe rest of hostfile are I think the servers that are blocked by antix adbock. Maybe I΄ll try revert to non blocking, since I use plugins in browsers.
edit: I΄ve unblocked the adservers and reverted to original /etc/hosts file, but the problem persists.
- This reply was modified 1 year, 2 months ago by anamesa.
- This reply was modified 1 year, 2 months ago by anamesa.
March 5, 2022 at 6:38 pm #78579Forum Admin
anticapitalista
::I can’t reproduce this. Maybe someone else can help. Where does ‘easy’ come from? Firewall issue?
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
March 5, 2022 at 7:41 pm #78580Memberanamesa
::I can’t reproduce this. Maybe someone else can help. Where does ‘easy’ come from? Firewall issue?
I would not know where it comes from. Either from easy.list or maybe from easy linux, which is a distro developed by Kauler as a continuation to puppy linux. I had tried this on a bootable stick, but I can´t remember on which computer or when. I don’t think that it relates to it though. I have a dell latitude e6510 laptop, a fujitsu lifebook s904 and a HP Z420 workstation desktop. The issue appears on each one. I have more than one distro installed, plus windows 10 in multiple boot on each machine. The dell (and the fujitsu) save previous bootloader configs, but I don´t know if and how this relates. Nevertheless, I’m going to update the bios on all machines. Thank you for your effort.
March 5, 2022 at 7:57 pm #78582Moderator
caprea
::The issue appears on each one
Is it possible this is related to your router ? Can you look in the web interface of the router under network > devices for an overview of the devices names that were registered in the network? This looks interesting.
https://www.linuxquestions.org/questions/debian-26/i%27m-getting-a-wrong-hostname-in-the-terminal-4175472720/March 5, 2022 at 9:26 pm #78585Memberanamesa
::The issue appears on each one
Is it possible this is related to your router ? Can you look in the web interface of the router under network > devices for an overview of the devices names that were registered in the network? This looks interesting.
https://www.linuxquestions.org/questions/debian-26/i%27m-getting-a-wrong-hostname-in-the-terminal-4175472720/I will try your suggestion tomorrow, and see. Hope my son remembers and can provide me with router admin username and pass. Thank you, it seems to be a nice suggestion.
EDIT:
I tried the suggestion in the link you provided, so I I removed the host-name option in the request line of /etc/dhcp/dhclient.conf file. But to no avail, on next boot the hostname in terminal appears to be “easy”, not the one in /etc/hostname. Tomorrow I’m going to look in the web interface of my rooter.- This reply was modified 1 year, 2 months ago by anamesa.
March 5, 2022 at 11:16 pm #78590Forum Admin
Dave
::From /etc/hostname if I remember correctly
Edit: Never mind, did not see the edit.
It is normally /etc/hostname from my memory and you can change it by using the hostname command (as well as direct editing and restarting the hostname service IIRC but that does not appear to work in your case).- This reply was modified 1 year, 2 months ago by Dave.
- This reply was modified 1 year, 2 months ago by Dave.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
-
AuthorPosts
- You must be logged in to reply to this topic.