Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hostname changed on network connection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mslt
n00b
n00b


Joined: 24 Oct 2017
Posts: 4
Location: Germany

PostPosted: Tue Oct 24, 2017 4:27 pm    Post subject: hostname changed on network connection Reply with quote

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
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16944
Location: here

PostPosted: Tue Oct 24, 2017 4:33 pm    Post subject: Reply with quote

dmesg report some errors?

EDIT: welcome to the forum
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11449

PostPosted: Wed Oct 25, 2017 1:44 am    Post subject: Reply with quote

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
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7319
Location: ~Brussels - Belgique

PostPosted: Wed Oct 25, 2017 6:31 am    Post subject: Reply with quote

Hi,
could you provide us the output of
Code:
emerge --info
and what you did install?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5982

PostPosted: Wed Oct 25, 2017 10:17 am    Post subject: Reply with quote

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
View user's profile Send private message
mslt
n00b
n00b


Joined: 24 Oct 2017
Posts: 4
Location: Germany

PostPosted: Wed Oct 25, 2017 1:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
mslt
n00b
n00b


Joined: 24 Oct 2017
Posts: 4
Location: Germany

PostPosted: Fri Oct 27, 2017 4:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum