Post date: Jul 19, 2017 2:45:39 AM
How to Update License via terminal in MAC OS
Step 1: Log In to server via ssh
$ ssh photchara@ace.handai.tk
IP Address : 133.1.2.14
Host Name : ace.handai.tk
OS : CentOS 6.6
Step 2: enter your password
Username : photchara@ace.handai.tk
Password : lab usual
Step 3: go to
$ cd /usr/local/MATLAB/R20xxx/etc
Step 4: download the latest license manager binary from Matlab page
$ sudo wget http://ssd.mathworks.com/supportfiles/downloads/R2017b/license_manager/R2017b/daemons/glnxa64/flexnet_glnxa64.zip
Step 5: To update the license manager, shut down the license manager first
$ sudo -u matlab ./lmdown
Step 6: replace the binaries on the server with the ones you downloaded.
$ cp /path/to/.directory/filename ~/Desktop
Step 7: Once the binaries are updated, the license file must also be updated.
Open the license file on the server and the updated license file you downloaded side-by-side.
The old license file will contain SERVER and DAEMON lines at the top.
The new license file but the new one will not.
( SERVER and DAEMON lines are specific to your server and cannot be downloaded from the MathWorks website. Rather, they are added to the license file by the MATLAB installer, so they must be preserved)
Step 8: Copy the contents of the new license file into the old one beneath the DAEMON line, thereby preserving the SERVER and DAEMON lines but replacing the old INCREMENT lines.
http://www.control-escape.com/linux/editing-vim.html
$ vi license.dat
Step 9: Save the updated license file.
Step 10: Once the license file is saved, you can start the license manager again. It will now be serving the updated license file.
$ sudo -u matlab ./lmstart
■Master License No. 30877017
■Master License Administrator: Ratsamee Photchara 様
Note
・自分のマシンに合う iso と license.dat をローカルにコピーし、iso をマウントします。
・インストーラを起動し、次のサイトに従ってインストールします。
http://www.mathworks.co.jp/support/solutions/ja/data/1-DNWCWT/index.html?solution=1-DNWCWT (R2014a は「このページの下部にある「R2014a:」をご参考いただけます。」と書かれてるとおり下に記述)
ただし上の手順で ・起動直後のインストール方式の選択は「ファイルインストールキーを使用する」を選択 ・ファイルインストールキーを聞かれたら次のものを入力する
R2014a File Installation Key: 24045-04752-44813-16312-19567 (旧キー 13859-23293-00573-23408-03265 もし動かなければこちらも試す)
・デフォルトの通り、License Manager は必要ないのでインストールしない ・ライセンスファイルを指定するように言われたら、 先ほどローカルに一緒にコピーした license.dat を指定する
・デフォルトの設定のままだとサーバーと同じネットワーク (133.1.2.x) に クライアントがある場合しか使えないので、ネットワークから利用するために次の設定を行う。 (このままだとルータを介したアクセスができない) 色々検討した結果、hosts (例えば Win の場合は C:\Windows\System32\drivers\etc\hosts) を 直接書き換えるのが早くてよい。このファイルに次のエントリを足す。
133.1.2.12 luffy
一応、ping luffy で通るかも確認しておくとよい。
staff in Thailand aditap@techsource-asia.com
https://jp.mathworks.com/matlabcentral/answers/106003-how-do-i-install-a-matlab-client-for-a-network-license
https://www.mathworks.com/matlabcentral/answers/105860-how-do-i-install-or-update-the-matlab-license-manager
https://www.mathworks.com/support/install/license_manager_files.html
https://www.mathworks.com/help/install/ug/update-license-manager-installation.html
1. Remove : https://askubuntu.com/questions/217893/how-to-delete-a-non-empty-directory-in-terminal
rm -rf yourfolder
2.