2014年4月5日土曜日

ORCAインストール (OpenDolphin用)

Dr.Mのマニュアルを参考にUbuntu12.04LTS Server ORCA4.7用に改編

OpenDolphin日記も参考にさせていただいております。


仮想マシン:Ubuntu64bit用を選択 メモリ1024MB HDD8G


Ubuntuインストール

日本を選択。
キーボード日本語選択。
DHCP設定の前にESC押して固定アドレス設定。
192.168.x.100 固定アドレス
255.255.255.0 netmask
192.168.x.1 gateway
192.168.x.1 name server(s)
ディスク全体を使う
暗号化しない
パッケージでOpenSSH serverを選択する。
GRUB はい
再起動。

他端末からログイン

IPv6を無効にするために、ファイルの最後に2行追加

$ sudo vi /etc/sysctl.conf
..
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1

NTPをインストールする
$ sudo aptitude install -y ntp

NTPサーバーを設定。
$ sudo vi /etc/ntp.conf
..
server ntp.nict.jp (ネットワーク的に近いところ)

日医標準レセプトソフト (ORCA4.7)のインストール

$ sudo -i
# wget -q http://ftp.orca.med.or.jp/pub/ubuntu/archive.key 
# apt-key add archive.key
# wget -q -O /etc/apt/sources.list.d/jma-receipt-precise47.list http://ftp.orca.med.or.jp/pub/ubuntu/jma-receipt-precise47.list
# apt-get update
# apt-get dist-upgrade
# exit
$ sudo apt-get install -y jma-receipt
$ sudo dpkg-reconfigure -p critical jma-receipt
$ sudo jma-setup
$ sudo service jma-receipt start
$ sudo gluseradd -file /etc/jma-receipt/passwd -p ormaster123 ormaster


CUPSインストール、設定

$ sudo aptitude install -y cups
$ sudo vi /etc/cups/cupsd.conf
..
# Only listen for connections from the local machine.
Listen 192.168.x.100:631 (<--localhostからこのマシンのアドレスに変更)
Listen /var/run/cups/cups.sock
..
# Restrict access to the server.
..
<Location />  Order allow,deny
  Allow 192.168.x.0/24(追加)
</Location>
..
# Restrict access to the admin pages.
..
<Location /admin>  Order allow,deny
  Allow 192.168.x.0/24(追加)
</Location>
..
MaxJobs 0(追加)
$ sudo service cups restart


日本語印刷のためpoppler-dataパッケージ追加

参考:OpenDolphin日記

$ sudo aptitude install poppler-data



MFC-8870DWのLinux用ドライバをインストール


$ sudo bash ./linux-brjprinter-installer-2.0.0-1 MFC-8870DW

OpenDolphinとの連携のためにPostgreSQL設定


$ sudo vi /etc/postgresql/9.1/main/postgresql.conf
..
# - Connection Settings -
..
listen_addresses = '*' # what IP address(es) to listen on;
先頭の#とって、localhostから*に)

$ sudo vi /etc/postgresql/9.1/main/pg_hba.conf
..
# IPv4 local connections:
host all  all  127.0.0.1/32      md5
host all all 192.168.x.0/24 trust(追加)


OpenDolphinとの連携のためにORCAの設定

$ sudo dpkg-reconfigure jma-receipt
いいえ、いいえ、はい、8210のまま

$ sudo reboot

Webブラウザでhttp://192.168.x.100:631

プリンターの追加:OpenDolphin日記参照

ORCAクライアントから接続してテスト印刷してみる。

0 件のコメント:

コメントを投稿