Using XFCE.
My bash prompt suddenly changed from Ion@desk to
ion@2806-102e-0011-8375-d62a-809c-7af3-18b9:
I have no idea what caused this and want to change it back and make it permanent. Any suggestions?
Post:
cat /etc/hostname
cat /etc/hosts
and execute as root:
hostnamectl
and post it.
PLeasse show
echo $PS1
As instructed…
ion@2806-102e-0011-8375-72d6-c901-4b40-1f44:~> cat /etc/hostname
ion@2806-102e-0011-8375-72d6-c901-4b40-1f44:~>
ion@2806-102e-0011-8375-72d6-c901-4b40-1f44:~> cat /etc/hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#
127.0.0.1 localhost
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
ion@2806-102e-0011-8375-72d6-c901-4b40-1f44:~>
ion@2806-102e-0011-8375-72d6-c901-4b40-1f44:~> sudo hostnamectl
[sudo] password for root:
Static hostname: (unset)
Transient hostname: 2806-102e-0011-8375-72d6-c901-4b40-1f44.ipv6.infinitum.net.mx
Icon name: computer-desktop
Chassis: desktop 🖥️
Machine ID: 13d17e042d8f4119a2ce19c27de09744
Boot ID: 1f7d10f3baa248d9975a0e58efd5d8e9
Operating System: openSUSE Leap 15.6
CPE OS Name: cpe:/o:opensuse:leap:15.6
Kernel: Linux 6.4.0-150600.23.42-default
Architecture: x86-64
Hardware Vendor: Gigabyte Technology Co., Ltd.
Hardware Model: B450M DS3H V2
Firmware Version: F62
Firmware Date: Thu 2022-01-27
Firmware Age: 3y 2month 4d
ion@2806-102e-0011-8375-72d6-c901-4b40-1f44:~>
As requested…
ion@2806-102e-0011-8375-72d6-c901-4b40-1f44:~> echo $PS1
\[$(ppwd)\]\u@\h:\w>
ion@2806-102e-0011-8375-72d6-c901-4b40-1f44:~>
Your box has no static hostname.
Set one by doing as root:
hostnamectl set-hostname here_your_hostname
Thank you. That was simpler than I expected.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.