Archive for 2012

Desire HD 刷 JellyBean Android 4.2.1


沒有安裝Sense的HTC Desire HD,介面速度大幅度的提升,
和iPhone般的順暢感非常棒,


0.首先 備份你的手機資料.
1.下載ROM  CodeFire ACE
2.Full wipe,刷 JellyBean ROM, 請刷完先重開機.
3.下載 Google 應用整合包, 並刷進手機,不然OS並沒有內建Google App.


我個人建議安裝的軟體
1.時鐘和天氣,Transparent clock & weather
   如果喜歡HTC的老樣子,建議裝Fancy Widgets
2.Launcher建議用Apex Launcher 功能完善,設定很多,自己玩看看.
3.修改/system/etc/gps.conf,NTP_SERVER=pool.ntp.org改成NTP_SERVER=tw.pool.ntp.org,不改也是OK,第一次定位較久.
4.Apex Theme有很多選擇,有特殊美感喜好的,再挑個您滿意的刷.
5.如果喜歡將電源鍵改到搜尋鍵,以增加電源鍵壽命,可以修改/system/usr/keylayout/synaptics-rmi-touchscreen.kl
將217 SERACH改成217 POWER

問題集:
1.刷更新版:更新新版ROM時不需full wipe,直接刷可保留設定. 但google appp要重刷最新版才不會有問題.
2.如果發現部份APP有問題,如時鐘, 可至應用程式,清除應用程式資料,應可恢復正常.
3.最後...APP仍有問題,建議移除後重裝也會正常.
以下APP問題,如有網友知道怎麼解的請留研告訴我,謝謝!
4.Titanium backup roo SR1後就失效了, 原因不明. 其它軟體root正常.
5.QRcode對焦異常.
2012年11月29日 星期四
Posted by 紹斌

Linux 玩 GW2 (Guild Wars 2 on CentOS )


1.Install Proprietary drivers for your graphics card
  NVIDIA Driver Version 310.14+
2.Install wine
Download wine source 
http://sourceforge.net/projects/wine/files/Source/ 
3.cd wine
  ./configure
4.Install GW2 or copy Gw2 director to linux
5.Create  Gw2.sh

#!/bin/bash
export WINEDEBUG=fixme-all
export LD_PRELOAD="libpthread.so.0 libGL.so.1"
export __GL_THREADED_OPTIMISATIONS=1
wine explorer /desktop=Gw2,1280x1024 Gw2.exe -dx9single





2012年10月29日 星期一
Posted by 紹斌
Tag : ,

Highcharts for Nagios

Highcharts for Nagios is  Shao Pin, Cheng為Nagios 開發的開源plugin

What is Highcharts?

Highcharts is a charting library written in pure JavaScript, offering an easy way of adding interactive charts to your web site or web application. Highcharts currently supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange and polar chart types.

簡而言之Highchart就是開源的 畫漂亮圖表軟體
為了讓Nagios享有這種傑出的軟體功能,所以我寫了這個插件. (一種創意)
它能動態放大及自動調整圖片Y軸高度,及動態自訂線條顯示.
當一堆線畫在同一張圖時就會明白好用之處.
範例:


Highchart for Nagios - Download


如何 Install :
Ver 1.2
1.您必需先安裝pnp4nagios
2.解壓縮Highcharts4nagios.tar到httpd下您指定的目錄, 如:  /highcharts/
3.修改Nagios (service).cfg服務的設定檔,把action_url或是notes_url加上 /highcharts/highcharts.html?host=$HOSTNAME$&srv=$SERVICEDESC$  (黃字視您安裝的路徑修改)
4.reload nagios讓config生效後就完成了.


ps:Highchart的gray.js themes第一條線的顏色非常醜,您可以修改js/themes/gray.js 內的first colors: #9172EC",..........  或換成你喜歡的顏色.

進階的參數就請看我前一篇文章
Highcharts for Nagios Timeranges
2012年10月19日 星期五
Posted by 紹斌
Tag :

