易截截图软件、单文件、免安装、纯绿色、仅160KB

修改 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


相关文档:

Linux的make程序

在开发一个系统时,一般是将一个系统分成几个模块,这样做提高了系统的可维护性,但由于各个模块间不可避免存在关联,所以当一个模块改动后,其他模块也许会有所更新,当然对小系统来说,手工编译连接是没问题,但是如果是一个大系统,存在很多个模块,那么手工编译的方法就不适用了。为此,在Linux系统中,专门提供了一个m ......

Quick guide for porting linux to ALTERA DE2 70

Platform and tools:  Ubuntu 9.04
Step 1,   Download the nios linux tallbal
wget http://www.niosftp.com/pub/linux/nios2-linux-20090929.tar
or use xunlei to fix it.
Step2,
tar xvf  nios2-linux-20090929.tar
cd nios2-linux
./checkout
Step 3,   Generate the fpga.h f ......

linux移植开发简单步骤

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 ......

Linux下GetModuleFileName的四种写法

Linux下GetModuleFileName的四种写法
  问题的起因是要把一个东东从Windows移植到基于Linux的嵌入式系统上。移植过程中,遇到了GetModuleFileName的问
题。为了解决这个问题,花了不少的时间,也走了不少弯路。下面是整理的结果。
  首先摘录一段文字,来源《UNIX Programming FAQ 中文版》
 
1.14. 我怎样找 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号