「原來是Flash 搞的把戲」 解決Macbook 無故發燙,只有開Safari就發高燒的問題!:
閱讀全文
PureDIDO 純兒迪多
2012年9月12日 星期三
2011年11月18日 星期五
Oracle VM 3.0.2 筆記
[Manager Discover Server Failed]
Oracle VM 3.0.2 並無法正確在VirtualBox中執行,VM Manager discover server時無法加入。
所以此狀況目前在虛擬環境無解。
若VM Server不是在虛擬機上,可以按照以下處理方式進行:來源
FIX ACTION: (ALL DONE AS ROOT, Do not remove any of your VM Servers from the manager)
1) Make sure the database is running (ps -aef | grep smon) you should see and entry with "ora_smon_"
2) Stopped OVMM. (/etc/init.d/ovmm stop)
3) cd /u01/app/oracle/ovm-manager-3/bin
4) sh ./ovm_upgrade.sh --dbuser=ovs --dbpass=[password for ovs] --deletedb --dbsid=[your SID]
5) cd /media/CDROM
6) ./runInstaller.sh
a) Choose Uninstall
b) Skip Uninstall of Java
c) Uninstall VM Manager 3.0
d) Uninstall Weblogic Server (you have to do this or the re-install will fail)
7) ./runInstaller.sh -u [INPUT YOUR EXISTING UUID]
(you can get this from your VM Server consoles or the .config file from list item 3 above)
8) Follow the prompts to re-install the VM Manager.
9) Discover your existing VM Servers, register your file Servers, discover your Repositories and so on.
10) You are done.
1) Make sure the database is running (ps -aef | grep smon) you should see and entry with "ora_smon_
2) Stopped OVMM. (/etc/init.d/ovmm stop)
3) cd /u01/app/oracle/ovm-manager-3/bin
4) sh ./ovm_upgrade.sh --dbuser=ovs --dbpass=[password for ovs] --deletedb --dbsid=
5) cd /media/CDROM
6) ./runInstaller.sh
a) Choose Uninstall
b) Skip Uninstall of Java
c) Uninstall VM Manager 3.0
d) Uninstall Weblogic Server (you have to do this or the re-install will fail)
7) ./runInstaller.sh -u [INPUT YOUR EXISTING UUID]
8) Follow the prompts to re-install the VM Manager.
9) Discover your existing VM Servers, register your file Servers, discover your Repositories and so on.
10) You are done.
[Rebuild OVS DB]
/etc/init.d/ovs-agent stop
rm -rf /etc/ovs-agent/db
/etc/init.d/ovs-agent start
rm -rf /etc/ovs-agent/db
/etc/init.d/ovs-agent start
[Documents]
2011年8月9日 星期二
筆記:取代^M
取代unix文件中的^M (http://zylix666.blogspot.com/2006/02/unixm.html)
^C的ascii碼\003
^M的ascii碼\015
cat file | tr -d "\015" > newfile
在vi中取代 (http://www.tech-recipes.com/unix_tips150.html)
Remove ^M characters at end of lines in vi
To remove the ^M characters at the end of all lines in vi, use:
:%s/^V^M//g
The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:
:%s/^M//g
In UNIX, you can escape a control character by preceeding it with a CONTROL-V. The :%s is a basic search and replace command in vi. It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).
2011年7月22日 星期五
筆記:Find & Kill defunct (zombie) processes on Solaris
Find Zombie Processes
ps -el | grep 'Z'
Find & Kill Zombie Processes
/usr/bin/preap $(ps -ef | grep defunct | awk '{ print $2 }' | xargs)
Reference:
2011年7月13日 星期三
筆記:Mac OSX 10.6.8 network printer problem
更新到Mac OSX 10.6.8之後列印公司Toshiba e-studio 255事務機會出現 /usr/libexec/cups/backenddnssd failed,有幸網路上有善心人事提供之前版本的檔案,剛剛將/usr/libexec/cups/backend路徑下dnssd, ipp, lpd三個檔案覆蓋回去後,終於可以列印了阿!
感謝神~
我沒有覆蓋socket是因為這個檔案內容看起來是針對HP使用,而我列印HP印表機很正常。
Reference
The files that need to be downgraded back to 10.6.6 or 10.6.7 are in the following folder.
/usr/libexec/cups/backend
The files to replace are as follows.
socket
dnssd
lpd
ipp
You need to backup these files first.
2011年7月11日 星期一
su: No directory!
check /etc/passwd /etc/shadow /etc/nsswitch.conf
User home directory permission
If settings is correct.
check / mount point permission.
root@M4000 # ls -ald /
drwxr-x--- 51 root root 77 Jul 11 11:33 /
root@M4000 # chmod 755 /
root@M4000 #
root@M4000 # su - mds
Oracle Corporation SunOS 5.10 Generic Patch January 2005
$HOSTNAME:`pwd`>
$HOSTNAME:`pwd`> exit
root@M4000 # su - crp2db
Oracle Corporation SunOS 5.10 Generic Patch January 2005
crp2db> exit
2011年7月4日 星期一
Error in unconfig_files: Cannot delete NIS client information from /var/yp/binding.
Error in unconfig_files: Cannot delete
ERROR: Unable to unconfigure the extracted system
Unable to unconfigure the extracted system
Fatal Error
Solaris installation program exited.
You need to exclude NIS from the flarcreate:
flarcreate -S -c -n -I “servername-5.10-sun4v-date” -x /var/yp/binding/yourdomainname /var/tmp/servername-5.10-sun4v-date.flar
Or
flarcreate -S -c -n -I \
“`uname -n`-`uname -r`-`uname -m`-`date +%m%d%Y`” \
-x “/var/yp/binding/`domainname`” \
/var/tmp/”`uname -n`-`uname -r`-`uname -m`-`date +%m%d%Y`.flar”
Refrense: Error when trying to load a flar.
訂閱:
文章 (Atom)