update ubuntu installation script
modify the code sample in Ch-3