๋ด๊ฐ ์ทจํ ๋จ๊ณ :
์คํ์ ์๋ํ๊ณ ์ธ ๋ฒ์งธ 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
๋ก ๋ก๊ทธ์ธ๋ฉ๋๋ค. ๋๋ ์คํํ๋ ค๊ณ ํ๋ฉด xinit
์์ด sudo
, ๋๋์ด ์ป์ : https://gist.github.com/JoshMcCullough/b04f321a5ecc8bc28994
์ด๋ค ์์ด๋์ด?
์ฌ๋ถํ ํ๊ณ sudo์์ด ๋ค์ ์๋ํ์ญ์์ค.
startx
์ด (๊ฐ) ํ๋์ ์๋ํ๋ค๊ณ ์๊ฐํ๋ฏ๋ก์ด ๋ฌธ์ ๋ฅผ ์ข
๋ฃํ๊ณ ์ฌ์ ํ ๋ฌธ์ ๊ฐ์๋ ๊ฒฝ์ฐ ๋ค์ ์ด์ด์ฃผ์ธ์.
@DennisLfromGA ์์ฐ ๋๋ ์ด๊ฒ์ ๋ํด ์์ ํ ์์๋ค. Chromebook์ 1 ~ 2 ๋ ๋์ ์ฌ์ฉํ์ง ์์์ต๋๋ค. ๋ซํ์ ๋คํ์ ๋๋ค!
๋๋ ์ด๊ฒ๋ค์ด ๊ณ ์ณ์ก๊ณ ์ฌ์ ํ ๋งด๋๊ณ ์๋ ๊ฒ ๊ฐ๋ค. :)
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด ์ค๋ฅ๋ฅผ ๊ฒ์ํ์ฌ ๋ช ๊ฐ์ง ๊ฐ๋ฅํ ์์ ์ฌํญ์ ์ฐพ์์ต๋๋ค.
์์ ํ๋ ๋๋ ์ผ๋ถ ์กฐํฉ์ผ๋ก ๋ชจ๋ ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค. ;-)