Highcharts for Nagios (en)


Highcharts4 Nagios Update

Ver 1.24 -- Update 2013.05.14 
---------------------------- 
Interface update

Ver 1.21 -- Update 2012.11.01 
---------------------------- 
*Add custom time range select. 
*Add different domain support. 
*All in one. 

Install Notes

1.You must installed pnp4nagios above 0.6.x, NOT work with 0.4.x 
2.Download highcharts4nagios.rar, unrar to ex:/usr/local/highcharts
3.Modify httpd.conf. 
4.Add Nagios service config with action_url or notes_url to ex: 
notes_url /highcharts/highcharts.html?host=$HOSTNAME$&srv=$SERVICEDESC$ 
4.Restart httpd and nagios.
  (Below this line .... is optional, Not necessary !) 
5.If  highcharts-IP & pnp4nagios-IPchange not in the same server, 
   change  highcharts.html  LocHost='Your pnp4nagios IP' values
6.If client in different Domain, you need edit 
   pnp4nagios/share/application/controllers/xport.php 
   add bellow line ...
header("Access-Control-Allow-Origin: *");  //Allowed *(your IP) Access-Control-Allow-Origin
7.If you are ruining Apache with SSL (https), modify line 150 of highcharts.html from http to https and you can see the graph.



Timeranges

Additionally you can influence the timeranges via the URL. This can be useful to automatically create PDF documents. The ranges can be defined using the options “start” and “end”.
Example:
 highcharts/graph?host=&srv=&start=-1week
The graph will start one week prior to the current date and time. It will end at the current timestamp.
startendviewresult
all views ending at current timestamp
xall views starting at defined date
xall views ending at defined date
xxone view between the two dates
xone view ending at current timestamp
xxone view starting at defined date
xxone view ending at defined date
Examples of different specifications
formatdescription
2009W044. week of 2009
1.5.2009May, 1st 2009
-1 dayone day back
-3 weeks3 weeks back
-1 yearone year back
yesterdayyesterday

Customize

Highcharts theme:
1.Highcharts line color:
   Edit js/themes/gray.js or dark-blue.js, dark-green.js, grid.js.
2.Highcharts theme:
   Edit highcharts.html, find gray.js change to {dark-blue.js or dark-green.js or grid.js or skies.js}
3.Theme line color:
   Modify the js/themes/gray.js the first colors: # 9172EC ", .......... or with your favorite color
Calendar theme:
1.Calendar LANG:
   Edit highcharts.html, find en.js change to {cn.js(Tradition Chinese), ca.js, cn.js, cz.js, de.js, en.js, es.js, fr.js, hr.js, it.js, jp.js, nl.js, pl.js, pt.js, ro.js, ru.js, sk.js, sv.js}
2.Calendar theme:
   Edit highcharts.html, find gold.css change to {steel.css, matrix.css, win2k.css, gold.css, steel.css}


2012年10月18日 星期四
Posted by 紹斌
Tag :

Nagios plugin to monitor IBM System i (AS/400)

Nagios plugin to monitor IBM System i (AS/400)

Nagios Exchange - check_as400   This is one of my works.

Check_as400 Version: 1.1.1 : <2013> 
* check number of jobs in JOBQ 

Check_as400 Version: 1.0.1 : 
* check CPU load. 
* check ASP usage. 
* check Pool DB/Non-DB Fault 
* check number of active jobs in system. 
* check to see if job is in the system.
* DB utilization. (Not available after V6R1)
* check DISK Status.
* check if login completes.
* check for any unanswered messages on msg queue.
* check outq files, writer and status.
* check if the subsystem is running.
* check MIMIX Data Group Unprocessed Entry Count. 
2012年9月19日 星期三
Posted by 紹斌
Tag :

IT資產管理 GLPI version 0.84 繁體中文化完成 (台灣)

IT資產管理 GLPI version 0.84 繁體中文化 (台灣) 於今日終於全部完成

