Profilo di Gugu豚豚的狗窝FotoBlogElenchiAltro Strumenti Guida

Gugu Abrams

Professione
Località
Interessi
May the force always be with me....
世间险恶随红花凋零....

Windows Media Player

豚豚的狗窝

I can fall in love - if it's part of life. Even with you...
11 dicembre

How to: 后于 Ubuntu 安装的 Windows 7 用 GRUB 引导进入 Ubuntu

场景:  在已经安装了 Ubuntu 9.10 的前提下安装 Windows7, 导致安装后 Windows7 的引导菜单中没有 Ubuntu 的引导项.

系统安装情况:    分区0        分区4    分区5  分区6  分区7

                    C:2003     D:Win7   E:      swap  Linux

1. 下载最新的 grub4dos (http://download.gna.org/grub4dos/). 解压其中的 grldr 和 grldr.mbr, 拷贝到主分区下, 这里是 c:\ .

2. 在 c:\ 建立 menu.lst . 内容如下:

timeout 30

default 0

 

title Linux, Ubuntu 9.10

root (hd0,7)  # 我的 Ubuntu 是装在第1块硬盘的第7个分区上, 所以这里是0和7

kernel (hd0,7)/vmlinuz ro root=/dev/sda8   # 根据硬盘类型, 第7个分区对应的设备是sda8

 

title Linux, Ubuntu 9.10(rescue mode)

root (hd0,7)

kernel (hd0,7)/vmlinuz ro single root=/dev/sda8

 

title Reboot

reboot

 

title Shutdown

halt

3. 运行 CMD, 定位到 Windows7 的 System32 目录下,

    输入 bcdedit /create /d "GRUB Menu" /application bootsector 回车, 复制 CMD 输出的 {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx};

    输入 bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} device partition=c: 回车;

    输入 bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} path \grldr.mbr  回车;

    输入 bcdedit /displayorder {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} /addlast  回车;

4. 重启后在 Windows7 的引导菜单中看到 GRUB Menu, 选择它即可由 GRUB 引导进入 Ubuntu .

03 dicembre

How to: 在 2003/XP 系统下, 从硬盘安装 Ubuntu 9.10

假设你的 boot.ini 在 c:\

准备

