我采取的步骤:
它尝试启动,切换到第三个tty以运行X,但没有任何显示。 切换回ChromeOS后,X服务器输出中会出现一条重复行。
无效的MIT-MAGIC-COOKIE-1密钥无效的MIT-MAGIC-COOKIE-1密钥
不知道我是否缺少任何东西,或者是什么东西不起作用。
我搜索了此错误,发现了一些可能的解决方法:
1 - enter 'rm ~/.Xauthority' - http://slopjong.de/2011/06/14/invalid-mit-magic-cookie-1-key/
2 - enter 'xhost local:root' - http://easytofu.com/05062011150909-mit-magic-cookie-cannot-open-display-error
2 - a few combinations of the above and others - http://www.linuxquestions.org/questions/debian-26/xlib-invalid-mit-magic-cookie-1-key-278821/
希望以上的一种或几种组合能使您全部解决问题;-)
我从来没有设法使startx正常工作,但是老实说,我也没有很努力。 如果您不想调试它,请使用xinit。 否则,就开始使用startx而言(确实应该在某个时候发生),似乎startx要么忽略了传递给它的显示编号(因此无法连接到:0,或者是.Xauthority的问题)。
啊,谢谢。 刚运行xinit效果很好。 阅读我的〜/ .xinitrc并开始配合。 我的印象是startx确实做到了,但是有一些额外的功能。 感谢您所做的所有出色工作。
并非要标记为已关闭。 仍然需要弄清楚为什么startx失败。 :)
同意
尝试将/ usr / local / bin / xinit替换为以下内容,并查看startx的行为是否正确:
#!/bin/sh -e
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Filters the xinit command, fixing the display and removing xauth.
# Also adds the -- to the command line and references the global xserverrc
# if it isn't already there.
# By putting this in /usr/local/bin, PATH will prefer it and scripts that
# call xinit will automagically work.
croutonwm='/usr/local/bin/croutonwm'
if [ -x "$croutonwm" ]; then
. "$croutonwm"
fi
xserverrc='/etc/X11/xinit/xserverrc'
dash='--'
disp=''
n=$#
while [ ! "$n" = 0 ]; do
arg="$1"
n="$((n-1))"
shift
if [ -z "$disp" -a ! "${arg#":"}" = "$arg" ]; then
disp="$arg"
continue
elif [ "$arg" = '-auth' ]; then
if [ ! "$n" = 0 ]; then
n="$((n-1))"
shift
fi
continue
elif [ -n "$dash" -a "$arg" = '--' ]; then
dash=
# Check if there's a xserverrc specified.
if [ ! "${1#/}" = "$1" ]; then
xserverrc=''
fi
fi
set -- "$@" "$arg"
done
disp=0
while [ -f "/tmp/.X$disp-lock" ]; do
disp=$((disp+1))
done
exec /usr/bin/xinit /usr/local/bin/croutonxinitrc-wrapper "$@" $dash $xserverrc ":$disp"
同样在startx分支中。
太好了,现在startx也为我工作(没有startx分支)。 这很奇怪。
我执行了Xinit并在Windows中键入了startx,随后出现一条消息,删除了我用rm命令执行的目录,重新启动了comp,一切正常。
对于它的价值,startx似乎仍然行不通?
我也在尝试运行Mate,如果我以sudo xinit
启动它,它将起作用,但是,然后,我当然是以root
身份登录-这不是我想要的。 当我尝试在没有sudo
情况下运行xinit
sudo
,我得到了: https :
有任何想法吗?
重新启动,然后在没有sudo的情况下重试。
我认为startx
现在已经工作了一段时间,因此请关闭此问题,如果仍然有问题,请重新打开。
@DennisLfromGA哇,我完全忘记了这一点。 一两年甚至没有使用我的Chromebook。 很高兴它已关闭!
我知道,似乎其中一堆已经修复,但仍在闲逛。 :)
最有用的评论
我搜索了此错误,发现了一些可能的解决方法:
希望以上的一种或几种组合能使您全部解决问题;-)