[網樂通] 網樂通安裝X Window(LXDE),使用圖形界面操作

       

網樂通安裝X Window其實沒什麼用處,有點吃資源,不過好玩就好啦~做個筆記提供有興趣的朋友玩玩~一開始你需要先安裝好 網樂通Debain ,可以參考本人撰寫的教學

 

 

更換Kernel以及安裝modules

由於剛安裝好網樂通內建的Kernel好像沒有支援HDMI輸出,所以需要換成有支援的版本~由Chia-Cheng Huang大大釋出~

首先下載檔案回家並且解壓縮,再取代目前的核心~

[email protected]:~# wget http://s1.becoder.org/nextvod/kernel_modules-stmfb-1003.tgz
[email protected]:~# tar -xvzf kernel_modules-stmfb-1003.tgz
[email protected]:~# cd kernel_modules-stmfb/
[email protected]:~# mkdir /lib/modules
[email protected]:~# tar -xvzf 2.6.32.59_stm24_0211-PDK7105-32BITS.tgz -C /lib/modules
===================↓↓重要↓↓===================
[email protected]:~# cp vmlinux.ub / #取代核心
[email protected]:~# mkdir /mnt/sda1/
[email protected]:~# mount /dev/sda1 /mnt/sda1
[email protected]:~# cp vmlinux.ub /mnt/sda1
[email protected]:~# depmod -a
===================↑↑重要↑↑===================

編輯/etc/modules

[email protected]:~# vi /etc/modules

打開後應該會看到像這樣的畫面:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

 

按下i,貼上下面這段:

stmfb [email protected]:3M:0:PAL:RGB
stm_v4l2
stmcore-display-sti7105 hdmi0=enable
stmvbi
stmvout

 

完成後應該會像這樣,可以輸入:wq作存檔動作~

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
stmfb [email protected]:3M:0:PAL:RGB
stm_v4l2
stmcore-display-sti7105 hdmi0=enable
stmvbi
stmvout

 

重新開機一下~

[email protected]:~# reboot

 

可以接上HDMI囉!!

網樂通HDMI Console

 

更新套件庫&升級程式

[更新4/12]剛剛發現 apt repositry 改了,請作以下修改,否則將無法安裝新的軟體

將原本的
deb http://ftp.yzu.edu.twdebian-sh4/ wheezy all

改為
deb http://ftp.yzu.edu.tw/Linux/debian-sh4-for-nextvod/ wheezy all

 

 

安裝任何程式的第一步都是先更新一下套件庫以確保最新的來源:

[email protected]:~# apt-get update

更新一下程式也好,不然漏洞有點多(Bash漏洞以及GHOST漏洞)

[email protected]:~# apt-get upgrade

 

 

安裝LXDE

更新好了以後~就可以來安裝LXDE了~檔案有點多,大概300MB需要一點時間

[email protected]:~# apt-get install xorg xserver-xorg lxde-core #需要一點間,有問答請選Y

 

裝好之後需要編輯~/.xinitrc

[email protected]:~# vi ~/.xinitrc

按下i,新增這行後按下:wq存檔:

exec ck-launch-session startlxde

 

修改一下 /etc/hosts,新增一行127.0.0.1 debian-wheezy-sh4

127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

新增一行127.0.0.1 debian-wheezy-sh4

127.0.0.1 localhost
127.0.0.1 debian-wheezy-sh4
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

接上HDMI螢幕,啟動LXDE~

[email protected]:~# startx

 

網樂通HDMI LXDE

