デスクトップとして使う(9)新しいモジュールでXを起動

Debian LS-VL

まるしすなうぇぶろぐ(仮): 玄柴/ディスプレイの接続で 紹介いただいている手順で LinkStation LS-VL でも X を動かそうとしている。
「5.udlfbの更新」が完了したので、 再度 X を起動してみる

GX-DVI/U2B を刺す

yasunari@vl:~$ tail -f /var/log/messages
	:
	:
Mar 11 11:47:15 vl kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
Mar 11 11:47:15 vl kernel: usb 1-1: configuration #1 chosen from 1 choice
Mar 11 11:47:15 vl kernel: udlfb: DisplayLink GX-DVI_U2B - serial #201210913457
Mar 11 11:47:15 vl kernel: udlfb: vid_17e9&pid_0223&rev_0106 driver's dlfb_data struct at c9be1000
Mar 11 11:47:15 vl kernel: udlfb: console enable=1
Mar 11 11:47:15 vl kernel: udlfb: fb_defio enable=1
Mar 11 11:47:15 vl kernel: udlfb: shadow enable=1
Mar 11 11:47:15 vl kernel: udlfb: vendor descriptor length:1b data:1b 5f 01 0019 05 00 01 03 00 04
Mar 11 11:47:15 vl kernel: udlfb: udlfb: DL chip limited to 2080000 pixel modes
Mar 11 11:47:15 vl kernel: udlfb: allocated 4 65024 byte urbs
Mar 11 11:47:15 vl kernel:      Display is GTF capable
Mar 11 11:47:15 vl kernel: udlfb: 1440x900 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 720x400 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 640x480 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 640x480 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 800x600 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 800x600 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 1024x768 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 1024x768 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 1024x768 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 1280x1024 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 1280x1024 valid mode
Mar 11 11:47:15 vl kernel: udlfb: 1440x1440 valid mode
Mar 11 11:47:15 vl kernel: udlfb: udlfb: Reallocating framebuffer. Addresses will change!
Mar 11 11:47:15 vl kernel: udlfb: 1440x900 valid mode
Mar 11 11:47:15 vl kernel: udlfb: set_par mode 1440x900
Mar 11 11:47:15 vl kernel: udlfb: DisplayLink USB device /dev/fb0 attached. 1440x900 resolution. Using 5064K framebuffer memory
問題なく認識。液晶ディスプレイは全面紫になる

X の起動

yasunari@vl:~$ startx

X: user not authorized to run the X server, aborting.

^Cgiving up.
xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  unexpected signal 2.
yasunari@vl:~$
X を起動するのに、ユーザ認証が必要?

/etc/X11/Xwrapper.config の修正

X: user not authorized to run the X server, aborting.
は、 debian-users の過去ログによると /etc/X11/Xwrapper.config に原因があるらしい。

man Xwrapper.config して allowed_users の項目を見てみると、

yasunari@vl:~$ cat /etc/X11/Xwrapper.config
cat: /etc/X11/Xwrapper.config: Permission denied
yasunari@vl:~$ sudo !!
sudo cat /etc/X11/Xwrapper.config
# Xwrapper.config (Debian X Window System server wrapper configuration file)
#
# This file was generated by the post-installation script of the x11-common
# package using values from the debconf database.
#
# See the Xwrapper.config(5) manual page for more information.
#
# This file is automatically updated on upgrades of the x11-common package
# *only* if it has not been modified since the last upgrade of that package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command as root:
#   dpkg-reconfigure x11-common
allowed_users=console
yasunari@vl:~$
確かに allowed_users=console では起動できなさそう。

# If you have edited this file but would like it to be automatically updated
# again, run the following command as root:
#   dpkg-reconfigure x11-common
とのことで、 debian-users の過去ログの通り dpkg-reconfigure x11-common を実行する。
yasunari@vl:~$ sudo dpkg-reconfigure x11-common



Package configuration
 lqqqqqqqqqqqqqqqqqqqqqqqqu Configuring x11-common tqqqqqqqqqqqqqqqqqqqqqqqqqk
 x Because the X server runs with superuser privileges, it may be unwise to  x
 x permit any user to start it, for security reasons.  On the other hand,    x
 x it is even more unwise to run general-purpose X client programs as root,  x
 x which is what may happen if only root is permitted to start the X         x
 x server.  A good compromise is to permit the X server to be started only   x
 x by users logged in to one of the virtual consoles.                        x
 x                                                                           x
 x Users allowed to start the X server:                                      x
 x                                                                           x
 x                            Root Only                                      x
 x                            Console Users Only                             x
 x                            Anybody                                        x
 x                                                                           x
 x                                                                           x
 x                                  <Ok>                                     x
 x                                                                           x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Anybody を選択して OK

/etc/X11/Xwrapper.config は

yasunari@vl:~$ sudo cat /etc/X11/Xwrapper.config
# Xwrapper.config (Debian X Window System server wrapper configuration file)
#
# This file was generated by the post-installation script of the x11-common
# package using values from the debconf database.
#
# See the Xwrapper.config(5) manual page for more information.
#
# This file is automatically updated on upgrades of the x11-common package
# *only* if it has not been modified since the last upgrade of that package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command as root:
#   dpkg-reconfigure x11-common
allowed_users=anybody
yasunari@vl:~$
allowed_users=anybody に変更された。

誰にでも起動できるようになるので危険といえば危険だけれど、 私一人しか使わない/使えないマシンだし。。。

再度 X の起動

yasunari@vl:~$ startx


X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32 armv5tel Debian
Current Operating System: Linux vl 2.6.31.8 #9 Sun Mar 11 10:32:51 JST 2012 armv5tel
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,12M panic=5 BOOTVER=0.25
Build Date: 30 October 2011  09:07:45PM
xorg-server 2:1.7.7-14 (Julien Cristau )
Current version of pixman: 0.16.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Mar 11 12:06:12 2012
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
SELinux: Disabled on system, not enabling in X server

画面が一瞬黒くなるが、すぐに紫に戻る。

着実に進んでいる。もう一歩だ!



LS-VL

楽天市場
Amazon
livedoor デパート
バッファローダイレクト
Yahoo!ショッピング


標準ファームの HDD の中身を見る
ハックの記録
LinkStation/玄箱 をハックしよう

標準ファームの HDD の中身(2)

Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市