因GLPI語系轉換工作自年初該開發團隊移至新的翻譯網站進行管理開發,
舊的繁體中文翻譯已經100%完成,但GLPI團隊自稱竭盡全力,仍無法完整將舊資料轉換到新網站,(僅53%的繁體中文翻譯正常轉換),
所以又耗用我相當多的時間才用重新翻譯完成.

新的翻譯介面可以讓大家一同來參與翻譯的工作,如果我有翻的不好或是不順暢的地方,
大家都可以來進行修訂.



2012年9月10日 星期一
Posted by 紹斌
Tag :

Desire HD 刷Android Version: 4.0.4 (IceCream Sandwich)

Desire HD IceCream 終於出了一版功能都很正常的
感謝XDA神人之手 (Not HTC <-失去誠信)

**請先使用Titanium做完整備份,確保Andorid和你的APP都已備份,通訊錄等也請自行備份

0.Blackout_ICS_Incredible_v3.1.0.zip DownLoad Link
1.請先確定你手機已經Root+S-OFF (教學)
2.用4EXT Recovery Touch開到Recorvey模式, (請先確定已更新到新touch 1.0.0.5 RC6 build 46以上版本)
   進wipe做Full wipe (wipe data/factory reset & wipe cache + dalvik)
   回主畫面選install from SD card,選剛剛下載的ROM, Blackout_ICS_Incredible_v3.1.0.zip
3.中間很多詢問的選項,對不瞭解功用的人,選default下一步即可. (請沒有預做app備份的朋友,注意選擇backup my app)
4.裝完自動重開機後即完成.


使用後記:
此版我個人覺得不會頓頓的,順暢.和HTC食言後的聲明完全不同.
多了群組工具,畫面也變的簡潔漂亮,該大的字體大,
過多圖示占用畫面部份也修正了,如氣象,play商店選項...等等
而且還多了Blackout Tweaks不錯的工具,日後可以線上升級ROM,Themes,等等...不用再靠HTC升OS,雖然這是廠商保護客戶最應該自己做的事.
看來XDA可以讓HTC花錢去併購了.

2012年8月19日 星期日
Posted by 紹斌
Tag :

為i5/OS配置sshd PHP MySQL

為IBM i配置ssh連線
1.iOS需安裝5733SC1...等等
2.進qsh or call qp2term產生sshd的服務密鑰
  • ssh-keygen -t rsa1 -f /QOpenSys/QIBM/ProdData/SC1/OpenSSH/openssh-3.8.1p1/etc/ssh_host_key -N ""
  • ssh-keygen -t rsa1 -f /QOpenSys/QIBM/ProdData/SC1/OpenSSH/openssh-3.8.1p1/etc/ssh_host_rsa_key -N ""
  • ssh-keygen -t dsa1 -f /QOpenSys/QIBM/ProdData/SC1/OpenSSH/openssh-3.8.1p1/etc/ ssh_host_dsa_key -N ""
開啟sshd
/QOpenSys/usr/sbin/sshd

3.因為我個人喜好用bash,所以有許多步驟要執行,如下(不用bash的請略過)
ssh連線至IBM i PASE安裝RPM及gmake套件以安裝bash等.....RPM

mkdir -P /QOpenSys/compiler
cd /QOpenSys/compiler
安裝RPM
restore -xqf rpm.rte
mv /QOpenSys/compiler/usr/opt/freeware /opt
cd /opt/freeware/lib

cp librpmbuild.so.0.0.0 librpmbuild.so
cp libpopt.so.0.0.0 libpopt.so
cp librpm.so.0.0.0 librpm.so
ln -s /opt/freeware/bin/rpm /usr/bin/rpm
安裝gmake
rpm --ignoreos --ignorearch --noodeps -ivh make-xxxx.ppc.rpm
安裝bash rpm
rpm --ignoreos --ignorearch --noodeps -ivh bash-xx.ppc.rpm

