(hd0) (hd0,msdos4) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
grub> ls (hd0,msdos1)/
grub> set root=(hd0,msdos1)
grub> linux /vmlinuz ro root=/dev/sda1
grub> initrd /initrd.img
grub> boot
Reference :
Instigating a Manual Boot from the GRUB Prompt |
Reference :
Instigating a Manual Boot from the GRUB Prompt |
alert( JSON.stringify( myarray ) );
把他註解掉,有 sleep 可以適當調低$PLYMOUTH message --text="Waiting for network configuration..." || : sleep 40 $PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || : sleep 59
# $PLYMOUTH message --text="Waiting for network configuration..." || : # sleep 40 # $PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || : # sleep 59
> cd C:\Program Files\SplunkUniversalForwarder\bin
# /opt/splunkforwarder/bin/splunk add forward-server 192.168.0.1:9997
# vi /opt/splunkforwarder/etc/system/local/inputs.conf
[monitor:////var/log/apache2]
whitelist = \.log
// 重新啟動
# /opt/splunkforwarder/bin/splunk restart
// 查看啟動 log
# less /opt/splunkforwarder/var/log/splunk/splunkd.log
# vi /etc/dhcp/dhclient.confprepend domain-name-servers 168.95.1.1, 8.8.8.8;
%USERPROFILE%\Local Settings\Application Data\SAS\SASDeploymentWizard\deploywiz.logWindows 7 :
%USERPROFILE%\AppData\Local\SAS\SASDeploymentWizard\deploywiz.log
Start -> Run
%SystemRoot%\system32\perfmon.msc /s
# dpkg -i splunk-5.0.1-143156-linux-2.6-amd64.deb
# /opt/splunk/bin/splunk
start --accept-license
# netstat -nlp|grep splunkd
// 正解
zone "yan.world" {
type master;
file "db.yan.example";
};
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA root.yan.example. yan.gmail.com. (
2010080301 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
;@ IN NS localhost.
;@ IN A 127.0.0.1
;@ IN AAAA ::1
@ IN NS yan.example.
yan.example. IN A 127.0.0.1
www 10 IN A 192.168.50.1
www 10 IN A 192.168.50.2
# cd /var/cache/bind
// named-checkzone zonename filename
# named-checkzone yan.example db.yan.example
# vi debian.cfg
console='hvc0'
xencons='tty'
或 boot kernel command line
# vi /mnt/boot/grub/menu.lstkernel /boot/vmlinuz-3.2.0-4-amd64 root=/dev/xvda1 ro quiet console=hvc0 xencons=tty
# mount -o loop debian.img /mnt
# vi /mnt/etc/inittab
1:2345:respawn:/sbin/getty 38400 tty1改成1:2345:respawn:/sbin/getty 38400 hvc0
# xm create debian.cfg -c
# apt-get install python-setuptools
# easy_install virtualenv
$ virtualenv python_test
$ cd ENV
$ source bin/activate
(
)$ pip install distribute
python_test
$ deactivate
Reference :
Python 的虛擬環境及多版本開發利器─Virtualenv 與 Pythonbrew - OpenFoundry
#easy_install pysqlite插入
easy_install mysql-python
#easy_install pysqlite
pip install distribute --upgrade
easy_install mysql-python
f_names=`ls $VIRTUAL_ENV_DIR/lib/python2.4/site-packages/Beaker-*py2.4.egg/beaker/ext/google.py`改成
f_names=`ls $VIRTUAL_ENV_DIR/lib/python2.7/site-packages/Beaker-*py2.7.egg/beaker/ext/google.py`
$ cd convirt
$ ./convirt-ctl start
$ cat paster.log
AttributeError: 'Label' object has no attribute 'JUMP_IF_FALSE'$ ./convirt-ctl stop
$ cd tg2env/
$ source bin/activate
(tg2env)$ easy_install -U PEAK-Rules
(tg2env)$ easy_install -U DecoratorTools
(tg2env)$ deactivate
$ vi ~/convirt/src/convirt/web/convirt/convirt/core/platforms/xen/XenServerProxy.py
import sys
sys.path.append('/usr/lib/xen-4.0/lib/python')
grub rescue> insmod (hdx,y)/boot/grub/linux.mod
# mount /dev/sda1 /mnt
# grub-install --root-directory=/mnt /dev/sda
# update-grub
Reference :
出现grub rescue解决办法 - 查看主题 • Ubuntu中文论坛
25歲,邁向理想的前站。: [Ubuntu] 解決重新分割磁碟後grub rescue的問題
How to Reinstall Grub Onto Your MBR
# ln -s /usr/bin/local/rsync /usr/bin/rsync
> VBoxManage.exe clonehd D:\Win7Orig.vdi D:\Win7Orig.vmdk --format VMDK
> qemu-img.exe convert D:\Win7Orig.vmdk -O qcow D:\Win7Orig.img
'BigPipe' is undefined
big pipe is null or not an object
hostbyte |
符号(Symbol) |
含义 |
0×00 |
DID_OK |
没有错误 |
0×01 |
DID_NO_CONNECT |
在超时之前,不能连接 |
0×02 |
DID_BUS_BUSY |
在超时期间,BUS一直处于忙状态 |
0×03 |
DID_TIME_OUT |
因为其他原因超时 |
0×04 |
DID_BAD_TARGET |
BAD target |
0×05 |
DID_ABORT |
因为其他原因取消 |
0×06 |
DID_PARITY |
Parity错误 |
0×07 |
DID_ERROR |
内部错误(internal error) |
0×08 |
DID_RESET |
被复位 |
0×09 |
DID_BAD_INTR |
得到一个未被期望的中断 |
driverbyte |
符号(Symbol) |
含义 |
0×00 |
DRIVER_OK |
没有错误 |
0×01 |
DRIVER_BUSY |
未使用 |
0×02 |
DRIVER_SOFT |
未使用 |
0×03 |
DRIVER_MEDIA |
未使用 |
0×04 |
DRIVER_ERROR |
内部驱动错误 |
0×05 |
DRIVER_INVALID |
完成(DID_BAD_TARGET或DID_ABORT) |
0×06 |
DRIVER_TIMEOUT |
超时完成 |
0×07 |
DRIVER_HARD |
完成,但有致命错误 |
0×08 |
DRIVER_SENSE |
有sense信息 |
0×10 |
SUGGEST_RETRY |
重试SCSI请求 |
0×20 |
SUGGEST_ABORT |
取消请求 |
0×30 |
SUGGEST_REMAP |
重新映射block,但没有完成 |
0×40 |
SUGGEST_DIE |
让内核Panic |
0×80 |
SUGGEST_SENSE |
从设备上获取Sense信息 |
0xff |
SUGGEST_IS_OK |
不需要做任何操作 |
sed -s 's/211.xxx.xxx.xxx/192.168.1.1/g' access_log access.log security
2. 下載 convirt appliance xen config,并修改你的映像檔位置
# vi convirt_appliance
disk=['file:/home/xen/c2_appliance.disk.xm,hda,w']
3. 啟動虛擬系統
# xm create convirt_appliance
4. 使用 vnc 連線,登入密碼為 convirt/convirt、cms/convirt、cms/cms
$ vncviewer your.xen.server:5900
$ cd ~/convirt
$ ./convirt-ctl start
http://your.convirt.web:8081/
# wget http://www.convirture.com/downloads/convirture-tools/2.1.1/convirture-tools-2.1.1.tar.gz
# cd convirture-tools/install/managed_server/scripts
# ./convirt-tool --detect_only setup
# ./convirt-tool install_dependencies
# ./convirt-tool setup
# vi /etc/xen/xend-config.sxp
- # /etc/init.d/xen restart
- # netstat -anltup | grep -n "[8002|8006]"