15 Comments

  1. 請問現在還有辦法改 XWINDOW 嗎
    我在執行 apt-get install xorg xserver-xorg lxde-core 的時候發生問題無法繼續
    貌似是寫說更新來源異常或安裝包損壞,要我apt-get update
    可是沒用…

      1. 安裝失敗@@

        在執行 apt-get install xorg xserver-xorg lxde-core 時發生問題
        分別安裝 xorg 成功 xserver-xorg 成功
        但是 lxde-core 失敗如下
        —————————————————————————————————————
        [email protected]:/etc/apt# apt-get install lxde-core
        Reading package lists… Done
        Building dependency tree
        Reading state information… Done
        Some packages could not be installed. This may mean that you have
        requested an impossible situation or if you are using the unstable
        distribution that some required packages have not yet been created
        or been moved out of Incoming.
        The following information may help to resolve the situation:

        The following packages have unmet dependencies:
        lxde-core : Depends: lxde-common but it is not going to be installed
        Depends: lxpanel but it is not installable
        Depends: openbox but it is not installable
        Depends: pcmanfm (>= 0.9.8) but it is not installable
        Recommends: gksu but it is not installable
        Recommends: xscreensaver but it is not installable
        E: Unable to correct problems, you have held broken packages.
        [email protected]:/etc/apt#

        然後執行startx失敗
        —————————————————————————————————————
        [email protected]:/etc/apt# startx

        X.Org X Server 1.12.4
        Release Date: 2012-08-27
        X Protocol Version 11, Revision 0
        Build Operating System: Linux 2.6.32-5-amd64 sh4 Debian
        Current Operating System: Linux AirNAS 2.6.32.59_stm24_0211-PDK7105-32BITS #7 PR EEMPT Fri Sep 27 23:53:25 CST 2013 sh4
        Kernel command line: console=ttyAS0,115200 rootdelay=0 root=/dev/sda2 rootfstype =ext4 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:24:cf:21:b6:a0:c8 ph yaddr:0,watchdog:5000 mem=256M bigphysarea=2048
        Build Date: 11 June 2013 03:17:20AM
        xorg-server 2:1.12.4-6 (Julien Cristau )
        Current version of pixman: 0.26.0
        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: Mon Dec 6 19:59:38 2021
        (==) Using system config directory “/usr/share/X11/xorg.conf.d”
        /root/.xinitrc: 1: exec: ck-launch-session: not found
        xinit: connection to X server lost

        waiting for X server to shut down Server terminated successfully (0). Closing lo g file.

        ————————————————————————————
        [email protected]:/etc/apt# cat /etc/hosts
        127.0.0.1 localhost
        127.0.0.1 AirNAS
        ::1 localhost ip6-localhost ip6-loopback
        fe00::0 ip6-localnet
        ff00::0 ip6-mcastprefix
        ff02::1 ip6-allnodes
        ff02::2 ip6-allrouters

        然後log如下
        —————————————————————————————————————
        [ 1078.154] (WW) Falling back to old probe method for fbdev
        [ 1078.173] (EE) FBDEV(0): FBIOBLANK: Invalid argument
        [ 1079.106] (EE) FBDEV(0): FBIOBLANK: Invalid argument

        —————————————————————————————————————
        [email protected]:/etc/apt# cat /var/log/Xorg.0.log
        [ 1078.084]
        X.Org X Server 1.12.4
        Release Date: 2012-08-27
        [ 1078.085] X Protocol Version 11, Revision 0
        [ 1078.086] Build Operating System: Linux 2.6.32-5-amd64 sh4 Debian
        [ 1078.086] Current Operating System: Linux AirNAS 2.6.32.59_stm24_0211-PDK7105-32BITS #7 PREEMPT Fri Sep 27 23:53:25 CST 2013 sh4
        [ 1078.086] Kernel command line: console=ttyAS0,115200 rootdelay=0 root=/dev/sda2 rootfstype=ext4 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:24:cf:21:b6:a0:c8 phyaddr:0,watchdog:5000 mem=256M bigphysarea=2048
        [ 1078.087] Build Date: 11 June 2013 03:17:20AM
        [ 1078.087] xorg-server 2:1.12.4-6 (Julien Cristau )
        [ 1078.088] Current version of pixman: 0.26.0
        [ 1078.088] Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
        [ 1078.088] Markers: (–) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
        [ 1078.091] (==) Log file: “/var/log/Xorg.0.log”, Time: Mon Dec 6 19:59:38 2021
        [ 1078.094] (==) Using system config directory “/usr/share/X11/xorg.conf.d”
        [ 1078.096] (==) No Layout section. Using the first Screen section.
        [ 1078.096] (==) No screen section available. Using defaults.
        [ 1078.096] (**) |–>Screen “Default Screen Section” (0)
        [ 1078.097] (**) | |–>Monitor “”
        [ 1078.100] (==) No monitor specified for screen “Default Screen Section”.
        Using a default monitor configuration.
        [ 1078.101] (==) Automatically adding devices
        [ 1078.101] (==) Automatically enabling devices
        [ 1078.102] (WW) The directory “/usr/share/fonts/X11/cyrillic” does not exist.
        [ 1078.102] Entry deleted from font path.
        [ 1078.103] (WW) The directory “/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType” does not exist.
        [ 1078.103] Entry deleted from font path.
        [ 1078.103] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        /usr/share/fonts/X11/75dpi,
        built-ins
        [ 1078.103] (==) ModulePath set to “/usr/lib/xorg/modules”
        [ 1078.103] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
        [ 1078.104] (II) Loader magic: 0x52c7c010
        [ 1078.104] (II) Module ABI versions:
        [ 1078.104] X.Org ANSI C Emulation: 0.4
        [ 1078.104] X.Org Video Driver: 12.1
        [ 1078.104] X.Org XInput driver : 16.0
        [ 1078.105] X.Org Server Extension : 6.0
        [ 1078.106] (II) LoadModule: “extmod”
        [ 1078.108] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
        [ 1078.113] (II) Module extmod: vendor=”X.Org Foundation”
        [ 1078.114] compiled for 1.12.4, module version = 1.0.0
        [ 1078.114] Module class: X.Org Server Extension
        [ 1078.114] ABI class: X.Org Server Extension, version 6.0
        [ 1078.114] (II) Loading extension SELinux
        [ 1078.115] (II) Loading extension MIT-SCREEN-SAVER
        [ 1078.115] (II) Loading extension XFree86-VidModeExtension
        [ 1078.115] (II) Loading extension XFree86-DGA
        [ 1078.115] (II) Loading extension DPMS
        [ 1078.115] (II) Loading extension XVideo
        [ 1078.115] (II) Loading extension XVideo-MotionCompensation
        [ 1078.116] (II) Loading extension X-Resource
        [ 1078.116] (II) LoadModule: “dbe”
        [ 1078.117] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
        [ 1078.119] (II) Module dbe: vendor=”X.Org Foundation”
        [ 1078.119] compiled for 1.12.4, module version = 1.0.0
        [ 1078.119] Module class: X.Org Server Extension
        [ 1078.119] ABI class: X.Org Server Extension, version 6.0
        [ 1078.120] (II) Loading extension DOUBLE-BUFFER
        [ 1078.120] (II) LoadModule: “glx”
        [ 1078.122] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
        [ 1078.124] (II) Module glx: vendor=”X.Org Foundation”
        [ 1078.124] compiled for 1.12.4, module version = 1.0.0
        [ 1078.124] ABI class: X.Org Server Extension, version 6.0
        [ 1078.125] (==) AIGLX enabled
        [ 1078.125] (II) Loading extension GLX
        [ 1078.126] (II) LoadModule: “record”
        [ 1078.127] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
        [ 1078.129] (II) Module record: vendor=”X.Org Foundation”
        [ 1078.129] compiled for 1.12.4, module version = 1.13.0
        [ 1078.130] Module class: X.Org Server Extension
        [ 1078.130] ABI class: X.Org Server Extension, version 6.0
        [ 1078.130] (II) Loading extension RECORD
        [ 1078.130] (II) LoadModule: “dri”
        [ 1078.131] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
        [ 1078.135] (II) Module dri: vendor=”X.Org Foundation”
        [ 1078.135] compiled for 1.12.4, module version = 1.0.0
        [ 1078.135] ABI class: X.Org Server Extension, version 6.0
        [ 1078.135] (II) Loading extension XFree86-DRI
        [ 1078.136] (II) LoadModule: “dri2″
        [ 1078.137] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
        [ 1078.139] (II) Module dri2: vendor=”X.Org Foundation”
        [ 1078.139] compiled for 1.12.4, module version = 1.2.0
        [ 1078.140] ABI class: X.Org Server Extension, version 6.0
        [ 1078.140] (II) Loading extension DRI2
        [ 1078.140] (==) Matched fbdev as autoconfigured driver 0
        [ 1078.140] (==) Assigned the driver to the xf86ConfigLayout
        [ 1078.141] (II) LoadModule: “fbdev”
        [ 1078.143] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
        [ 1078.144] (II) Module fbdev: vendor=”X.Org Foundation”
        [ 1078.144] compiled for 1.12.4, module version = 0.4.2
        [ 1078.145] ABI class: X.Org Video Driver, version 12.1
        [ 1078.145] (II) FBDEV: driver for framebuffer: fbdev
        [ 1078.145] (–) using VT number 3

        [ 1078.154] (WW) Falling back to old probe method for fbdev
        [ 1078.154] (II) Loading sub module “fbdevhw”
        [ 1078.154] (II) LoadModule: “fbdevhw”
        [ 1078.155] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
        [ 1078.157] (II) Module fbdevhw: vendor=”X.Org Foundation”
        [ 1078.157] compiled for 1.12.4, module version = 0.0.2
        [ 1078.157] ABI class: X.Org Video Driver, version 12.1
        [ 1078.158] (II) FBDEV(0): using default device
        [ 1078.159] (II) FBDEV(0): Creating default Display subsection in Screen section
        “Default Screen Section” for depth/fbbpp 16/16
        [ 1078.159] (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16
        [ 1078.160] (==) FBDEV(0): RGB weight 565
        [ 1078.160] (==) FBDEV(0): Default visual is TrueColor
        [ 1078.160] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
        [ 1078.161] (II) FBDEV(0): hardware: STi7105-main (video memory: 3072kB)
        [ 1078.161] (II) FBDEV(0): checking modes against framebuffer device…
        [ 1078.161] (II) FBDEV(0): checking modes against monitor…
        [ 1078.162] (–) FBDEV(0): Virtual size is 640×480 (pitch 640)
        [ 1078.162] (**) FBDEV(0): Built-in mode “current”: 25.2 MHz, 31.5 kHz, 60.0 Hz
        [ 1078.162] (II) FBDEV(0): Modeline “current”x0.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync -csync (31.5 kHz b)
        [ 1078.162] (==) FBDEV(0): DPI set to (96, 96)
        [ 1078.163] (II) Loading sub module “fb”
        [ 1078.163] (II) LoadModule: “fb”
        [ 1078.164] (II) Loading /usr/lib/xorg/modules/libfb.so
        [ 1078.166] (II) Module fb: vendor=”X.Org Foundation”
        [ 1078.167] compiled for 1.12.4, module version = 1.0.0
        [ 1078.167] ABI class: X.Org ANSI C Emulation, version 0.4
        [ 1078.167] (**) FBDEV(0): using shadow framebuffer
        [ 1078.167] (II) Loading sub module “shadow”
        [ 1078.167] (II) LoadModule: “shadow”
        [ 1078.169] (II) Loading /usr/lib/xorg/modules/libshadow.so
        [ 1078.171] (II) Module shadow: vendor=”X.Org Foundation”
        [ 1078.171] compiled for 1.12.4, module version = 1.1.0
        [ 1078.172] ABI class: X.Org ANSI C Emulation, version 0.4
        [ 1078.173] (EE) FBDEV(0): FBIOBLANK: Invalid argument
        [ 1078.175] (==) FBDEV(0): Backing store disabled
        [ 1078.176] (==) FBDEV(0): DPMS enabled
        [ 1078.177] (==) RandR enabled
        [ 1078.177] (II) Initializing built-in extension Generic Event Extension
        [ 1078.177] (II) Initializing built-in extension SHAPE
        [ 1078.178] (II) Initializing built-in extension MIT-SHM
        [ 1078.178] (II) Initializing built-in extension XInputExtension
        [ 1078.178] (II) Initializing built-in extension XTEST
        [ 1078.178] (II) Initializing built-in extension BIG-REQUESTS
        [ 1078.178] (II) Initializing built-in extension SYNC
        [ 1078.179] (II) Initializing built-in extension XKEYBOARD
        [ 1078.179] (II) Initializing built-in extension XC-MISC
        [ 1078.179] (II) Initializing built-in extension SECURITY
        [ 1078.179] (II) Initializing built-in extension XINERAMA
        [ 1078.179] (II) Initializing built-in extension XFIXES
        [ 1078.180] (II) Initializing built-in extension RENDER
        [ 1078.180] (II) Initializing built-in extension RANDR
        [ 1078.180] (II) Initializing built-in extension COMPOSITE
        [ 1078.180] (II) Initializing built-in extension DAMAGE
        [ 1078.181] (II) SELinux: Disabled on system
        [ 1078.278] (II) AIGLX: Screen 0 is not DRI2 capable
        [ 1078.279] (II) AIGLX: Screen 0 is not DRI capable
        [ 1078.291] (II) AIGLX: Loaded and initialized swrast
        [ 1078.291] (II) GLX: Initialized DRISWRAST GL provider for screen 0
        [ 1079.106] (EE) FBDEV(0): FBIOBLANK: Invalid argument
        [ 1079.203] Server terminated successfully (0). Closing log file.

        —————————————————————————————————————

        [email protected]:/etc/apt# lsb_release -a
        No LSB modules are available.
        Distributor ID: Debian
        Description: Debian GNU/Linux 7.8 (wheezy)
        Release: 7.8
        Codename: wheezy

  2. 請問有辦法解嗎..?感覺是套件庫下架了。

    The following packages have unmet dependencies:
    lxde-core : Depends: lxde-common but it is not going to be installed
    Depends: lxpanel but it is not installable
    Depends: openbox but it is not installable
    Depends: pcmanfm (>= 0.9.8) but it is not installable
    Recommends: gksu but it is not installable
    Recommends: xscreensaver but it is not installable
    E: Unable to correct problems, you have held broken packages.

  3. 您好,

    上次問您網樂通如何掛載 samba,目的是想試試網樂通是不是能成為電子相框,

    我參考這個網址,http://gsyan888.blogspot.tw/2013/06/raspberrypi-slideshow.html

    可惜網樂通 debian 套件庫沒有 fbi 看圖程式,
    想請教,fbi 能自行編譯安裝嗎?可否提供教學,
    感謝

  4. 請問旁邊ASUS 手機上面的畫面, 是網樂通的輸出畫面嗎? 還是其他的? 請問這是怎麼用的呢?

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。