Crouton: startx๊ฐ€ ์ž˜๋ชป๋œ MIT-MAGIC-COOKIE-1 ๋ฐ˜๋ณต์œผ๋กœ ์‹คํŒจํ•ฉ๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2013๋…„ 06์›” 05์ผ  ยท  15์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: dnschneid/crouton

๋‚ด๊ฐ€ ์ทจํ•œ ๋‹จ๊ณ„ :

  1. ๊ธฐ๋ณธ x11 chroot ์ƒ์„ฑ
    sudo sh -e ~ / ๋‹ค์šด๋กœ๋“œ / crouton -t x11
  2. chroot์— ๋“ค์–ด๊ฐ”๋‹ค
    sudo Enter-chroot
  3. ์—์„œ ์„ค์น˜๋œ mate-desktop
    http://wiki.mate-desktop.org/download
  4. mate๋ฅผ ์‹œ์ž‘ํ•˜๋Š” ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ chroot ์‚ฌ์šฉ์ž ํ™ˆ ํด๋”์— .xinitrc ํŒŒ์ผ์„ ์ƒ์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค.
    echo "exec mate-session"> ~ / .xinitrc
  5. x๋ฅผ ์‹œ์ž‘ํ•˜๋ ค๊ณ 
    startx

์‹คํ–‰์„ ์‹œ๋„ํ•˜๊ณ  ์„ธ ๋ฒˆ์งธ 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/

์œ„์˜ ํ•˜๋‚˜ ๋˜๋Š” ์ผ๋ถ€ ์กฐํ•ฉ์œผ๋กœ ๋ชจ๋“  ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜๊ธฐ๋ฅผ ๋ฐ”๋ž๋‹ˆ๋‹ค. ;-)

๋ชจ๋“  15 ๋Œ“๊ธ€

์ด ์˜ค๋ฅ˜๋ฅผ ๊ฒ€์ƒ‰ํ•˜์—ฌ ๋ช‡ ๊ฐ€์ง€ ๊ฐ€๋Šฅํ•œ ์ˆ˜์ • ์‚ฌํ•ญ์„ ์ฐพ์•˜์Šต๋‹ˆ๋‹ค.

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 ๋…„ ๋™์•ˆ ์‚ฌ์šฉํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ๋‹ซํ˜€์„œ ๋‹คํ–‰์ž…๋‹ˆ๋‹ค!

๋‚˜๋Š” ์ด๊ฒƒ๋“ค์ด ๊ณ ์ณ์กŒ๊ณ  ์—ฌ์ „ํžˆ ๋งด๋Œ๊ณ ์žˆ๋Š” ๊ฒƒ ๊ฐ™๋‹ค. :)

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