raspberry pizero를 Kiosk 터미널처럼 보여주고 싶어요.
12793 단어 RaspberryPiZeroWkiosk
문제.
나는 키보드, 마우스를 사용하지 않고 키크 단말기를 사용하고 싶다. (터치 조작도 없고 디지털 표지판처럼)검색을 많이 해봤는데 어디서부터 시작해야 좋을지 모르겠어요.
리틀 버전 합류 이후에도 다양한 방법을 시도했지만 오류가 많아 순조롭게 진행되지 못했다.
원래 데스크톱 어떻게 하는지 확인하세요.
당분간 데스크톱 버전을 넣으려고 합니다. 우선 제로 chromium-browser로 명령을 전체 화면에서 표시할 수 있는지 확인하세요.
Raspberry Pi OS (Legacy) with desktop
Release date: December 2nd 2021
Kernel version: 5.10
어쨌든 사이트 먼저 띄워주세요.
$ chromium-browser https://google.com
풀스크린으로 보다$ chromium-browser --start-fullscreen https://google.com
어쨌든 이 일대는 괜찮을 것 같아.늦다
하지만 제로라서 느리다.그래서
/boot/config.txt
이렇게 편집한 거예요.오버클러킹과 GPU의 메모리 증가를 했습니다.설령 했다 하더라도 결국은 완전히 늦었다.
pi@raspberrypi:~ $ cat /boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
##############################################################
# overclocking
##############################################################
# https://retropie.org.uk/docs/Overclocking/#raspberry-pi-zero
##############################################################
arm_freq=1100
gpu_freq=500
core_freq=500
sdram_freq=500
sdram_schmoo=0x02000020
over_voltage=6
over_voltage_sdram=2
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d
##############################################################
# gpu_mem
# $ sudo raspi-config でも出来るが...
# https://nosubject.io/raspberry-pi4-gpu-memory-configuration/
##############################################################
gpu_mem=256
disable_splash=1
openbox ??많이 검색하면 오픈박스에서 데스크톱 환경을 가볍게 보이지만 같은 설정도 움직이지 않습니다.
작업 관리자가 성능을 확인하는 것을 표시할 때 오픈박스를 갑자기 발견했습니다.
pi@raspberrypi:~ $ openbox --version
Openbox 3.6.1
著作権 (c) 2004 Mikael Magnusson
著作権 (c) 2002 Dana Jansens
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
요즘 인상에 있는 것 같은데.그리고 어쨌든 LXDE에서 오픈박스가 움직이고 있나요?가명이거 보면
/etc/xdg/lxsession/LXDE-pi/autostart
설정된 것 같은데.그러나 사용자 디렉터리 산하
~/.config/lxsession/LXDE-pi/autostart
에서 같은 설정을 하면 더욱 예쁠 수 있다.pi@raspberrypi:~ $ cat ~/.config/lxsession/LXDE-pi/autostart
@xset s off
@xset -dpms
@xset s noblank
@xset s off
화면 보호기 끄기@xset -dpms @xset s noblank
수면 금지 모니터설정
~/.config/lxsession/LXDE-pi/autostart
후 재부팅을 시도하면 오픈박스의 순수한 상태(화면 깜깜)가 시작된 것 같습니다.이어서 써 보아라
@/home/pi/run.sh
.# この2行はタスクバーとか表示するのでコメントアウトした
# @lxpanel --profile LXDE
# @pcmanfm --desktop --profile LXDE
@xset s off
@xset -dpms
@xset s noblank
@/home/pi/run.sh
run.sh_참조 사이트\사라진 것 같습니다#!/bin/sh
/usr/bin/chromium-browser --app=http://your-site \
--kiosk \
--noerrdialogs \
--disable-session-crashed-bubble \
--disable-infobars \
--check-for-update-interval=604800 \
--disable-pinch
이러면 다시 시동을 걸 정도면 좀 그렇다.마우스가 마지막으로 표시됨$ sudo apt-get install unclutter
만약 다시 시작하는 마우스 커서로 사라지면kiosk적으로 표시할 수 있지만 제로는 너무 무서워서 사용할 수 없다.마지막으로
chromium-browser --help
에서 옵션 보기pi@raspberrypi:~ $ chromium-browser --help
chromium-browser [-h|--help] [-g|--debug] [--temp-profile] [--no-touch-pinch] [options] [URL]
--verbose Events logged to stderr.
-g or --debug Start within /usr/bin/gdb
-h or --help This help screen
--temp-profile Start with a new and temporary profile
--no-touch-pinch Disable pinch gestures.
Other supported options are:
troff: <standard input>:117: warning [p 2, 8.5i]: cannot adjust line
Chromium has hundreds of undocumented command-line flags that are added
and removed at the whim of the developers. Here, we document rela‐
tively stable flags.
--user-data-dir=DIR
Specifies the directory that user data (your "profile") is kept
in. Defaults to $HOME/.config/chromium . Separate instances of
Chromium must use separate user data directories; repeated invo‐
cations of chromium-browser will reuse an existing process for a
given user data directory.
--app=URL
Runs URL in "app mode": with no browser toolbars.
--incognito
Open in incognito mode.
--new-window
If PATH or URL is given, open it in a new window.
--proxy-server=host:port
Specify the HTTP/SOCKS4/SOCKS5 proxy server to use for requests.
This overrides any environment variables or settings picked via
the options dialog. An individual proxy server is specified us‐
ing the format:
[<proxy-scheme>://]<proxy-host>[:<proxy-port>]
Where <proxy-scheme> is the protocol of the proxy server, and is
one of:
"http", "socks", "socks4", "socks5".
If the <proxy-scheme> is omitted, it defaults to "http". Also
note that "socks" is equivalent to "socks5".
Examples:
--proxy-server="foopy:99"
Use the HTTP proxy "foopy:99" to load all URLs.
--proxy-server="socks://foobar:1080"
Use the SOCKS v5 proxy "foobar:1080" to load all URLs.
--proxy-server="socks4://foobar:1080"
Use the SOCKS v4 proxy "foobar:1080" to load all URLs.
--proxy-server="socks5://foobar:66"
Use the SOCKS v5 proxy "foobar:66" to load all URLs.
It is also possible to specify a separate proxy server for dif‐
ferent URL types, by prefixing the proxy server specifier with a
URL specifier:
Example:
--proxy-server="https=proxy1:80;http=socks4://baz:1080"
Load https://* URLs using the HTTP proxy "proxy1:80". And
load http://*
URLs using the SOCKS v4 proxy "baz:1080".
--no-proxy-server
Disables the proxy server. Overrides any environment variables
or settings picked via the options dialog.
--proxy-auto-detect
Autodetect proxy configuration. Overrides any environment vari‐
ables or settings picked via the options dialog.
--proxy-pac-url=URL
Specify proxy autoconfiguration URL. Overrides any environment
variables or settings picked via the options dialog.
--password-store=<basic|gnome|kwallet>
Set the password store to use. The default is to automatically
detect based on the desktop environment. basic selects the
built in, unencrypted password store. gnome selects Gnome
keyring. kwallet selects (KDE) KWallet. (Note that KWallet may
not work reliably outside KDE.)
--version
Show version information.
As a GTK+ app, Chromium also obeys GTK+ command-line flags, such as
--display. See the GTK documentation for more:
<http://library.gnome.org/devel/gtk/stable/gtk-running.html>
<http://library.gnome.org/devel/gtk/stable/gtk-x11.html>
See 'man chromium-browser' for more details
Reference
이 문제에 관하여(raspberry pizero를 Kiosk 터미널처럼 보여주고 싶어요.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/github0013@github/items/098dede33b8d371f657b텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)