Remove "ip/hostname" from file browser, terminal and other apps

I think this was introduced in 15.5, but now when connecting to home’s internet via ethernet or wifi there’s this annoying long string from the router which seems like a hostname or the like. The problem is that it now appears as the hostname in the terminal prompt, the title of the window, and even title of file browser.

I think this comes from router because at work this doesn’t happen, but because router there is different. At work window titles are like normal and terminal prompt just says “localhost”, as normal.

Can someone help please? Thanks.

Do you use wicked or NetworkManager or something else?

NetworkManager; I think it’s the default in most Leap installations anyways

Look in YaST - Hardware - Networksettings. In the 3rd tab there is a setting “Set hostname through DHCP”. Make sure that is “no”, and set the hostname to whatever you want to see. Reboot and it should be fine.

1 Like

Thanks.

Is that the same as setting hostname-mode=none in networkmanager.conf?

No idea, I’m on TW and don’t have a networkmanager.conf … I do have /usr/lib/NetworkManager/NetworkManager.conf which does not contain that var. AFAIK hostnamectl is your friend.

1 Like