星期日, 3月 03, 2019

安裝Windows之後,變更硬碟模式SATA or AHCI

之前安裝的 Windows,為了相容的考量,把硬碟模式改成「Native IDE」模式,結果因為之後的硬碟預設都是 AHCI 模式,若直接把映像檔還原後,就會造成 Windows 無法開機,之前都是採用進入 BIOS 更改設定符合 IDE 模式,不過,目前的機器採用 AHCI 的模式愈來愈多,想找個比較一致的方法。

目前看了資料後,直接修改 Registry 可以達到這樣的要求。

Windows 7


  1. 先以原本的硬碟模式(Native IDE) 進入 Windows。
  2. 開啟「regedit」
  3. 找到「HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msahci」。
  4. 把 「Start」的 DWord 值,從「3」改成「0」 。(SATA => AHCI )
  5. 重新開機,進入BIOS,把硬碟模式,改成「AHCI」。


Windows 10

  1. 先以原本的硬碟模式(Native IDE) 進入 Windows。
  2. 開啟「regedit」
  3. 找到下列3個鍵值
    • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaSTORAV
    • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaSTORV
    • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\storeahci
  4. 把 「Start」的 DWord 值,從「3」改成「0」 。(SATA => AHCI )
  5. 重新開機,進入BIOS,把硬碟模式,改成「AHCI」。

星期四, 1月 31, 2019

[轉貼] How to reduce/compact the vdi file size? (如何幫virtualbox的vdi檔減肥, 釋放出硬碟空間?)

來源:
  1. http://jwliving.blogspot.com/2015/06/how-to-reducecompact-vdi-file-size.html
  2. https://www.howtogeek.com/312883/how-to-shrink-a-virtualbox-virtual-machine-and-free-up-disk-space/



雖然時間讓我愈來愈少用 Virtualbox 測試,不過,偶爾看到還是覺得開心。

按照這篇文章處理後,匯出的虛擬檔少了一半,蠻不錯的,有用!

大致流程:
1.利用 zerofree (linux,需安裝) ,把空白的磁區用 0x00 填滿
2. 利用 Virtualbox 自己的工具程式把磁碟檔壓縮
    ex:  VBoxManage modifyvdi ubuntu12.04.3.vdi compact
3. 再利用Virtualbox 匯出

星期三, 12月 05, 2018

[轉] 在 UBUNTU 18.04 下,如何設定 mysql root 的密碼


文章來源: http://www.okpc777.com/wp/archives/459

不同於以往,安裝過程竟然不用輸入 root 帳號的密碼?那我要如何使用(設定)資料庫?
請點選原文閱讀完整內容

星期五, 11月 30, 2018

Samba 文字編碼設定

之前安裝的 samba 設定文字編碼,結果這2天因為一些原因,看了一下 log 檔,結果發現一直有噴錯誤訊息,查了一下,有2個問題,一個是放置區段了,得放在 [global] 裡頭才;另一個則是 display charset 參數在 Samba 4 似乎已經不支援了

原先設定:
[share]
    dos charset = UTF-8
    unix charset = UTF-8
    display charset = UTF-8

錯誤訊息:
Unknown parameter encountered: "display charset"


修正後設定:
[global]
    dos charset = cp950
    unix charset = utf8
    #display charset = UTF-8

星期三, 11月 28, 2018

轉 [Ubuntu] 10 Best Application Launchers for Linux Desktops

文章來源:FOSSMint 10 Best Application Launchers for Linux Desktops


  1. Cerebro
  2. Synapse
  3. Gnome Pie
  4. Albert
  5. Apwal
  6. Ulauncher
  7. Gnome DoKupfer
  8. Launchy
  9. Rofi


星期一, 1月 09, 2017

[雜] How to make ReCaptcha readable

讓免空下載識別具有可讀性

原文網址:http://wordrider.net/forum/10/17077

How to make ReCaptcha readable with SlimerJS 
There are two kind of versions of SlimerJS: standalone and lightweight. 
  • SlimerJS standalone version is recommended whether you have Firefox installed or not. The standalone version depends on operating system (OS) and architecture. 
  • You can use the lightweight version if you have Firefox installed. You can download SlimerJS lightweight version here. But because the lightweight version depends on your Firefox installation, breakages are possible in the future, you're on your own if you choose the lightweight version. You can use the lightweight version for all operating systems.

Steps to integrate SlimerJS with FRD. We use standalone version (0.9.6) for Windows as an example: 
  1. Copy slimerjs-0.9.6-win32.zip (for Windows standalone version) to "tools" folder inside your FRD installation folder.
  1. Extract slimerjs-0.9.6-win32.zip. You'll get slimerjs-0.9.6-win32 folder, rename it to slimerjs.
  1. Update recaptcha plugin to at least version 1.1.0 (Help -> Check for new plugins).
‧‧‧‧‧‧‧‧‧‧‧‧‧‧‧

星期六, 7月 16, 2016

匯出匯入 Compiz 的設定

compiz  的設定散佈在自己帳號家目錄下好幾個檔案,有沒有辦法把它備份下來,出問題時再匯入呢?
找了一下資料,在 stackoverflow 可以 2、3 種解決辦法,不過,我覺得最簡單的方式是:
dconf  dump (匯出) 和 dconf load (匯入)

將 Compiz 設定匯出
Unity 介面:

  • dconf  dump /org/compiz/profiles/unity/   > my-unity-compiz.ini
  • dconf  dump /org/compiz/profiles/unity/   my-unity-compiz.ini

mate 介面:

  • dconf  dump /org/compiz/profiles/mate/   my-mate-compiz.ini
  • dconf  dump /org/compiz/profiles/mate/   my-mate-compiz.ini