デスクトップとして使う(23)
まとめ(2)デスクトップ環境のインストール

Debian LS-VL

一息着いたので、再現して手順を確認しておく。
その2。ドライバをインストールして、GNOME を動作させるまで

最新版 udlfb の適用

udlfb の最新版を git で入手してコンパイルする

git のインストール

yasunari@vl:/usr/src/linux-2.6.31.8$ sudo apt-get install git-core

uflfb のソースの取得

yasunari@vl:/usr/src/linux-2.6.31.8$ cd /usr/src
yasunari@vl:/usr/src$ git clone http://git.plugable.com/webdav/udlfb
yasunari@vl:/usr/src$ cd udlfb/
yasunari@vl:/usr/src/udlfb$
ちょっと寄り道して 先日の修正が反映されているか確認しておく。
yasunari@vl:/usr/src/udlfb$ less udlfb.c
OK!

uflfb のコンパイル

yasunari@vl:/usr/src/udlfb$ make

udlfb のインストール

yasunari@vl:/usr/src/udlfb$ sudo make install

デバイス 認識の確認

USBマウス、USBキーボード、GX-DVI/U2B が認識するか確認する。

リブート

その前に念のため、リブート
yasunari@vl:/usr/src/udlfb$ sudo reboot

HUB を刺す

最初は HUB
yasunari@vl:~$ sudo tail -f /var/log/messages
	:
	:
Apr  1 10:14:04 vl kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
Apr  1 10:14:04 vl kernel: usb 1-1: configuration #1 chosen from 1 choice
Apr  1 10:14:04 vl kernel: hub 1-1:1.0: USB hub found
Apr  1 10:14:04 vl kernel: hub 1-1:1.0: 4 ports detected

GX-DVI/U2B を刺す

続いて、メインの GX-DVI/U2B
Apr  1 10:14:44 vl kernel: usb 1-1: new high speed USB device using ehci_marvell and address 3
Apr  1 10:14:44 vl kernel: usb 1-1: configuration #1 chosen from 1 choice
Apr  1 10:14:44 vl kernel: hub 1-1:1.0: USB hub found
Apr  1 10:14:44 vl kernel: hub 1-1:1.0: 4 ports detected
Apr  1 10:14:44 vl kernel: usb 1-1.4: new high speed USB device using ehci_marvell and address 4
Apr  1 10:14:44 vl kernel: usb 1-1.4: configuration #1 chosen from 1 choice
Apr  1 10:14:44 vl kernel: udlfb: module is from the staging directory, the quality is unknown, you have been warned.
Apr  1 10:14:44 vl kernel: DisplayLink device attached
Apr  1 10:14:44 vl kernel: ret control msg 0: 4 1500f1
Apr  1 10:14:44 vl kernel: EDID XRES 1440 YRES 900
Apr  1 10:14:44 vl kernel: INIT VIDEO 0 800 480
Apr  1 10:14:44 vl kernel: INIT VIDEO 1 1024 768
Apr  1 10:14:44 vl kernel: INIT VIDEO 2 1280 1024
Apr  1 10:14:44 vl kernel: INIT VIDEO 3 1400 1050
Apr  1 10:14:44 vl kernel: INIT VIDEO 0 800 480
Apr  1 10:14:44 vl kernel: INIT VIDEO 1 1024 768
Apr  1 10:14:44 vl kernel: INIT VIDEO 2 1280 1024
Apr  1 10:14:44 vl kernel: ret control msg 1 (STD_CHANNEL): 16
Apr  1 10:14:44 vl kernel: ret bulk 2: 156 156
Apr  1 10:14:44 vl kernel: ret bulk 3: 0
Apr  1 10:14:44 vl kernel: found valid mode...9389
Apr  1 10:14:44 vl kernel: screen base allocated !!!
Apr  1 10:14:44 vl kernel: colormap allocated
Apr  1 10:14:44 vl kernel: usbcore: registered new interface driver udlfb
Apr  1 10:14:44 vl kernel: VMODES initialized

USB マウスを刺す

マウスも
Apr  1 10:15:33 vl kernel: usb 1-1.3: new low speed USB device using ehci_marvell and address 5
Apr  1 10:15:33 vl kernel: usb 1-1.3: configuration #1 chosen from 1 choice
Apr  1 10:15:33 vl kernel: usbcore: registered new interface driver hiddev
Apr  1 10:15:33 vl kernel: input: Logitech Optical USB Mouse as /devices/platform/ehci_marvell.70059/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
Apr  1 10:15:33 vl kernel: generic-usb 0003:046D:C016.0001: input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-ehci_marvell.70059-1.3/input0
Apr  1 10:15:33 vl kernel: usbcore: registered new interface driver usbhid
Apr  1 10:15:33 vl kernel: usbhid: v2.6:USB HID core driver

USB キーボードを刺す

