abigail830 / beets-dlp-studio Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
全新安装pi
设置wifi
开启ssh
sudo apt-get update
运行后有很多错误
继续
sudo apt-get update
仍然继续可以更新
持续等待中。。。。
仍然有错误,则我尝试
sudo apt-get upgrade
再尝试
sudo apt-get update
仍然有错误
直接开始进行安装
sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox
安装后,可以启动startx
运行
sudo startx
能进入图形界面,但浏览器没有安装,提示错误
再一次运行
sudo apt-get update
sudo apt-get upgrade
之后运行如下命令,进行安装
sudo apt-get install --no-install-recommends chromium-browser
再次经过等待
可以进入x图形界面,并且启动浏览器,无提示错误,但也无任何反应
再一次运行
sudo apt-get update
sudo apt-get upgrade
又是漫长的等待
没有任何进展
设置自动启动浏览器
xset s off
xset s noblank
xset -dpms
setxkbmap -option terminate:ctrl_alt_bksp
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
chromium-browser --disable-infobars --kiosk 'http://your-url-here'
使用命令
startx -- -nocursor
还是没有显示浏览器
尝试安装openbox
sudo apt-get install openbox obconf menu obmenu conky parcellite feh rox-filer tint2 xfce4-panel
安装错误,运行
sudo apt-get update
sudo apt-get upgrade
再次运行之前的安装命令
还是没有任何反应
尝试
sudo apt-get install chromium-browser x11-xserver-utils unclutter
还是没有任何浏览器反应
尝试
sudo apt-get install Gtk3.0
提示运行apt-get update
再次安装命令
安装完了,还是没有启动到浏览器
重启
再尝试
还是五得
明天继续
尝试
sudo apt-get install -y x-window-system
还是没法启动浏览器
但startx命令行可以运行
尝试
sudo apt-get install libgtk-3-dev
还是不行
尝试
sudo apt-get install ttf-mscorefonts-installer
sudo apt-get update
sudo apt-get upgrade
以下命令用于下载安装禁用屏幕保护
sudo apt-get install x11-xserver-utils unclutter
还是不行
https://www.raspberrypi.org/forums/viewtopic.php?t=40860
下载
wget http://steinerdatenbank.de/software/kweb-1.7.9.8.tar.gz
尝试
这个网站的方法
https://tamarisk.it/raspberry-pi-kiosk-mode-using-raspbian-lite/
sudo apt-get install --no-install-recommends xserver-xorg xinit xserver-xorg-video-fbdev lxde lxde-common lightdm
sudo reboot
重启后,直接进入图形化界面
在里面可以打开chrome browser
奇了个怪了
之后做了一些配置
sudo raspi-config
1,展开文件系统:Advanced Options > Expand Filesystem
2,禁用过扫描:Advancerd Options > Disable Overscan
隐藏光标
sudo apt-get install unclutter
自动登录
sudo vim /etc/lightdm/lightdm.conf
Then uncomment and amend the following lines so that they match the below:
autologin-user=pi autologin-user-timeout=0
但如此操作都无法自动登录
我尝试了这个方法可行
再次进入配置
sudo raspi-config
找到 3 Boot Options > Desktop / CLI 进入后选择
B4 Desktop Autologin
就可以实现图形化界面自动登录了
接下来,需要自动全屏运行
上面连接介绍了在home/pi 新建一个.xsession文件,并复制上他的代码,
export URL={{kiosk.url}}
xset s off &
xset -dpms &
xset s noblank &
unclutter -idle 10 -noevents &
while ! curl -s -o /dev/null -w "%{http_code}" ${URL} | grep -q "200"; do
sleep 1
done
WIDTH=sudo fbset -s | grep "geometry" | cut -d " " -f6
HEIGHT=sudo fbset -s | grep "geometry" | cut -d " " -f7
/usr/bin/chromium-browser --window-size=${WIDTH},${HEIGHT} --window-position=0,0 --incognito --kiosk ${URL}
运行,没有任何浏览器自动弹出来
后来我换了另一个网站的代码,可以实现
参考
https://die-antwort.eu/techblog/2017-12-setup-raspberry-pi-for-kiosk-mode/
xset s off
xset s noblank
xset -dpms
setxkbmap -option terminate:ctrl_alt_bksp
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
chromium-browser --disable-infobars --kiosk 'http://your-url-here'
之后重启
sudo reboo
终于实现了,开机自动登录并运行浏览器浏览指定网站的功能
When we using 4 inch LCD, the dimension is 480*320. So we need to update the existing HTML config and css config to adopt it.
This is for build up Elsa's father printer. Included both software change and hardware change.
PI would connect a 4inch monitor for control panel, and would connect a 5.5inch monitor for printing. Currently if connect both monitor, it would just display the same content.
So we need to enable PI and program to control 2 monitor separately
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.