Download - etch install-2
Debian GNU/Linux 4.0 etch
AD08 2 20
1
1 .....................................................................4 1.1 ..................................................4 1.2 ................4 1.3 ......................................................4 1.4 ..................................................4 1.5 CD....................................................4 1.6 ....................................................................5 2 Debian GNU/Linux 4.0 etch .....................................6 2.1 etch..................................................6 2.2 ..............................................................7 2.3 ..................................................7 2.4 ......................................................8 2.5 ......................................9 2.5.1 .........................................11 2.5.2 .............................12 2.6 .............................................17 2.7 ...........................................................17 2.8 ...........................................18 2.9 .............................................18 2.10 apt.............................................................19 2.11 ..........................................19 2.12 ....................................20 2.13 ........................................20 2.14 uswsusp.........................................................20 2.15 ................................................21 2.16 ............................................21 2.17 ..................................................21 2.18 GRUB......................................................22 2.19 ..............................................................22 2.20 GNOME.......................................................23 2.21 ..................................................24 2.22 su..............................................................24 2.23 keyring.........................................................25 2.24 /etc/apt/sources.list...........................................26 2.25 sudo............................................................28 2.26 ........................................................29 3 ....................................................31 3.1 PostgreSQL...............................................31 3.2 sargeDB..............32 3.3 ...................................................32 3.4 .......................................................33 3.5 ...........................................................33 4 ..............................................34 4.1 panda-client.............................................34 4.2 ghostscript..............................................34 4.3 ...........................................................34 4.4 .......................................................35 4.5 .....................................................36 4.6 ...............................................37 4.7 xmodmap..........................................................38 4.8 devilspie................................................39 4.9 .........................................................40 4.10 ............................................................42 4.11 ......................................................43 2
5
6
7
8
4.12 ......................................................43 4.13 ..............................................44 4.14 ..........................................44 ................................................45 5.1 .........................................45 5.2 IP.......................................................45 5.3 2..........................................................46 5.3.1 ...................................................46 5.3.2 ...................................................47 5.3.3 .....................................................48 5.4 ID.......................................................49 5.5 .........................................49 ..................................................................50 6.1 PostScript.............................................51 6.1.1 Ricoh RPDL4 ........................................53 6.2 OCR......................................................53 6.3 .....................................................54 6.4 .............................................................54 6.5 .................................................54 ........................................................55 7.1 .......................................................55 7.2 ...................................................55 7.3 dbs................................................................55 7.4 .......................................................55 7.5 GTK........................................................55 ....................................................................56 8.1........................................................56
3
11. 1
Debian GNU/Linux 4.0 etch( etch) Ultimate Boot CD1
1. 2
Intel x86 Intel AMD64 64 AMD64 x86 -amd64 -686
1. 3
1. 4
etch ( UTC) BIOS 2 UTC UTC UTC 9
1. 5
CD
etch CD CD Debian GNU/Linux 3 CD CD-R CD r1
1 http://www.ultimatebootcd.com/ 2 http://www3.nict.go.jp/cgi-bin/JST.pl 3 http://www.debian.org/CD/
4
1. 6
# aptitude install xxx-xxxx (root) $ aptitude search xxxx-xxxxx ()
(if (is (aaa) "aa") (aaa) )
x packages upgraded, x newly installed, x to remove and x not upgraded. Need to get xxMB of archives. After unpacking xxMB will be used. Do you want to continue? [Y/n/?]
5
22. 1
Debian GN U/Linux 4.0 ee tch
tch
BIOS CD-ROM CD
"installgui" Enter etch Press F1 for help, or ENTER to boot: installgui
6
2. 2
""
2. 3
"106 " 106
7
2. 4
DHCP
DHCP
debian localdomain 8
2. 5
"2.5.1 " " "HDD " - "
etch
" 1 "
9
""
10
""""
2. 5.1
2.5.2 / 6GB /usr 1~5GB /var 1~GB /home 500MB swap 2 6GB
11
2. 5.2
msdos
12
10GB 4GB 2GB 2GB 2GB ext3 ext3 ext3 swap / /var /home
13
/
4GB
14
"" ""
""
15
"/""" ""
""
2. 6
16
2. 7
root
oruser
17
2. 8
2. 9
""
""
18
"cdn.debian.or.jp"
2. 10
ap t
2. 11
19
2. 12
""""
2. 13
2. 14
us wsu sp
""
20
2. 15
2. 16
""
2. 17
"" etch
21
2. 18
GR UB
Enter 5
2. 19
2.7
22
2. 20
GN OME
GNOME GNOME
23
2. 21
$# Enter $ aptitude install hello #$ oruser@debian:~/$ debian:~# \ Enter $ echo test | \ > cat $ echo test | cat echo cat |(
2. 22
su
su root 2.7 root $ su Password: #
2. 23
ke yri ng
jma-receipt keyring ORCA 24
# wget
http://ftp.orca.med.or.jp/pub/debian/archive.key
--??:??:??-http://ftp.orca.med.or.jp/pub/debian/archive.key => `archive.key' ftp.orca.med.or.jp DNS... 203.178.90.34 ftp.orca.med.or.jp|203.178.90.34|:80 ... HTTP ... 200 OK : 1,686 (1.6K) [text/plain] 100%[====================================>] 1,686 K/s ??:??:?? (37.29 MB/s) - `archive.key' [1686/1686] apt-key ok # apt-key add archive.key ok --.--
25
2. 24
/e tc/ apt /so urc es. lis t
/etc/apt/sources.list # gedit /etc/apt/sources.list
update # aptitude update
26
ftp://cdn.debian.or.jp etch Release.gpg :1 ftp:// cdn.debian.or.jp etch Release [58.2kB] :2 ftp://ftp.orca.med.or.jp etch Release.gpg [189B] :3 http://security.debian.org stable/updates Release.gpg [189B] xkB ??s (13.8kB/s) ... 2.23 keyring
W: GPG error: ftp://ftp.orca.med.or.jp etch Release: : NO_PUBKEY 137E0B9A69C4E4D0 W: apt-get update
/etc/apt/sources.list deb http://cdn.debian.or.jp/debian/ etch main contrib non-free deb-src http://cdn.debian.or.jp/debian/ etch main contrib non-free deb http://ftp.orca.med.or.jp/pub/debian/ etch jma deb-src http://ftp.orca.med.or.jp/pub/debian/ etch jma deb http://security.debian.org/ etch/updates main contrib non-free deb-src http://security.debian.org/ etch/updates main contrib non-free
/etc/apt/sources.list
27
2. 25
su do
sudo sudo oruser 2.7
# export EDITOR=gedit # visudo # /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. # Defaults env_reset
# Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root oruser ALL=(ALL) ALL ALL=(ALL) ALL #
28
2. 26
locales reconfigure
# dpkg-reconfigure locales
ja_JP.EUC-JP ja_JP.UTF-8
29
"ja_JP.UTF-8"
OS
30
3 3. 1 P ost gre SQL PostgreSQL # aptitude install -y postgresql-8.1 PostgreSQL # /etc/init.d/postgresql-8.1 stop # pg_dropcluster 8.1 main # pg_createcluster --locale C -e EUC-JP 8.1 main Creating new cluster (configuration: /etc/postgresql/8.1/main, data: /var/lib/postgresql/8.1/main)... Moving configuration file /var/lib/postgresql/8.1/main/postgresql.conf to /etc/postgresql/8.1/main... Moving configuration file /var/lib/postgresql/8.1/main/pg_hba.conf to /etc/postgresql/8.1/main... Moving configuration file /var/lib/postgresql/8.1/main/pg_ident.conf to /etc/postgresql/8.1/main... Configuring postgresql.conf to use port 5432... # /etc/init.d/postgresql-8.1 start
31
3. 2
sar ge DB
sarge ORCA PostgreSQL orca
# adduser orca --disabled-password PostgreSQL orca # sudo -u postgres createuser --createdb \ --no-superuser --no-createrole orca # sudo -u orca createdb orca CREATE DATABASE # sudo -u orca psql orca < sarge_orca.dump
3. 3
y n y # aptitude install -y jma-receipt
# aptitude install -y jma-receipt-hosp
32
3. 4
DB ormaster ormaster ormaster123 # gluseradd -file /etc/jma-receipt/passwd \ -p ormaster123 ormaster
3. 5
# /etc/init.d/jma-receipt start
33
44. 1
p and a-c lie nt
# aptitude install -y panda-client
4. 2
g hos tsc rip t
ghostscript # dpkg-reconfigure cmap-adobe-japan1
4. 3
# exit exit $
4. 4
ORCA canna-cannadic() canna-canadamed() 34
$ sudo aptitude install -y kinput2-canna canna canna-utils $ sudo aptitude install -y canna-cannadic canna-canadamed $ sudo gedit /etc/canna/default.canna
/etc/canna/default.canna (use-dictionary "gcanna" "gcannaf" ; "iroha" "hojomwd" "hojoswd" :bushu "bushu" :user "user" ; :katakana "katakana" ) ; "101 "->" 1031: "
4. 13
->->
4. 14
44
55. 1
IP 192.168.1.1
255.255.255.0 IP 192.168.1.11 IP 192.168.1.12 IP 192.168.1.111
5. 2
I P
IP /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 # (eth1eth2) # IP # iface eth0 inet static address 192.168.1.11 gateway 192.168.1.1 netmask 255.255.255.0 #
45
5. 3
2
5. 3.1
jma-receipt PostgreSQL orca orca123 # sudo -u postgres psql template1 template1=# ALTER USER orca WITH PASSWORD 'orca123'; ALTER ROLE template1=# \q /etc/postgresql/8.1/main/postgresql.conf /etc/postgresql/8.1/main/pg_hba.conf # gedit /etc/postgresql/8.1/main/postgresql.conf
#--------------------------------------------------------# FILE LOCATIONS # CONNECTIONS AND AUTHENTICATION #---------------------------------------------------------# - Connection Settings listen_addresses = '*' addresses; # defaults to 'localhost', '*' = all port = 5432 max_connections = 100 # note: increasing max_connections costs ~400 bytes of shared memory per #localhost* # comma-separated list of
/etc/postgresql/8.1/main/postgresql.conf
46
# gedit /etc/postgresql/8.1/main/pg_hba.conf # Database administrative login by UNIX sockets local # TYPE host all DATABASE orca postgres USER orca ident sameuser CIDR-ADDRESS 192.168.1.11/32 METHOD password
# "local" is for Unix domain socket connections only local host all all all all 127.0.0.1/32 ident sameuser md5 # IPv4 local connections:
/etc/postgresql/8.1/main/pg_hba.conf
PostgreSQL
# /etc/init.d/postgresql-8.1 restart
5. 3.2
# sudo -u orca psql -h 192.168.1.12 -W orca > Password: orca orca=> \q #
47
/etc/jma-receipt/dbgroup.inc log dbredirector dpkg-reconfigure dbredirector db_group "log" { priority 100; type "PostgreSQL"; port "192.168.1.12"; name "orca"; user "orca"; password "orca123"; file "/var/lib/jma-receipt/dbredirector/orca.log"; redirect_port "localhost"; };
5. 3.3
$ ps ax | grep pos 192.168.1.11
23101 ? S -D/dbdata/data 23104 ? 23106 ? 23734 ? idle S S S
0:00 /usr/lib/postgresql/bin/postmaster 0:01 postgres: stats buffer process 0:02 postgres: stats collector process 0:01 postgres: orca orca 192.168.1.11
48
5. 4
ID
ID JPN999999999999 ID "3.2 sarge ORCA DB " # sudo -u orca \ /usr/lib/jma-receipt/bin/jma-receipt-hospid-set.sh \ 1 JPN999999999999
5. 5
`date`` # /etc/init.d/jma-receipt stop # sudo -u orca pg_dump -c -O orca | \ tee /tmp/orca_db_`date +%Y%m%d`.dump | \ sudo -u orca psql -h 192.168.1.12 -W orca # /etc/init.d/jma-receipt start DB DB /tmp SQL pg_dump -c TABLE dropdb orca->createdb orca
49
6
"http://localhost:631/"
"lp1"
50
6. 1
P ost Scr ipt
lpr PS
"LPD/LPR Host or Printer" IP "192.168.1.111""lp1" URI "lpd://192.168.1.111/lp1"
/"Generic"
51
/"Generic Postscript Printer Foomatic/Postscript"
root root
52
6. 1.1
Ri coh RP DL4
"Ricoh""Ricoh RPDLIV Laser Printer Foomatic/rpdl"
6. 2
O CR
PostScript cupsFilter foomatic-rip foomatic-jma # aptitude install -y jma-fonts # gedit /etc/cups/ppd/lp1.ppd *cupsVersion: 1.0 *cupsManualCopies: True *cupsModelNumber: 2 *cupsFilter: "application/vnd.cups-postscript 0 foomaticjma"
53
6. 3
CUPS # gedit /etc/cups/cupsd.conf BrowseOrder allow,deny BrowseAllow @LOCAL MaxJobs 0 # Default authentication type, when authentication is required...
6. 4
CUPS
6. 5
4.12 "lp1"
54
77. 1
# aptitude install jma-receipt-fdd
7. 2
jma-receview
# aptitude install jma-receview jma-receview-server
7. 3
d bs
# aptitude install jma-receipt-dbs
7. 4
glserverglclient jma-certtool
# aptitude install jma-certtool
7. 5
G TK
glclient GTK1.2
# aptitude install gtk-engines-pixmap
55
8
7.1 7.2 7.5 GTK 3.2 PostgreSQL 8.1 createuser 4.8 4.0pre2 devilspie 4.13 4.14
8. 1
56