キーボードも
Apr  1 10:16:03 vl kernel: usb 1-1.2: new low speed USB device using ehci_marvell and address 6
Apr  1 10:16:03 vl kernel: usb 1-1.2: configuration #1 chosen from 1 choice
Apr  1 10:16:03 vl kernel: input: Sony FKP-U01 as /devices/platform/ehci_marvell.70059/usb1/1-1/1-1.2/1-1.2:1.0/input/input1
Apr  1 10:16:03 vl kernel: generic-usb 0003:054C:01A9.0002: input,hiddev96: USB HID v1.11 Keyboard [Sony FKP-U01] on usb-ehci_marvell.70059-1.2/input0
Apr  1 10:16:03 vl kernel: input: Sony FKP-U01 as /devices/platform/ehci_marvell.70059/usb1/1-1/1-1.2/1-1.2:1.1/input/input2
Apr  1 10:16:03 vl kernel: generic-usb 0003:054C:01A9.0003: input: USB HID v1.11 Mouse [Sony FKP-U01] on usb-ehci_marvell.70059-1.2/input1

デスクトップ環境のインストール

GNOME のインストール

yasunari@vl:~$ sudo tasksel
	:
	:

Package configuration

    lqqqqqqqqqqqqqqqqqqqqqqqu Software selection tqqqqqqqqqqqqqqqqqqqqqqqqk
    x You can choose to install one or more of the following predefined   x
    x collections of software.                                            x
    x                                                                     x
    x Choose software to install:                                         x
    x                                                                     x
    x    [*] Graphical desktop environment                                x
    x    [ ] Web server                                                   x
    x    [ ] Print server                                                 x
    x    [ ] DNS server                                                   x
    x    [ ] File server                                                  x
    x    [ ] Mail server                                                  x
    x    [ ] SQL database                                                 x
    x    [ ] SSH server                                                   x
    x    [ ] Laptop                                                       x
    x    [ ] manual package selection                                     x
    x                                                                     x
    x                                                                     x
    x                               <Ok>                                  x
    x                                                                     x
    mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Graphical desktop environment に * を付けて、OK
 lqqqqqqqqqqqqqqqqqqqqqqqqqqu Installing packages tqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x Retrieving file 248 of 1010 (2min 6s remaining)                           x
 x                                                                           x
 x                                                                           x
 x                                                                           x
 x                                     4%                                    x
 x                                                                           x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Package configuration

     lqqqqqqqqqqqqqqu Configuring keyboard-configuration tqqqqqqqqqqqqqqqk
     x Please select the layout matching the keyboard for this machine.  x
     x                                                                   x
     x Keyboard layout:                                                  x
     x                                                                   x
     x         USA                                                       x
     x         USA - Alternative international (former us_intl)          x
     x         USA - Cherokee                                            x
     x         USA - Classic Dvorak                                      x
     x         USA - Colemak                                             x
     x         USA - Dvorak                                              x
     x         USA - Dvorak international                                x
     x         USA - Group toggle on multiply/divide key                 x
     x         USA - International (AltGr dead keys)                     x
     x         USA - International (with dead keys)                      x
     x         USA - Left handed Dvorak                                  x
     x         USA - Macintosh                                           x
     x         USA - Programmer Dvorak                                   x
     x         USA - Right handed Dvorak                                 x
     x         USA - Russian phonetic                                    x
     x         USA - With EuroSign on 5                                  x
     x         Other                                                     x
     x                                                                   x
     x                                                                   x
     x                 <Ok>                     <Cancel>                 x
     x                                                                   x
     mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
// こんな画面あったかなぁ、、、

使うキーボードにもよるが、Other を選んで、

Package configuration

  lqqqqqqqqqqqqqqqqqqu Configuring keyboard-configuration tqqqqqqqqqqqqqqqqqqk
  x The layout of keyboards varies per country, with some countries having   x
  x multiple common layouts. Please select the country of origin for the     x
  x keyboard of this computer.                                               x
  x                                                                          x
  x Country of origin for the keyboard:                                      x
  x                                                                          x
  x                   Iraq                                 a                 x
  x                   Ireland                              a                 x
  x                   Israel                               a                 x
  x                   Italy                                a                 x
  x                   Japan                                a                 x
  x                   Japan (PC-98xx Series)               a                 x
  x                   Kazakhstan                           a                 x
  x                   Korea, Republic of                   a                 x
  x                   Kyrgyzstan                           a                 x
  x                   Laos                                 a                 x
  x                   Latin American                                         x
  x                                                                          x
  x                                                                          x
  x                   <Ok>                       <Cancel>                    x
  x                                                                          x
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Japan を選んで、
     lqqqqqqqqqqqqqqu Configuring keyboard-configuration tqqqqqqqqqqqqqqqk
     x Please select the layout matching the keyboard for this machine.  x
     x                                                                   x
     x Keyboard layout:                                                  x
     x                                                                   x
     x                         Japan                                     x
     x                         Japan - Kana                              x
     x                         Japan - OADG 109A                         x
     x                         Other                                     x
     x                                                                   x
     x                                                                   x
     x                 <Ok>                     <Cancel>                 x
     x                                                                   x
     mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj


Japan - OADG 109A を選ぶ。

