ThinkPad 530CS  Linux

܂Ă₷

tetsu@cauchy.nslab.ntt.jp

ׂЂ̂

hironobu@ap.isl.melco.co.jp

v1.01, 1996/02/09

Revision History                                                       
Revision 1.01                        1996N29                      
̕                                                               
Revision 1.00                        1996N22                      
pre Release                                                            

͕̕M҂炪L ThinkPad 530CS  Linux CXg[
Ƀ̂܂Ƃ߂̂łBꂩ ThinkPad 530CS  Linux C
Xg[Ďgl̃qgɂłȂ΁AƎvĂƂ肠J
邱Ƃɂ܂B

    Note: ͂̕ȂȑOɏꂽ̂Ȃ̂ŁA܂ǂ Linux 
    ɂ͂Ă͂܂Ȃӏ܂B (JF Project)
   
 

Table of Contents
͂߂
1. Slackware-3.0̃CXg[ & XFree86̐ݒ
   
    1.1. ̎
    1.2. ̂̏
    1.3. Linux ̃CXg[
    1.4. Œ̊ݒ
    1.5. X ̊ݒ
    1.6. ̑̃P[X
   
2. VXe̐ݒ & JE-0.9.7j ̃CXg[
   
    2.1. kernel ̍č\z
    2.2. pcmcia-cs ̍Đݒ
    2.3. APM Ή̃AvP[V
    2.4. JE-0.9.7j̃CXg[Aݒ
   
3. ݒt@C̗
   
    3.1. /etc/XF86Config̗
    3.2. ~/.xinitc̗
    3.3. ~/.fvwmrc̗
   
List of Examples
1-1. }1 DOSp[eBV̕

 

Chapter . ͂߂

͕̕M҂炪L ThinkPad 530CS  Linux CXg[
Ƀ̂܂Ƃ߂̂łBꂩ ThinkPad 530CS  Linux C
Xg[Ďgl̃qgɂłȂ΁AƎvĂƂ肠J
邱Ƃɂ܂B

܂ɂĂ̂肾ŎvtĂ琔ō쐬̂ŊԈႢ
͎v܂AM҂̃}VŒ킵Ƃ̋L^ƂāA̕ƈꏏ
ɐčs\ɂȂĂ܂̂(sɃo[WAbvčs
\ł)A񂪂͏L 2 l܂Ń[B

̕ɏoĊF̊łǂȂ΍KłB (ׂЂ
̂)

͈̕ȉ̗l3͍\ɂȂĂ܂BA͏͂ɂĎ
RłAeɈѐ邩m܂񂪌䗹B


  1   Slackware-3.0̃CXg[ & XFree86̐ݒ (܂)      
  2   VXe̐ݒ & JE-0.9.7j̃CXg[    ()        
  3   ݒt@C̗                            (܂)      


 

Chapter 1. Slackware-3.0̃CXg[ & XFree86̐ݒ

]́AuPCMCIA ̃XbgTum[g PC  Linux CXg[
ۂ́AEthernet J[hp NFS ōsȂ̂yvƌĂ
܂BƂ낪APCMCIA  SCSI J[hΉ boot/rootdisk 
ɎāA SCSI  CD-ROM ̃CXg[̕ȒPɂȂĂ
܂B

PCMCIA  SCSI J[h SCSI  CD-ROM hCu茳ɂ(܂͐l
؂ė)ĺA CD-ROM ̃CXg[Ă݂ĉ
B

{͂ł́AThinkPad530CS (ȉ 530CS )ɁAPCMCIA  SCSI J[h CD-ROM
hCupāASlackware-3.0  XFree86 CXg[@
܂B

CD-ROM ƂẮALASER5 oĂAuLINUX+JE4(1995/12)v(ȉ
JE^4 )g܂B CD-ROM ɂ́ASlackware-3.0AJE0.9.7 ܂܂Ă
܂B


  uLINUX+JE4(1995/12)v                                            
  : LASER5oŋ                                              
  101 scO_c3-6-10 S.C.Cr2F                      
  TEL 03-5256-1663                                                  
  FAX 03-5256-5524                                                  


Ethernet J[hp NFS ł̃CXg[@AThinkPad 230Cs (ȉ
230Cs ) Canon INNOVA ւ̃CXg[@ɂẮAႤ_ʂɉ
܂B

 

1.1. ̎

 E 530CS {
   
    2607-7FK(=20MB,HD=700MB,Windows95vCXg[f)
   
 E PCMCIA  SCSI J[h
   
    Qlogic Fast!SCSI PCMCIA-10 
    Adaptec SlimSCSI (APA-1460)
   
 E CD-ROM hCu
   
    Logitec LCD-M500(SCSI, 2{)
    OtANeBu^[~l[^ 
   
HD́A

 E Windows3.1+DOS ̂
   
 E Windows95 ̂
   
̂ǂ炩̎gĂƉ肵Ă܂B OS Ăl
́AȂ̃XLƎv܂̂ŁA{KXǂ݂ĉB

fBXNhCu DOS ł̖.

tbs[fBXN (FD)     :hCu A
n[hfBXN (HD)     :hCu C
Ot CD-ROM hCu (CD) :hCu D

 

1.2. ̂̏

[pӂ]

 a. 530CS
   
    Windows 3.1, Windows 95 f̂ǂłB 
    OS/2 f̂Ƃ͕Ȃ(ĂȂ̂)B
   
 b. PCMCIA  SCSI J[h(ȉ͎̂̂т)
   
    Qlogic Fast!SCSI PCMCIA-10 
    Adaptec SlimSCSI (APA-1460)
    New Mesia Bus Toaster SCSI 
   
 c. SCSI ̊Ot CD-ROM hCu
   
    SCSI J[h̃P[uƃRlN^̌`󂪍`FbNB^[~l[^
    p[ł̂ł邱ƁB
   
 d. FD (2HD  3 ȏ)
   
 e. JE^4
   
 

1.2.1. FD ̏

 1. boot/rootdisk
   
    PCMCIA p boot/rootdisk ȉ玝ė܂B ftp://
    ftp.kuis.kyoto-u.ac.jp/Linux/NotePC/pcscsi20i.gz
   
    A
   
      C:> GZIP.EXE -DV PCSCSI20.GZ                              
   
    Ƃĉ𓀂ARAWRITE  FD ɏ݂܂BGZIP ́AJE^4 ̒Ȃ
    ΁A /install/gzip.exe ɂ܂B
   
    FD ɏ݃veNgāuSlackware-3.0 boot/rootdisk
    (pcscsi20i)vƂłĂ܂B
   
 2. FIPSpFD
   
      C:> FORMAT A: /S                                          
   
    ŁADOS ̋NpFD쐬A̒ɁAJE^4 ̒ /tools/fips12.zip
    𓀂̂Rs[܂B
   
    FD ɏ݃veNgāuFIPS12vƂłĂ܂B
   
 3. SVGA_for_230.tar.gz
   
    230Cs ppb`LbgALCDʊ֌W̃c[ė܂B ftp:/
    /ftp.lab.kdd.co.jp/OS/Linux/TP230CS/230kits/SVGA_for_230.tar.gz
   
    Atbs[fBXNɃRs[Ă܂B
   
 

1.2.2. HD ̏

ȍ~̍Ƃ́ArŃobe؂ꂪNȂ悤AAC A_v^t
sȂĉB

 

 E [obNAbv]
   
    530CS  HD ɓĂA̍쐬t@CɂẮAKo
    bNAbvĉB
   
    HD ɂ́ADOS,Windows, ThinkPad pvO,܂\tgv
    CXg[Ă܂BÔ߃obNAbvĂ܂傤
    B (́Aň̏ꍇł𕥂Ύɓ܂)
   
 E [HD̐]
   
    LinuxCXg[邽߂ɕKv HD ̋󂫗eʂ̖ڈ͈ȉ̒ʂ
    ł(Agɂ܂)B
   
      X EBhEVXe(ȉ X Ɨ)gȂȂ
       
        50MBȏ
       
      X gȂ
       
        140MBȏ
       
 

obNAbvȂ΁Asvȃt@C͎v؂ď܂傤Bg
ȂȂAWindows ̂łBɂ肩Ȃ̗eʂ̋󂫂
܂B

HD ̐ɂẮAӎ܂B

 E (1) DOS 炢͓悤ɂĂB
   
    Linux 悤ɂȂĂA DSP ⍂xȓd͋@\ (APM) 
    ݒύXȂǂ̂߂ DOS ̃vOKvłBDOS オ
    ߂ɕKvȍŒ̃t@CƁAȉ̃vO͏Ȃŉ
    B
   
    Ă͂Ȃ
   
    
      DOS             : オxłłB                
      DEFRAG.EXE      : Ŏg܂B                            
      PS2.EXE         : APMAVA|[g̐ݒ蓙               
      MWGAMES.EXE     : DSP̃TEguX^[[hݒ/
    
   
 E (2) nCol[Vt@C쐬ĂB
   
    530CS ł́A̓e HD ɏނƂŁAdCS
    ƂȂAƏԂۑĂƂł܂B̋@\nCol
    [VƌĂт܂B
   
    530CS ̃nCol[V@\ł́Ae DOS ̃p[eBV
    ɂAnCol[Vp̃t@C(Ȃt@C)ɏ
    ܂B̂߁ADOS p[eBVȂAƂĂ
    ɃnCol[Vt@CȂ肷ƁAnCol[V
    sɏI܂B
   
    ʂ̓nCol[Vt@Cłɂ͂łAÔ߁A
    Ă܂B
   
    nCol[Vt@C̍쐬@́AHD  C hCȕꍇAPS2 R
    }h HFILE C IvVtČĂяo܂B+1MB炢
    ̃TCÝAȂt@C(pm_hiber.bin)ł܂B
   
      C:\> PS2 HFILE C                                          
   
    łɂꍇ́Aė܂ʂɖ肠܂B
   
ȂAʂɂănCol[Vpt@C̑傫Ⴄ̂ŁA
Ń𑝐݂ꍇɂ́ÃR}hĎsKv܂B
݂̗\̂ꍇADOS p[eBV̗eʂȂȂȂ
ɒӂĉB

 

1.2.3. DOSp[eBV̍œK(DEFRAG)

DOSp[eBV̌؂ċ󂫂DOSp[eBVƂA
Linuxpɂ܂B

Example 1-1. }1 DOSp[eBV̕

 ===================      ===================                          
                           DOSp[eBV(gp)                     
                     FIPS      (400MB)                                 
  DOSp[eBV     -------------------                          
      (720MB)              DOSp[eBV()                     
                               (300MB)                                 
 ===================      ===================                          

HD  DOS ̃t@Cꂢɏォl߂ĂȂƁA󂫗eʂ̊
 Linux p[eBVȂĂ܂܂B

DEFRAG ƂvOtė̂ŁAs܂BDEFRAG ́A

Windows95 Ȃ΁A

  X^[g/ANZT/VXec[/ftO                       
  (ꏊ́AC:\WINDOWS\DEFRAG)                                       


Windows3.1Ȃ΁AWindowsIāADOS

  C:> C:\DOS\DEFRAG                                                    

Ƃ͎wɂāAn[hfBXNœKĂB

 

1.2.4. DOS p[eBV؂l߂(FIPS)

DOS p[eBV؂l߂ɂ́AFIPS g܂Bxg
ɂ̓gu͂܂łAt@Cj󂷂鋰ꂪȂƂ͌
Ȃ̂ŁAdvȃt@C̃obNAbv͕KĂĉB

o傪łAFIPS p FD ŋNAFIPS N܂B

  A:\> FIPS                                                            

Ƃ͕\(p)ɏ]čƂsȂĉBgp DOS p[eBV
̃TCYɋl߂邩𕷂邾Ȃ̂ŁAJ[\L[Ől
āA^[ΏIłB

    : FIPS ̓p[eBV͂̕ł܂A͂ł܂BDOS
    p̃GA؂l߉߂Ȃ悤ӂĉB
   
 

1.3. Linux ̃CXg[

1.3.1. u[g` root ł̃OC

boot/rootdisk ċN܂Bboot: o炻̂܂ ENTER 
B(ȑÕo[Wł́Aramdisk=2000 KvłA̓ft
Hg 2000 ɂȂ݂łB)

    : ̎_ł́AL[}bvp 101 L[{[hpɂȂĂ
    łӉB
   
rootdisk ̓e ramdisk ɎIɓǂݍōŏII login vvg
ôŁAroot ŃOC܂B

  slackware login: root                                                

 

1.3.2. Linux p[eBV쐬 (fdisk)

 root ŃOCłAfdisk  Linux p[eBV쐬
BȒPɁAswap  / ɕ邱ƂƂ܂B

 ===================       ===================                         
  DOSp[eBV          DOSp[eBV /dev/hda1               
      (400MB)        fdisk      (400MB)                                
 -------------------     -------------------                         
  DOSp[eBV()    Linux-swap (20MB) /dev/hda2               
      (300MB)                Linux-/    (280MB)/dev/hda3               
 ===================       ===================                         
                                                                       
           }2 Linuxp[eBV̕                               

ep[eBV̗eʂƂẮA

 E swap
   
    ʓIɈȉ̂悤ɌĂ܂B
   
      ʂ16MBȉ̏ꍇ=16MB
       
      ʂ16MB̏ꍇ =ʂƓ
       
    ł́At(20MB)Ɖ肵āA20MBswap邱Ƃɂ
    ܂B
   
 E /
   
    cSĂ𓖂Ă܂B
   
fdisk̎gɂẮAJE^4̃}jAQƂĉB

  # reboot                                                             

ōċN܂Bboot/rootdisk ŗグAroot ŃOCƂ܂
iŉB

fdisk ŊmFĈȉ̂悤ɂȂĂΐłB

  Disk /dev/hda: 32 heads, 63 sectors, 700 cylinders                   
  Units = cylindres of 2016 * 512 bytes                                
                                                                       
     Device Boot  Begin   Start    End  Blocks   Id  System            
  /dev/hda1   *       1       1    394  397120+   6  DOS 16-bit >=32M  
  /dev/hda2         395     395    415   21168   82  Linux swap        
  /dev/hda3         437     437    700  266112   83  Linux native      

ꍇ́Afdisk 蒼ĉB

 

1.3.3. CD-ROMhCu̔F

CD-ROM hCu SCSI-ID  0`6 ̓̂ǂꂩɂĂ܂BCD-ROM h
CuȂۂ́Aȉ̂悤ɍsȂ܂B

 1. CD-ROMhCu̓d؂B
   
 2. SCSI J[h CD-ROM hCuP[uŐڑB
   
 3. CD-ROM hCu̓dB
   
 4. SCSI J[h 530CS ɍށB
   
O͂̋tłB

ނƉʂɂ낢oė܂B

Qlogic  Fast!SCSI ̏ꍇ́A

  # Jan 28 15:23:38 cardmgr[25] initializing socket 0                                          
  Jan 28 15:23:38 cardmgr[25]: socket 0: Qlogic FastSCSI                                       
  Jan 28 15:23:38 cardmgr[25]: executing: '/sbin/insmod/lib/modules/1.2.13/pcmcia/qlogic_cs.o' 
  Ql: Using present base address of 2e0                                                        
  Ql: Using present IRQ 3                                                                      
  scsi0: Qlogic Driver version 0.43, chip 50 at 2E0, IRQ 3, TPdma:1                            
  scsi : 1 host.                                                                               
    Vendor: SONY     Model: CD-ROM CDU-561    Rev: 1.7X                                        
    Type:   CD-ROM                            ANSI SCSI revision: 02                           
  Detected scsi CD-ROM sr0 at scsi0, id 3, lun 0                                               

AdaptecSlimSCSȈꍇ́A

  # Jan 28 15:32:05 cardmgr[25] initializing socket 0                                            
  Jan 28 15:32:05 cardmgr[25]: socket 1: Adaptec APA-1460 SlimSCSI                               
  Jan 28 15:32:05 cardmgr[25]: executing: '/sbin/insmod /lib/modules/1.2.13/pcmcia/toaster_cs.o' 
  aha152x: processing commandline: ok                                                            
  detection complete                                                                             
  aha152x: vital data: PORTBASE=0x340, IRQ=3, SCSI ID=7, reconnect=enabled, parity=enabled       
  scsi0 : Adaptec 152x SCSI driver; $Revision: 1.6 $                                             
  scsi : 1 host.                                                                                 
    Vendor: SONY     Model: CD-ROM CDU-561    Rev: 1.7X                                          
    Type:   CD-ROM                            ANSI SCSI revision: 02                             
  Detected scsi CD-ROM sr0 at scsi0, id 3, lun 0                                                 

`FbÑ|CǵA

 E /sbin/insmod ...ƂsŁAK؂ȃhCoNĂ邱ƁB
    ꂪoȂƁAJ[hFĂ܂B
   
 E Detected scsi CD-ROM ...Ƃso邱ƁBoȂ́ACD-ROM h
    Cu̓d̓YASCSI-ID ̕sA^[~l[^ڑĂ
    AȂǂ`FbNĉB
   
 

1.3.4. setup

̓fXNgbv@̃CXg[菇ƓlłB

 1. Slackware ̃pbP[W̓Ă CD-ROM (JE^4 Ȃ DISK 2) 
    CD-ROM hCuɓB
   
 2. setup NB
   
      # setup                                                   
   
 3. QUICK [h̑I
   
    QUICK IсAQUICK [hɂ܂B
   
 4. KEYMAP  106 L[I
   
    101 L[̃uCh^b`̂łlłȂ΁AKEYMAP IсA
    j106-d.map.gz I܂BŃL[}bvIĂƁAC
    Xg[ 106 L[{[h̃L[}bvg悤ɂȂ܂B
   
 5. ADDSWAP I
   
    ɑS Yes  OK œ܂BŌ "CONTINUE WITH
    INSTALLATION?" ƕĂ̂ŁAYes Iт܂B
   
 6. root p[eBV̎w
   
    /dev/hda3 Iт܂BtH[}bg̎́ACheck Iŕsǃub
    N`FbN邱Ƃ߂܂BINODE DENSITY  4096 ł
    B
   
 7. DOS p[eBṼ}Eg
   
    /dev/hda1  DOS p[eBVǃ}Eg邩AƕĂ
    ŁAYes ƓA/dev/hda1 w肵܂BǂɃ}Eg邩́A/
    dosc ȂǂƓ܂B̃p[eBV𕷂Ă q Ői݂
    B
   
 8. \[XfBȂI
   
    5  Install from CD-ROM Iт܂Bǂ CD-ROM ƕĂ̂
    Ascan IԂ /dev/scd0 o܂BJE^4 ̏ꍇ́A slakware
    Iт܂B
   
 9. fBXNZbg̑I
   
     JE ̐ĺAȉ̂-ȊO-I܂BHD ̋
    eʂȂȂ΁AXɌ炷Kv邩m܂B
   
    
      [CUS](֌WȂ)                                             
      [E]  (JEɂ)                                             
      [K]  (2͂ŐVJ[l邽߁Ał͓܂)  
      [Q]  (EthernetڑȂȂsv)                         
      [T]  (JEɂ)                                             
      [TCL](JEɂ)                                             
      [XD] (HD̐ߖ̂߁BĂł)                     
      [XV] (HD̐ߖ̂߁BĂł)                     
    
   
10. efBXNZbg̃pbP[WI
   
    e̍D݂ɍ킹đI܂BȂꍇ́ACXg[
    ƂɂĂΖ肠܂B
   
    efBXNZbg̒ӎ܂B
   
    
      [A]   J[lscsiidenet̂ǂ炩IԁB                
            pcmciáA2͂œꊷ̂œȂB                           
            XCXg[Ȃ΁Agpm-Ȃ-ƁB                  
      [AP]  ɂȂ                                                          
      [D]   CRpĆÃvÕCXg[̂߂ɕK{łB   
      [F]   ɂȂ                                                          
      [N]   ɂȂ                                                          
      [X]   XT[óAx312svgaIB                                       
            ̑̃vOȂ(̖)́Ał邾SB          
      [XAP] ɂȂ                                                          
      [Y]   dooḿADSP̓mFɎĝŁAГ邱:-)B        
            bsdgamesƁAfortuneCXg[Alogin̂тɃb  
            Z[W\邪CɂȂ(/etc/profile, /etc/csh.login   
            Ύ~߂܂)B                                         
    
   
11. RtBO[V
   
    ɏĐݒ܂łĂ܂܂傤Bɒӂ_܂
    B
   
      }EX̎ނ́APS/2(C&T 82C710 or PS/2)IԁB
       
      f̓ftHgł COM2 łBXs[h 38400 ł
        v܂BfgƂ񍐂͂܂Ă܂B
        ЃgCĉB
       
      lbg[N̐ݒ́Aloop back only IԁBPCMCIA  Ethernet
        J[h̐ݒ͂ł͂ł܂̂ŁB
       
      gpm 邩ǂĂ̂ŁAX l NO IԁB
       
      LILÕCXg[́A
        
          BeginIA<Enter>                      
          LinuxIA/dev/hda3wB                    
          DOSIA/dev/hda1wB                      
          InstallIAMBRIAԂ5bIB       
        
       
    ŃCXg[͏IłBSCSI J[h𔲂Atbs[𔲂
    Ad OFF Ă݂܂傤B}ɓdXCb`A
    菇ɏ]ĉB
   
12. d OFF ̍ۂ̐S
   
    Linux ̓}`^XN OS Ȃ̂ŁAɍƂsȂĂȂłA
    œĂvZX HD ւ݂̏sȂĂ邱Ƃ
    B܂A HDɏ񂾂̃f[^A܂LbV()
    ɂAHD ւ͏܂ĂȂƂ܂B̂߁A}ɓd
    ؂HD̓ej󂳂ꂽAN肷邱Ƃ܂
    B
   
    d؂鎞́Aroot ŃOCāA
   
      # shutdown -h now                                         
   
    ƑłA΂炭҂āA
    
      System halted                                         
      INIT: No more processes left in runlevel 0            
    
    ̗\ĂAdXCb`ĉB
   
13. ɋN邩̊mF
   
    d ON 邩ADOS  Windows ōċNsȂƁALILO N
    ܂B
   
    LILO: ƃvvgoāAĂ Linux オ܂Broot
    ȊÕAJEg͂܂̂ŁAroot ŃOCāAreboot s
    ܂傤B
   
    LILO: ƏoƂŁA^uL[ƁALinux DOS ƕ\̂
    A DOS<Enter> ƑłāADOS p[eBV̒ OS オ邩
    `FbN܂傤B̗ł Windows95 ɗオ܂B
   
 

1.4. Œ̊ݒ

1.4.1. root ̃pX[h̐ݒ

root ͊ɓo^Ă܂ApX[hۂłBroot ̃pX[
hYƂƖʓ|łATdɐݒ肵܂B

setup  KEYMAP  106 L[{[hIl͂̂łAłȂ
ꍇAL[gbv̕ƈႤ͂邱ƂɂȂ܂Bł
݂āAɋL̃L[(ʂ=+-/*Ȃ)Ŏvʂ̕o邩ǂm
FĂpX[h̐ݒɈڂ܂B

root ̃pX[hݒ肷ɂ́Aroot ŃOCāApasswd R}h
s܂B

  # passwd                                                             


  Enter new password:       <Enter>                                 
                      ^^^^^^܂                              
  Re-type new password:     <Enter>                                 
                      ^^^^^^܂                              


 

1.4.2. [U̓o^

 root ōƂ̂͊댯Ȃ̂ŁAadduser sAʂ̃[U
̓o^܂B

  # adduser                                                            

ɓčsƁA/etc/passwd Ƀ[Uo^A /home ɃfBN
gA{IȐݒt@CRs[܂B͂ł邾
root ł̍Ƃ͍sȂȂ悤ɂ܂傤B

ȍ~A% ̃vvgňʃ[UA# ̃vvg root ܂B

 

1.5. X ̊ݒ

1.5.1. X T[ȏI XF86Config ̍쐬 (xf86config)

xf86config NA/var/X11R6/bin/X ̃V{bNN(XF86_SVGA)
ƁA/etc/XF86Config ̍쐬sȂ܂B

  # xf86config (rootŎs)                                            

rŎsA/etc/XF86Config Ă xf86config Ďs
B

530CS ł́Aȉ̐ݒō쐬 XF86Config ɁA1sA1sC
邾œ܂B

  }EX̎            : PS/2 Mouse                                 
  Emulate3Buttons         : y                                          
  Mouse device            : <Enter>                                    
  ... for the Alt keys?   : n                                          
  hsync                   : 31.5 (ԒႢ̂I)                    
  vsync                   : 40-150 (ԋ̂I)                  
  monitor definition      : <Enter>                                    
  vendor name             : <Enter>                                    
  model name              : <Enter>                                    
  look at... card database: y                                          
  card definition         : Cirrus Logic GD62XX (laptop)               
  XT[o                 : XF86_SVGA                                  
  set the symbolic link?  : y                                          
  set in /var/X11R6/bin?  : y                                          
  video memory            : 512K                                       
  card definition         : <Enter>                                    
  vendor name             : <Enter>                                    
  model (board) name      : clgd6205(ŒT₷邽)           
  clock chip              : <Enter>                                    
  X -proveonly now?       : y                                          
  resolution              : S640x480ɂ                          
  write it to /etc/XF86...: y                                          

ł /etc/XF86Config ̒ clgd6205 ƂsTǍ
1sǉ܂B

    Boardname   "clgd6205"                                             
    Chipset     "clgd6205"  ǉ                                     
    #VideoRam   512                                                    

Section "Screen" ŁADriver "svga" ƂƂ́A

    Virtual     800 600                                             


ƂsA

    Virtual     640 480                                             

ƒ܂B

ŏ͔ OK łBx X NĂ݂܂BOt@Cɗ
ĂŊmFł܂B

  % startx >& startx.log                                               

ƑłƁAhȐF̉ʂoė܂B܂J[\𓮂ƃ``
܂A͌ŒƂɂ܂B

oėȂꍇ́AX T[õV{bNNԈĂ邩A
XF86Config ̓êŁAȉ̂Ƃ`FbN܂B

 1. startx NfBNg̒ /etc/XF86Config Ƃ͕ʂ
    XF86Config ܂񂩁Hl[Ă܂B
   
 2. startx.log ̒āA
    
      SVGA: server for 8-bit colour SVGA ....               
    
    Ƃs܂H΁AX T[õV{bNN悪
    XF86_SVGA ɂȂĂ܂B
   
      % ls -l /var/X11R6/bin/X                                  
   
    ŊmFĉB
   
 3. startx.log ̒āA
    
      (**) SVGA chipset:  clgd6250                          
    
    Ƃs܂H΁A/etc/XF86Config ԈĂ܂B
    
      Chipset "clgd6205"                                    
    
    Ƃs邩ǂmFĉB
   
    ł߂Ȏ́Ap[gIII  XF86Config ̃Tv /etc ɃR
    s[ĉB
   
 

1.5.2. rfI`bṽNbN̐ݒ(vgaclk0)

ʂ̂𒼂߂ɂ́AX T[o (XF86_SVGA) ̃\[XɃpb`
Ă make ȂAvgaclk0 ƂvO root Ŏs邩̂
炩sȂ܂B

OtfBXvCȂꍇlƁAvgaclk0 gpق֗
Ǝv܂B

tbs[ɓĂASVGA_for_230.tar.gz ėāA

  % tar zxvf SVGA_for_230.tar.gz                                       
  % cd SVGA_for_230/ktakagi/gdset                                      
  % make                                                               
  % su (rootɂȂ)                                                    
  # make install (root)                                              

ŁA

 E /usr/local/bin/gdset
   
 E /usr/local/bin/vgaclk0
   
CXg[܂Bsetuid Kv邽߁Aroot ŃCXg[
ȂĂ͂Ȃ܂B

/usr/lib/X11/xinit/xinitrc.fvwm z[ .xinitrc ƂOŃRs[
ė܂B

  % cp /usr/lib/X11/xinit/xinitrc.fvwm ~/.xinitrc                      

āA#!/bin/bash ̍šɁAȉ̂悤3s܂B

  #!/bin/bash                                                          
  if [ -x /usr/local/bin/vgaclk0 ]; then   ǉ                      
          /usr/local/bin/vgaclk0           ǉ                      
  fi                                       ǉ                      

ŁAX NƁA܂B

fvwm ̐ݒς́A /usr/lib/X11/fvwm/sample_configs/
system.fvwmrc ȂǂAz[ .fvwmrc ƂOŃRs[ĂC
܂B

 

1.6. ̑̃P[X

1.6.1. NFS ł̃CXg[̂(̂)

Ethernet ɐڑł̐ĺAVȂ΁ASCSI J[hł͂Ȃ
A Ethernet J[h𔃂Ƃ߂܂BUNIX }V́Albg[N
ŐڑĂ{̖o܂B

 

 E Ethernet J[h
   
    PCMCIA  Ethenet J[hƂẮAȉ̂̂mFς݂łB
   
    3Com   3c589b                                                
    Accton EN2212(Ƃ̌݊i)                                  
    Melco  LPT-T                                                 
    IBM    Ethernet PCMCIA Card II (Credit Card Ethernet Adapter)
   
 E NFS ̂
   
     1. zXg}V /etc/hosts ɁA530CS  IP o^B
       
     2. zXg}V /etc/exports ɁACD-ROM ̃GgB
       
     3. nfsd N (Sun ̏ꍇ exports ̎s)B
       
ڂ́um[g PC ւ network  LINUX CXg[ HOWTOv
ނƂł傤B

\[XfBȂI̍ۂɁAInstall via NFS IȊÓACD-ROM 
̃CXg[ƓłB

 

1.6.2. 16FJ[ȀȂ@̏ꍇ

 8MB (4MB)̏ꍇApcscsi20i.gz ͎g܂B܂A
pcscsi20i.gz ł́A16 FJ[̃}Vŕ\ɂꍇ܂B
mN\ŉpł pcscsi14.gz ܂̂ŁAgĉ
B


  ftp://ftp.kuis.kyoto-u.ac.jp/Linux/pc-rootdisk-15Nov95/pcscsi14.gz


scsinet1  boot fBXNƂAboot vvgɑ΂āA͂
Enter ܂B

  boot: <Enter>                                                        
  VFS: Insert ramdisk floppy and press ENTER                           

ƏoApcscsi14.gz  FD ƓꊷāAENTER ܂B

106 L[Ή܂̂ŁAsetup  KEYMAP  106 L[Ił܂
BCXg[A2͂̃L[}bv̕ύX@ĎŐݒ肵ĉB

 

1.6.3. 230Cs̏ꍇ

 

 E fBXÑWIg
   
    boot vvgɑ΂āAfBXÑWIg͂Ȃ΂Ȃ
    Ƃ܂Bsvȏꍇ܂(BIOS o[ẄႢ?)B
   
      boot: hd=cyls,hds,secs                                    
   
    Cylinders, Heads, Sectors ɓׂl(fBXÑWIg)
    ADOS  QCONFIG s邱ƂŒׂ邱Ƃł܂B
   
      C:> QCONFIG /D | MORE                                     
   
    Windows95  QCONFIG ̃vO邩ǂ܂񂪁A
    FIPS Ől𒲂ׂ邱Ƃł܂B
   
    LILO ̃CXg[ Begin ̎ɁA
   
      hd=Cylinders,Heads,Sectors                                
   
    ͂܂B
   
 

1.6.4. Canon INNOVA ̏ꍇ

 E nCol[Vpp[eBV
   
    fBXNŏ 2 p[eBVɕĂA̕nC
    ol[Vp̃p[eBVƂȂĂ܂B͏Ȃ悤
    āAO̕ DOS p[eBVFIPSŋl߂܂B
   
 E XFree86 ̐ݒ
   
    X T[o XF86_VGA16 IA`bvZbg Trident  TVGA9000
    Iт܂B
   
    ƃRĉŁAȉQƂĉB
   
    
      http://www.yy.cs.keio.ac.jp/contrib/sanpei/how2800x600.html         
      ftp://ftp.phys.keio.ac.jp/pub/XFree86/800x600/800x600LCD-0.01.tar.gz
    
   
(܂Ă₷)

 

Chapter 2. VXe̐ݒ & JE-0.9.7j ̃CXg[

O͂ pcmcia ڑOt CD-ROM  Slackware-3.0 ̃CXg[
sȂ܂BSlackware-3.0 ŃCXg[ pcmcia pbP[W
2.6.3  Accton ݊ NIC J[hł̗pŖ肪̂ŁA̍ۂɐV
o[W@ɂĐ܂B

{͂̍ŌŁAJE^4  CD-ROM  JE-0.9.7j CXg[@ɂ
Đ܂B

 

2.1. kernel ̍č\z

Slackware-3.0 ŃCXg[ꂽ kernel ̃o[W͌Â̂ł܂
kernel ̍č\zsȂKv܂B͔rI肵ĂƂ
 1.3.57 CXg[邱Ƃɂ܂B

(MҒ)ŐV kernel  1.3.60 łAł͂܂ǂtĂȂ
 1.3.57 ŏЉĂ܂B

͈ȉ̃t@C (kernel\[X) ܂B

 E linux-1.3.42.tar.gz (UnixUser 1996.2 LibCD Vol.23)
   
 E patch-1.3.43.gz (ftp://ftp.tut.ac.jp/pub/Linux/packages/Kernel/
    v1.3)
   
 E patch-1.3.44.gz
   
 E patch-1.3.45.gz
   
 E patch-1.3.46.gz
   
 E patch-1.3.47.gz
   
 E patch-1.3.48.gz
   
 E patch-1.3.49.gz
   
 E patch-1.3.50.gz
   
 E patch-1.3.51.gz
   
 E patch-1.3.52.gz
   
 E patch-1.3.53.gz
   
 E patch-1.3.54.gz
   
 E patch-1.3.55.gz
   
 E patch-1.3.56.gz
   
 E patch-1.3.57.gz
   
č\z̕@́Akernel ̃\[Xc[ /usr/src/linux ܂Bv̂́A
w Linux x 265 y[Wɏ܂B

  # cd /usr/src                                                        
  # tar zxvf linux-1.3.42.tar.gz                                       
  # gzip -dc patch-1.3.43.gz | patch -p0                               
                                                                       
                                                                       
  # gzip -dc patch-1.3.57.gz | patch -p0                               

sȂƂ 1.3.57  kernel ̃\[Xc[ /usr/src/linux 
ɓWJ܂B

́Akernel ̍č\złBAw Linux x 264 y[Wɏ
܂B1.3.57 ł APM (Advanced Power Management) łɐ
pĂ܂̂œɃpb`Ă܂łB

  # cd /usr/src/linux                                                  
  # make config                                                        
  # make dep; make clean                                               
  # make zlilo                                                         
  # rdev -R /vmlinuz 1 (Kv)                                  

ɁAmodule(*.o) CXg[܂B

  # make modules                                                       
  # make modules_install                                               

ŏdvȂ̂͂ config ̐ݒłA1.3.57  [y/n/m] őI
̂Ȃ葽߂Ă܂By  kernel ɑgݍރhCoA n 
gݍ܂Ȃ́Am ̓W[Ƃđgݍނ̂łB

1.3.57  kerneld WɂȂĂ܂Bkerneld ̓W[ꂽ
hCo load/unload IɍsȂf[łBāAقƂ
ǂ̂̂W[ł悤Ȃ̂ŁAlIɂ͓]gȂA
KvȃhCo̓W[ kernel TCY邱Ƃ
܂B

ׂ̑̍ݒ̓fXNgbv}V̏ꍇƕςȂ̂ŁAڂ
Documentation ̉́AConfigure.help B

dvȂƂł pcmcia-cs ֌W CONFIG_MODVERSIONS  n ɂ܂B
܂A kerneld ֌W CONFIG_KERNELD  y ɂKv܂B̍
ɁAkerneld I񂾏ꍇAext2fs ܂ŃW[ƁANɂ͂܂
kerneld オĂȂƂɃ[gt@CVXe}Egɍs
ƃG[ɂȂ܂̂ŁA extsfs Ƃ minixfs Ƃ kernel ɑg
ł܂܂B (/sbin/kerneld/}EgȂƎsłȂ
)

mouse  psaux (PS/2}EX) ɊւĂ startx Ɏ insmod 
ȂłBȂȂV̂ĝ͓ȁB

̑́A530CS ł͏dvƎv APM ̊֘Aӂ܂B

 530CS ł͈ȉ̐ݒœĂ܂B


  CONFIG_APM                      yes                               
  CONFIG_APM_IGNORE_USER_SUSPEND  no                                
  CONFIG_APM_APM_DO_ENABLE        yes                               
  CONFIG_APM_CPU_IDLE             yes                               
  CONFIG_APM_DISPLAY_BLANK        no                                
  CONFIG_WATCHDOG                 yes                               


   
    : (CONFIG_WATCHDOGyesɂꍇ3قǎ⎖܂B)
   
 kernel 𗘗pƁAAPM @\LɂȂ܂B

܂Akerneld  y ɂăhCoW[ꍇAN
kerneld 𓮂Kv܂B

1.3.57 ȍ~ɑΉ kerneld ͈ȉ̃pbP[WɓĂ܂̂ŁA
肵ăCXg[܂傤B̃pbP[W pcmcia-cs ̍Đݒ
ۂɂdvł̂ŕKCXg[ĉB

modules-1.3.57.tar.gz (ftp://ftp.tut.ac.jp/Linux/packages/System)

  # cd /usr/src                                                        
  # tar zxvf modules-1.3.57.tar.gz                                     
  # cd modules-1.3.57                                                  
  # make                                                               
  # make install                                                       

ṒAkerneld Nɂׂrct@C̐ݒłB /
etc/rc.d/rc.S ̐擪Ɉȉ̍sǉ܂B

  if [ -x /sbin/kerneld ]                                              
  then                                                                 
        /sbin/kerneld                                                  
  fi                                                                   

Őݒ芮łB}Vu[gĂ݂܂傤BƓ
ꍇ́ASlackware-3.0 CXg[ɍ쐻u[gfBX
NŋN kernel ̍č\zēxsȂĉB

 

2.2. pcmcia-cs ̍Đݒ

APM ֌W̃AvP[V̐ݒ́AƂ肠񂵂ɂ JE-0.9.7j 
CXg[ɕKv pcmcia-cs pbP[W̃CXg[ɂĐɐ
܂B

͈ȉ̃pbP[W̃CXg[sȂ܂B

 E 
    pcmcia-cs-2.8.7.tar.gz                                    
    (ftp://ftp.tut.ac.jp/Linux/packages/System/laptops/pcmcia)
   
  # cd /usr/src                                                        
  # tar zxvf pcmcia-cs-2.8.7.tar.gz                                    
  # cd pcmcia-cs-2.8.7                                                 
  # make config                                                        
  # make dep                                                           
  # make all                                                           
  # make install                                                       

pcmcia-cs-2.8.7 ł́AATA tbVfBXNgƂł悤ɂ
݂ł(ł kernel pb`Kv)Bmsdos tH[}bg
ꂽ̂ɊւĂ read/write mFĂ܂B

APCMCIA HDD (TYPE III ̂) ȂǂIɂ͂̃hCoœ
v܂B (M҂͕nRȂ̂łȍȂ͔̂܂:-))

 E 
    ide-1.3.57.patch                            
    (ftp://hyper.stanford.edu/pub/pcmcia/extras)
   
kernel 1.3.57 ł́ASlackware-3.0 CXg[܂܂ƁAps  w
Ȃǂ proc ֌WgR}h܂B procps pbP[W
o[WAbvKv܂B

 procps-0.99.tgz (ftp://ftp.tut.ac.jp/Linux/packages/System) C
Xg[܂BSlackware-3.0 ̂܂܂ make ̂ɖ肪
̂ŁAWJƂ̃oCî܂܃CXg[܂Bx
ȎɂłmFĂ݂܂傤B

̏ԂŃ}Vu[g pcmcia-cs pbP[WLɂȂ܂
ŁACD-ROM oR JE-0.9.7j ̃CXg[sȂƂo悤ɂ
܂B

Slackware-3.0 ł /etc/rc.d/rc.M  pcmcia ̏sȂĂ̂
A rc.M ҏWȂ pcmcia ȍ~̏sȂ܂!

  # Initialize PCMCIA devices:                                         
  if [ -x /etc/rc.d/rc.pcmcia ] ; then                                 
    . /etc/rc.d/rc.pcmcia start                                        
  fi                                                                   

 . OKv܂B (dvł)

  # Initialize PCMCIA devices:                                         
  if [ -x /etc/rc.d/rc.pcmcia ] ; then                                 
    /etc/rc.d/rc.pcmcia start                                          
  fi                                                                   

 

2.3. APM Ή̃AvP[V

2.1  kernel č\zۂ APM @\Lɂ܂B 530CS
 APM @\LɂȂ̂łA𗘗pAvP[Vp
邱Ƃ\ɂȂ܂B

܂ APM ̊mFĂ݂܂傤B̃}Vł͈ȉ̂悤ɕ\
B

  /home/hironobu@popo% cat /proc/apm                                   
  BIOS version: 1.1                                                    
  Flags: 0x03                                                          
  Entry f920:0 cseg16 f000 dseg 9fc0 cseg len 6e00, dseg len 400       
  AC: on line                                                          
  Battery status: high                                                 
  Battery life: unknown                                                
  Battery flag: 0x01                                                   
  Battery life: unknown                                                

Battery life ̂ƂǂCɂȂ܂AƂ肠
}܂B

̃}Vł́Aȉ̃AvP[V܂B

 1.
    xbatt-1.0.tar.gz, xbatt.linux.diff.gz                              
    (ftp://theta.iis.u-tokyo.ac.jp/pub4/FreeBSD/2.0.5-RELEASE/ports/   
    distfiles)                                                         
   
    FreeBSD p̃obej^Ƃ Linux ppb`łBX œ삵
    B Linux p̃pb`ɂ proc f[^擾܂B
   
      # tar zxvf xbatt-1.0.tar.gz                               
      # zcat xbatt.linux.patch.gz | patch -p0                   
      # cd xbatt-1.0                                            
      # xmkmf                                                   
      # make                                                    
      # make install                                            
   
    xbatt.linux.diff.gz ł a-ftp TCgm͎̕܂ŘA
    B
   
 2. batt.el-0.2.1.tar.gz (Linux-ML)
   
    Mule gobej^łBX 𗘗pĂl xbatt 
    ܂A X ɁAkon  Mule Ȃǂ𗧂グĎgĂl
    ͕֗Ǝv܂B
   
      # tar zxvf batt.el-0.2.1.tar.gz                           
      # cd batt.el-0.2.1                                        
      # cd sample                                               
      # make                                                    
      # cp showbatt /usr/local/lib/mule/19.28/i486-JE-linux/    
      # cd ..                                                   
      # cp batt.el /usr/local/lib/mule/site-lisp/               
   
    showbatt  C ŏꂽ̂RpCĎg܂B܂AC
    Xg[fBNg JE-0.9.7j (q) ŃCXg[
    mule ɍ킹Ă܂B
   
    ƁA~/.emacs ҏWĈȉ̍sǉB
   
      (load-library "batt")                                     
      (show-batt)                                               
   
    batt.el CXg[ۂɁA/dev/apm_bios ꍇ͂
    Kv邩܂B
   
    "cat /proc/devices"  apm_bios  major number `FbN܂B
    ̃}VƉ̗l 63 ԂɂȂĂ܂B
   
      Character devices:                                        
       1 mem                                                    
       2 pty                                                    
       3 ttyp                                                   
       4 tty                                                    
       5 cua                                                    
       6 lp                                                     
       7 vcs                                                    
      10 mouse                                                  
      21 sg                                                     
      62 pcmcia                                                 
      63 apm_bios                                               
                                                                
      Block devices:                                            
       1 ramdisk                                                
       2 fd                                                     
       3 ide0                                                   
      11 sr                                                     
   
    # mknod /dev/apm_bios c 62 0                                
   
    ƂăfoCXt@C쐬ĉB
   
 3. apmd-2.1.tar.gz (ftp://ftp.tut.ac.jp/Linux/packages/System/laptops/
    apm)
   
    ̃pbP[W͂ǂ kernel-1.3.58 ȍ~p̃pbP[W炵ł
    A 1.3.57 œ܂B
   
      # tar zxvf apmd-2.1.tar.gz                                
      # cd apmd-2.1                                             
      # make                                                    
      # make install                                            
   
    CXg[vO͈ȉ̂̂܂B
   
    1)    /proc/apm ̓ẽtH[}b^Bł]茩₷ȂĂȂ 
    apm   B                                                         
    2)    APM BIOS j^Of[A󋵂syslogɏo͂B
    apmd  Ȃ̎ĝ͗]肢ɂȂłB                       
    3)    X ̃obej^B530CS ӖBbattery life 
    xapm  Ȃ̂ŁB                                                 
   
    Ȃ̂͂ۂǍDȐlłȂƓł傤B
   
 

2.4. JE-0.9.7j̃CXg[Aݒ

̏͂̍ő̖ړIł JE-0.9.7j ̃CXg[ & ݒsȂ܂B
PCMCIA SCSI ڑ̊Ot CD-ROM hCugpł悤ɂȂĂ܂
̂ŁACXg[͊ȒPłB

܂́AO CD-ROM  JE^4  Disk2  CD-ROM ACD-ROM hCu
AP[uAPCMCIA SCSI J[h( adaptec SlimSCSI )qœd
܂B

ɁA530CS  PC J[hXbgɃJ[h}܂BwsbxƉ
ăJ[hF܂B SCSI CD-ROM hCugp\ɂȂ܂
B

CD-ROM hCu mount Ă݂܂傤B

  # mount -rt iso9660 /dev/scd0 /cdrom                                 
  # cd /cdrom                                                          
  # ls                                                                 
  AUTOEXEC.BAT*  Introduction/  JG/          rr_moved/                 
  CONFIG.SYS     JE@            PCAT/        slackware/                
  Doc/           JE-0.9.7j/     TMENU.ITM    slakware@                 
  IO.SYS         JF/            TOWNS/       tools/                    

ƏoėΑvłBJE-0.9.7j ̃fBNgɈڂ܂傤B

  # cd JE-0.9.7j                                                         
  # ls                                                                   
  00NEED_LIBC_5.0.9  ChangeLog        JE-HOWTO.sjis      packages/       
  00README.eucj      JE-HOWTO.eucj    accessories/       sources/        
  COPYING            JE-HOWTO.jis     install/                           

ڂCXg[̎d JE-HOWTO ǂ܂ȂƕȂ̂łAJE
CXg[Ȃ Linux  JE-HOWTO ǂނƂo܂B

Ƃ肠 install ȉCXg[܂B

  # mkdir /install; cd /install                                        
  # cp /cdrom/JE-0.9.7j/install/* .                                    
  # sh jeinst.sh                                                       

 install ȉ ( kon, ezinst, jkeytables ) CXg[܂
B

 kon N΁AJE-HOWTO ǂނƂo܂̂ŁAł͏
͊Ē܂B

L[}bv̐ݒ́A 530CS ł͈ȉ̃R}h /etc/rc.d/rc.local
ŋNĂ܂B1͂ j106-d CXg[ĂlAkeymap
̕ύXKvł邩ǂxmFǂł傤B

  /usr/bin/loadkeys defkeymap j106-d cl2c-d k2esc-d                    

ȏ̎菇 530CS  Slackware-3.0 + JE-0.9.7j gĂ܂B

(ׂЂ̂)

 

Chapter 3. ݒt@C̗

3.1. /etc/XF86Config̗

-------->8 begin -------->8 begin -------->8 begin -------->8 begin           
# TP530CSp/etc/XF86Config̐ݒ                                            
# @(#)$Id: 530deLinux.sgml,v 1.6 2002/10/03 11:42:44 mdk Exp $                
                                                                              
# File generated by xf86config.                                               
                                                                              
# **********************************************************************      
# Refer to the XF86Config(4/5) man page for details about the format of       
# this file.                                                                  
# **********************************************************************      
                                                                              
# **********************************************************************      
# Files section.  This allows default font and rgb paths to be set            
# **********************************************************************      
                                                                              
Section "Files"                                                               
                                                                              
# The location of the RGB database.  Note, this is the name of the            
# file minus the extension (like ".txt" or ".db").  There is normally         
# no need to change the default.                                              
                                                                              
    RgbPath     "/usr/X11R6/lib/X11/rgb"                                      
                                                                              
# Multiple FontPath entries are allowed (which are concatenated together),    
# as well as specifying multiple comma-separated entries in one FontPath      
# command (or a combination of both methods)                                  
#                                                                             
# If you don't have a floating point coprocessor and emacs, Mosaic or other   
# programs take long to start up, try moving the Type1 and Speedo directory   
# to the end of this list (or comment them out).                              
#                                                                             
                                                                              
    FontPath    "/usr/X11R6/lib/X11/fonts/misc/"                              
    FontPath    "/usr/X11R6/lib/X11/fonts/Type1/"                             
    FontPath    "/usr/X11R6/lib/X11/fonts/Speedo/"                            
    FontPath    "/usr/X11R6/lib/X11/fonts/75dpi/"                             
    FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/"                            
                                                                              
EndSection                                                                    
                                                                              
# **********************************************************************      
# Server flags section.                                                       
# **********************************************************************      
                                                                              
Section "ServerFlags"                                                         
                                                                              
# Uncomment this to cause a core dump at the spot where a signal is           
# received.  This may leave the console in an unusable state, but may         
# provide a better stack trace in the core dump to aid in debugging           
                                                                              
#    NoTrapSignals                                                            
                                                                              
# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence         
# This allows clients to receive this key event.                              
                                                                              
#    DontZap                                                                  
                                                                              
# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching       
# sequences.  This allows clients to receive these key events.                
                                                                              
#    DontZoom                                                                 
                                                                              
EndSection                                                                    
                                                                              
# **********************************************************************      
# Input devices                                                               
# **********************************************************************      
                                                                              
# **********************************************************************      
# Keyboard section                                                            
# **********************************************************************      
                                                                              
Section "Keyboard"                                                            
                                                                              
    Protocol    "Standard"                                                    
                                                                              
# when using XQUEUE, comment out the above line, and uncomment the            
# following line                                                              
                                                                              
#    Protocol   "Xqueue"                                                      
                                                                              
    AutoRepeat  500 5                                                         
# Let the server do the NumLock processing.  This should only be required     
# when using pre-R6 clients                                                   
#    ServerNumLock                                                            
                                                                              
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))       
#    Xleds      1 2 3                                                         
                                                                              
# To set the LeftAlt to Meta, RightAlt key to ModeShift,                      
# RightCtl key to Compose, and ScrollLock key to ModeLock:                    
                                                                              
#    LeftAlt     Meta                                                         
#    RightAlt    ModeShift                                                    
#    RightCtl    Compose                                                      
#    ScrollLock  ModeLock                                                     
                                                                              
EndSection                                                                    
                                                                              
                                                                              
# **********************************************************************      
# Pointer section                                                             
# **********************************************************************      
                                                                              
Section "Pointer"                                                             
    Protocol    "PS/2"                                                        
    Device      "/dev/mouse"                                                  
                                                                              
# When using XQUEUE, comment out the above two lines, and uncomment           
# the following line.                                                         
                                                                              
#    Protocol   "Xqueue"                                                      
                                                                              
# Baudrate and SampleRate are only for some Logitech mice                     
                                                                              
#    BaudRate   9600                                                          
#    SampleRate 150                                                           
                                                                              
# Emulate3Buttons is an option for 2-button Microsoft mice                    
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)            
                                                                              
    Emulate3Buttons                                                           
    Emulate3Timeout    50                                                     
                                                                              
# ChordMiddle is an option for some 3-button Logitech mice                    
                                                                              
#    ChordMiddle                                                              
                                                                              
EndSection                                                                    
                                                                              
                                                                              
# **********************************************************************      
# Monitor section                                                             
# **********************************************************************      
                                                                              
# Any number of monitor sections may be present                               
                                                                              
Section "Monitor"                                                             
                                                                              
    Identifier  "STF passive color LCD"                                       
    VendorName  "Unknown"                                                     
    ModelName   "STF passive color LCD"                                       
                                                                              
# HorizSync is in kHz unless units are specified.                             
# HorizSync may be a comma separated list of discrete values, or a            
# comma separated list of ranges of values.                                   
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S           
# USER MANUAL FOR THE CORRECT NUMBERS.                                        
                                                                              
#    HorizSync   31.5                                                         
#    HorizSync  30-64         # multisync                                     
    HorizSync   15-64         # multisync                                     
#    HorizSync  31.5, 35.2    # multiple fixed sync frequencies               
#    HorizSync  15-25, 30-50  # multiple ranges of sync frequencies           
                                                                              
# VertRefresh is in Hz unless units are specified.                            
# VertRefresh may be a comma separated list of discrete values, or a          
# comma separated list of ranges of values.                                   
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S           
# USER MANUAL FOR THE CORRECT NUMBERS.                                        
                                                                              
#    VertRefresh 50-70                                                        
    VertRefresh 40-100                                                        
                                                                              
# Modes can be specified in two formats.  A compact one-line format, or       
# a multi-line format.                                                        
                                                                              
# 640x480                                                                     
Modeline "640x480"      25.2    640  664  760  800    480  491  493  525      
Modeline "640x480"      25.180  640  664  760  800    480  491  493  525      
Modeline "640x480"      25      640  672  768  800    480  500  502  555      
#*#Modeline "640x480"   25      640  672  768  800    480  490  492  525      
#*#Modeline "640x480"   25      640  664  760  800    480  491  493  525      
#*#Modeline "640x480"   25      640  656  752  800    480  490  492  525      
#*#Modeline "640x480"   25      640  648  768  800    480  487  492  525      
                                                                              
EndSection                                                                    
                                                                              
                                                                              
# **********************************************************************      
# Graphics device section                                                     
# **********************************************************************      
                                                                              
# Any number of graphics device sections may be present                       
                                                                              
Section "Device"                                                              
    Identifier  "clgd6205"                                                    
    VendorName  "Cirrus"                                                      
    BoardName   "CL-GD6205"                                                   
    Chipset     "clgd6205"                                                    
    VideoRam    512                                                           
    Clockchip   "cirrus"                                                      
#*#    Clocks   25.00                                                         
#*#    Option   "noaccel"                                                     
#*#    Option   "no_bitblt"                                                   
#*#    Option   "dac_8_bit"                                                   
    Option      "clgd6225_lcd"                                                
    Option      "linear"                                                      
EndSection                                                                    
                                                                              
# **********************************************************************      
# Screen sections                                                             
# **********************************************************************      
                                                                              
# The Colour SVGA server                                                      
                                                                              
Section "Screen"                                                              
    Driver      "svga"                                                        
    Device      "clgd6205"                                                    
    Monitor     "STF passive color LCD"                                       
    Subsection "Display"                                                      
        Depth       8                                                         
        Modes       "640x480"                                                 
        ViewPort    0 0                                                       
        Virtual     640 480                                                   
    EndSubsection                                                             
EndSection                                                                    
                                                                              
# The 16-color VGA server                                                     
                                                                              
Section "Screen"                                                              
    Driver      "vga16"                                                       
    Device      "clgd6205"                                                    
    Monitor     "STF passive color LCD"                                       
    Subsection "Display"                                                      
        Modes       "640x480"                                                 
        ViewPort    0 0                                                       
        Virtual     640 480                                                   
    EndSubsection                                                             
EndSection                                                                    
-------->8 end -------->8 end -------->8 end -------->8 end -------->8        

 

3.2. ~/.xinitc̗

-------->8 begin -------->8 begin -------->8 begin -------->8 begin    
#!/bin/bash                                                            
# @(#)$Id: 530deLinux.sgml,v 1.6 2002/10/03 11:42:44 mdk Exp $         
                                                                       
if [ -x /usr/local/bin/vgaclk0 ]; then                                 
        /usr/local/bin/vgaclk0                                         
fi                                                                     
                                                                       
if [ -x $HOME/.Xdefaults ]; then                                       
        /usr/X11/bin/xrdb $HOME/.Xdefaults                             
fi                                                                     
                                                                       
if [ -x $HOME/.xmodmaprc ]; then                                       
        . /usr/X11/bin/xmodmap $HOME/.xmodmaprc                        
fi                                                                     
                                                                       
if [ ! -z $(type -path fvwm) ]; then                                   
        exec fvwm                                                      
else                                                                   
        exec twm                                                       
fi                                                                     
-------->8 end -------->8 end -------->8 end -------->8 end -------->8 

 

3.3. ~/.fvwmrc̗

-------->8 begin -------->8 begin -------->8 begin -------->8 begin                                                                    
# TP530CSp~/.fvwmrc̐ݒ                                                                                                           
# @(#)$Id: 530deLinux.sgml,v 1.6 2002/10/03 11:42:44 mdk Exp $                                                                         
                                                                                                                                       
# Unfortunately, order does matter in this file                                                                                        
# The correct order for inserting configurations is:                                                                                   
# 1. Colors                                                                                                                            
# 2. Assorted configuration paramters such as ClickToFocus, or MWMBorders                                                              
# 3. Path setup (ModulePath, PixmapPath, IconPath)                                                                                     
# 4. Style settings, including the default style Style "*" ...                                                                         
# 5. InitFunction and ResetFunction definitions.                                                                                       
# 6. Other Functions. Functions cannot be forward referenced from                                                                      
#       other functions, but they can be backward referenced.                                                                          
# 7. Menus definitions. Same caveats about forward referencing                                                                         
# 8. Key and Mouse Bindings.                                                                                                           
# 9. Module options.                                                                                                                   
                                                                                                                                       
# The order of steps 5, 6, and 7 is not critical, as long as there are                                                                 
# no forward references to functions or menus.                                                                                         
                                                                                                                                       
# If you get it wrong, the most common problem is that color or font settings                                                          
# are ignored                                                                                                                          
                                                                                                                                       
###########################################################################                                                            
# set up the colors                                                                                                                    
#                                                                                                                                      
# OK some people like bright clear colors on their window decorations.                                                                 
# These people, I guess would mostly be from nice sunny/good weather places                                                            
# line California.                                                                                                                     
#                                                                                                                                      
# StdForeColor          Black                                                                                                          
# StdBackColor          LightSkyBlue                                                                                                   
# HiForeColor           yellow                                                                                                         
# HiBackColor           PeachPuff1                                                                                                     
# PagerBackColor        BlanchedAlmond                                                                                                 
                                                                                                                                       
# Me, I'm from Upstate New York, and live in New Hampshire, so I prefer                                                                
# these dark muddy colors...                                                                                                           
                                                                                                                                       
StdForeColor            Wheat                                                                                                          
StdBackColor            DimGrey                                                                                                        
                                                                                                                                       
# this is used for the selected window                                                                                                 
HiForeColor             Wheat                                                                                                          
HiBackColor             SlateBlue4                                                                                                     
                                                                                                                                       
#PagerBackColor         #5c54c0                                                                                                        
#PagerForeColor         orchid                                                                                                         
                                                                                                                                       
StickyForeColor         Black                                                                                                          
StickyBackColor         #60c0a0                                                                                                        
                                                                                                                                       
# Menu colors                                                                                                                          
MenuForeColor           Wheat                                                                                                          
MenuBackColor           DimGrey                                                                                                        
MenuStippleColor        SlateGrey                                                                                                      
                                                                                                                                       
############################################################################                                                           
# Now the fonts - one for menus, another for window titles, another for icons                                                          
#Font                   -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*                                                                 
#Font                   -*-times-medium-i-*-*-*-120-*-*-*-*-*-*                                                                        
#WindowFont             -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*                                                                   
#IconFont               -adobe-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*                                                                 
#IconFont               fixed                                                                                                          
                                                                                                                                       
Font                    lucidasanstypewriter-12                                                                                        
WindowFont              lucidasanstypewriter-12                                                                                        
IconFont                lucidasanstypewriter-12                                                                                        
                                                                                                                                       
###########################################################################                                                            
# Set up the major operating modes                                                                                                     
#                                                                                                                                      
########################      FOCUS STUFF     ##############################                                                           
# Set windows to auto-raise after 750 milliseconds if you like it.                                                                     
# Autoraise can sometimes obscure pop-up windows. Performance is now                                                                   
# similar to olvwm's auto-raise feature.                                                                                               
#AutoRaise 750                                                                                                                         
                                                                                                                                       
# Normally, we'll be in focus-follows mouse mode, but uncomment this                                                                   
# for mwm-style click-to-focus                                                                                                         
#ClickToFocus                                                                                                                          
                                                                                                                                       
########################      ICON STUFF     ##############################                                                            
# Auto Place Icons is a nice feature....                                                                                               
# This creates two icon boxes, one on the left side, then one on the                                                                   
# bottom. Leaves room in the upper left for my clock and xbiff,                                                                        
# room on the bottom for the Pager.                                                                                                    
#IconBox -150 90 -5 -140                                                                                                               
#IconBox 5 -140 -140 -5                                                                                                                
#*#IconBox -70 1 -1 -140                                                                                                               
                                                                                                                                       
# If you uncomment this, and make sure that the WindowList is bound to                                                                 
# something, it works pretty much like an icon manager.                                                                                
#SuppressIcons                                                                                                                         
                                                                                                                                       
# StubbornIcons makes icons de-iconify into their original position on the                                                             
# desktop, instead of on the current page.                                                                                             
#StubbornIcons                                                                                                                         
                                                                                                                                       
# With AutoPlacement, icons will normally place themselves underneath active                                                           
# windows. This option changes that.                                                                                                   
#StubbornIconPlacement                                                                                                                 
                                                                                                                                       
# If you want ALL you icons to follow you around the desktop (Sticky), try                                                             
# this                                                                                                                                 
#StickyIcons                                                                                                                           
                                                                                                                                       
########################      MWM EMULATION     #######################                                                                
#                                                                                                                                      
# My feeling is that everyone should use MWMDecorHints and MWMFunctionHints,                                                           
# since some applications depend on having the window manager respect them                                                             
                                                                                                                                       
# MWMFunction hints parses the function information in the MOTIF_WM_HINTS                                                              
# property, and prohibits use of these functions on the window. Appropriate                                                            
# portions of the window decorations are removed.                                                                                      
MWMFunctionHints                                                                                                                       
                                                                                                                                       
# MWM is kinda picky about what can be done to transients, and it was keeping                                                          
# me from iconifying some windows that I like to iconify, so here's an                                                                 
# over-ride that will allow me to do the operation, even tough the menu                                                                
# item is shaded out.                                                                                                                  
MWMHintOverride                                                                                                                        
                                                                                                                                       
# MWMDecor hints parses the decoration information in the MOTIF_WM_HINTS                                                               
# property, and removes these decoratons from the window. This does not affect                                                         
# the functions that can be performed via the menus.                                                                                   
MWMDecorHints                                                                                                                          
                                                                                                                                       
# These are affect minor aspects for the look-and-feel.                                                                                
# Sub-menus placement mwm-style?                                                                                                       
# MWMMenus                                                                                                                             
# mwm-style border reliefs (less deep than default fvwm) ?                                                                             
# MWMBorders                                                                                                                           
# Maximize button does mwm-inversion thingy                                                                                            
# MWMButtons                                                                                                                           
########################      MISCELLANEOUS STUFF     #######################                                                          
# If you don't like the default 150 msec click delay for the complex functions                                                         
# change this and uncomment it.                                                                                                        
# ClickTime 150                                                                                                                        
                                                                                                                                       
# OpaqueMove has a number (N) attached to it (default 5).                                                                              
# if the window occupies less than N% of the screen,                                                                                   
# then opaque move is used. 0 <= N <= 100                                                                                              
# OpaqueMove 100                                                                                                                       
                                                                                                                                       
# flip by whole pages on the edge of the screen.                                                                                       
EdgeScroll 100 100                                                                                                                     
                                                                                                                                       
# A modest delay before flipping pages seems to be nice...                                                                             
# I thresh in a 50 pixel Move-resistance too, just so people                                                                           
# can try it out.                                                                                                                      
#*#EdgeResistance 250 50                                                                                                               
EdgeResistance 2500 50                                                                                                                 
                                                                                                                                       
                                                                                                                                       
########################      WINDOW PLACEMENT     #######################                                                             
# RandomPlacement prevents user interaction while placing windows:                                                                     
RandomPlacement                                                                                                                        
                                                                                                                                       
# SmartPlacement makes new windows pop-up in blank regions of screen                                                                   
# if possible, or falls back to random or interactive placement.                                                                       
SmartPlacement                                                                                                                         
                                                                                                                                       
# With SmartPlacement, windows will normally place themselves over icons.                                                              
# Uncomment this to change that.                                                                                                       
#StubbornPlacement                                                                                                                     
                                                                                                                                       
# NoPPosition instructs fvwm to ignore the PPosition field in window                                                                   
# geometry hints. Emacs annoyingly sets PPosition to (0,0)!                                                                            
NoPPosition                                                                                                                            
                                                                                                                                       
                                                                                                                                       
########################      DECORATIONS     #######################                                                                  
# If you want decorated transient windows, uncomment this:                                                                             
#DecorateTransients                                                                                                                    
                                                                                                                                       
                                                                                                                                       
###########################################################################                                                            
# Set up the virtual desktop and pager                                                                                                 
                                                                                                                                       
#set the desk top size in units of physical screen size                                                                                
DeskTopSize 2x2                                                                                                                        
                                                                                                                                       
# and the reduction scale used for the panner/pager                                                                                    
DeskTopScale 32                                                                                                                        
                                                                                                                                       
##########################################################################                                                             
# Module path and paths to the icons                                                                                                   
#                                                                                                                                      
# ModulePath is a colon-separated list, just like regular unix PATH                                                                    
ModulePath /usr/lib/X11/fvwm                                                                                                           
PixmapPath /usr/include/X11/pixmaps:/usr/include/X11/bitmaps                                                                           
IconPath   /usr/include/X11/pixmaps:/usr/include/X11/bitmaps                                                                           
                                                                                                                                       
############################################################################                                                           
# Set the decoration styles and window options                                                                                         
# Order is important!!!!                                                                                                               
# If compatible styles are set for a single window in multiple Style                                                                   
# commands, then the styles are ORed together. If conflicting styles                                                                   
# are set, the last one specified is used.                                                                                             
                                                                                                                                       
# These commands should command before any menus or functions are defined,                                                             
# and before the internal pager is started.                                                                                            
                                                                                                                                       
# change the default width.                                                                                                            
Style "xeyes"      NoTitle, NoHandles, Sticky, WindowListSkip                                                                          
Style "*" BorderWidth 5, HandleWidth 5, Icon unknown1.xpm                                                                              
                                                                                                                                       
Style "Fvwm*"      NoTitle, NoHandles, Sticky, WindowListSkip, BorderWidth 0                                                           
Style "Fvwm Pager" StaysOnTop                                                                                                          
Style "FvwmPager"  StaysOnTop                                                                                                          
Style "FvwmBanner" StaysOnTop                                                                                                          
Style "GoodStuff"  NoTitle, NoHandles, Sticky, WindowListSkip, BorderWidth 0, CirculateSkip                                            
Style "*lock"      NoTitle, NoHandles, Sticky, WindowListSkip, BorderWidth 0, CirculateSkip                                            
Style "xbiff"      NoTitle, NoHandles, Sticky, WindowListSkip, BorderWidth 0, CirculateSkip                                            
Style "Maker"      StartsOnDesk 1                                                                                                      
Style "matlab"     StartsOnDesk 3                                                                                                      
Style "signal"     StartsOnDesk 3                                                                                                      
Style "rxvt"       Icon  term.xpm                                                                                                      
Style "xterm"      Icon xterm.xpm                                                                                                      
Style "Console"    Icon xterm.xpm                                                                                                      
Style "xterm_color" Icon xterm.xpm                                                                                                     
Style "kterm"      Icon kterm.xpm                                                                                                      
Style "pxvt"      Icon kterm.xpm                                                                                                       
Style "Appointment" Icon datebook.xpm, NoButton 2, NoButton 4                                                                          
Style "xcalc"      Icon xcalc.xpm, NoButton 2                                                                                          
Style "xbiff"      Icon mail1.xpm, NoButton 2                                                                                          
Style "xmh"        Icon mail1.xpm, StartsOnDesk 2, NoButton 2                                                                          
Style "xman"       Icon xman.xpm                                                                                                       
Style "xvgr"       Icon graphs.xpm                                                                                                     
Style "matlab"     Icon math4.xpm                                                                                                      
Style "xmag"       Icon mag_glass.xpm                                                                                                  
Style "xgraph"     Icon graphs.xpm                                                                                                     
Style "GoodStuff"  Icon toolbox.xpm                                                                                                    
                                                                                                                                       
# Change the Maximize and iconify buttons to up and down triangles.                                                                    
                                                                                                                                       
#ButtonStyle : 2 4 50x35@1 65x65@0 35x65@0 50x35@1                                                                                     
#ButtonStyle : 4 4 50x65@1 35x35@1 65x35@1 50x65@0                                                                                     
                                                                                                                                       
ButtonStyle 2 20x20                                                                                                                    
ButtonStyle 4 50x50                                                                                                                    
                                                                                                                                       
#############################################################################                                                          
                                                                                                                                       
# Stuff to do at start-up                                                                                                              
                                                                                                                                       
Function "InitFunction"                                                                                                                
#       Module  "I"     FvwmBanner                                                                                                     
#       Exec    "I"     xpmroot /usr/include/X11/pixmaps/fvwm.xpm &                                                                    
        Module  "I"     GoodStuff                                                                                                      
        Exec    "I"     exec kterm -fn r14 -fk k14 -geometry 80x32 &                                                                   
        Wait    "I"     kterm                                                                                                          
#       Wait    "I"     xterm                                                                                                          
#       Desk    "I"     0 2                                                                                                            
#       Exec    "I"     exec xterm -geometry +0+0 &                                                                                    
#       Wait    "I"     xterm                                                                                                          
#       Module  "I"     FvwmPager 0 0                                                                                                  
        Desk    "I"     0 0                                                                                                            
EndFunction                                                                                                                            
                                                                                                                                       
Function "RestartFunction"                                                                                                             
#       Exec    "I"     xsetroot -solid "#266294"                                                                                      
        Module  "I"     GoodStuff                                                                                                      
#       Module  "I"     FvwmPager 0 0                                                                                                  
EndFunction                                                                                                                            
                                                                                                                                       
                                                                                                                                       
############################################################################                                                           
# Now define some handy complex functions                                                                                              
                                                                                                                                       
# This one moves and then raises the window if you drag the mouse,                                                                     
# only raises the window if you click,  or does a RaiseLower if you double                                                             
# click                                                                                                                                
Function "Move-or-Raise"                                                                                                               
        Move            "Motion"                                                                                                       
        Raise           "Click"                                                                                                        
EndFunction                                                                                                                            
                                                                                                                                       
# This one maximizes vertically if you click (leaving room for the GoodStuff bar at the                                                
# bottom, or does a full maximization if you double click, or a true full vertical                                                     
# maximization if you just hold the mouse button down.                                                                                 
Function "maximize_func"                                                                                                               
        Maximize        "Motion" 0 100                                                                                                 
        Maximize        "Click" 0 80                                                                                                   
        Maximize        "DoubleClick" 100 100                                                                                          
EndFunction                                                                                                                            
                                                                                                                                       
                                                                                                                                       
# This one moves and then lowers the window if you drag the mouse,                                                                     
# only lowers the window if you click,  or does a RaiseLower if you double                                                             
# click                                                                                                                                
Function "Move-or-Lower"                                                                                                               
        Move            "Motion"                                                                                                       
        Lower           "Motion"                                                                                                       
        Lower           "Click"                                                                                                        
        RaiseLower      "DoubleClick"                                                                                                  
EndFunction                                                                                                                            
                                                                                                                                       
# This one moves or (de)iconifies:                                                                                                     
Function "Move-or-Iconify"                                                                                                             
        Move            "Motion"                                                                                                       
        Iconify         "Click"                                                                                                        
EndFunction                                                                                                                            
                                                                                                                                       
# This one resizes and then raises the window if you drag the mouse,                                                                   
# only raises the window if you click,  or does a RaiseLower if you double                                                             
# click                                                                                                                                
Function "Resize-or-Raise"                                                                                                             
        Resize          "Motion"                                                                                                       
        Raise           "Motion"                                                                                                       
        Raise           "Click"                                                                                                        
        RaiseLower      "DoubleClick"                                                                                                  
EndFunction                                                                                                                            
                                                                                                                                       
                                                                                                                                       
# This is provided as a hint only.                                                                                                     
# Move to a known page on the desktop, then start an application in a                                                                  
# known location. Could also switch to a known desktop, I guess                                                                        
#Function "abs_coord"                                                                                                                  
#       GoToPage "Immediate"    1,1                                                                                                    
#       Exec    "Immediate"     exec xcalc -geometry +100+100&                                                                         
#EndFunction                                                                                                                           
                                                                                                                                       
                                                                                                                                       
##############################################################################                                                         
#now define the menus - defer bindings until later                                                                                     
                                                                                                                                       
# This menu is invoked as a sub-menu - it allows you to quit,                                                                          
# restart, or switch to another WM.                                                                                                    
Popup "Quit-Verify"                                                                                                                    
        Title   "Really Quit Fvwm?"                                                                                                    
        Quit    "Yes, Really Quit"                                                                                                     
        Restart "Restart Fvwm"  fvwm                                                                                                   
        Restart "Start twm"     twm                                                                                                    
        Restart "Start tvtwm"   tvtwm                                                                                                  
        Restart "Start mwm"     mwm                                                                                                    
        Restart "Start olwm"    /usr/openwin/bin/olwm                                                                                  
        Nop     ""                                                                                                                     
        Nop     "No, Don't Quit"                                                                                                       
EndPopup                                                                                                                               
                                                                                                                                       
# Provides a list of modules to fire off                                                                                               
Popup "Module-Popup"                                                                                                                   
        Title   "Modules"                                                                                                              
        Module  "GoodStuff"     GoodStuff                                                                                              
        Module  "Clean-Up"      FvwmClean                                                                                              
        Module  "Identify"      FvwmIdent                                                                                              
        Module  "SaveDesktop"   FvwmSave                                                                                               
        Module  "Debug"         FvwmDebug                                                                                              
        Module  "Pager"         FvwmPager 0 0                                                                                          
        Module  "FvwmWinList"   FvwmWinList                                                                                            
EndPopup                                                                                                                               
                                                                                                                                       
# This menu will fire up some very common utilities                                                                                    
Popup "Utilities"                                                                                                                      
        Title   "Utilities"                                                                                                            
        Exec    "Kterm"         exec kterm -fn r14 -fk k14 -geometry 80x32 &                                                           
        Exec    "pxvt"          exec pxvt -fn rk14 -fk k14 -km eucj &                                                                  
        Exec    "Xterm"         exec xterm -e bash &                                                                                   
        Exec    "Color Xterm"   exec xterm_color &                                                                                     
        Exec    "RHS Control Panel"     exec control-panel &                                                                           
        Exec    "Rxvt"          exec rxvt &                                                                                            
        Exec    "Top"           exec xterm -T Top -n Top -e top &                                                                      
        Exec    "Calculator"    exec xcalc &                                                                                           
        Exec    "Xman"          exec xman &                                                                                            
        Exec    "Xmag"          exec xmag &                                                                                            
        Nop     ""                                                                                                                     
        Popup   "Modules"       Module-Popup                                                                                           
        Nop     ""                                                                                                                     
        Restart "Restart Fvwm"  fvwm                                                                                                   
        Popup   "Exit Fvwm"     Quit-Verify                                                                                            
EndPopup                                                                                                                               
                                                                                                                                       
# This defines the most common window operations                                                                                       
Popup "Window Ops"                                                                                                                     
        Title           "Window Ops"                                                                                                   
        Function        "Move"          Move-or-Raise                                                                                  
        Function        "Resize"        Resize-or-Raise                                                                                
        Raise           "Raise"                                                                                                        
        Lower           "Lower"                                                                                                        
        Iconify         "(De)Iconify"                                                                                                  
        Stick           "(Un)Stick"                                                                                                    
        Function        "(Un)Maximize"  maximize_func                                                                                  
        Nop             ""                                                                                                             
        Destroy         "Destroy"                                                                                                      
        Close           "Close"                                                                                                        
        Nop             ""                                                                                                             
        Refresh         "Refresh Screen"                                                                                               
EndPopup                                                                                                                               
                                                                                                                                       
# A trimmed down version of "Window Ops", good for binding to decorations                                                              
Popup "Window Ops2"                                                                                                                    
        Function        "Move"          Move-or-Raise                                                                                  
        Function        "Resize"        Resize-or-Raise                                                                                
        Raise           "Raise"                                                                                                        
        Lower           "Lower"                                                                                                        
        Iconify         "Iconify"                                                                                                      
        Stick           "(Un)Stick"                                                                                                    
        Nop             ""                                                                                                             
        Destroy         "Destroy"                                                                                                      
        Close           "Close"                                                                                                        
        Nop             ""                                                                                                             
        Module          "ScrollBar"     FvwmScroll 2 2                                                                                 
EndPopup                                                                                                                               
                                                                                                                                       
#############################################################################                                                          
# One more complex function - couldn't be defined earlier because it used                                                              
# pop-up menus                                                                                                                         
#                                                                                                                                      
# This creates a motif-ish sticky menu for the title-bar window-ops                                                                    
# pop-up                                                                                                                               
# Menu acts like normal twm menu if you just hold the button down,                                                                     
# but if you click instead, the menu stays up, motif style                                                                             
Function "window_ops_func"                                                                                                             
        PopUp   "Click"         Window Ops2                                                                                            
        PopUp   "Motion"        Window Ops2                                                                                            
# Motif would add:                                                                                                                     
# I'll add it too, it can be mighty handy.                                                                                             
        Close  "DoubleClick"                                                                                                           
EndFunction                                                                                                                            
                                                                                                                                       
                                                                                                                                       
##############################################################################                                                         
# This defines the mouse bindings                                                                                                      
                                                                                                                                       
# First, for the mouse in the root window                                                                                              
# Button 1 gives the Utilities menu                                                                                                    
# Button 2 gives the Window Ops menu                                                                                                   
# Button 3 gives the WindowList (like TwmWindows)                                                                                      
# I use the AnyModifier (A) option for the modifier field, so you can hold down                                                        
# any shift-control-whatever combination you want!                                                                                     
                                                                                                                                       
#     Button    Context Modifi  Function                                                                                               
Mouse 1         R       A       PopUp "Utilities"                                                                                      
Mouse 2         R       A       PopUp "Window Ops"                                                                                     
Mouse 3         R       A       Module "winlist" FvwmWinList transient                                                                 
                                                                                                                                       
                                                                                                                                       
                                                                                                                                       
# Now the title bar buttons                                                                                                            
# Any button in the left title-bar button gives the window ops menu                                                                    
# Any button in the right title-bar button Iconifies the window                                                                        
# Any button in the rightmost title-bar button maximizes                                                                               
# Note the use of "Mouse 0" for AnyButton.                                                                                             
                                                                                                                                       
#     Button    Context Modifi  Function                                                                                               
#Mouse 0                1       A       Function "window_ops_func"                                                                     
#Mouse 0                2       A       Function "maximize_func"                                                                       
#Mouse 0                4       A       Iconify                                                                                        
Mouse 0         1       A       Function "window_ops_func"                                                                             
Mouse 1         2       A       Iconify                                                                                                
Mouse 3         2       A       Destroy                                                                                                
Mouse 1         4       A       Maximize 0 100                                                                                         
Mouse 3         4       A       Maximize 100 100                                                                                       
                                                                                                                                       
# Now the rest of the frame                                                                                                            
# Here I invoke my complex functions for Move-or-lower, Move-or-raise,                                                                 
# and Resize-or-Raise.                                                                                                                 
# Button 1 in the corner pieces, with any modifiers, gives resize or raise                                                             
#Mouse 1                F       A       Function "Resize-or-Raise"                                                                     
Mouse 1         FS      A       Resize                                                                                                 
# Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise                                                         
#Mouse 1                TS      A       Function "Move-or-Raise"                                                                       
Mouse 1         T       A       Function "Move-or-Raise"                                                                               
                                                                                                                                       
# Button 1 in an icons gives move for a drag, de-iconify for a double-click,                                                           
# nothing for a single click                                                                                                           
# Button 2 in an icon, w/ any modifiers, gives de-iconify                                                                              
                                                                                                                                       
Mouse 1         I       A       Function "Move-or-Iconify"                                                                             
Mouse 2         I       A       Iconify                                                                                                
                                                                                                                                       
# Button 2 in the corners, sides, or title-bar gives the window ops menu                                                               
Mouse 2         FST     A       Function "window_ops_func"                                                                             
# Button 3 anywhere in the decoration (except the title-bar buttons)                                                                   
# does a raise-lower                                                                                                                   
Mouse 3         TSIF    A       RaiseLower                                                                                             
                                                                                                                                       
# Button 3 in the window, with the Modifier-1 key (usually alt or diamond)                                                             
# gives Raise-Lower. Used to use control here, but that interferes with xterm                                                          
#Mouse 3         W       M       RaiseLower                                                                                            
Mouse 1         W       M       RaiseLower                                                                                             
Mouse 2         W       M       Move                                                                                                   
Mouse 3         W       M       Resize                                                                                                 
                                                                                                                                       
############################################################################                                                           
# Now some keyboard shortcuts.                                                                                                         
                                                                                                                                       
# Arrow Keys                                                                                                                           
# press arrow + control anywhere, and scroll by 1 page                                                                                 
#Key Left       A       C       Scroll -100 0                                                                                          
#Key Right      A       C       Scroll +100 +0                                                                                         
#Key Up         A       C       Scroll +0   -100                                                                                       
#Key Down       A       C       Scroll +0   +100                                                                                       
                                                                                                                                       
# press arrow + meta key, and scroll by 1/10 of a page                                                                                 
#Key Left       A       M       Scroll -10 +0                                                                                          
#Key Right      A       M       Scroll +10 +0                                                                                          
#Key Up         A       M       Scroll +0   -10                                                                                        
#Key Down       A       M       Scroll +0   +10                                                                                        
                                                                                                                                       
# press shift arrow + control anywhere, and move the pointer by 1% of a page                                                           
#Key Left       A       SC      CursorMove -1 0                                                                                        
#Key Right      A       SC      CursorMove +1 +0                                                                                       
#Key Up         A       SC      CursorMove +0   -1                                                                                     
#Key Down       A       SC      CursorMove +0   +1                                                                                     
                                                                                                                                       
# press shift arrow + meta key, and move the pointer by 1/10 of a page                                                                 
#Key Left       A       SM      CursorMove -10 +0                                                                                      
#Key Right      A       SM      CursorMove +10 +0                                                                                      
#Key Up         A       SM      CursorMove +0   -10                                                                                    
#Key Down       A       SM      CursorMove +0   +10                                                                                    
                                                                                                                                       
# Keyboard accelerators                                                                                                                
#Key F1         A       M       CirculateUp                                                                                            
#Key F1         A       M       Popup "Utilities"                                                                                      
#Key F2         A       M       Popup "Window Ops"                                                                                     
#Key F3         A       M       Module "WindowList" FvwmWinList                                                                        
#Key F4         A       M       Iconify                                                                                                
#Key F5         A       M       Move                                                                                                   
#Key F6         A       M       Resize                                                                                                 
#Key F7         A       M       CirculateUp                                                                                            
#Key F8         A       M       CirculateDown                                                                                          
                                                                                                                                       
#Page Up/Dapge Down keys are used to scroll by one desktop page                                                                        
# in any context, press page up/down + control                                                                                         
# in root context, just pressing page up/down is OK                                                                                    
#                                                                                                                                      
# I prefer the non-wrapping scroll. These are for example purposes only                                                                
#Key Next       A       C       Scroll 100000 0                                                                                        
#Key Next       R       N       Scroll 100000 0                                                                                        
#Key Prior      A       C       Scroll -100000 0                                                                                       
#Key Prior      R       N       Scroll -100000 0                                                                                       
                                                                                                                                       
                                                                                                                                       
############################################################################                                                           
############################################################################                                                           
#Definitions used by the modules                                                                                                       
                                                                                                                                       
###################### GoodStuff button-bar ################################                                                           
# Colors                                                                                                                               
*GoodStuffFore Orchid                                                                                                                  
*GoodStuffBack Grey20                                                                                                                  
                                                                                                                                       
# Font                                                                                                                                 
#*#*GoodStuffFont -adobe-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*                                                                         
*GoodStuffFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*                                                                            
# Geometry - really likes to pick its own size, but giving a position is OK                                                            
*GoodStuffGeometry +1-1                                                                                                                
                                                                                                                                       
# Layout: specify rows or columns, not both                                                                                            
*GoodStuffColumns 1                                                                                                                    
                                                                                                                                       
# xterm or rxvts on remote machines can be done like this                                                                              
# Output re-direction is csh style, not sh style                                                                                       
# You will want to substitute your own hosts here!                                                                                     
                                                                                                                                       
# *GoodStuff Dopey   rterm.xpm   Exec "" rsh dopey "exec xterm -T dopey -display $HOSTDISPLAY </dev/null >&/dev/null & "&              
# *GoodStuff Grumpy  rterm.xpm   Exec "" rsh grumpy "exec xterm -T grumpy -display $HOSTDISPLAY </dev/null >&/dev/null & "&            
# *GoodStuff Snoopy  rterm.xpm   Exec "" rsh snoopy "exec xterm -T snoopy -display $HOSTDISPLAY </dev/null >&/dev/null & "&            
# *GoodStuff mail    mail2.xpm   Exec "" xmh &                                                                                         
                                                                                                                                       
#############################################################################                                                          
# ɒǉ                                                                                                                       
#############################################################################                                                          
*GoodStuff kterm   xterm.xpm   Exec "kterm" kterm -fn r14 -fk k14 -geometry 80x32 &                                                    
*GoodStuff netscape xterm.xpm Exec "netscape" netscape &                                                                               
                                                                                                                                       
# Define the buttons to use.....                                                                                                       
*GoodStuff XEyes   -    Swallow "xeyes" xeyes -bg Grey20 -center pink -geometry -1500-1500 &                                           
*GoodStuff Kill    rbomb.xpm    Destroy                                                                                                
#*#*GoodStuff xclock  clock.xpm   Swallow "clock" xclock -bg Grey20 -fg Orchid -hd Orchid -hl Orchid -geometry -1500-1500 -padding 0 & 
*GoodStuff xclock  -   Swallow "xclock" xclock -bg Grey20 -fg Orchid -hd Orchid -hl Orchid -geometry -1500-1500 -padding 0 &           
#*#*GoodStuff xbiff   mail1.xpm   Swallow "xbiff" xbiff -bg Grey20 -fg Orchid -geometry -1500-1500 &                                   
                                                                                                                                       
                                                                                                                                       
# *GoodStuff Paging  clamp.xpm   TogglePage                                                                                            
# *GoodStuff -  clock.xpm   Swallow "xclock" xclock -bg \#908090 -geometry -1500-1500 -padding 0                                       
*GoodStuff(1x1) - whatever SwallowModule "FvwmPager" FvwmPager 0 0 -geomrtry -1500-1500                                                
                                                                                                                                       
                                                                                                                                       
######################### No Clutter ########################################                                                          
# I only wrote NoClutter as a simple test case, but maybe some big sites like                                                          
# universities really have usage problems (too many open windows)....                                                                  
# Time delays are in seconds.                                                                                                          
*FvwmNoClutter 3600 Iconify 1                                                                                                          
*FvwmNoClutter 86400 Delete                                                                                                            
*FvwmNoCLutter 172800 Destroy                                                                                                          
                                                                                                                                       
########################## Window-Identifier ###############################                                                           
# Just choose colors and a fonts                                                                                                       
*FvwmIdentBack MidnightBlue                                                                                                            
*FvwmIdentFore Yellow                                                                                                                  
*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*                                                                          
                                                                                                                                       
########################### Pager #########################################                                                            
#*#*FvwmPagerBack Black                                                                                                                
*FvwmPagerBack Gray20                                                                                                                  
*FvwmPagerFore Orchid                                                                                                                  
*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*                                                                            
*FvwmPagerHilight Black                                                                                                                
#*#*FvwmPagerGeometry +1-1                                                                                                             
*FvwmPagerLabel 0 megu                                                                                                                 
#*FvwmPagerLabel 1 haru                                                                                                                
#*FvwmPagerLabel 2 cauchy                                                                                                              
#*FvwmPagerLabel 3 ss-net                                                                                                              
#*#*FvwmPagerLabel 4 misc                                                                                                              
*FvwmPagerSmallFont 5x8                                                                                                                
                                                                                                                                       
                                                                                                                                       
##########################FvwmWinList##################################                                                                
*FvwmWinListBack #908090                                                                                                               
*FvwmWinListFore Black                                                                                                                 
*FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*                                                                          
*FvwmWinListAction Click1 Iconify -1,Focus                                                                                             
*FvwmWinListAction Click2 Iconify                                                                                                      
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent                                                                                 
*FvwmWinListUseSkipList                                                                                                                
*FvwmWinListGeometry +0-1                                                                                                              
-------->8 end -------->8 end -------->8 end -------->8 end -------->8                                                                 
                                                                                                                                       
                                                        (܂ Ă₷)                                                              

