How to use USB devices on Linux

See here. See here.

・UHCIかOHCIか調べる.
 # lspci -v
 USBの項目で「I/O port at xxxx」と表示されればUHCIである.
 「Memory at xxxxxxxx」と表示されればOHCIである.

--- XFree86 3.6.x
Section "Xinput"
 SubSection "Mouse"
  DeviceName "USB"
  Protocol "IMPS/2"
  Device "/dev/input/mice"
  AlwaysCore
 EndSubSection
EndSection

ホームページにパスワードをかける

以下のような.haccessファイルを作る.
AuthUserFile	/home/kon/public_html/.htpasswd
AuthGroupFile	/dev/null
AuthName	"Authorized User Only"
AuthType	Basic
<Limit GET>
require valid-user
</Limit>
パスワードファイルはhtpasswdコマンドで作成する.

stone

Internet上のホストでX clientを起動し,LAN内のホストに表示する.

tau=gateway on Internet & LAN
shanks=X server (Display:n) on LAN
pade=X client on Internet

(1) tau:$ stone shanks:600n 600m [pade]
(2) pade:$ export DISPLAY=tau:m
    pade:$ x_client
(3) X client appears on shanks

LAN内のホストでvncserverを起動し,Internet上のホストで表示する.

tau=gateway on Internet & LAN
shanks=vncserver on LAN
pade=vnclient on Internet

(1) shanks:$ vncserver :1
(2) tau:$ stone shanks:5801 5801 [pade] -- shanks:5901 5901 [pade]
(3) pade:$ vncviewer tau:1


POP3

# telnet popserver 110
Connected to popserver.
Escape character is '^]'.
+OK QPOP (version 2.53) at popserver starting.
USER kon
+OK Password required for kon.
PASS ********
+OK kon has 15 messages (38912 octets).
STAT
+OK 15 38912
LIST
+OK 15 messages (38912 octets)
1 865
2 2195
3 2781
4 3302
5 2293
6 2986
7 3004
8 810
9 2981
10 2667
11 2857
12 1765
13 2578
14 4895
15 2933
.
.
RETR 1
+OK 865 octets
Received: from .................
             .............
Subject: Thank you
MIME-Version: 1.0
X-Mailer: AL-Mail32 Version 1.12
Content-Type: text/plain; charset=iso-2022-jp
X-UIDL: b187d4304688f3e0e7044308f503a6a2

Hi! Thanks!

.
TOP 1 10
+OK 865 octets
Received: from .................
             .............
Subject: Thank you
MIME-Version: 1.0
X-Mailer: AL-Mail32 Version 1.12
Content-Type: text/plain; charset=iso-2022-jp
X-UIDL: b187d4304688f3e0e7044308f503a6a2

Hi! Thanks!

.
DELE
+OK Message 2 has been deleted.
RSET                                  <--- Cancel 'DELE'
+OK Maildrop has 15 messages (39078 octets)
QUIT
+OK Pop server at popserver signing off.
Connection closed by foreign host.

MTRR

Check MTRR of CPU!
 # cat /proc/cpuinfo  | grep mtrr 
 flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 psn mmxext mmx fxsr 3dnowext 3dnow

Check the kernel module of MTRR.
 # ls /proc/mtrr 
 /proc/mtrr
 # grep MTRR /usr/src/linux/.config 
 CONFIG_MTRR=y

Check the memory of X server.
 # startx 2> xlog
 # grep VGA xlog
 (--) SVGA: PCI: NVidia Riva TNT2 rev 17, Memory @ 0xee000000, 0xe20000000  

Compare the entry "Memory ... 0x2000000" with following list,
4MB = 0x400000, 8MB = 0x800000, 16MB = 0x1000000, 32MB = 0x2000000

Enable MTRR.
 # echo "base=0xe2000000 size=0x2000000 type=write-combining" >| /proc/mtrr

Disable MTRR.
 # echo "disable=1" > /proc/mtrr 
 # cat /proc/mtrr  
 reg00: base=0x00000000 (0MB), size=256MB: write-back, count=1

See here.