2018年8月31日 星期五

Install MQTT module in QT

Download QT MQTT
# git clone https://github.com/qt/qtmqtt.git
# cd qtmqtt
# mkdir build && cd build

Setting QT Environment
# QT_INSTALL_DIR=/opt/Qt5.11.0/5.11.0/
# QT_QMAKE_DIR=$QT_INSTALL_DIR/gcc_64/bin/qmake
# $QT_QMAKE_DIR qmake -r ..
# make
# make install

2018年8月2日 星期四

CentOS 7 出現 dracut-initqueue timeout 無法進入OS

出現 dracut-initqueue timeout 無法進入到 OS時, 必須重新安裝 Initial RAM Disk

1.      需要一片CentOS 7-1708 DVD iso
2.      開機進入到 linux rescue mode & 進入shell
3.      # chroot /mnt/sysimage
4.      # dracut -f 

重開機後就能進入到登入畫面
參考: https://wiki.centos.org/TipsAndTricks/CreateNewInitrd