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以外の添付ファイルを開くことを許可".

RLO対策

This is to avoid the virus .exe file masquerading as some other files with a different extensions like .pdf by reversing the order in which filenames and extensions are displayed. this procedure was done on windows 7 professional edition.

step 1: in the start button, type "ローカル" in the search box, to locate program called "ローカルセキュリティポリシー".

step 2: local "ソフトウェアの制限のポリシー", right click to locate "新しいソフトウェアの制限のポリシー".

step 3: under "追加の規則", right click to locate "新しいパスの規則".

step 4: under パス, enter "**". put cursor in-between the two hash mark, right click to locate "unicode制限文字の挿入". select "RLO".

step 5: exit all windows.

2012年9月26日水曜日

Disabling the system bell in OpenSuSE 12.2


Step 1: edit the ".input.rc" script in home directory. uncomment the line "set bell-style none".

Step 2: edit the ".profile" script in home directory. add "xset b off".

2012年9月24日月曜日

Setting up Matlab license manager on OpenSuSE 12.2

This was quite painful, as just following the official online instructions do not work. here is what i did:

Step 0. log into your Matlab account, and download the license file, the one w/ .lic extension.

Step 1. as root, install Matlab license manager. l put it in /usr/local/bin/MATLAB/R2012b/

Step 2. before u run "lmstart" as regular user (not superuser), make sure u have "lsb" package installed. u can do so easily using yast in OpenSuSE.

Step 3. run "lmstart" to see if it works. if so, follow official instructions so "lmstart" will run automatically at startup.

Step 4. in the installed Matlab directory, find "license.dat" file in "etc" directory. edit the "SERVER" line to make sure the hostname is full w/ domain extension as well. check the port number at the end, which by default is 27000. in the DEAMON line, add "port 27002". (swap port number other 27002 if u like, but it is recommended to use number between 27000 and 27010.)

Step 5. go to firewall setting and add TCP port number "27000" and "27002" (or your favorite port number) to the exclusion list.

Step 6. share the modified "license.dat" files w/ concurrent users. they will need it during Matlab installation.

2012年9月21日金曜日

Change port number in ssh (OpenSuSE 12.2)


for security reason, u may want to change your default ssh port number 22 to some other port. 

Step 1:  as root, go to /etc/ssh and edit file "sshd_config". change the following line:

#Port 22            % default port
Port 1234           % new port

Step 2:  reload configuration file, by doing a "rcsshd restart" or "rcsshd reload".

Step 3:  make sure new port is allowable in firewall setting. use YaST, go to "firewall", "Allowed Services", make sure "Secure Shell Server" is added, then click "Advanced", and add your new port number "1234" to TCP.