parse_vt_settings /dev/tty0(权限被拒绝)
parse_vt_settings /dev/tty0 (permission denied)
我正在尝试 运行 xinit chromium-browser some_settings address:port 在 /home/pi/.bashrc 文件中。
它在第一个版本 "Jessie PIXEL" 中的作用是在控制台自动登录后启动时打开 chromium 浏览器并打开页面 address:port。
在新版本的 Jessie PIXEL 中,出现以下错误:
[ 513.403]
X.Org X Server 1.18.4
Release Date:
2016-07-19< [ 513.403] X Protocol Version 11, Revision 0
[
513.403] Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
[ 513.403] Current Operating System: Linux raspberrypi 4.4.38-v7+
!!938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l
[ 513.403] Kernel command line: 8250.nr_uarts=1 dma.dmachans=0x7f35
bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080
bcm2709.boardrev=0x2a02082 bcm2709.serial=0xff00$
[ 513.403]
Build Date: 11 November 2016 11:59:59AM
[ 513.403] xorg-server
2:1.18.4-2+rpi1 (https://www.debian.org/support)
[ 513.403]
Current version of pixman: 0.33.3
[ 513.403] Before
reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 513.403] Markers: (--) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 513.403] (==) Log file:
"/home/pi/.local/share/xorg/Xorg.0.log", Time: Fri Dec 23 09:46:08
2016
[ 513.404] (==) Using system config directory
"/usr/share/X11/xorg.conf.d"
[ 513.404] (==) No Layout section.
Using the first Screen section.
[ 513.404] (==) No screen
section available. Using defaults.
[ 513.405] () |-->Screen
"Default Screen Section" (0)
[ 513.405] () | |-->Monitor
""
[ 513.405] (==) No device specified for
screen "Default Screen Section".
Using the first device section listed.
[ 513.405] () | |-->Device "Allwinner A10/A13 FBDEV"
[ 513.405] (==) No monitor
specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 513.405] (==) Automatically adding devices
[ 513.405] (==) Automatically
enabling devices
[ 513.405] (==) Automatically adding GPU
devices
[ 513.405] (==) Max clients allowed: 256, resource
mask: 0x1fffff
[ 513.405] (WW) The directory
"/usr/share/fonts/X11/misc" does not exist.
[ 513.405] Entry
deleted from font path.
[ 513.405] (WW) The directory
"/usr/share/fonts/X11/cyrillic" does not exist.
[ 513.405]
Entry deleted from font path.
[ 513.405] (WW) The directory
"/usr/share/fonts/X11/75dpi/" does not exist.
[ 513.405]
Entry deleted from font path.
[ 513.405] (WW) The directory
"/usr/share/fonts/X11/75dpi" does not exist.
[ 513.405]
Entry deleted from font path.
[ 513.405] (==) FontPath set
to:
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
built-ins
[ 513.405] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 513.405] (II) The server relies on
udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 513.406] (II) Loader magic: 0x54d5cf20
[
513.406] (II) Module ABI versions:
[ 513.406] X.Org ANSI C Emulation: 0.4
[ 513.406] X.Org Video Driver: 20.0
[
513.406] X.Org XInput driver : 22.1
[ 513.406] X.Org Server Extension : 9.0
[ 513.411] (II) systemd-logind: took
control of session /org/freedesktop/login1/session/c2
[
513.411] (II) no primary bus or device found
[ 513.411] (II) LoadModule: "glx"
[ 513.412] (II) Loading
/usr/lib/xorg/modules/extensions/libglx.so
[ 513.416] (II)
Module glx: vendor="X.Org Foundation"
[ 513.416] compiled
for 1.18.4, module version = 1.0.0
[ 513.416] ABI class:
X.Org Server Extension, version 9.0
[ 513.416] (==) AIGLX
enabled
[ 513.416] (II) LoadModule: "fbturbo"
[ 513.416]
(II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[
513.417] (II) Module fbturbo: vendor="X.Org Foundation"
[ 513.417] compiled for 1.18.4, module version = 0.5.1
[ 513.417] Module class: X.Org Video Driver
[ 513.417] ABI class: X.Org Video Driver, version 20.0
[ 513.417] (II)
FBTURBO: driver for framebuffer: fbturbo
[ 513.417] (EE)
Fatal server error:
[ 513.417] (EE) parse_vt_settings: Cannot
open /dev/tty0 (Permission denied)
[ 513.417] (EE)
[
513.417] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org for help.
[ 513.417] (EE) Please also check the log file at
"/home/pi/.local/share/xorg/Xorg.0.log" for additional
information.
[ 513.417] (EE)
[ 513.418] (WW)
xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[
513.418] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 513.419] (EE) Server terminated with error (1).
Closing log file.
有人知道问题出在哪里吗?
PS 如果您在日志中看到“*”,那是“**”,但这是粗体文本
还有'!!'在日志中是 '#' 但那是粗体
我遇到了同样的问题。
我是如何解决这个问题的:
- 创建名为 teacher 的新用户
- 授予 pi 拥有的所有组
- cp /etc/suders.d/010_pi-nopasswd 并将内部用户名重命名为 teacher
- startx 并且有效。
注意:
不要 运行 在 byobu 中启动 x,有些错误。
我找到了解决方案:
我不再使用 .bashrc,我完全转移到 rc.local。
sudo node /home/pi/server/server.js &
xinit /usr/bin/chromium-browser --no-sandbox --window-size=1920,1080 --noerrdialogs --start-fullscreen --start-maximized --disable-notifications --disable-infobars --kiosk --incognito http://localhost:3000 -- -nocursor &
exit 0
这样做是在端口 3000 上运行 node.js 服务器,并在 localhost:3000 上运行 chromium,没有鼠标光标和全尺寸的 chromium 浏览器,大约需要 15-20 秒的时间。
现在正在努力展示它而不是一片空白。仍然没有成功,求助!
编辑:
如果 chromium 出现带边框,请使用此:
xinit /usr/bin/chromium-browser --no-sandbox --window-position=0,0 --window-size=1920,1080 --noerrdialogs --disable-notifications --disable-infobars --kiosk --incognito http://localhost:3000 -- -nocursor &
特别是,您想将您的用户添加到 tty 组以解决此特定问题。
gpasswd -a pi tty
pi 是您的用户。
我正在尝试 运行 xinit chromium-browser some_settings address:port 在 /home/pi/.bashrc 文件中。
它在第一个版本 "Jessie PIXEL" 中的作用是在控制台自动登录后启动时打开 chromium 浏览器并打开页面 address:port。
在新版本的 Jessie PIXEL 中,出现以下错误:
[ 513.403]
X.Org X Server 1.18.4
Release Date: 2016-07-19< [ 513.403] X Protocol Version 11, Revision 0
[
513.403] Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
[ 513.403] Current Operating System: Linux raspberrypi 4.4.38-v7+ !!938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l
[ 513.403] Kernel command line: 8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2709.boardrev=0x2a02082 bcm2709.serial=0xff00$
[ 513.403] Build Date: 11 November 2016 11:59:59AM
[ 513.403] xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
[ 513.403] Current version of pixman: 0.33.3
[ 513.403] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version.
[ 513.403] Markers: (--) probed, () from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 513.403] (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Fri Dec 23 09:46:08 2016
[ 513.404] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 513.404] (==) No Layout section. Using the first Screen section.
[ 513.404] (==) No screen section available. Using defaults.
[ 513.405] () |-->Screen "Default Screen Section" (0)
[ 513.405] () | |-->Monitor ""
[ 513.405] (==) No device specified for screen "Default Screen Section". Using the first device section listed.
[ 513.405] () | |-->Device "Allwinner A10/A13 FBDEV"
[ 513.405] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration.
[ 513.405] (==) Automatically adding devices
[ 513.405] (==) Automatically enabling devices
[ 513.405] (==) Automatically adding GPU devices
[ 513.405] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 513.405] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
[ 513.405] Entry deleted from font path.
[ 513.405] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 513.405]
Entry deleted from font path.
[ 513.405] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 513.405]
Entry deleted from font path.
[ 513.405] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 513.405]
Entry deleted from font path.
[ 513.405] (==) FontPath set to:
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
built-ins
[ 513.405] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 513.405] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 513.406] (II) Loader magic: 0x54d5cf20
[ 513.406] (II) Module ABI versions:
[ 513.406] X.Org ANSI C Emulation: 0.4
[ 513.406] X.Org Video Driver: 20.0
[
513.406] X.Org XInput driver : 22.1
[ 513.406] X.Org Server Extension : 9.0
[ 513.411] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c2
[
513.411] (II) no primary bus or device found
[ 513.411] (II) LoadModule: "glx"
[ 513.412] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 513.416] (II) Module glx: vendor="X.Org Foundation"
[ 513.416] compiled for 1.18.4, module version = 1.0.0
[ 513.416] ABI class: X.Org Server Extension, version 9.0
[ 513.416] (==) AIGLX enabled
[ 513.416] (II) LoadModule: "fbturbo"
[ 513.416] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[
513.417] (II) Module fbturbo: vendor="X.Org Foundation"
[ 513.417] compiled for 1.18.4, module version = 0.5.1
[ 513.417] Module class: X.Org Video Driver
[ 513.417] ABI class: X.Org Video Driver, version 20.0
[ 513.417] (II) FBTURBO: driver for framebuffer: fbturbo
[ 513.417] (EE)
Fatal server error:
[ 513.417] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 513.417] (EE)
[
513.417] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org for help.
[ 513.417] (EE) Please also check the log file at
"/home/pi/.local/share/xorg/Xorg.0.log" for additional information.
[ 513.417] (EE)
[ 513.418] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[
513.418] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 513.419] (EE) Server terminated with error (1). Closing log file.
有人知道问题出在哪里吗?
PS 如果您在日志中看到“*”,那是“**”,但这是粗体文本
还有'!!'在日志中是 '#' 但那是粗体
我遇到了同样的问题。 我是如何解决这个问题的:
- 创建名为 teacher 的新用户
- 授予 pi 拥有的所有组
- cp /etc/suders.d/010_pi-nopasswd 并将内部用户名重命名为 teacher
- startx 并且有效。
注意: 不要 运行 在 byobu 中启动 x,有些错误。
我找到了解决方案:
我不再使用 .bashrc,我完全转移到 rc.local。
sudo node /home/pi/server/server.js &
xinit /usr/bin/chromium-browser --no-sandbox --window-size=1920,1080 --noerrdialogs --start-fullscreen --start-maximized --disable-notifications --disable-infobars --kiosk --incognito http://localhost:3000 -- -nocursor &
exit 0
这样做是在端口 3000 上运行 node.js 服务器,并在 localhost:3000 上运行 chromium,没有鼠标光标和全尺寸的 chromium 浏览器,大约需要 15-20 秒的时间。
现在正在努力展示它而不是一片空白。仍然没有成功,求助!
编辑: 如果 chromium 出现带边框,请使用此:
xinit /usr/bin/chromium-browser --no-sandbox --window-position=0,0 --window-size=1920,1080 --noerrdialogs --disable-notifications --disable-infobars --kiosk --incognito http://localhost:3000 -- -nocursor &
特别是,您想将您的用户添加到 tty 组以解决此特定问题。
gpasswd -a pi tty
pi 是您的用户。