Saturday, July 09, 2016

[Ubutnu] analyze system boot time

Simply execute the following command to see the detailed boot up time systemd-analyze blame

[Ubutnu] Create bridged network for qemu

Simple way to create bridged network between Ubuntu host and qemu client Install bridge-utils package first. sudo apt-get install bridge-utils Edit /etc/network/interfaces, and append the following configurations. Add a bridged network (br0) to your host network adapter (eth0)
------------------------
auto br0
iface br0 inet dhcp
 bridge_ports eth0
 bridge_stp off
 bridge_fd 0
 bridge_maxwait 0
------------------------
Restart your network. sudo /etc/init.d/networking restart Edit your script to boot qemu client, here is an example (-net nic, -net bridge,br=br0) qemu -net nic, -net bridge,br=br0 you are now ready to boot your qemu client with bridged network

Friday, July 08, 2016

[Ubutun] Repiar no sound problem on Ubuntu 16.04

    Uninstall pulseaudio package
sudo apt-get purge pulseaudio
    Remove the following files/folders
sudo rm -rf ~/.config/pulse /etc/pulse /usr/share/pulseaudio
    Reboot you system
    Reinstall pulseaudio package
sudo apt-get install pulseaudio
    You might need to reinstall ubuntu-desktop if your 'Ubuntu System Settings' has disappeared
sudo apt-get install ubuntu-desktop