工作生活简友广场

树莓派MagicMirror 入手 顺便学习

2019-07-05  本文已影响0人  搬砖程序员

参考了这位大哥的文章https://mp.weixin.qq.com/s/Y6hcLCjYNeCM3xqYTzyU1A

1.安装

pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"

$$\      $$\                     $$\           $$\      $$\ $$\                                          $$$$$$\
$$$\    $$$ |                    \__|          $$$\    $$$ |\__|                                        $$  __$$\
$$$$\  $$$$ | $$$$$$\   $$$$$$\  $$\  $$$$$$$\ $$$$\  $$$$ |$$\  $$$$$$\   $$$$$$\   $$$$$$\   $$$$$$\  \__/  $$ |
$$\$$\$$ $$ | \____$$\ $$  __$$\ $$ |$$  _____|$$\$$\$$ $$ |$$ |$$  __$$\ $$  __$$\ $$  __$$\ $$  __$$\  $$$$$$  |
$$ \$$$  $$ | $$$$$$$ |$$ /  $$ |$$ |$$ /      $$ \$$$  $$ |$$ |$$ |  \__|$$ |  \__|$$ /  $$ |$$ |  \__|$$  ____/
$$ |\$  /$$ |$$  __$$ |$$ |  $$ |$$ |$$ |      $$ |\$  /$$ |$$ |$$ |      $$ |      $$ |  $$ |$$ |      $$ |
$$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\ $$ | \_/ $$ |$$ |$$ |      $$ |      \$$$$$$  |$$ |      $$$$$$$$\
\__|     \__| \_______| \____$$ |\__| \_______|\__|     \__|\__|\__|      \__|       \______/ \__|      \________|
                       $$\   $$ |
                       \$$$$$$  |
                        \______/

2 一些设置

2.1设置成竖屏显示
sudo vim /boot/config.txt

最后加

# Rotate display vertically
display_rotate=1
2.2禁止锁屏和屏保,已经有了的不用加
sudo vim  /etc/xdg/lxsession/LXDE-pi/autostart

添加

@xset s noblank
@xset s off
@xset -dpms
2.3往下滚动
sudo vim /etc/lightdm/lightdm.conf

改下,有的可能是 [Seat:*]

往下滚动,找到[SeatDefaults]部分,找到xserver-command,将其修改为xserver-command=X -s 0 -dpms
2.4关闭省电模式
sudo vim/etc/network/interfaces
找到wlan0,在其下面添加wireless-power off,添加完成后保存,重启系统sudo reboot。

3开始命令,记得在屏幕里敲,ssh过去没用的要不就用vnc

pi@raspberrypi:~/MagicMirror/config $ cd ~/MagicMirror/
pi@raspberrypi:~/MagicMirror $ npm start

可以用,不过感觉不大好,毕竟三年前的帖子了,换一个试试

上一篇 下一篇

猜你喜欢

热点阅读