Package configuration

                    lqqqqu Configuring console-setup tqqqqqk
                    x                                      x
                    x                                      x
                    x Encoding to use on the console:      x
                    x                                      x
                    x           ISO-8859-8                 x
                    x           ISO-8859-9                 x
                    x           KOI8-R                     x
                    x           KOI8-U                     x
                    x           TIS-620                    x
                    x           UTF-8                      x
                    x           VISCII                     x
                    x                                      x
                    x                                      x
                    x       <Ok>           <Cancel>        x
                    x                                      x
                    mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj


UTF-8 を選ぶ
Package configuration

lqqqqqqqqqqqqqqqqqqqqqqqqu Configuring console-setup tqqqqqqqqqqqqqqqqqqqqqqqqqk
x Please choose the character set that should be supported by the console      x
x font.                                                                        x
x                                                                              x
x If you don't use a framebuffer, the choices that start with "." will         x
x reduce the number of available colors on the console.                        x
x                                                                              x
x Character set to support:                                                    x
x                                                                              x
x     . Arabic                                                                 x
x     # Armenian                                                               x
x     # Cyrillic - KOI8-R and KOI8-U                                           x
x     # Cyrillic - non-Slavic languages                                        x
x     # Cyrillic - Slavic languages (also Bosnian and Serbian Latin)           x
x     . Ethiopic                                                               x
x     # Georgian                                                               x
x     # Greek                                                                  x
x     # Hebrew                                                                 x
x     # Lao                                                                    x
x     # Latin1 and Latin5 - western Europe and Turkic languages                x
x     # Latin2 - central Europe and Romanian                                   x
x     # Latin3 and Latin8 - Chichewa; Esperanto; Irish; Maltese and Welsh      x
x     # Latin7 - Lithuanian; Latvian; Maori and Marshallese                    x
x     . Latin - Vietnamese                                                     x
x     # Thai                                                                   x
x     . Combined - Latin; Slavic Cyrillic; Hebrew; basic Arabic                x
x     . Combined - Latin; Slavic Cyrillic; Greek                               x
x     . Combined - Latin; Slavic and non-Slavic Cyrillic                       x
x                                                                              x
x                                                                              x
x                     <Ok>                         <Cancel>                    x
x                                                                              x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Combined - Latin; Slavic Cyrillic; Greek を仕方なく選ぶ

dpkg-reconfigure x11-common の実行

コンソールからログインして使えないので、 Console Users Only の設定では動作できない。
Anybody にする。
yasunari@brick:~$ sudo dpkg-reconfigure x11-common

 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

gdm を使う場合は、この設定は必要ないかもしれない。

DisplayLink の Xsererver用ドライバのインストール

ソースの入手

yasunari@vl:~$ cd /mnt/src/
yasunari@vl:/mnt/src$ git clone http://git.plugable.com/webdav/xf-video-udlfb
Cloning into xf-video-udlfb...
yasunari@vl:/mnt/src$ cd xf-video-udlfb/
yasunari@vl:/mnt/src/xf-video-udlfb$ ls
COPYING      Makefile.in  autogen.sh    config.sub    crtc        ltmain.sh
ChangeLog    README       config.guess  configure     depcomp     missing
Makefile.am  aclocal.m4   config.h.in   configure.ac  install-sh  src
yasunari@vl:/mnt/src/xf-video-udlfb$

xserver-xorg-dev のインストール

yasunari@vl:/mnt/src/xf-video-udlfb$ sudo apt-get install xserver-xorg-dev

configure

yasunari@vl:/mnt/src/xf-video-udlfb$ ./configure --prefix=/usr

make

yasunari@vl:/mnt/src/xf-video-udlfb$ make
	:
	:
yasunari@vl:/mnt/src/xf-video-udlfb$ sudo make install
	:
	:
yasunari@vl:/mnt/src/xf-video-udlfb$

xorg.conf の修正

LCD-8000U @ 玄柴(Debian) の通りに。
yasunari@vl:/mnt/src/xf-video-udlfb$ sudo vi /etc/X11/xorg.conf
	:
	:
yasunari@vl:/mnt/src/xf-video-udlfb$ cat /etc/X11/xorg.conf
Section "Device"
        Identifier "dl0"
        driver "displaylink"
        Option "fbdev" "/dev/fb0"
EndSection
Section "Monitor"
        Identifier "monitor0"
EndSection
Section "Screen"
        Identifier "screen0"
        Device "dl0"
        Monitor "monitor0"
EndSection
Section "ServerLayout"
        Identifier "Default Layout"
        Screen 0 "screen0" 0 0
EndSection
yasunari@vl:/mnt/src/xf-video-udlfb$
以上で、ひと通りの設定が終わり、X が動作するようになったはず。

再起動

再起動すると、gdm のログイン画面が表示される。

LS-VL

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


デスクトップとして使う(22)まとめ(1)カーネルの再構築
ハックの記録
LinkStation/玄箱 をハックしよう

ERROR 22

ツイート Tweet to @yasunari_y @yasunari_yをフォロー

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