安裝PHP (Zend Core for i5/OS)
download Zend Server for IBM i (PHP 5.3)解壓後點選setup安裝
安裝會以batch執行,以wrkactjob 確認該安裝已完成後執行
go zendsvr/zcmenu
安裝MySQL(Option,可用DB400),變更密碼後,將所有服務都start
為了安全記得變更MySQL root密碼,變更後才能用PhpMyAdmin
ps:PhpMyAdmin內建已安裝,對SQL不熟悉的人可以用此web管理DB

進Zend Server管理網頁確認PHP狀態
在網頁上變更time zone ,Server Setup->Directives->date (也可以直接改php.ini)
date.timezone台灣改 Etc/GMT-8


其它後記:

使用Zend 5250 Emulator and Zend 5250 Bridge Object Oriented API發生的問題WRKACTJOB JOB(QQF*)查Webfacing的log發現有error,QQFTEMP 不存在
crtlib QQFTEMPQUSER *ALLCHGOBJOWN OBJ(QQFTEMP) OBJTYPE(*LIB) NEWOWN(QSYS)WebFacing Troubleshooting Tipshttp://www-01.ibm.com/support/docview.wss?uid=swg27005905
2012年8月17日 星期五
Posted by 紹斌
Tag :

RRDtool 升級後CPU使用率過高解決

RRDTool 從 1.2x 升級到 1.3x 或 1.4x後
CPU使用率會過高(圖會hang住).
做了字型 erase all existing caches, then rescan就好了.

fc-cache -r -s -v


2012年6月28日 星期四
Posted by 紹斌

Oracle JInitiator 1.3.1.21 在 Win7 IE9 EBS異常關閉的處理方式

因JInitiator的版本是程式宣告控制的,我沒權限動它,
問題既然出在JVM,那就從JVM版本下手


1.請將這個jvm.dll換下面路徑內的
C:\Program Files\Oracle\JInitiator 1.3.1.21\bin\hotspot

2.Win7會跳出

色彩配置已變更為Windows 7 Basic」訊息

請點選永遠忽略,再開一次就會正常。


3.一定要重開機才能完全正常使用。

ps:IE8登入OK但是使用時也會有類似的問題,也可用此方式解決.
根本解決之道還是請EBS系統負責人把JInitiator提升吧.
2012年6月27日 星期三
Posted by 紹斌
Tag :

Nagios教學教材(設定與實做)

約兩年前因教育訓練需要寫了一份能在1小時內能教完的簡易的教材,
最近剛好有朋友需要,因此放上來分享.
對於尚不熟悉此軟體建置實做的朋友可以參考此一簡易教學.

點此下載

Posted by 紹斌
Tag :

Desire HD 2.3.5 root + ENG S-OFF 刷機教學

網路上各種方式 ,都無法找到一篇能真的從原廠2.3.5 HBOOT lock的狀態ENG S-OFF的案例,浪費不少時間在嘗試錯誤.不如自己寫.
ps:原廠DEV也不能用,所以請不用浪費時間試.
HTC鎖東鎖西,不如開放,我認為在電腦的世界..只要能碰的到硬體,就甚麼也鎖不了!