1. 下载最新的 grub4dos (http://download.gna.org/grub4dos/). 解压后拷贝其中的 grldr 和 grub.exe 到 c:\ .

2. 下载 Ubuntu 9.10 的 ISO (http://www.ubuntu.com.cn/getubuntu/download/). 下载后拷贝到 c:\ , 同时解压 ISO 中 casper 目录内的 initrd.gz 和 vmlinuz 两个文件, 将其也拷贝到 c:\ .

3. 在 c:\ 建立 menu.lst . 内容如下(黑色粗体部分的名字确保和 c:\ 下的 ISO 同名):

timeout 10
default 2

title Microsoft, Windows 2000/2003/XP
rootnoverify (hd0,0)
makeactive
chainloader +1

title Linux, Ubuntu 9.10
root (hd0,0)
kernel (hd0,0)/vmlinuz boot=casper noacpi iso-scan/filename=/ubuntu-9.10-desktop-i386.iso ro quiet splash
initrd (hd0,0)/initrd.lz

title Boot from cdrom
cdrom --init
map --hook
chainloader (cd0)
boot

title Reboot
reboot

title Halt
halt

4. 编辑 c:\boot.ini . 把 timeout=0 改成 timeout=10, 并在最后一行添加 C:\grldr="Ubuntu 9.10 Install" .

5. 重新启动系统, 菜单选择 Ubuntu 9.04 Install 回车, 再选择 Linux, Ubuntu 9.10 回车.

开始安装

1. 进入 LiveCD 体验界面, 打开终端(Application > accessory > Terminal), 输入 sudo umount –l /isodevice 后回车, 再双击桌面的安装图标

2. 欢迎界面, 选择中文(简体).

3. 你在什么地方? Asia, Shanghai.

4. 键盘布局, China.

5. 预备硬盘分区, 选择手动制定分区(高级).

6. 准备分区(设备编号1-4的为主分区, 5以后的为逻辑分区, 建议把 Ubuntu 装在逻辑分区上).

  6.1 如果有空闲的空间:

       划分交换空间: 选中空闲的空间, 点击"新的分区", 在"创建分区"对话框里, 输入分区容量(根据内存可设0-512MB或者更大),  用于"交换空间", 点击 OK

       划分Linux分区: 依然选中空闲的空间, 点击"新的分区", 在"创建分区"对话框里, 用于"Ext4 日志文件系统", 挂载点"/" , 点击 OK

  6.2 如果没有空闲的空间:

       选中要改变大小的分区, 点击"编辑分区", 在"编辑分区"对话框里, 根据该分区大小和已使用的情况, 在新建分区容量里输入该分区改变后的大小, 用于"不使用该分区", 点击 OK. 在弹出的确认对话框中点继续.

       重复6.1

7. 你的身份是什么?

8. 准备分区. 选中类型为 ext4 的那个分区再点击 Forward.

9. 迁移文档和设置, 可以不管, 直接点击 Forward.

10. 准备安装, 点击安装, 安装完毕重起.

Ubuntu 下更新 grub 启动菜单

因为安装后默认进入 Ubuntu, 想要进 2003/XP 系统的话, 只需要在终端中输入 sudo update-grub, 以后在系统启动时按 shift 键即可调出启动菜单, 选择进入 2003/XP.

19 novembre

工程从 Tomcat 6.0.20 移植到 WAS 6.1.0.27 碰到的一些杯具

工程的开发环境是 Spring2.5.5 + Struts2.1.6 + iBatis2.3.4 + MyEclipse7.5 + Tomcat6.0.20,现在要部署到 WAS 6.1.0.27 上去。随便捣鼓了几下。

1. SqlMap 文件中如果有中文注释的,内容前后和注释标记之间需要空格。并且,含有中文字符的文件的编码如果是 UTF-8 格式的,必须不含 BOM 头。

2. 工程中 Spring 的一些 applicationContext.xml 我们是直接放在 src 下的,web.xml 中配置 contextConfigLocation 写的是 classpath:applicationContext-*.xml,需要改成 WEB-INF/classes/applicationContext-*.xml。

3. 工程 lib 中增加 velocity-tools-1.4.jar 和 velocity-1.5.jar。

4. 工程 lib 中移除 jsf-api.jar 和 jsf-impl.jar。

5. 工程的 JDK 换成 IBM 的 1.5.0,并且 Defalut VM Arguments 加入 -Dibm.stream.nio=true,保证编译通过。

6. 登录 WAS Console,定位 Server > Application servers > your server name > Process Definition > Java Virtual Machine 下,在 Generic JVM arguments 中写入 -Dibm.stream.nio=true。

7. 登录 WAS Console,定位 Server > Application servers > your server name > Process Definition > Java Virtual Machine > Custom Properties 下,增加属性  com.ibm.ws.webcontainer.invokeFiltersCompatibility,值为 true。

02 giugno

How to: Create Temporary Certificates for Use During Development

To create a self-signed root authority certificate and export the private key

1. Use the MakeCert.exe tool with the following switches:

  • -n subjectName. Specifies the subject name. The convention is to prefix the subject name with "CN = " for "Common Name".
  • -r. Specifies that the certificate will be self-signed.
  • -sv privateKeyFile. Specifies the file that contains the private key container.

For example, the following command creates a self-signed certificate with a subject name of "CN=MySignedRootCA".

        makecert -n "CN=MySignedRootCA"
                      -r
                      -sv C:\MySignedRootCA.pvk
                      C:\MySignedRootCA.cer

You will be prompted to provide a password to protect the private key. This password is required when creating a certificate signed by this root certificate.

 

To create a new certificate signed by a root authority certificate

1. Use the MakeCert.exe tool with the following switches:

  • -sk subjectKey. The location of the subject's key container that holds the private key. If a key container does not exist, one is created. If neither of the -sk or -sv options is used, a key container called JoeSoft is created by default.
  • -n subjectName. Specifies the subject name. The convention is to prefix the subject name with "CN = " for "Common Name".
  • -iv issuerKeyFile. Specifies the issuer's private key file.
  • -ic issuerCertFile. Specifies the location of the issuer's certificate.

For example, the following command creates a certificate signed by the

    MySignedRootCA

root authority certificate with a subject name of

    MySignedCA

using the private key of the issuer.

        makecert -iv C:\MySignedRootCA.pvk
                      -n "CN=MySignedCA"
                      -ic C:\MySignedRootCA.cer MySignedCA.cer
                      -sr currentuser
                      -ss My
                      -pe
                      -sky exchange

 

Installing a Certificate in the Trusted Root Certification Authorities Store

To install a self-signed certificate in the Trusted Root Certification Authorities

  • Open the certificate snap-in. For more information, see How to: View Certificates with the MMC Snap-in.

  • Open the folder to store the certificate, either the Local Computer or the Current User.

  • Open the Trusted Root Certification Authorities folder.

  • Right-click the Certificates folder and click All Tasks, then click Import.

  • Follow the on-screen wizard instructions to import the TempCa.cer into the store.

 

See Also

Certificate Creation Tool (Makecert.exe)

31 ottobre

秋乏

秋乏时期,懒了一个月,实在是不知道要写什么。

秋乏时期,发现晚上做梦很多。我想说的是,不是一个晚上做很多梦(这样我第二天铁定吃勿消),而是很多晚上都做梦。惋惜的是,都是醒来后想不起来情节的那种,就知道自己做了个梦,其它就没了。独独昨天,一个晚上做了很多梦,而且都想得起情节。什么被狗咬了、坐地铁甩尾、乱78糟的什么都有(除了XX么有,竟然有点小失望)。今天我果然垮了,一点力气都没有……

秋乏时期,自己对某件事情竟然不能保持长久的兴趣,当然不是指MM。还想去哪散散心,老打盹。

秋乏时期,习惯坐货梯去8楼吃午饭。今天,这货梯坐得我印象巨深刻。在货梯口,发现3个警察在那(其中有个MM)。仿佛也想搭乘货梯的样子,我小紧张,弱弱地挪过去,望天花板ing。货梯一下来,3个进去了,我也钻了进去。正要关门,又突然不知道从哪杀来7、8个警察。我靠,这下真壮观了,一群警察在货梯里把我包围在中间,动弹不得,规规矩矩到窘立在那。我遂想象我是警方要保护的重要人物,暂时自我阿Q一下……我希望电梯是快点好呢还是慢点好呢……谁想出了货梯又被他们簇拥到食堂里 TT 敢情这帮子人都是去吃饭的啊?

秋乏时期,与落枕特别有缘分。同事每每看到我都要问,你眼睛没什么问题吧?看人怎么这副腔调?我那个崩溃啊,丫的他怎么就是不长记性,不是告诉过你我今天落枕了嘛……今天,你落枕了吗?

秋乏时期,麻将搓的少了。也就在这个时期,我终于明白为什么3个男人千万不要和1个女人一起搓麻。你皮夹子里的马尼会消失得很惨。

秋乏时期,总是无缘无故的喜欢发呆。坐在写字楼里,朝着窗户外,望着楼下马路上的过往车辆和行人,望着对面高层住宅外晒着的三角形,望着一麻袋的马尼从押款车里被人簇拥着消失在对面的银行里面……。发呆的时候,可以想,邪恶的,好玩的,郁闷的,来气的……可以什么也不想,可以笃定得像一尊佛,也可以小er多动。今天我拿出手机,对着窗外,准备拍下有什么东西朝我撞来的壮观场面,脑子却想着把我那件Ferrari的赛车服送人……习惯了一个人独来独往。想以前的事情,想未来的事情。一咪咪回忆,一咪咪憧憬。

秋乏时期,魔魔竟然告诉我他去健身了,而且直接导致他体内的线粒体爆发。真是让目前巨萎靡的我相当地羡慕和PF。我严重缺乏原力,而他,竟然多到没处使。又开始魔鬼肌肉练了,那2块让我向往的胸大肌啊,摸摸。靠,摸摸果然已成习惯……传点原力给我也好的挖 VoV

秋乏时期,突然很怀念キス的味道。这么长的时间,对一个男人来说实在是太可怕。

……

秋乏时期之末,我认识了某个人,于是我想去找一样那东西,我想把它煲成汤。

<<<Ich liebe dich..
 

晚上八点半 20:30

脚印收集ing……
Adult Sugar DVD Rental
Foto 1 di 25