Giter Site home page Giter Site logo

beets-dlp-studio's Introduction

Beets DLP Studio

beets-dlp-studio's People

Contributors

ling3ye avatar abigail830 avatar

Watchers

James Cloos avatar  avatar  avatar

beets-dlp-studio's Issues

Let PI to control 2 LED monitor separately

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

testing raspberry pi auto open browser for hdmi display

全新安装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

又是漫长的等待

没有任何进展

设置自动启动浏览器

Disable any form of screen saver / screen blanking / power management

xset s off
xset s noblank
xset -dpms

Allow quitting the X server with CTRL-ATL-Backspace

setxkbmap -option terminate:ctrl_alt_bksp

Start Chromium in kiosk mode

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

https://medium.com/stories-from-upstatement/how-to-build-a-web-kiosk-with-a-raspberry-pi-some-cables-and-a-tv-3dc2724acaa1

以下命令用于下载安装禁用屏幕保护
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文件,并复制上他的代码,

Set this to your URL - it must return a 200 OK when called, not a redirect.

export URL={{kiosk.url}}

Dont want screensavers or screen blanking

xset s off &
xset -dpms &
xset s noblank &

Hide the mouse cursor

unclutter -idle 10 -noevents &

Sit and wait until you can hit the URL you'll be showing in the kiosk

while ! curl -s -o /dev/null -w "%{http_code}" ${URL} | grep -q "200"; do
sleep 1
done

get screen resolution

WIDTH=sudo fbset -s | grep "geometry" | cut -d " " -f6
HEIGHT=sudo fbset -s | grep "geometry" | cut -d " " -f7

Open chrome in incognito mode + kiosk mode

/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/

Disable any form of screen saver / screen blanking / power management

xset s off
xset s noblank
xset -dpms

Allow quitting the X server with CTRL-ATL-Backspace

setxkbmap -option terminate:ctrl_alt_bksp

Start Chromium in kiosk mode

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

终于实现了,开机自动登录并运行浏览器浏览指定网站的功能

Elsa Father Printer

This is for build up Elsa's father printer. Included both software change and hardware change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.