1.降ROM至1.32
請先下載下面4檔(原文http://forum.xda-developers.com/showthread.php?t=1424023)
tacoroot
misc_version NOTE: you need THAT version of misc_version. Earlier versions would not work.
flashgc for a goldcard
1.32 PD98IMG.zip
手機接USB,充電模式連結電腦
(1).在windows下
adb push tacoroot.sh /data/local/tmp/tacoroot
adb push misc_version /data/local/tmp/
adb push flashgc /data/local/tmp/
adb push PD98IMG.zip /sdcard/
上面 PD98IMG檔案頗大,需要稍等

(2).以windows command mode進手機shell (你也可以用手Terminal軟體下command)
adb shell 
chmod 755 /data/local/tmp/*
/data/local/tmp/tacoroot --setup
手機會進入原廠的recovery,接著出現三角形加紅色驚嘆號,
請同時按著音量(-)還有電源鍵,接著就會進入原廠的recovery了,
請以音量鍵選擇到reboot system now,並按下電源鍵。

(3).下面取得暫時root
adb shell
/data/local/tmp/tacoroot --root

(4).開機完建金卡
adb shell
cd /data/local/tmp
./misc_version -s 1.00.000.0
./flashgc
./tacoroot --undo
回到adb殼層,會發現旁邊的符號由$變成#,即表示取得root。

(5).這步做完會重開機至Boot Loader會自動運行SD卡內的PD98IMG檔案,並降ROM
adb reboot bootloader

2.降ROM完成,會以英文版開機
改充電模式連結電腦(menu>>setting>>application>>development>>usb debugging)

3.永久Unlock Root  <--請點這
PS:Visionary  這個我試的結果...不管怎麼用都不能永久root但temp root是OK的,因為要先S-OFF才能永久Root,所以就別用這很老的軟體.
ps:重開機(-)加電源鍵確認S-OFF狀態.

4. S-OFF  這個動做我卡非常久,找不到可用的方法,別的方法shell都會卡住不動
下載自製的free-dhd-small.zip然後解壓縮
http://cjt74392.myweb.hinet.net/share/free-dhd-small.rar
adb shell
su

busybox sh /sdcard/free-dhd/hboot   真正ENG S-OFF

5.內建為ClockworkMod Recovery,先裝另一種手機刷ROM軟體4EXT Recovery Updater v2.14
刷ROM Desire HD我首推,講解的很詳細,之後就參考路人甲的網站說明吧
(但root和S-OFF的部份就請略過,不能用的.)
http://walker-a.com/archives/1175   Android 2.3.4 與 HTC sense 3.0+Beats音效,很省電穩定
http://walker-a.com/archives/1067  Android 2.3.5 與HTC sense 3.5+Beats音效,有些Bug


最後,我強調幾件事,
1.記得備份(ROM/軟體/電話簿....).除非你甚麼也不想留.
2.所有套件裝完一定要先reboot,再裝下一,個不然會變磚.


2012年6月4日 星期一
Posted by 紹斌
Tag :

在Linux玩Diablo 3 (CentOS)

1.Install Proprietary drivers for your graphics card
2.Install wine
Download wine source
http://sourceforge.net/projects/wine/files/Source/

Download wine 1.5.4 D3 fix path 
wget http://source.winehq.org/patches/data/86102
wget http://source.winehq.org/patches/data/86103
wget http://source.winehq.org/patches/data/86104

wget http://source.winehq.org/patches/data/86105
Download wine 1.5.4 D3D error on game video setting change/restart path
http://bugs.winehq.org/attachment.cgi?id=39565

Install wine
cd wine-1.5.4
patch -p1 < ../86102
patch -p1 < ../86103
patch -p1 < ../86104

patch -p1 < ../86105
patch -p1 < ../reset.patch
./tools/make_requests


./configure
Download wine dependent program like: flex and bison ...... install it
http://prdownloads.sourceforge.net/flex/flex-2.5.35.tar.gz?download

......

make -j 4
make install
 


3.Install winetricks
  • rm -f winetricks
  • wget http://winetricks.org/winetricks
  • sudo cp winetricks /usr/bin
  • sudo chmod +x /usr/bin/winetricks

4.Download  msxml3.msi
  • http://download.cnet.com/Microsoft-XML-Parser-MSXML-3-0-Service-Pack-7-SP7/3000-7241_4-10731613.html
  • cp msxml3.msi /root/.cache/winetricks/msxml3
  • winetricks vcrun2008 (or winetricks vcrun2010)

5.install D3
sudo umount /dev/sr0
sudo mkdir /media/Diablo3
sudo mount /dev/sr0 /media/Diablo3 -o unhide,unhide,uid=$(id -g)
wine /media/Diablo3/Diablo\ III\ Setup.exe -launch

6,Play D3
wine Diablo\ III.exe -w -launch -auroraaddress
the -w parameter is not necessary and you can avoid it. It loads your game into free-transform window mode instead of fullscreen. If you want fullscreen gameplay remove this command ( -w ).
or 
wine explorer /desktop=Diablo,1820x1024 ./Diablo\ III.exe -launch

If you are having issues logging in, try the following magic:
echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope

other note:
http://appdb.winehq.org/objectManager.php?sClass=version&iId=25953




2012年5月24日 星期四
Posted by 紹斌
Tag : ,

我所遇到Win 7 顯示方面的問題整理

1.Geforce顯示卡新的Driver安裝完畢後,畫面一片黑(註:GeForce 296.10 WHQL,導致黑屏)
重開機後Windows旗幟飄揚,進到登入畫面一片漆黑,電腦並未當機,就是沒影像訊號.
解法:
雖然進安全模式移除新的驅動程式重開機會好,但這不是我要的結果,
查遍資料,試過多種網路方法,無效.
還是靠自己的智慧解決了,就是....換成HDMI輸出(DVI靠轉接頭接HDMI也行),
Geforce and Win 7很沒趣,我的顯卡有支持三種輸出,DVI/SUB/HDMI,
裝完新Driver進入WIN7後硬是強迫我用最好畫質的HDMI輸出,但開機確允許讓我可以用DVI輸出?

2.Win7進入(渾合)睡眠模式後,喚醒後硬體都醒了,就是沒有畫面.
解法: 1不行才做2,再不行才做3
(1).先確定BIOS power選項,看看ACPI是否正確的選了S3,win7 命令提示輸入powercfg -a可查詢.
(2).控制台\網路和網際網路\網路連線,開啟區域網路連線內容,選設定\電源管理,將允許這個裝置喚醒電腦選項 取消,確定後離開.
(3).還有問題就要靠顯示卡Driver解決了.
2012年5月23日 星期三
Posted by 紹斌
Tag :

System i - SQL COALESCE function in views has a deficiency

I was upgrade V5R3 --> V6R1 in last month,
我們踩到 IBM SQE 的 Bug, 開PMR弄了一個月,才由公司同事找到問題.



There isn't a problem specifically with the COALESCE function,
 But use COALESCE on columns in Views  then used to join to a table in a query, will cause SQL performance proble.

This SQE  deficiency should be fixed,
rewritting those views can resolve the performance problem . 

Query the SYSVIEWS table to determine if they have other views which use COALESCE,
i.e.:

select system_view_schema,
system_view_name , view_definition
from qsys2/sysviews
where upper(view_definition) like '%COALESCE%'

2012年5月4日 星期五
Posted by 紹斌
Tag :

Linux開機時將VMware虛擬機自動帶起

在Windows上自動帶起相對文章很多,我不多贅述,
我是在CentOS用VMware Workstation安裝Windows虛擬機
如果是VM Server也就沒那麼多問題,console界面就有自動開機選項了.

VM自動帶起的做法如下,請在 /etc/rc.local新增一行指令
su -l username -c '/usr/bin/vmrun start "/XXX/XXX.vmx" nogui'

短短一行指令,需注意如下,以免浪費您一堆時間,還開不起來!
1.username:需是root或是其它你要開VM的Linux user ID.
2.nogui:因為你在command mode是沒有圖型界面的,所以要加此參數.

ps:我用其它機器以ssh遠端登入CentOS後,用指令vmrun start "/XXX/XXX.vmx" nogui
這樣是帶不起來機器,會發生找不到display,如果有先進知道該怎麼做,請留言分享予我.
2012年1月9日 星期一
Posted by 紹斌
Tag :

Translate

關於我

我的相片
台北市, Taiwan
主要工作領域於Linux、IBM System i/ P 的系統管理維護, (認證:CISA、RHCE)

Donate Check_AS400

OR - Click Sponsored advertising

Labels

ShaoPin網誌. 技術提供:Blogger.

- Copyright © Shao Pin Cheng (Bruce) - Powered by Blogger