2017年11月15日水曜日

Setting up Matlab license server (R2017b)


1. at server, at .../MATLAB/R2017b/etc, set port numbers for SERVER and DAEMON in license.dat.

2. at server, under firewall, under "allow services", in "advanced", open ports for SERVER and DAEMON.

2. at client, put the same license.dat in c/Program Files\MATLAB\R2017b\licenses

2015年6月26日金曜日

start MATLAB license file at startup on OpenSUSE 13.2

1. create the following links if they do not already exist:

ln -s $MATLAB/etc/lmboot /etc/lmboot_TMW
ln -s $MATLAB/etc/lmdown /etc/lmdown_TMW

2. copy boot file to startup directory:

cp $MATLAB/etc/flexnet.boot.linux /etc/init.d/flexnet

3. look in /etc/inittab for the default run level, and create a link in the rc directory associated with that run level. for example, if run level is 5, then:

cd /etc/init.d/rc5.d
ls -s ../flexnet S13flexnet

setting up openssh on SuSE 13.2

1. configure ssh daemon at:

/etc/ssh/sshd_config

2. to enable ssh server, do the following as root:

systemctl enable sshd
systemctl start sshd

3. to restart sshd after a change to sshd_config:

rcsshd restart

4. can check if a specific port is open:

nmap -p PORT_NUMBER IP_ADDR

5. generate private and public keys (id_rsa, id_rsa.pub) using the following:

ssh-keygen

6. to upload the public key to the server:

ssh-copy-id name@ssh.server.org

using Cygwin in windows 8.1, need to run:

chgrp Users ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa

2015年6月6日土曜日

lenovo x240s bluetooth trouble

bluetooth stopped working after some windows 8.1 automatic system update, to the extent that bluetooth disappeared from "network adaptors" in "device manger", and "PC & device" stopped showing the "bluetooth" tab. turns out it's a Intel driver update problem:

https://forums.lenovo.com/t5/X-Series-ThinkPad-Laptops/X240-with-7260-ac-the-bluetooth-not-working/td-p/1369101

basically I need driver version 3.1.1307 for Intel 7260. thanks for user Mariusz for the valuable find!

2012年10月28日日曜日

merge mp3 files to one file (OpenSuSE 12.2)

step 1:  concatenate files into one mp3 file.
> cat file1.mp3 file2.mp3 ... > joined.mp3

step 2:  repair broken files using ffmpeg.
> ffmpeg -i joined.mp3 -acodec copy output.mp3

step 3:  copy ID3-tag from a file to the new file. install package id3lib-examples if needed.
> id3cp file1.mp3 output.mp3

2012年10月16日火曜日

Disable ActiveX in Office 2010

step 1: go to the "ファイル" tab, click on "オプション".

step 2: look for "セキュリティセンター" on the left, and then click "セキュリティセンターの設定".

step 3: look for "ActiveXの設定" on the left, and check the box named "警告を表示せずにすべてのコントロールを無効にする".

Safety Tips for Adobe Reader

do the following two steps to disable: i) JavaScript, and ii) opening of attachments using other program inside pdf:

step 1: go to "編集" tab, select "環境設定".
step 2: locate "JavaScript" on the left, and uncheck the box named "Acrobat JavaScript".

step 1: go to "編集" table, select "環境設定".
step 2: locate "信頼性管理マネージャー", and uncheck the box named "外部アプリケーションでPDF以外の添付ファイルを開くことを許可".