-
Notifications
You must be signed in to change notification settings - Fork 2
Raspberry Pi Howto
linyimin edited this page Nov 17, 2018
·
3 revisions
- 系统烧录教程
- 自动联网
- 新建auto-online.sh脚本
$ cd ~
$ touch auto-online.sh
# 修改权限
$ chmod 755 ~/auto-online.sh
- 将一下内容添加到脚本中
#! /bin/bash
ping www.baidu.com -c 3
if [ $? -eq 0 ]
then
echo "online"
else
curl -d 'DDDDD=2017140433&upass=215035&AMKKey=' '10.3.8.211/a11.htm' > /dev/null
fi
- 添加到crontab中,每10分钟执行一次
10 * * * * /home/pi/auto-online.sh
- chromium 浏览器设置隐藏滚动条
- 在地址栏中输入
chrome://flags/
- 将Overlay Scrollbars设置成enable
- 开机自启动chromium并访问相关网页
# 创建autostart文件夹
$ mkdir ~/.config/autostart
# 新建chromium.desktop文件夹
$ touch chromium.desktop
# 将一下内容填入此文件中
[Desktop Entry]
Type=Application
Exec=chromium-browser --noerrors --disable-session-crashed-bubble --incognito --kiosk "https://cad-board.surge.sh"
然后重启即可
Note: Don't display the restore page see Stop chromium to show "restore session" pop-up on start [solution]