Linux use notes
-----------------------------
Based on Fedora 8 version:
-----------------------------
1. No common command like ifconfig in os?
Root cause is the standard search path not include /sbin and /usr/sbin. Try to include them in /etc/profile. As belows:
#Kenny add /sbin and /usr/sbin here.
export PATH=.:/sbin:/usr/sbin:$PATH
2. install package in Fedora?
yum install "package name"
yum upgrade "package name"
rpm -qa | grep “samba”
3. install samba ui config program?
a. yum install system-config-samba.
b. set samba service is trusted services in firewall.
c. set samba_enable_home_dirs and samba_export_all_ro in SELinux configure option.
4. VMware host connect with target, without network line.
a. set vmvare network connect mode to NAT in right-bottom network icon, default is bridged mode;
b. in host machine, try (cmd -> ipconfig /all). Check VMNET8's IP address, suppose it is 192.168.111.2;
c. in target machine, set IP address the same network range in step b, like 192.168.111.3, and set Gateway and DNS
to vmware NAT gateway ip in menu(if not sure, try DHCP first, and check info from network manager);
d. restart target machine, host can ping the target ip now.
Note: 1. No need to set host physical address, since it is not related to it.
2. If host machine is connect by external network, then target can ping host machine IP, like 172.16.200.22.
And target can also connect to Internet.
3. For target connect Internet network, I use bridge connect mode and DHCP is ok too.
ref: http://hi.baidu.com/msingle/blog/item/d8a730ed4f6ab6dfb31cb15c.html
5. Enable telnet server?
1. query system whether has telnet and telnet-server, if not have, in
相关文档:
首先简单的介绍两者:
【linux操作系统:简称命令浮操作系统】
简介:
简单地说,Linux是一套免费使用和自由传播的类Unix操作系统,它主要用于基于x86系列CPU的计算机上。这个系统是由世界各地的成千上万的程序员设计和实现的。其目的是建立不受任何商品化软件的版权制约的、全世界都能自由使用的Unix兼容产品。
特点: ......
作者:易松华,华清远见嵌入式学院讲师。
在华清远见上课过程中,发现静态映射方面初学者比较难于掌握和理解,下面分析一下静态映射机制的原理并通过GPIO和USB、LCD等的静态映射作为例子来说明如何通过这种静态映射的方式访问外设资源。
内核提供了一个重要的结构体struct machine_desc ,这个结构体在内核移植中起到相当 ......
曾做过signal相关的一点儿开发,谈谈我的一些理解。
首先,需要理解几个signal相关的函数。
sigaddset(sigset_t* sigSet, int sigNum ) : 将信号sigNum 添加到信号集 sigSet 中;
sigdelset(sigset_t* sigSet, int sigNum) : 将信号 sigNum 从信号集 sigSet 中删除;
......
此文于2010-02-26被推荐到CSDN首页
如何被推荐?
最近在研究 Linux
内核的时间子系统,为下一篇长文《服务器程序中的日期与时间》做准备,无意中注意到了 Linux
新增的几个系统调用的对编写服务器代码的影响,先大致记录在这里。这篇博客也可算作前一篇《多线
程服务器的常用编程模型》
的一个注脚。
< type="te ......
什么是USB?
USB是英文Universal Serial Bus的缩写,意为通用串行总线。USB最初是为了替代许多不同的低速总线(包括并行、串行和键盘连接)而设计的,它以单一类型的总线连接各种不同的类型的设备。USB的发展已经超越了这些低速的连接方式,它现在可以支持几乎所有可以连接到PC上的设备。最新的USB规范修订了理论上高达480 ......