Skip to content

Instantly share code, notes, and snippets.

@miyucy
Created March 10, 2017 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miyucy/349ce89b978a5429857dac2f84c7a194 to your computer and use it in GitHub Desktop.
Save miyucy/349ce89b978a5429857dac2f84c7a194 to your computer and use it in GitHub Desktop.
# https://www.orca.med.or.jp/receipt/download/xenial/xenial_install_50.html
# keyringの追加
curl https://ftp.orca.med.or.jp/pub/ubuntu/archive.key > /tmp/archive.key
sudo apt-key add /tmp/archive.key
rm /tmp/archive.key
# sourcelineの追加
curl https://ftp.orca.med.or.jp/pub/ubuntu/jma-receipt-xenial50.list > /tmp/jma-receipt-xenial50.list
sudo mv /tmp/jma-receipt-xenial50.list /etc/apt/sources.list.d/jma-receipt-xenial50.list
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
sudo apt-get install -y syslinux-common jma-receipt
sudo jma-setup
# http://www.orca.med.or.jp/receipt/download/trusty/trusty_install_50.html#receipt-install
# ormasterパスワードの設定
# 日レセのセットアップ直後のデータベースに登録されているormasterユーザにパスワードを設定します。
# 以下のコマンドを実行すると、/etc/jma-receipt/passwdが存在しない場合は、ormasterのパスワード設定を求められるので、任意のパスワードを設定してください。
# sudo touch /etc/jma-receipt/passwd
sudo -u orca /usr/lib/jma-receipt/bin/passwd_store.sh
# sudo vi /etc/postgresql/9.5/main/pg_hba.conf に下の行を追記
# host all all 0.0.0.0/0 trust
# sudo vi /etc/postgresql/9.5/main/postgresql.conf に下の行を追記
# listen_addresses = '*'
# DB再起動するとmacから postgresql://orca:@localhost:15432/orca で日レセのDBが見れる
# sudo service postgresql restart
# sudo service jma-receipt restart
# -*- mode: ruby -*-
Vagrant.configure(2) do |config|
config.vm.box = 'ubuntu/xenial64'
config.vm.network 'forwarded_port', guest: 5432, host: 15432
config.vm.network 'forwarded_port', guest: 8000, host: 18000
config.vm.provider 'virtualbox' do |vb|
vb.cpus = 4
vb.memory = 4094
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment