LoginSignup
4
2

More than 5 years have passed since last update.

Login Named User on Matlab and EC2

Last updated at Posted at 2016-05-27

AWS(EC2)でMatlabを使うには、Login Named Userのライセンス形態を使う必要がある。

Standalone Named Userとの違い
  • Standalone Named User:ライセンスを使用する端末のhostidに紐付ける(4台まで)

  • Login Named User:Matlab立ち上げ時にライセンスに紐付いているユーザ名(メールアドレス)、パスワードを入力する

スポットインスタンス使用時などに、以前に保存したAMIから異なるインスタンスを立ち上げた時にはhostidが変わるので、Standalone Named Userだと認証に失敗する。

やること
  1. Mathworksのアカウント変更
    以下のリンクから行う。Cookieを一度削除しないとアクセスできないかも
    https://www.mathworks.com/licensecenter/hosting_provider

  2. Hostnameの変更
    以下のリンクを参考にした
    http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/set-hostname.html
    設定ファイル
    /etc/sysconfig/network
    /etc/hosts
    を書き換え、sudo rebootで再起動し、コマンドプロンプトのホスト名が変わっていることを確かめる。

  3. cloud.cfgの編集
    これだけだと新しいスポットインスタンスを起動時に設定ファイルが元に戻ってしまうので、そうならないように
    /etc/cloud/cloud.cfg
    を編集
    - update_hostnameとある行をコメントアウト
    CentOS6ではこの設定は関係無い?

  4. すでにMatlabをインストールしている場合にはdeactivate、その後activate
    「Authenticate (log in) each time the software starts」というオプションが表示されるので、そのボタンをチェック

  5. Authorize this computer now

  6. Authenticate (log in) each time the software starts

やっぱりスポットインスタンス起動時にhostnameが元に戻る。。引き続き調べることにする。
とりあえずsudo hostname xxxと叩けば使えるけど。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2