2019-10-04

HDD LOW LEVEL FORMAT TOOL 4.40 REPACK (& PORTABLE) BY ELCHUPACABRA

官方網站所提供的免費 LLF Tool, 有執行速度的限制 
==> Free for personal/home use (speed is capped at 180 GB per hour which is 50 MB/s)


1. download HDD LOW LEVEL FORMAT TOOL 4.40 REPACK (and PORTABLE) BY ELCHUPACABRA

2. cd "HDD LOW LEVEL FORMAT TOOL 4.40 REPACK (and PORTABLE) BY ELCHUPACABRA"

3. You will see the following files:
    "HDD Low Level Format Tool 4.40.exe" and 3 *.cmd batch files (can be ignored)

4. double click "HDD Low Level Format Tool 4.40.exe"
5. follow the steps shown below to generate "HDDLLFTool" directory and programs







6. "HDDLLFTool" contain the following files

Run "cmd" as administrator
tree HDDLLFTOOL /A /F

|   HDDLowLevelFormatPortable.exe <--- b="">用此檔案啟動 LLF
|
+---App
|   +---AppInfo
|   |   |   appicon.ico
|   |   |   appicon_128.png
|   |   |   appicon_16.png
|   |   |   appicon_32.png
|   |   |   appicon_75.png
|   |   |   appinfo.ini
|   |   |   EULA.txt
|   |   |
|   |   \---Launcher
|   |           Custom.nsh
|   |           HDDLowLevelFormatPortable.ini ( 名稱必須與 HDDLowLevelFormatPortable.exe 一致)
|   |
|   \---HDDLLF
|           HDDLLF.EXE
|
\---Data
    +---HDDLLF
    |       llftool.4.40.agreement
    |       llftool.license
    |
    \---settings
            HDDLowLevelFormatPortableSettings.ini

2019-10-02

winpe修改制作

