IBM ThinkPad X30 への FreeBSD 4.7R & XFree86 4.3.0 のインストール

---- 2003. 6. 18 ----

Counter(Since June/18/'03)

[← Back]


0.IBM ThinkPad X30 リカバリー修復ディスケットを作成。

1.HDD の分割と FreeBSD のインストール

1.1 FreeBSD 4.7R Install Disk

  standard
  Partition
                          PType  Subtype
    8G C: NTFS               1     7
   18G D: extended(FAT32)    4    15
   10G freebsd               3   165
  1.5G リカバリー用ドライブ  1    28

  BootMgr

  X-Developer
  Ports           Install

  Networkの設定
  keymap          Japanese 106
  linux           Install
  non-USB mouse   Enable

1.2 再起動後の設定

  /root/.cshrc        alias ls  ls -F
  /etc/resolv.conf    search
  /etc/inetd.conf     ftp telnet
  /etc/ttys           off secure
  /etc/login.conf     FTP_PASSIVE_MODE=YES を削る
  /etc/rc.conf        keymap="jp.106x" apm_enable="YES" sendmail_enable="NONE"
                     (lpd_enable="YES" pccard_enable="YES")
  /boot/kernel.conf   enable apm

2 IBM ThinkPad X30 リカバリー修復ディスケットで
 リカバリー用ドライブへのアクセスを修復。
 下記のメッセージが出るので、Yes で答える。
----------------------------------------------------------------------
The program has detected an error 116 on the partition starting at sector 58710960 on disk 1.

The starting LBA value is 58710960 and CHS value is 15483887.
The LBA and CHS values must be equal.
The program has verified that the LBA value is correct and can fix the CHS value.

Would you like The program to fix this error?

[Yes] No
----------------------------------------------------------------------

----------------------------------------------------------------------
Te partition table error was successfully fixed!
[OK]
----------------------------------------------------------------------

----------------------------------------------------------------------
The program has detected an error 116 on the partition starting at sector 74949840 on disk 1.

The starting LBA value is 74949840 and the CHS value is 15483887.
The LBA and CHS values must be equal.
The program has verified that the LBA value is correct and can fix the CHS value.

Would you like The program to fix this error?

[Yes] No
----------------------------------------------------------------------

----------------------------------------------------------------------
Te partition table error was successfully fixed!
[OK]
----------------------------------------------------------------------

3.Windows XP のリカバリー。(起動時に、F11 を押す。約 2時間)

4.FreeBSD の再インストール

先のインストールでは、/ が、/dev/ad0s4a になっているが、
この時点で / は、/dev/ad0s3a である。そのため、FreeBSD が正常に起動できない。
Install CD-ROM で起動し、
Custom から Partition W Yes BootMgr
            Label     MountPoint SoftUpdates
を再設定してもダメだったので、再インストールした。
mount コマンドでなんとかなるような気もする。

4.D:ドライブを FAT32 でフォーマット

# cd /dev
# ./MAKEDEV ad0s5
# mkdir /wind
# chmod 775 /wind
# mount -t msdos /dev/ad0s5 /wind

5.CD-R/RW & DVD 用のソフトをインストール(Windows XP)

6.FreeBSD の各種ソフトをインストール

6.1 XFree86 4.3.0

    # pkg_add net/cvsup-16.1f
    SUPFILE の準備(/usr/local/etc/supfile-xfree86cvs)
      ---------- ここから ----------
      *default release=cvs
      *default host=anoncvs.xfree86.org
      *default base=/usr/local/src/xfree86-cvsroot
      *default prefix=/usr/local/src/xfree86-cvsroot
      *default delete use-rel-suffix
      *default compress

      *default tag=.

      xc-all
      ---------- ここまで ----------

    # mkdir -p /usr/local/src/xfree86-cvsroot
    # cvsup  -g -L 2 -h host -p port /usr/local/src/xfree86-cvsroot
     (host と port は必要に応じて指定する。)
     (-g   : X を使わない。)
     (-L 2 : 冗長なメッセージを出力する。)
    # cd /usr/local/src/xfree86-cvsroot/xc
    # make World >& world.log &    (# tail -f worold.log)
    # make install >& install.log  (# tail -f install.log)

6.2 packages

6.3 ports の cvsup

6.4 ユーザーの設定
    # vi /etc/group
    # vipw


dserver
----------------------------------------------------------------------
  /usr/local/share/dict/cdrom/cdchujiten/chujiten/data/honmon
  /usr/local/lib/dserver/dserver_access
  /usr/local/lib/dserver/setup.sh (chmod +x)
    You have to do 4 things before using dserver.
    1. Add 'ndtp    2010/tcp' to /etc/services.
    2. Add startup command of dserver to /usr/local/etc/rc.d/
    3. Add startup configration of mule-client to site-start.el.
    4. Mount cdrom (or copy files) to /usr/local/share/dict/cdrom/.
    
    Updating /etc/services
    Do you like to update /etc/services automatically? (y/n) [y]
    
    original file is saved in /etc/services.bak
    
    Adding startup shell script to /usr/local/etc/rc.d/
    Do you like to add startup shell script automatically? (y/n) [y]
    
    dserver.sh is added to /usr/local/etc/rc.d/
    Now startup configuration is done.
    Remember to mount cdrom to /usr/local/share/dict/cdrom.
    
  pkg_add ja-diclookup-emacs20-2.3.4b8

  /usr/local/share/doc/diclookup-emacs20//setup-diclookup.sh (chmod +x)

+------------------- ja-diclookup setup --------------------------------------+
|You have to install appropreate startup code for diclookup-mule.
|This setup script automatically it to:
|/usr/local/share/emacs/20.7/site-lisp/site-start.el.
|
|Are you sure?
+-----------------------------------------------------------------------------+
|                        [ Yes ]         No    
+-----------------------------------------------------------------------------+

+------------------- ja-diclookup setup --------------------------------------+
|original file is saved in /usr/local/share/emacs/20.7/site-lisp/site-start.el.
+-----------------------------------------------------------------------------+
|                              [  OK  ]
+-----------------------------------------------------------------------------+

/usr/local/share/emacs/20.7/site-lisp/site-start.el の修正
   "od-chujiten" … → "od-chujiten64-epw"

reboot

X-terminal からでも、emacs -e online-dictionary で使用できる。

------------------------------------------------------------
emacs20 で日本語をサーチする場合、
C-s のあと Enter を押して C-o で Canna を起動すればよい。
------------------------------------------------------------


XFree86 4.2.99.902

ftp.xfree86.org/pub/XFree86/snapshots/4.2.99.902/binaries/FreeBSD-4.x/
の下をすべて取って来る。(binary モード)

# sh Xinstall.sh -check

# sh Xinstall.sh
      :
== Extracting /tmp/XC/Xbin.tgz ==
== Extracting /tmp/XC/Xlib.tgz ==
== Extracting /tmp/XC/Xman.tgz ==
== Extracting /tmp/XC/Xdoc.tgz ==
== Extracting /tmp/XC/Xfnts.tgz ==
== Extracting /tmp/XC/Xfenc.tgz ==
== Extracting /tmp/XC/Xxserv.tgz ==
== Extracting /tmp/XC/Xmod.tgz ==
== Extracting /tmp/XC/Xvar.tgz ==
Checking for post-release updates ...
Checking for optional components to install ...
Do you want to install Xfsrv.tgz (font server)? (y/n) [y] n
Do you want to install Xnest.tgz (Nested X server)? (y/n) [y] n
Do you want to install Xprog.tgz (programmer support)? (y/n) [y] n
Do you want to install Xprt.tgz (X print server)? (y/n) [y] n
Do you want to install Xvfb.tgz (Virtual framebuffer X server)? (y/n) [y]
== Extracting /tmp/XC/Xvfb.tgz ==
Do you want to install Xf100.tgz (100dpi fonts)? (y/n) [y]
== Extracting /tmp/XC/Xf100.tgz ==
Do you want to install Xfcyr.tgz (Cyrillic fonts)? (y/n) [y]
== Extracting /tmp/XC/Xfcyr.tgz ==
Do you want to install Xfscl.tgz (Scaled fonts (Speedo, Type1 and TTF))? (y/n) [y]
== Extracting /tmp/XC/Xfscl.tgz ==
Do you want to install Xhtml.tgz (Docs in HTML)? (y/n) [y]
== Extracting /tmp/XC/Xhtml.tgz ==
Do you want to install Xjdoc.tgz (Docs in japanese)? (y/n) [y]
== Extracting /tmp/XC/Xjdoc.tgz ==
Do you want to install Xps.tgz (Docs in PostScript)? (y/n) [y]
== Extracting /tmp/XC/Xps.tgz ==

You appear to have a termcap file: /usr/share/misc/termcap
This should be edited manually to replace the xterm entries
with those in /usr/X11R6/lin/X11\etc\xterm.termcap

Note: the new xterm entries are required to take full advantage
of new features, but they may cause problems when used with
older versions of xterm.  A terminal type 'xterm-r6' is included
for compatibility with the standard X11R6 version of xterm.

On some platforms #e.g., Linux), the OpenGL standard requires
that the GL shard library and header files be visible from the
standard system lib and include directtories (/usr/lib and
/usr/include).  This can be done by installing links in those
directories to the files that have veen installed under /usr/X11R6.

NOTE: installing these links will overwrite existing files or
links.

Do you wish to have the (new) links installed (y/n)? [n]

Checking if compatibility links for the FreeType2 library are needed ...

Running ldconfig

Updating the fonts.dir file in /usr/X11R6/lib/X11/fonts/local...
Updating the fonts.dir file in /usr/X11R6/lib/X11/fonts/misc...

if you are going to use rstart and /usr/X11R6/bin isn't in the
default path for commands run remotely via rsh, you will need
a link to rstartd installed in /usr/bin.

Do you wish to have thik link installed (y/n)? [n]

Installation complete.

----------------------------------------------------------------------

x11/kdebase3

make

make WITHOUT_XINERAMA=yes
----------------------------------------------------------------------
lpt0 を使用できるようにする。(June/10/'03)

BIOS Setup → Config → Palallel port
Base I/O address 3BC → 378

こうしないと、boot 時に以下のメッセージが出て、lpt0 が使えない。
boot -v
        :
ppc0: parallel port found at 0x3bc
ppc0: cannot reserve I/O port range
ppc0: >Plarallel port>faild to probe at port 0x3bc - 0x3c3 irq 7 on isa0
        :

変更しても、Windows xp で支障はない。

# fb0 が 0x3c0 から使うので、ぶつかっているのかもしれない。
----------------------------------------------------------------------