[FAQ] Kib vs KB? speed vs bandwidth?

KiB vs KB


K(1000) Ki(1024)
1 KB = 1,000 Byte 1 KiB = 1,024 Byte
1 MB = 1,000 KB 1 MiB = 1,024 KiB
Continue reading “[FAQ] Kib vs KB? speed vs bandwidth?”
Advertisements

[FAQ] Uninstall Linux from dual boot system

Uninstall Linux from dual boot system 雙系統安全移除

常常安裝雙系統的使用者都知道,安裝雙系統(Win + Linux Distributions)比較簡單且安全的方式是先安裝 Windows 系統後在安裝 Linux 系統,詳細為何不再贅述。

這次主要是紀錄當要把 Linux 系統移除時,要如何做才安全正確

Continue reading “[FAQ] Uninstall Linux from dual boot system”

[Windows] How to get OEM-notebook Product Key

在 Windows 8 之後配置的筆電,只要是採用 OEM 安裝作業系統的,幾乎都不再隨機附送還原光碟以及序號。這也造成即使很多人會重灌筆電,但卻還是只能找原廠商重灌取得正版權限。

即使買了電腦含有作業系統卻無法得知序號是多痛苦的事情,我也因為更換過 SSD 讓我是必要重灌電腦取得原有正版用戶的資格。以下便紀錄如何取得 OEM Product Key 以利我們自己完成重灌的工作。

Continue reading “[Windows] How to get OEM-notebook Product Key”

[Git] git rebase (reduce merge commit)

In foss, we fork git project from upstream our account and clone to local.

We need to make sure that the respository is up-to-date, so sync to upstream is necessary.

But sometimes when we use git pull which is combined as git fetch and git merge, nonecessary merge occurs.

To avoid redundant merge commit, we  use git pull --rebase instead.

redfish[~] $ git pull --rebase upstream master
redfish[~] $ git push origin master <-f>

<-f> : force updated, that’s because you only rebase the local, but origin doesn’t not rebase.

Reference:

https://git-scm.com/book/zh-tw/v1/Git-%E5%9F%BA%E7%A4%8E-%E8%88%87%E9%81%A0%E7%AB%AF%E5%8D%94%E5%90%8C%E5%B7%A5%E4%BD%9C

[foss] pcmanx compile

redfish [~]$ git clone https://github.com/pcman-ptt/pcmanx
redfish [~]$ sudo apt-get install libgtk2.0-dev
redfish [~]$ sudo apt-get install libglib2.0-dev
redfish [~/pcmanx]$ ./autogen.sh
redfish [~/pcmanx]$ ./configure
redfish [~/pcmanx]$ make
redfish [~/pcmanx]$ sudo make install

The pacmanx binary is in /usr/local/bin/

Reference:
https://code.google.com/archive/p/pcmanx-gtk2/

[Linux] kernel update and remove

Take amd64 as example:

$ cd tmp/
$ wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.6-wily/linux-headers-4.4.6-040406_4.4.6-040406.201603161231_all.deb
$ wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.6-wily/linux-headers-4.4.6-040406-generic_4.4.6-040406.201603161231_amd64.deb
$ wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.6-wily/linux-image-4.4.6-040406-generic_4.4.6-040406.201603161231_amd64.deb

$ sudo dpkg -i *.deb
// Uninstall
$ sudo apt-get remove 'linux-headers-4.4.6*' 'linux-image-4.4.6*'
// Remove old kernels
$ sudo apt-get autoremove --purge
$ sudo purge-old-kernels