Nan Xiao's Blog

A system software / performance engineer's home

Month: July 2015

How to modify the local version of Linux kernel?

Execute “make menuconfig” command, then select “General setup” -> “Local version - append to kernel release“. Add you preferred name, e.g.: “.nan“, then save it.

Check if it is saved in .config file successfully:

[root@linux]# grep -i ".nan" .config

After making sure it is saved successfully, you can execute “make” command.

How to decompress “*.tar.xz” file?

Using “tar -Jxvf *.tar.xz” command can decompress “*.tar.xz” file. E.g.:

[root@localhost ~]# wget
[root@localhost ~]# tar -Jxvf linux-4.2-rc3.tar.xz

Fix “unsupported protocol scheme” issue in golang

When using “http” package in golang, you should use the full domain name, For example:

package main
import (

func main() {
    resp, err := http.Get("")
    if err != nil {

    text, err := ioutil.ReadAll(resp.Body)
    if err != nil {


Executing it, the error will be:

Get unsupported protocol scheme ""

Add “http://” before ““, then executing it. The result is OK:

<!doctype html><html itemscope="" itemtype="" lang="en"><head><meta co....

Powered by WordPress & Theme by Anders Norén