LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 898|回复: 7

怎么改主机名阿?

[复制链接]
发表于 2009-11-19 14:52:08 | 显示全部楼层 |阅读模式
如图,想把@后面的字符改成"opensuse",请问该怎么改?已经在yast-主机名里改了,重启依然无效。

另外麻烦问一下怎么改yast的字体阿,桌面环境的字体已经配置好了,但是yast里的姿态依然发虚。请指教,谢谢了。:thank

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2009-11-19 15:07:15 | 显示全部楼层
yast is in administrator mode, you need to configure your fonts for root user.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-19 15:11:23 | 显示全部楼层
已经解决了yast字体问题了,谢谢楼上的朋友
回复 支持 反对

使用道具 举报

发表于 2009-11-19 17:56:22 | 显示全部楼层
vim /etc/hosts ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-20 02:03:52 | 显示全部楼层
这个文件已经自动改过了

#
# 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       opensuse opensuse

# special IPv6 addresses
::1             opensuse ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
127.0.0.2       opensuse opensuse
~
~
回复 支持 反对

使用道具 举报

发表于 2009-11-20 09:41:49 | 显示全部楼层
SUSE 的主机名文件是 /etc/HOSTNAME, /etc/hosts 只不过是IP与电脑的映射关系而已
回复 支持 反对

使用道具 举报

发表于 2009-11-20 10:50:03 | 显示全部楼层
yast-->网络设置-->主机名/dns
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-20 12:26:09 | 显示全部楼层
Post by yzsi;2047938
SUSE 的主机名文件是 /etc/HOSTNAME, /etc/hosts 只不过是IP与电脑的映射关系而已


这位兄弟正解,谢谢了。:cool:
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表