View previous topic :: View next topic |
Author |
Message |
mslt n00b
Joined: 24 Oct 2017 Posts: 8 Location: Germany
|
Posted: Tue Oct 24, 2017 4:27 pm Post subject: hostname changed on network connection |
|
|
Hi there,
I installed gentoo several weeks ago and everything works fine... Exept when I join my girlfriend's network (WiFi or LAN does not matter). Then out of nowhere the system acts weird. When I try to open a terminal (xfce4-terminal) nothing happens. When I try to restart the i3 (i3-gaps) env (Mod+Shift+r). The X server crashes only saying "resource is not available". So I type startx again, open a terminal and the hostname changend from "tank" to "unknown[MAC address of the network interface I am conntected with].
I do not really know where to start debugging this. Could anyone help with this? Has anyone experienced something like this? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
Posted: Tue Oct 24, 2017 4:33 pm Post subject: |
|
|
dmesg report some errors?
EDIT: welcome to the forum _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Wed Oct 25, 2017 1:44 am Post subject: |
|
|
What program(s) are responsible for managing your network connection? Have you configured those programs not to change the system's hostname? |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Wed Oct 25, 2017 6:31 am Post subject: |
|
|
Hi,
could you provide us the output of and what you did install? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed Oct 25, 2017 10:17 am Post subject: |
|
|
Hu wrote: | What program(s) are responsible for managing your network connection? Have you configured those programs not to change the system's hostname? |
Best answer for me, getting hostname from dhcp, while girlfriend's network dhcp have no idea what name to provide. |
|
Back to top |
|
|
mslt n00b
Joined: 24 Oct 2017 Posts: 8 Location: Germany
|
Posted: Wed Oct 25, 2017 1:47 pm Post subject: |
|
|
Well thanks for the quick responses
Quote: | dmesg report some errors? |
No errors regarding network stuff.
Quote: | What program(s) are responsible for managing your network connection? Have you configured those programs not to change the system's hostname? |
NetworkManager... Was the quick and dirty solution for LAN, WiFi and openVPN.
Quote: | could you provide us the output of emerge --info |
Sure, u can find it here
https://pastebin.com/XWT8Jwbm
Quote: | and what you did install? |
Here u go
https://pastebin.com/RyFgj93p
and again great thanks for the quick responses. |
|
Back to top |
|
|
mslt n00b
Joined: 24 Oct 2017 Posts: 8 Location: Germany
|
Posted: Fri Oct 27, 2017 4:38 pm Post subject: |
|
|
ok I got it fixed.
I added to the /etc/dhcp/dhclient.conf
Code: | request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers;
|
and to the /etc/hosts
Code: | 127.0.0.1 localhost.localdomain localhost HOSTNAME
::1 localhost.localdomain localhost HOSTNAME
|
|
|
Back to top |
|
|
|