發表文章

Linksys USB3GIG 與 MAC 10.11 EI Captain 不兼容

圖片
Linksys USB3GIG 與 MAC 10.11 EI Captain 不兼容,但對下與10.10 YOSITEMITE 就還不錯。 Linksys官網提供的 Driver是Version 1.0 並不兼容 Mac 10.11,官方貌似也不打算作出更新,所以要購買的人就要三思了。 好在有人發現替代方案,就是安裝 Realtek的Adapter driver. http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=56&Level=5&Conn=4&DownTypeID=3&GetDown=false 測試過十分適合。

Mac Air Late 2013 安裝 Bootcamp Windows 7 64bits 手記

這篇文章不是技術文件,是記錄下來我安裝 Windows 7 64 bits 於 Mac Air Late 2013所遇到的一些問題。 照舊時經驗,準備一隻16GB大小的USB手指,使用Mac Air Bootcamp去 選第1 2 項,去完整地做一隻WININSTALL USB Disc。 第一次安裝後,要進入Windows 介面時,出現 AppleSSD.sys 數位認證錯誤的訊息,是完全無法子消除或忽略。 Google後有大人建議以下方法... 1. 裝 Paragon NTFS 試用版,這東西可讓用家在Mac OS下,把資料寫入NTFS的系統,所以可以存取BOOTCAMP Partition裡面的東西。 2. 刪除 Bootcamp\Windows\System32\drivers\AppleSSD.sys 3. Reboot 繼續 Windows的安裝。 真的跳過了AppleSSD.sys錯誤的訊息,可是進入到設置使用者帳戶時,鍵盤滑鼠都動不了,一樣是因為你剛剛做的USB是不支援Native 的 USB 3.0 Driver。 此題無解,零分重作。 第二次,我進入Bootcamp以舊法再試一次,看看是不是運氣差所以裝不起來,進到Windows 分Partition介面就出現錯誤了,應該說是系統 Partition衝突,又無解。重啟回到 Mac OS,使用Disk Utility 打算Recover Patition,還不讓我Recover,結果Bootcamp整大塊Partion就死在那邊。 很好, 我制出重起 Command + R大法,把整片 Harddisk 刪除掉,重新安裝Mac OS....唉。 第三次,我Google到,為了解決Keyboard和 Mouse都沒反應問題,應該事前先置換掉USB Disc裡面的Driver。 流程為甚麼我會知道我是忘了,但我需要下載 Bootcamp 5.1.5640這個Driver Pack。 (較舊的機器,請下載 5.1.5621,至於那款才叫舊,請參考  https://support.apple.com/kb/DL1721?locale=en_US) 下載回來的是ZIP檔案,解壓後把裡面的 $WinPEDriver$ AutoUnattend.xml Boot...

一些有關raid-check用的指令和參數

一些有關 raid-check 用的指令和參數 每秒觀看各 CPU 內核使用率 #watch -n1 mpstat -P ALL -u 1 10000 每秒觀看目前 Raid 的狀態 #watch -n1 cat /proc/mdstat 影響 raid-check 運行速度的參數 #sysctl dev.raid.speed_limit_min #sysctl dev.raid.speed_limit_max 目前 Software Raid 的錯誤數 (Number) #echo /sys/block/md1/md/mismatch_cnt 目前 raid-check 的動態 (Check/Idle) #echo /sys/block/md1/md/sync_action raid-check 的設定檔 #vi /etc/sysconfig/raid-check raid-check 的執行檔   #/usr/sbin/raid-check raid-check 的 cronjob /etc/cron.d/raid-check 改變目前 speed_limit_max 和 speed_limit_min #echo 200000 > /proc/sys/dev/raid/speed_limit_max #echo 5000 > /proc/sys/dev/raid/speed_limit_min 或是 # sysctl -w dev.raid.speed_limit_max=100000 #sysctl -w dev.raid.speed_limit_min=1000 但這個都是暫時性的,要永久性請修改 /etc/sysctl.conf ,增加以下兩句 #vi /etc/sysctl.conf 增加 dev.raid.speed_limit_max = 100000 dev.raid.speed_limit_min = 50000       平時使用 #raid-check 執行檢查,又或是依照 Cronjob 設置的時間去做檢查。 又或者 #ech...

Synology NAS Root Login

相信應該有人跟我一樣,NAS上的Surveilliance Station,因某些原因而讓該刪除掉的視頻,變成有權限問題。 所以造成刪除檔案時出現權限不足。 可以使用Root登入去刪除 先在圖形介面把SSH服務啟動起來。 控制台 > 終端機 > 啟動SSH功能 如果防火牆有限制的話,把防火牆設定一下,容許SSH登入。 沒開防火牆就算了。 然後使用putty或類似軟件,以root登入,密碼和admin密碼相同。 登入後,先 cd .. 退上一層,會看到整個NAS系統目錄。 而我們使用的檔案會存放於 volumn1 中。 看你要刪除甚麼檔案,刪除指令是 rm 。

Speedtest-cli.py 測試 (Linux下使用Command 做 Speedtest)

圖片
http://www.speedtest.net/ 這個網站相信就算平時不怎麼懂網路的人,也會知道。這是一個很有名的測速網站。 你的網速如何,從這兒可以得到一個很準確的參考。可是這個是GUI介面,用Browser的,現在介紹一下如果在Linux的Command Line底下,怎樣使用Speedtest.net做測試。 首先你要有 speedtest-cli.py 這個程式。可以參考以下網址: https://pypi.python.org/pypi/speedtest-cli/ 又或是懶點 wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py chmod +x speedtest-cli 或者沒wget的話 curl -Lo speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py chmod +x speedtest-cli 這東西是用 Python寫成的,所以你要有Python安裝在你的電腦或服務器上。一般Mac和CentOS用戶,預設應有Python,所以不用太擔心。 請使用 python -V 或 python --version 去檢查版本, speedtest-cli 需要 python 2.4以上版本。 輸入 ./speedtest-cli去執行,不輸入任何參數的話,他會去找最接近(最快)的服務器去測試。 你也可以輸入 speedtest-cli --server [SERVER_ID] 去指定測試Server,至於ID,你可以使用 speedtest-cli --list 去 Retrieve出來。 我是比較喜歡  http://www.speedtest.net/speedtest-servers.php   去查找需要的Server。  用用看吧,很方便呢。

Fortigate 不同型號間的Firewall Configuration 檔案轉換

來源: http://kb.fortinet.com/kb/documentLink.do?externalID=10063 Technical Tip : How to load/convert a FortiGate configuration file from one unit to another (file conversion for a different model). This article explains how to transfer a FortiGate configuration file to a new   FortiGate unit of a different model.   1.  Open the backup configuration file from the previous and different FortiGate Unit. 2.  Download a backup of a new configuration file from the new unit. This procedure is   different depending on which FortiOS version is running on the FortiGate: In FortiOS 3.0, 4.0, 4.1.x, download a factory default configuration file from    System>Maintenance>Backup&Restore In FortiOS 4.2 download a factory default configuration file from   System>Dashboard>System Information>System Configuration 3.  From the factory default configuration file copy the "config-version"...

Fortigate V5.0 Switch mode to interface mode

圖片
一時失憶,忘記了怎樣將新的Fortigate 從 Switch mode 變成 interface mode. 因為新到的Fortigate預設都是 所有internal互通的。 一開始 要先連接本機與Fortigate的Internal 1,並使用 https://192.168.1.99 進入管理介面。 進去後,把Interface Wan2的 HTTPS打開,再把網線接到WAN2,再用https://192.168.101.99 進入管理介面。 把Internal 的 DHCP Server Disable掉,把Policy關於Internal 的Policy delete掉。 回到Interface, 再Internal上按右鍵,叫出選單,點擊Change Mode。 如下圖。(下圖為已轉好的畫面)