2014年3月9日日曜日

Firefox-ESRでpkg_add

Operaへの変更は一時保留。

# pkg_add -r firefox-esr
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.4-release/Latest/firefox-esr.tbz...

を試す。これが単体で19.3MB。


ところでディレクトリのサイズを確認しようとして

duコマンド
http://x68000.q-e-d.net/~68user/unix/pickup?du

をこれまた浅はかに使ったところ

 du /usr -s

で、画面がえらい騒ぎに。ずいぶん以前のネットワーク機器でリモートであったら少々心配する程度の騒ぎになった。

そこで

du -s /usr*

にしたところ、画面の表示こそ何事も無いかのうようであるも、裏で動くことは同じであるらしくたいへんな時間が。


It sounds like he's trying to start firefox without an X server running, that will not work.. for obvious reasons.
http://daemonforums.org/showthread.php?t=3469


 はい、やり直し。


ここで整理。

FreeBSDの利用
・ファイルサーバ この機材では不可
・お試し環境 そこそこに使用可能

メインPCのデータはもう一度整理した上で余剰HDにコピー(要暗号化)
メインPCの環境を残すことは必須(いずれ義父へ)なのでクローンディスクの作成も必須

結局ノートPCの追加とWindows環境でのデータ移行は避けられないが、ま、致し方ない。まるっきり無くすわけにもいかないし。


やり直しにあたり。

StandardセットアップでIPアドレス周りを設定し、とりあえずftpな状態+sshd

pkgngは、当面の間は使用しないでX Windowsの導入。

6.4.2. X11 の設定

Xorg は、 HAL を用いてキーボードやマウスを自動認識します。 x11/xorg の依存として、 sysutils/hal および devel/dbus port がインストールされますが、以下のようなエントリを /etc/rc.conf ファイルに追加し、 有効にする必要があります。

hald_enable="YES"
dbus_enable="YES"


で、


# startx
xauth:  file /root/.serverauth.771 does not exist


X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 8.4-RELEASE i386
Current Operating System: FreeBSD netvista 8.4-RELEASE FreeBSD 8.4-RELEASE #0 r251259: Mon Jun  3 01:14:28 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
Build Date: 17 April 2013  03:34:39PM

Current version of pixman: 0.24.2
        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  9 13:04:15 2014
Primary device is not PCI
(==) Using default built-in configuration (21 lines)
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) No devices detected.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.




xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error



初期設定ファイルの作成

# Xorg -configure

 su で作成したことによって、なにやら環境変数が違うらしい。目を通す。

# Xorg -configure

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 8.4-RELEASE i386
Current Operating System: FreeBSD netvista 8.4-RELEASE FreeBSD 8.4-RELEASE #0 r251259: Mon Jun  3 01:14:28 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
Build Date: 17 April 2013  03:34:39PM

Current version of pixman: 0.24.2
        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  9 13:07:01 2014
 



List of video drivers:
        radeon
        radeonhd
        r128
        openchrome
        nv
        mach64
        intel
        ati
        vesa
 


(++) Using config file: "/root/xorg.conf.new"


Xorg detected your mouse at device /dev/sysmouse.
Please check your config if the mouse is still not operational, as by default Xorg tries to autodetect the protocol.

Xorg has configured a multihead system, please check your config.

Your xorg.conf file is /root/xorg.conf.new

To test the server, run 'X -config /root/xorg.conf.new'


特に変数らしきものが見当たらず。ユーザ毎に設定ファイルが作成される、というだけのことではないのか?


 さておき次。

作成した設定ファイルで Xorg がそのグラフィックハードウェアで動くことを確認することです。 以下を実行してください。
# Xorg -config xorg.conf.new -retro

手入力してみる。


黒とグレーのグリッド、とはこれか? 確信にはほど遠い画面が表示されるがとりあえず黒とグレーでグラフィカルではある。マウスが動かないので、sysinstall、こちらでマウスは動作する、さて。

---------

さらに、 最近の Xorg では、デバイスの自動認識のため、 xorg.conf の InputDevice セクションは無視されます。 古い設定の記述を利用するには、 以下の行をファイルの ServerLayout もしくは、 ServerFlags セクションに追加してください。
Option "AutoAddDevices" "false"

これで、以前のバージョンのように、入力デバイスを (キーボードレイアウトの変更のように) 必要なオプションを用いて設定できるようになります。

 ---------

ここでsshセッションが切れた、あるいはターミナルソフトウェアが落ちたか、私が誤って落としたか!?


次の記事へ続く。






0 件のコメント:

コメントを投稿