指令及重要設定檔 (以 USBOX 4.0/Hiren's BootCD PE x64 為例)
以 7z.exe 打開 64pe.wim & tools.7z

- /boot/pe/64pe.wim/windows/system32/PECMD.exe
- /boot/pe/64pe.wim/windows/system32/PECMD.ini
- /tools/tools.7z/REGDOC.CMD
- /tools/tools.7z/TOOLS.ini
- .../windows/system32/startnet.cmd
- .../windows/system32/winpeshl.ini
- .../windows/system32/wpeinit.exe
- .../windows/system32/Win10PE.cfg ( for Hiren's BootCD PE x64 )

PECMD命令詳解 : part1, part2

2019-09-15

GImageX --- 修改 windows PE 檔 xxx.wim

感覺蠻好用的

Youtube 教學

官網

使用案例

wimlib:一個開源的類似imagex的處理wim神器,(由於imagex最新版識別不了wimboot和esd鏡像,早已經被微軟拋棄)沒有Dism的各種限制支持ESD直接導出為wimboot鏡像或常規壓縮的鏡像。

類似的軟件, 還有 wimtool, 但還是推薦使用 GImageX

2019-09-03

Windows OS 啟動程序

XP : MBR->PBR->ntldr->boot.ini->(ntoskrnl)

Vista/W7/W10 : MBR->PBR->bootmgr->/boot/BCD->winload.exe->(ntoskrnl)
Vista/W7/W10 : UEFI->PBR->bootmgfw.efi->/EFI/microsoft/boot/BCD->winload.efi->(ntoskrnl)

BCD 可透過 bcdedit.exe/EasyBCD/Bootice (建議)/WMI/Visual BCD Editor 修改設定


2019-08-01

關於“sfc /scanow命令無法修復”的問題

建議您使用以下命令嘗試對您的系統執行修復操作,然後查看效果。

按“Windows徽標鍵+X”,啟動“Windows PowerShell(管理員)”,依次輸入以下命令:

Dism /Online /Cleanup-Image /ScanHealth 

Dism /Online /Cleanup-Image /CheckHealth 

DISM /Online /Cleanup-image /RestoreHealth 

重開機

sfc /scannow

[update 2025/05/29] background.wav, foreground, remove.wav 損毀, 執行上述命令有效

如何檢視「系統檔案檢查程式」程序的詳細資料

如需檢視 CBS.Log 檔案所含的詳細資料,您可使用 Findstr 命令將資訊複製至 Sfcdetails.txt 檔案,然後檢視 Sfcdetails.txt 中的詳細資料。 若要執行這項操作,請依照下列步驟執行:
  1. 如先前步驟 1 所述,請開啟提升權限的命令提示字元。
  2. 在命令提示字元輸入下列命令,然後按下 ENTER:
    findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt" 
    注意:Sfcdetails.txt 檔案包含每次「系統檔案檢查程式」工具在電腦上執行時的詳細資料。 該檔案包含「系統檔案檢查程式」工具未修復的檔案相關資訊。 確認日期與時間項目,以判斷上次執行「系統檔案檢查程式」工具時找到的問題檔案。
  3. 從您的桌面開啟 Sfcdetails.txt 檔案。
  4. Sfcdetails.txt 檔案會使用以下格式:
    Date/Time SFC detail
    下列範例記錄檔包含無法修復檔案的項目:
    2007-01-12 12:10:42, Info                  CSI    00000008 [SR] Cannot 
    repair member file [l:34{17}]"Accessibility.dll" of Accessibility, Version = 
    6.0.6000.16386, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture neutral, 
    VersionScope neutral, PublicKeyToken = {l:8 b:b03f5f7f11d50a3a}, Type 
    neutral, TypeName neutral, PublicKey neutral in the store, file is missing
     


如何以手動方式用已知的良好檔案複本取代損毀的系統檔案

透過 Sfcdetails.txt 檔案的詳細資訊判斷損毀且無法修復的系統檔案後,請先找出損毀檔案的所在位置,接著以手動方式用已知的良好檔案複本取代損毀的系統檔案。 若要執行這項操作,請依照下列步驟執行:

注意:您可以從另一台執行相同 Windows 版本的電腦取得已知的良好檔案複本。 您可以在該電腦執行「系統檔案檢查程式」程序,以確定您想要複製的系統檔案為良好檔案。
  1. 取得損毀系統檔案的系統管理所有權。 若要執行這項操作,請在提升權限的命令提示字元中,複製並貼上 (或輸入) 下列命令,然後按下 ENTER:
    takeown /f Path_And_File_Name
    注意Path_And_File_Name 預留位置代表損毀檔案的路徑與檔案名稱。 例如,輸入 takeown /f C:\windows\system32\jscript.dll。 
    命令提示字元下,系統管理員權限的命令已成功
     
  2. 授予管理員損毀系統檔案的完整存取權。 若要執行這項操作,請複製並貼上 (或輸入) 下列命令,然後按下 ENTER:
    icacls Path_And_File_Name /GRANT ADMINISTRATORS:F
    注意Path_And_File_Name 預留位置代表損毀檔案的路徑與檔案名稱。 例如,輸入 icacls C:\windows\system32\jscript.dll /grant administrators:F
    以系統管理員權限的命令提示字元
     
  3. 用已知的良好檔案複本取代損毀的系統檔案。 若要執行這項操作,請複製並貼上 (或輸入) 下列命令,然後按下 ENTER:
    複製 Source_File Destination
    注意Source_File 預留位置代表您電腦上已知良好檔案的路徑及檔案名稱,而 Destination 預留位置代表損毀檔案的路徑及檔案名稱。 例如,輸入 copy E:\temp\jscript.dll C:\windows\system32\jscript.dll

2019-07-19

After Debian 10 Installation


Debian 10 Setup Instructions (post install)
By: Matthew_Moore
_____________________________________________________________________________
How to get grub2 to remember last choice?

Put the following in /etc/default/grub (command line: gedit admin:///etc/default/grub):

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

_____________________________________________________________________________
Enable Sudo

Enter root using SU command

apt-get install sudo

Navigate to sudoers file /etc/sudoers and add user to list

EXAMPLE:

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
matt    ALL=(ALL:ALL) ALL

______________________________________________________________________________

Enable 32bit Architecture:
(required for installing 32 bit packages such as Steam )

sudo dpkg --add-architecture i386

Refresh package index:

sudo apt-get update
______________________________________________________________________________

Find fastest mirrors. ( Optional )

install netselect-apt

sudo apt-get install netselect-apt

Run command:

netselect-apt

A list of mirrors ranked by speed will be places in your home directory
Copy this list to  /etc/apt/sources.list

Refresh package index:

sudo apt-get update
______________________________________________________________________________

Enable Contrib and Non-Free packages.

Open Synaptic Package manager, Select settings / repositories

select each item and at the bottom of the Window under "Sections"
Add contrib non-free. EXAMPLE:

| main contrib non-free |

Repeat for each item. When finished press OK and then refresh
the package index by pressing the Reload button in the top left
of synaptic package manager.
______________________________________________________________________________

Adding Backports Repository.

add the following to your /etc/apt/sources.list file.

deb http://ftp.us.debian.org/debian/ buster-backports main contrib non-free

run sudo apt-get udpate to refresh package index.

To install an application from the backport repository specify the repo using the following command.

sudo apt-get -t buster-backports install
_____________________________________________________________________________

Install non-free codecs and other media components. ( Optional )

NOTE: These must be installed seperatly to avoid errors / conflicts.

sudo apt-get install ffmpeg

sudo apt-get install ffmpeg:i386

sudo apt-get install ttf-mscorefonts-installer

sudo apt-get install libdvdcss2

sudo apt-get install libdvd-pkg

sudo dpkg-reconfigure libdvd-pkg

sudo apt-get install ffmpegthumbnailer

sudo apt-get install gstreamer1.0-plugins-bad

sudo apt-get install gstreamer1.0-plugins-ugly

sudo apt-get install gstreamer1.0-libav

sudo apt-get install tumbler-plugins-extra
______________________________________________________________________________

Install Linux Firmware and base packages:

sudo apt-get install gdebi firmware-linux firmware-linux-nonfree
______________________________________________________________________________

Install Microcode for Intel Proscessors. ( Optional )

sudo apt-get install intel-microcode
______________________________________________________________________________

Utility Applications:

sudo apt-get install file-roller rar unrar
______________________________________________________________________________

Fix QT Themeing on GTK based Desktops.

sudo apt-get install qt4-qtconfig

sudo apt-get install qt5-style-plugins

Open the QT 4 settings application, Under the Appearance tab
change the GUI Style to GTK +. You will be prompted to save
changes upon closing the application.

For QT 5 based applications run the following command to set the
environment variable.

Enter Root Environment using SU.

sudo echo "QT_QPA_PLATFORMTHEME=gtk2" >> /etc/environment

NOTE: Due to a bug involving a segmentation fault, this dose not work with QT 5.7.0, Upgrade to 5.7.1 or wait for the update to come from upstream.

Log out and back in, or reboot your machine for changes to take effect.
___________________________________________________________________________

Install Nvidia Drivers

sudo apt-get install nvidia-detect

Run command:

nvidia-detect

Install the recommended driver shown

Example:

sudo apt-get install linux-headers-$(uname -r) nvidia-legacy-340xx-driver

Create an Xorg configuration for your gpu

mkdir /etc/X11/xorg.conf.d

nano /etc/X11/xorg.conf.d/20-nvidia.conf

Now add below contents to the file and save

Section "Device"
Identifier "My GPU"
Driver "nvidia"
EndSection


Reboot...

__________________________________________________________________________

Install and enable "ALL" Wifi Functions for Broadcom WiFi.

The default non-free firmware only gives you basic functionality. To get the most out of your Brodcom WiFi chip, install the following firmware packages.

Install broadcom packages.

sudo apt-get install broadcom-sta-dkms broadcom-sta-common firmware-brcm80211

Reboot system for changes to take effect.
__________________________________________________________________________

Install Bluetooth packages for XFCE.

sudo apt-get install bluetooth blueman bluez bluez-firmware bluez-cups bluez-tools

Reboot system for changes to take effect.
__________________________________________________________________________

Enable Notifications for XFCE Mail-Watcher Extention. ( XCFE Only )

Run on click: thunderbird
Run on New Messages: notify-send "New mail" "You have new messages in your inbox" -i xfce-newmail
__________________________________________________________________________

To give yourself permissions so virtualbox can access Shared folders and USB devices  use this command,

sudo gpasswd -a $USER vboxusers
__________________________________________________________________________

Improve font rendering in Debian.

Show hidden files in file manager.

Create file /home/user/.fonts.conf
 
Copy and paste the following text into file





 
   rgb
 


 
   true
 


 
   hintslight
 


 
   true
 

 
   
      lcddefault
   
 


Reboot system for changes to take effect.
__________________________________________________________________________

Hide Partitions on Boot:  ( Optional )

Create a new file /etc/udev/rules.d/99-hide-partitions.rules and add one line per partition you want to hide like so:
( change "sda*" to match the partition you wish to hide )

KERNEL=="sda1",ENV{UDISKS_IGNORE}="1"
KERNEL=="sda2",ENV{UDISKS_IGNORE}="1"

You should be able to dynamically activate it as root:

  # udevadm trigger --verbose
_____________________________________________________________________________
_____________________________________________________________________________

Backup / Restore installed APT packages

# Backup your packages list to your home directory
# Get a packages list
dpkg --get-selections > ~/Package.list

# Copy list of repositories to your home directory
sudo cp /etc/apt/sources.list ~/sources.list

# Export repo keys to your home directory
sudo apt-key exportall > ~/Repo.keys

# Restore packages from your home directory
sudo apt-key add ~/Repo.keys
sudo cp ~/sources.list /etc/apt/sources.list
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install dselect
sudo apt-get install $(cat ~/Package.list | awk '{print $1}')

#NOTE: if SUDO is not configured, Simply use root terminal or SU.

#CRITICAL: Any packages installed using a .DEB file or other source not
included in your repositories/sources.list, must be removed from Package.list before restoring to avoid errors. These packages will need to be reinstalled manually.



2019-07-02

Arduino IDE 安裝後, 第一件事

修改某些設定檔參數, 讓介面看起來舒服一點

c:\Program Files\Arduino\lib\theme\theme.txt
console.error.color = #FFFF00 ( default : #EC3400 )
linestatus.font = SanSerif,plain,12 (default : 10)
linestatus.height = 24 (default : 24)

c:\Users\cliff\AppData\Arduino15\preference.txt
editor.font = consolas,plain,16 (default : Monspaced,plain,11)