修改 Linux 主机名
Linux 下什么都比较麻烦,就连修改主机名也不例外。
Linux 安装好后,其默认的主机名是 localhost。修改 Linux 主机名需要3步。
使用 hostname 修改当前主机名。
hostname new-hostname
修改 /etc/sysconfig/network 配置文件,以便下次重启的时,使用新的主机名。
打开 /etc/sysconfig/network 文件,修改 HOSTNAME=new-hostname.domainname。
修改后的 /etc/sysconfig/network 文件如下:
NETWORKING=yes
HOSTNAME=new-hostname.localdomain
修改本机的域名解析文件 /etc/hosts ,使得本机的应用程序能够解析新的主机名。
编辑文件: /etc/hosts
修改: xxx.xxx.xxx.xxx new-hostname.domainname new-hostname
(这里的xxx代表本机的网络地址,也可以是环回地址127.0.0.1)
修改后的 /etc/hosts 文件如下:
127.0.0.1 localhost.localdomain localhost
127.0.0.1 new-hostname.localdomain new-hostname
相关文档:
The Intelligent Input/Output (I2O) architecture allows hardware drivers to be split into two parts: an operating system specific module called the OSM and an hardware specific module called the HDM. The OSM can talk to a whole range of HDM's, and ideally the HDM's are not OS dependent. This allows f ......
linux目录架构
转载于:http://www.91linux.com/html/article/go/20100408/19124_2.html
/ 根目录
/bin
常用的命令 binary file 的目录
/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内
/boot ......
文章出处:http://doc.linuxpk.com/52964.html
使用控制台登录后,在shell提示符下面操作时会用到大量的Tab来自动补全,这个时候机器的蜂鸣器就会嘟嘟吡吡不停,这个嘟嘟吡吡的声音可以使用setterm命令来设置它的长短。
setterm -blength 0
  ......
http://blog.csdn.net/linucos/archive/2010/01/22/5223615.aspx
Linux
移植开发
准备工作:
准备
交叉编译工具链:这里我们选择DENX软件工程提供的ELDK交叉编译环境,参考地址:http://ftp.denx.de/pub/eldk/4.2/
,
我们使用其中的一套工具。准备工作步骤如下:
1. 建立工作文件夹NewMsg2410,并建立子目录sources ......