This PiSmartCenter project is written in Qt/QML. It is have real time info display. Can run on the raspberry pi.
- Run on Windows:
- Run on Raspberry Pi
-
apt-get install ttf-wqy-zenhei
字库安装成功后,查找文泉驿字库"wqy-zenhei.ttc" 复制到Qt交叉编译库目录下/usr/local/qt-5.9.2-raspberry/lib/fonts. 如果没有fonts目录,则新建一个fonts目录. 程序运行后会自动查找该目录下对应字库。
mkdir fonts
cp /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc wqy-zenhei.ttc
-
raspi-config
select "3 Boot Options Configure options for start-up"
select "B1 Desktop / CLI Choose whether to boot int a desktop environment or the command line"
setting "B1 Console Text console, requiring user to login"
-
vim /etc/systemd/system/getty.target.wants/getty@tty1.service
line: ExecStart=-/sbin/agetty --noclear %I $TERM
change: ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM
"root" is the username of the automatic login.
- vim /etc/profile.d/PiSmartCenter.sh
$ cd /uar/local/rasp-qt
$ ./PiSmartCenter
Reboot system.The system automatically executes all the scripts in the "/etc/profile.d/" directory.
PiSmartCenter program auto start.
Copyright (c) 2017-present, G.D.