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

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


相关文档:

fedora下linux的安装

虽然mplayer的安装方法已经不是什么技术活,但最近有不少同学在询问我关于mplayer的安装方法的问题。我一贯推荐它们源代码包的安装,虽然步骤有些复杂,但解码器和二进制程序都尽在掌握,心里踏实。
===
1
下载如下这些软件:
all-20071007.tar.bz2
windows-all-20071007.zip
Blue-1.7.tar.bz2
MPlayer-1.0rc2.ta ......

statfs获得硬盘使用情况 模拟linux命令 df

说明:本文以主要为转载内容,同时加入了我在使用过程中遇到问题对其的修正!!!!!!!!!
先说statfs结构:
#include <sys/vfs.h>    /* 或者 <sys/statfs.h> */
int statfs(const char *path, struct statfs *buf);
int fstatfs(int fd, struct statfs *buf);
参数:   ......

linux 新增系统调用


此文于2010-02-26被推荐到CSDN首页
如何被推荐?
最近在研究 Linux
内核的时间子系统,为下一篇长文《服务器程序中的日期与时间》做准备,无意中注意到了 Linux
新增的几个系统调用的对编写服务器代码的影响,先大致记录在这里。这篇博客也可算作前一篇《多线
程服务器的常用编程模型》
的一个注脚。
< type="te ......

linux下与其他终端通讯 write出错

先用who命令查看所有登陆终端
#who -uH
输出如下:
NAME     LINE         TIME             IDLE          PID COMMENT
root     :0           2010-03-01 19:13   ?     & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号