自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 收藏
  • 关注

原创 /etc/vimrc for python

set tabstop=4set shiftwidth=4set softtabstop=4

2013-02-28 16:24:26 366

原创 ubuntu 12.10 xtartx desktop

sudo apt-get install x-window-system-coresudo apt-get install gdmsudo apt-get install ubuntu-desktopsudo apt-get install gnome-core

2012-12-12 17:08:19 269

转载 Architecture of the TCG Software Stack

Architecture of the TCG Software StackOnce the operatingsystem is loaded, the method for accessing services ofthe TPM is called the TSS (TCG Software Stack).The TSS is composed of several st

2012-07-20 10:02:11 820

转载 How to Setup Xen4 and pvops 2.6.32.x on CentOS 5.5

How to Setup Xen4 and pvops 2.6.32.x on CentOS 5.52011-04-29 13:17Setting up Xen4 has been tricky, because of the move to the latest Linux kernels with paravirt_ops. Compiling it on Ce

2012-06-15 10:27:09 883

转载 startup and shutdown scripts

二、启动和关闭系统脚本 Startup and shutdown scripts 先认识运行等级(个人理解): *运行等级 S:开机进程中的第一个运行等级。若/etc/rcS.d 下的链接文件开头子母是大写的,那么它链接的在 /etc/init.d 下的对应脚本将被调用并开启,该进程将被执行。 *运行等级 1:(single-user)单用户模式。/etc/rc1.d 目录

2012-05-07 12:56:31 603 1

转载 Accessing the VGA Display Memory

Introduction         The standard VGA hardware contains up to 256K of onboard display memory. While it would seem logical that this memory would be directly available to the processor, this is not t

2012-04-26 13:47:14 652

原创 RHEL 6.1 + XEN

1.RHEL server 6.1 2.Xen hypervisor    2.1 Download Xen 4.1.0 by belowlink:http://xen.org/download/index_4.1.0.html   2.2 get Domain0 kernel.     The kernel is gotfrom git://vt-sync.s

2012-04-25 10:57:48 1168

转载 java thread

Constructing Threads and RunnablesIn our Java threading introduction, we created a thread in twosteps:firstly, we constructed a Runnable object to define the code tobe executed by the thread;the

2012-04-20 16:35:45 2011

原创 tboot fedora 14 grub

title Fedora-tboot (2.6.35.6-45.fc14.x86_64)        root (hd0,0)        kernel /tboot.gz logging=serial,vga,memory        module /vmlinuz-2.6.35.6-45.fc14.x86_64 ro root=/dev/mapper/vg_his66-lv_

2012-04-20 11:23:02 851

转载 Shell脚本语法

5. Shell脚本语法 5.1. 条件测试:test 命令test或[可以测试一个条件是否成立,如果测试结果为真,则该命令的Exit Status为0,如果测试结果为假,则命令的Exit Status为1(注意与C语言的逻辑表示正好相反)。例如测试两个数的大小关系:$ VAR=2$ test $VAR -gt 1$ echo $?0$

2012-04-19 12:42:24 664

转载 thread & runnable

在java中可有两种方式实现多线程,一种是继承Thread类,一种是实现Runnable接口;Thread类是在java.lang包中定义的。一个类只要继承了Thread类同时覆写了本类中的run()方法就可以实现多线程操作了,但是一个类只能继承一个父类,这是此方法的局限,下面看例子:package org.thread.demo;class MyThread extend

2012-04-18 10:04:32 425

转载 java thread

This article, one of the first ever published by JavaWorld, describes how threads are implemented in the Java programming language, starting with a general overview of threads.Simply put, a thread

2012-04-18 09:38:57 442

转载 grep

[email protected]>Copyright © 2004 本文遵从GPL协议,欢迎转载、修改、散布。第一次发布时间:2004年7月16日Table of Contents1. grep简介2. grep正则表达式元字符集(基本集)3. 用于egrep和 grep -E的元字符扩展集4. POSIX字符类5. Grep命令

2012-04-11 14:05:04 286

转载 sed

Sed学习笔记Copyright © 2004,2005, 本文遵从GNU 的自由文档许可证(Free Document License)的条款,欢迎转载、修改、散布。发布时间:2004年09月20日最近更新:2005年12月22日,增加小技巧章节。Table of Contents1. Sed简介2. 定

2012-04-11 14:03:01 288

转载 awk

Awk学习笔记整理:Jims of 肥肥世家[email protected]>Copyright © 2004 本文遵从GPL协议,欢迎转载、修改、散布。第一次发布时间:2004年8月6日Table of Contents1. awk简介2. awk命令格式和选项2.1. awk的语法有两种形

2012-04-11 13:50:41 361

转载 shell 字符串

表达式含义${var}变量var的值, 与$var相同  ${var-DEFAULT}如果var没有被声明, 那么就以$DEFAULT作为其值 *${var:-DEFAULT}如果var没有被声明, 或者其值为空, 那么就以$DEFAULT作为其值 *

2012-04-11 13:47:05 370

转载 shell if

shell if 判断 (2011-07-27 10:02:35)转载▼标签: it 有时候你需要指定shell脚本中的依靠命令的成功与否来实施不同过程的行为。if结构允许你来指定这样的条件。最精简的if命令的语法是:if TEST-COMMANDS; then CONSEQUENT-COMMANDS; f

2012-04-11 13:39:00 524

转载 TPM PCR usage on TXT

TPM PCR usage on TXTFrom Open Source VMM wikiJump to: navigation, searchContents[hide]1High Level Description 2MLE DG Description 3Tboot README Description 4Guida

2012-04-10 11:41:13 1449

原创 tboot bkm

Tboot BKM. 1.       Enable bios.Bios à Security àsystem Security->Data Execution Prevention    EnabledIntel TXTSupport           Enabled  2.       download tboot source codehttp://sour

2012-04-06 16:55:16 1964

原创 suse 关闭 firewall

chkconfig SuSEfirewall2_setup off  chkconfig SuSEfirewall2_init off  service SuSEfirewall2_init stop  service SuSEfirewall2_setup stop

2012-04-06 15:42:30 524

转载 VGA Hardware

VGA HardwareThe VGA is a complex piece of hardware. Even though it's old, many modern graphics cards are compatible with it, including NVidia and ATI cards. This can make writing a VGA driver

2012-03-30 16:34:34 916

转载 Primary VGA BIOS

This BIOS feature allows you to select whether to boot the system using the AGP graphics card or the PCI graphics card. This is particularly important if you have AGP and PCI graphics cards but only o

2012-03-30 16:09:11 699

原创 inb和outb

inb和outb读写8位宽的I/O端口: unsigned char inb(unsigned port);void outb(unsigned char value,unsigned port)outb(0, db-> ioaddr);outb(3, db-> io_data);意思是先向db-> ioaddr写入0,再向db-> io_data写入3;outb(db-> ioadd

2012-03-30 15:52:03 1753

原创 hg server in fedora 14

1. Install vervices. yum install mercurialyum install hgyum install httpdyum install mod_wsgi.x86_64 2. modify http configuration. Add below lines to /etc/httpd/conf/httpd.conf.

2012-03-29 14:11:03 458

转载 Understanding VT-d: Intel Virtualization Technology for Directed I/O

I've received a fair number of questions on the Intel Virtualization and Software Development Forum about VT-d -- enough to justify a few words on this note in the blogging sphere."VT-d" stands for

2012-03-20 19:49:32 1289

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除