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 Shell
编程,但由于编写
Shell
脚本的机会实在是比较少
(
通常在项目初期搭建开发环境时编写得比较
多一些
)
,所以一
些语法久而久之就会忘了,一个简单的语法去翻书效率实在是慢,所以就个人整理了一个表格,由于我用的编程语言是
C/C++
,所以在编程的时候往往脑海里面首
先浮现的是用
C
......
ls -l|grep ^d ----列出当前目录下的文件夹
ls -l|grep ^d|grep "tmp" ----列出当前目录下明子含有"tmp"的文件夹
for dir in `ls -l ~/dxy/|grep ^d | awk '{print $9}'` ---- awk '{print $9}' ,只print 文件夹的名字
do
echo "==== $dir"
cd ~/dxy;cd $dir/
t=`ls -l|grep ^d|grep " ......
作者:易松华,华清远见嵌入式学院讲师。
在华清远见上课过程中,发现静态映射方面初学者比较难于掌握和理解,下面分析一下静态映射机制的原理并通过GPIO和USB、LCD等的静态映射作为例子来说明如何通过这种静态映射的方式访问外设资源。
内核提供了一个重要的结构体struct machine_desc ,这个结构体在内核移植中起到相当 ......
一、下载安装程序
1、 下载内核源码(linux-2.6.33.tar.bz2),位置:https://www.kernel.org
2、 下载最新版的module-init-tools(module-init-tools-3.8.tar.bz2)和modutils(modutils-2.4.26-1.src.rpm)的源码
位置:http://www.kernel.org/pub/linux/kernel/people/rusty/modules/
位置:http://www. ......
什么是USB?
USB是英文Universal Serial Bus的缩写,意为通用串行总线。USB最初是为了替代许多不同的低速总线(包括并行、串行和键盘连接)而设计的,它以单一类型的总线连接各种不同的类型的设备。USB的发展已经超越了这些低速的连接方式,它现在可以支持几乎所有可以连接到PC上的设备。最新的USB规范修订了理论上高达480 ......