寻觅生命中的那一片浅草......

发布者 夜行人

vmware,qemu各种方式上网设置

vmware三种网络连接,qemu两种网络连接实现 虚拟机<—>主机

虚拟机<—>互联网通信的方法。
顺便写了下如何不重新编译整个内核支持某个功能,对系统无影响,编译速度要快于编译整个内核。
如果你的XXX卡没被内核支持,又怕自己编译的内核会造成系统损坏就可以试试这个方法喽

^_^

阅读全文»

RHEL5下的RAID1

在vmware server 1.0.6下做的,安装好系统后,添加两个scsi硬盘,大小随意,本例中两个硬盘的大小均为512M,因为对RAID不熟悉,所以错漏在所难免,切勿在生产环境中应用。

1、为两块硬盘分区,修改分区类型
# fdisk /dev/sdb
输入以上命令后,输入n,再输入p,1,因为使用整个硬盘,所以后面的默认,直接回车。然后输入t,命令默认选择了第1个,也是这里唯一的一个分区,输入L,可以查看分区的类型,这里输入fd,然后输入w存盘,据RHCE课程,修改分区类型是为了autodetection。

按照以上方法对sdc进行操作。

阅读全文»

Create Logical Volume

是RHCE里面的内容,今天在rhel5上试过,修改了下
The Logical Volume Manager (LVM) enables you to set up one filesystem on
multiple partitions. For example, assume you’re adding more users and are running
out of room in your /home directory. You don’t have any unpartitioned space available
on your current hard disk.
With the LVM, all you need to do is add another hard disk, configure some
partitions, back up /home, and use the LVM tools to combine the new partition and
the one used by /home into a volume set. You may need to install the LVMrpm. Once it
is installed, the steps are fairly straightforward:

阅读全文»

运行bat文件时不弹出CMD窗口的方法

在网上找的,有错不要怪我,因为我不懂vbs

1、单次运行请用这个,修改auto.bat为你要运行的批处理文件的名字,并将以下内容保存为vbs格式,放到auto.bat文件所在目录,名字随便,例如run.vbs

Set shell = Wscript.createobject(“wscript.shell”)
a = shell.run (“auto.bat”,0)

2、循环运行请用这个,示例为每60秒运行一次,保存格式和所放置的目录同1所述

dim a
set a=CreateObject(“Wscript.Shell”)
Do
a.run “auto.bat”
Wscript.Sleep 60000
Loop

参考文章:

http://tieba.baidu.com/f?kz=298805494
http://hi.baidu.com/goodzhj/blog/item/2f52878baf8239d3fc1f1020.html

关于rpm包搜索

前天装Oracle,提示缺少一个文件,在网上找了下,有篇文章说,把缺少的文件名放到http://rpmfind.net搜索下,就可以找到你所需要的包了。才知道,做个备忘而已

还有一个:

http://rpm.pbone.net/index.php3/stat/2/simple/2

2026年三月
« 5月    
 1
2345678
9101112131415
16171819202122
23242526272829
3031