文章标签 ‘操作系统’
1. Change the host name on the system using normal operating system tools and procedures. 2. From the root user ID on the system, issue the command: db2set -g DB2SYSTEM= The db2set command can be found in the /sqllib/adm directory. The is the host name that the machine is being changed to. To verify that [...]
RHEL/CentOS的vncserver默认使用的twm窗口管理,如果想使用熟悉的gnome,可以编辑 .vnc目录下的xstartup文件: …. # twn & exec gnome-session
When you install the Java platform, the Java plugin file is included as part of that install. If you want to use Java within Firefox, you need to manually create a symbolic link from the plugin file in the release to one of the locations that Firefox expects. To make the plugin available to all [...]
xargs在linux中是个很有用的命令,它经常和其他命令组合起来使用,非常的灵活. xargs是给命令传递参数的一个过滤器,也是组合多个命令的一个工具.它把一个数据流分割为一些足够小的块,以方便过滤器和命令进行处理.由此这个命令也是后置引用的一个强有力的替换.在一般使用过多参数的命令替换失败的时候,用xargs来替换它一般都能成功.通常情况下,xargs从管道或者stdin中读取数据,但是它也能够从文件的输出中读取数据.
有的时候需要修改Linux系统的主机名,如果是临时修改一下,可以使用 #hostname newhostname 如果是想永久修改,需要修改以下两文件 /etc/sysconfig/network /etc/hosts
进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首 vi +n filename :打开文件,并将光标置于第n行首 vi + filename :打开文件,并将光标置于最后一行首 vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处 vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filename vi filename….filename :打开多个文件,依次进行编辑
这些天玩了一下hypervm,xen,openvz的环境,觉得hypervm还是不错的,希望开源能有一个好的前景。 因为家里的网络是无线的,弄xen的虚拟机稍微费了些周折。 直接的bridge方式无线Xen VM不能访问internet, 换了dummy network及nat方式倒是可以。 Dummy network One simple solution is to have the xen ethernet bridge completely internal to the system, and leave the outside network interfaces (both wired and wireless) free to change with whatever environment you attach them to. Simply attaching the xen ethernet bridge to a dummy network interface inside [...]
今天装了一个Xen的hypervm,创建Xen VM时发现需要LVM,只好抱佛脚,学习了一下如何创建LVM。 What’s LVM? Why using Linux Logical Volume Manager or LVM? These questions are not the scope here. But in brief, the most attractive feature of Logical Volume Manager is to make disk management easier in Linux! Basically, LVM allows users to dynamically extend or shrink Linux “partition” or file system in online mode! [...]
