Posted
Filed under Computer/HPC
* CEPh (Server environment)
- Physical storage clustering
- only one access point(a mount point on one of a node) only can access one storage device
- useful
  - increase I/O performance to one of a server's I/O
  - the storage device for HA server.
  - provide single storage device(rbd) per mount point in a storage pool.
  - Not support a single storage device(rbd) to a multi-mount point ( not support multi-nodes )

* Lustre (HPC computing environment)
- http://lustre.org/
- https://downloads.hpdd.intel.com/public/lustre/
- Physical storage clustering 
- Support TCP/IP(Ethernet/IPoIB)
- multi-access point(a mount point on multi-nodes) can access same storage device
- Support Ethernet network protocol (Ethernet/IP over IB)
- useful
  - increase I/O performance
  - provide single storage device to a mount point on multi-hosts (Similar to NFS mount)
* BeeGFS (HPC computing environment)
- https://www.beegfs.io/
- Physical storage clustering 
- Support TCP/IP, IB
- multi-access point(a mount point on multi-nodes) can access same storage device
- useful
  - increase I/O performance
  - provide single storage device to a mount point on multi-hosts (Similar to NFS mount)

* GlusterFS (HPC computing environment)
- https://www.gluster.org/
- Physical storage clustering 
- Support TCP/IP, IB, Socket direct protocol
- multi-access point(a mount point on multi-nodes) can access same storage device
- useful
  - increase I/O performance
  - provide single storage device to a mount point on multi-hosts (Similar to NFS mount)
2018/03/24 07:58 2018/03/24 07:58
[로그인][오픈아이디란?]
Posted
Filed under Computer/Shop
Kalculator (AppStore Name : Ealculator)
[iOS App] at App Store


  
 
   

   

     

 





Description

This is a simple calculator for engineers and general users.
The main screen is a regular calculator design.

The Run button has the same color system and has separated the functions of the buttons by color.

Features for general users:
- General calculator function
- Number count function
  the number will increase 1 when you touch the “count” button.
  anyone can easily count something 
  
- Timer function
  if press Timer button then the button changed color to red and text will “start”
  if finished the timer then it will play sound about 10min.
  But, if you press “AC” button or “start” of timer then the sound will be stop.
  timer express : <hours>:<min>:<sec>
  if you type 1 then timer will start with 1hour
  if you type 00:5 then the timer will start with 5min
  if you type 00:100 then the timer will start with 1hour 40min (100min)
  if you type 00:00:005 then the timer will start with 5sec
  “AC” button will reset the timer.

- Stopwatch function
  it will increase 1/100 second.
  when touch “stopwatch” button then the stopwatch will start.
  and the button will changed pause.
  if press the “pause” button then stopwatch will paused on screen,
  but keep increasing the time in the background.
  so, if you press “resume” button then the screen keep going the time.
  “AC” button will stop and reset the stopwatch.
- Tip (Percent) value calculation function
  if you want get 15% price  of $25 then type "25TIP[15]"
- Calculate Percent(P(%)) of value rate (X:Y)
  if you want % value of 10/100 then type "10:100"
- Main screen is simple design for basic calculator .
- copy&paste calculated result
  if you want copy the calculate value then click "C" on the screen 
  if you want past to screen from coped meory then click "P" on the screen.
- copy&paste function string or data from/to other apps
- save to history and back from history
- Time calculator (hours between date time, forward(add) or backward hours from date time)
- Unit converter (included it at version 1.1.x)
  + SI Unit
  + Computer : Byte, KByte, ....
  + Temperature : C, F, K
  + Length : mm, cm, m, km, in, ft, yd, mi,
cun(寸), chi(尺)bu(步)li(里)...

  + Area : cm^2, m^2, in^2, ft^2, acre, pyeong(평), ...
  + Mass : g, kg, lb, oz, ...
  + Volume : ml, cc, liter, bal,
dan(石),hu(斛),dou(斗),sheng(升),ge(合),shao(勺), ...

  + Food : Cups, FL Oz, Pint, Quart, Tbsp, Tsp, ml
  + Speed : mph, km/h,....
  + Decimals: hexa(16), Decimals(10), octal(8), binary(2)


Feature for Engineers:
- convert mac address to integer and backward 
(Calculate mac address from known port's mac address)
- Convert IP address to integer and backward
(Find IP address of a node number/Find node number from IP address when the system has serialized IP address)
- Calculate size as a ratio of rectangle
- Find an average value
- convert date time to second and backward
- IP Calculator (CID, Netmask, Network, Nodes, Broadcast, ...)
  expression: 192.168.0.1:25 or 192.168.0.1:255.255.255.128
- Math (cos, sine, tan, arccos, arcsine, arctan, cosh, sinh, tanh, ...)



Features to be added in future versions:
- More mathematical operations
- Enhance math operation 


App Store Version History
1.0.16

Initial release to App store


1.0.17

Added count, Timer, Stopwatch function
Enhanced calculation speed
Enhanced filter out method for wrong expressions.
Changed design to more easily find button.
Fixed miner bugs.

1.1.19

Added Unit converter
Fixed miner bugs

1.4.12

Added Math
Added IP Calculator
Added Time Calculator
Enhanced brightness handle
Enhanced sound handle when finished timer.
Fixed miner bugs

1.4.13
Fixed math expressions for long calculation ( previous version was calculated simple (short) expression)

Compatibility: Requires iOS 9.0 or later. Compatible with iPhone, iPad, and iPod touch.



Button explain:
Tip : Calculate Tip or percentage value.
(Ex: I will pay $25. and I will give Tip to 15% then : 25TIP[15] = 3.75
If you want total price then : 25 + 25TIP[15] = 28.75)
IP:Num : convert between IP address and number
IP Cal : Calculate IP address from <IP Address>:<CID> or <IP Address>:<netmask> to available IP Address, broadcast, CID, netmask, available network blocks, network.
Math: cos, sine, tan, cosh, sinh, tanh, arccos, arcsine, arctan,....
Mac2Num : convert Mac address to number
Num2Mac : convert number to Mac address
Time2Sec : convert date time to second
Sec2Time : convert second to date time
Time Cal : Calculate between date times or calculate date from a date time to additional hours.
Stropwatch : stopwatch (pause, resume)  (measuring time) (when starting this function then changed the button color. So, easily found the button.)
Timer : Count down / Timer (When waiting cook time, etc) (when starting this function then changed the button color. So, easily found the button.)
Count : just number increase when click "Count" button. (When counting items, goods, etc)
A~F : For hex code or Mac address
AC : Clean screen or reset Timer, Stopwatch, ... functions.
: Delete charactor
←  or → : Move cursor 
"<<"  or  ">>" button is history back or forward function.
% : modulo(MOD) calculator
P(%) : Percent calculator
Ratio : Ractangle ratio calculator
 (I want X value. but, I known Y and Z:P value (X:Y = Z:P)
   YRATIO[Z:P] = X.    ( 10RATIO[1:5] = 2) )
! : Factorial calculator
SP : Space bar
AVG : Average calculator 
  - Average of Numbers for 2,3,4,5 => AVG[2,3,4,5] = 3.5 
, : for AVG function
] :  if you have a mistake for delete function's "]" symbol then recover it with this button.
: : When using Ratio or Mac Address write.
Unit : convert unit from displayed value to your want value.
 - How many teaspoon for 10ml ? 
    10 -> Unit -> Food -> ml -> TSP -> Display "10ml -> 2TSP"  at Top of poped up window 
    the result will display at main display screen

    it can convert unit any location at your calculate string
    if you click "Cancel" button then restore to original your string.

x^y : Power calculate 
 - 3^2 = 9,  2^3 = 8
log : Logarithm
  - default : log(X) => LOG[10,X] => LOG[X]
  - 
log2 X => LOG[2,X]
  
- ln(X) => logE X => LOG[E,X] 

2017/11/07 07:18 2017/11/07 07:18
[로그인][오픈아이디란?]
Posted
Filed under Computer/smart phone
최근에 애들이 크면서 휴대용 Device를 사용하는 시간이 늘어나게 되면서 이런저런 소프트웨어를 살펴보게되었다. 이 내용은 극히 개인적으로 잠시동안 테스트 해보면서 느낀 개인적인 느낌이므로 다른 사람의 환경에서는 다르게 느낄수 있다는것을 이야기해보면서….

* Screen : Free
OS: Apple, Android, Computer and 자체 device for TV, Game, ETC.
사용 통계.
Control :  remote device.
Block 시간대 schedule
사용 가능한 시간대 schedule
어떤거든 하루 사용 가능한 총 시간 설정 기능(하루 2시간 동안만 사용 가능 등...)
임시 Block기능
Block 기능은 자꾸 screen lock를 걸거나 화면을 계속 꺼준다. (귀찮게)
임시 Block기능에 대해 약간 반응은 느린편
난 개인적으로 하루동안 사용 가능한 시간양을 설정할수 있는것이 마음에 든다.
** OurPact : Free
OS : Apple
Control : remote device.
Block 시간대 Schedule
임시 사용 가능한 시간양을 줄수 있음.
임시 Block 가능한 시간양을 줄수 있음.
Block 기능은 아예 iPad/iPhone의 기본 소프트웨어(설정/달력/시계/메일/사진보기/친구찾기/SMS/주소록/음악/노트 정도) 이외에는 모두 숨겨버림.
실행중인 프로그램 이나 프로그램 떠 있는 리스트에서도 모두 없애버림.
임시 적용에 대해 반응은 빠른편
*** Kidslox : $6.99
OS: Apple, Windows, Android
Control : Self device, remote device.
Block 시간대 Schedule
임시 사용 가능한 시간양을 줄수 있음.
임시 Block 가능한 시간양을 줄수 있음.
Block 기능은 아예 iPad/iPhone의 기본 소프트웨어(설정/달력/시계/메일/사진보기/친구찾기/SMS/주소록/음악/노트 정도) 이외에는 모두 숨겨버림.
실행중인 프로그램 이나 프로그램 떠 있는 리스트에서도 모두 없애버림.
설정기능이 부모모드/애들모드/Block모드 로 3가지임.
부모 모드는 모두 기능 끔.
애들모드는 설정된 영역의 Application정도만 사용가능, 나머지는 사라짐.
Block모드는 기본 프로그램 몇개 빼고는 모두 사라짐.
App store control기능.
임시 적용에 대해 반응은 빠름.
그러나 인터넷이 안되는 환경에서는 장비를 컨트롤을 할수가 없는 취약점이 있다.
그래서 만약에 lock를 걸고 인터넷이 안되는 곳으로 가게되면 그 장비는 lock를 풀수가 없어 사용 불가이다.
방법은 그 소프트웨어의 메인 키를 삭제 해야만 사용가능하게 된다.
인터넷이 약간 불안한 환경에서는 컨트롤 반응이 아주 안좋다는 단점도 있다.
여행을 갔다 오면서 아주 유용하게 사용하기도 했지만, 컨트롤 문제때문에 아주 답답한 경우도 발생 되었었다.
Kidtrol : Free 
OS: Apple, Android
Control : remote device.
Block 시간대 schedule with selected application  (FaceTime, Safari, Camera, Third Party Apps)
임시 사용가능한 시간양을 줄수 있음.
임시 Block 가능한 시간양을 줄수 있음.
Block기능은 아예 Application를 사라지게 함.
임시 적용 반응이나 Schedule 반응이 정확하지 않음. (잘되는 편이나 그렇지 않을때도 많음.)
2016/08/21 02:10 2016/08/21 02:10
[로그인][오픈아이디란?]
Posted
Filed under Computer/package
k (1.1.3.101) command python version.

"k" command helpful console work and saving and searching your idea to the command's DB.
This is very simple command. but sometimes helpful to you.

Install :
1. download cep.pyc and k.py file (If you want sample DB file then download cep.db file)
2. copy thoese file to your bin directory.
3. mv k.py to k or make a soft link as "ln -s k.py k"
4. change permission to excutable (chmod +x k.py)
5. set your bin directory to PATH ( ex: ~/bin ,  echo "export PATH=${PATH}:~/bin" >> ~/.bashrc )
If your system have no python3 version then modify k.py file from "python3" to "python" at first line in k.py file.


Help:
$ k --help
CEP(Kage) personal command and library
  for helping CEP
  version: 1.1.3.101
  lib ver: 1.8.6.85

Usage)
/Users/kpark/bin/k <option>

 --help [<module>] : help [ for <module>]
 -v(--version) : version
 -b(--build) <file>    : build to binary file
 -m(--module) -b(--build) <file> : build to library file
 -h <hostname> : Make a hostname list

/Users/kpark/bin/k <command> [<option of command>]

 show/look/what            : show DB
   ( Make a done a task in show command )
 save/add                  : save to DB
 update/change/replace     : update to DB (*** Not support yet, just scheduled)
 recover                   : recover from trash to original DB (*** Not support yet, just scheduled)
 memory/remember           : save to DB
 forget/del/delete/trash   : remove in DB
 search  <string>          : find a <string> in all DB
 cleanup                   : Cleanup garbage data in DB file
 cleanup trash [all]       : Cleanup trash DB (all: make a empty trash) (default: remain 7days trash from now on)
 pkg                       : Package handle

 ping [<option of command>]
 ssh [<option of command>] -h [<id>@]<host> [<command>]
 scp [<option of command>] <file> [<id>@]<host>:[<path>]
 rsync [<option of command>] <file> [<id>@]<host>:[<path>]
 vi [<option of command>] <file>


Example)
make a your own domain system.
$ k add host <hostname> --ip <ip> [ --desc "<descriptions>" ] [ --keyfile <ssh password less key file> ]
$ k add host my_laptop --ip 192.168.1.100
$ k add host my_laptop1 --ip 192.168.1.101 --desc "testing server"
$ k add host my_laptop2 --ip 192.168.1.102 --desc "password less ssh server" --keyfile ~/.ssh/id_rsa

Show host list
$ k show host
192.168.1.100  my_laptop :
192.168.1.101  my_laptop1 : testing server
192.168.1.102  my_laptop2 : password less ssh server

SSH/SCP/PING command ( command expression is same as Linux default commands )
$ k ping my_laptop
PING 192.168.1.100 (192.168.1.100): 56 data bytes
64 bytes from 192.168.1.100: icmp_seq=0 ttl=64 time=1.472 ms
64 bytes from 192.168.1.100: icmp_seq=1 ttl=64 time=0.622 ms

$ k ssh me@my_laptop2
Warning: Permanently added '192.168.1.102' (ECDSA) to the list of known hosts.
Last login: Fri Aug 19 14:53:40 2016 from 192.168.1.100
my_laptop2:~ me$
<< Automatically download ssh-key data from DB and using ssh with temporary file and removed it >>

scp also using ssh-key file from DB.

SSH/SCP/PING/RSYNC finding from DB and /etc/hosts and DNS. if using IP then just using the IP.
So, no matter what working as normal your operation on your linux box.

Your own shell script commands :
if you make a simple script then your can add your script to the DB.
and you can use your own script from "k" command.

example)
$ k show shell
1471648123.631903 k

make a sample script
$ k k.k make_temp test

$ k vi test.k
<< modify  k shell for you >>

Add the test.k (k shell) to DB.
$ k add shell test --file test.k
Saved

$k show shell
1471648123.631903 k
1471648164.937767 test

Run the k shell from "k" command.
$ k kage$ k test --help
sh [<opt> [<input>] ]  <== this is a bug at marge from old k shell to "k" command.
  sh <filename> <== this is a bug at marge from old k shell to "k" command.

  --help : help
  -t <string> : test

$ k test -t abc
abc


k shell example)
_k_test() {
  << main code >>
}

This "_k_<command name>() {}" is main function.
If you want using k shell then you can add "#include k.k" in your script like as test.k script.
Then you can use k shell scripting.

very simple test2 script.
$ vi test2.k
_k_test2() {
    if [ "$1" == "--help" ]; then
          echo "My test2 help"
          exit
    elif [ "$1" == "-show" ]; then
         shift 1
         echo $*
    else
         echo $*
    fi
}

very simple test3 script.
$ vi test3.k
#include k.k
_k_test3() {
    opt=("$@")
    if _k_opt --help 0 0 "${opt[@]}" >/dev/null; then
          echo "My test3 help"
          exit
   elif get_val=$(_k_opt -t 1 0 "${opt[@]}"); then
      _k_test3_sample $get_val || return 1
   else
            echo "Unknown option"
            _k_exit 1
   fi
}

_k_test3_sample() {
     echo $*
}


It has no update function yet.
So, if you save wrong information or no more need saved information then please remove the information and re-add new information.

If you remove a data in DB then the data will be saved at trash table in the same DB.
So, you can recover it later. (not yet support recover function)

and you can use any linux command with "k" command like this.
$ k ls -F
Documents/                   initial-setup-ks.cfg           python/     Videos/
Downloads/    anaconda-ks.cfg   Pictures/  rpmbuild/   bin/               Desktop/
Music/                    Public/    Templates/

$ k cat -A anaconda-ks.cfg  | more
#version=RHEL7$
# System authorization information$
auth --enableshadow --passalgo=sha512$

2016/08/20 20:38 2016/08/20 20:38
[로그인][오픈아이디란?]
Posted
Filed under Computer/Mac
Mac mini에서 VPN를 설정하기 위해서는 server package를 구매해야 한다.
그러나 OS가 업그래이드 되면 server package는 그 에 맞는 버전을 새로 구매해야만 한다.

10.11로 업그레이드 했다가 데이터 날려먹고, 시스템이 병들어서 시름 시름 죽는다.
그래서 다시 다운 그래이드를 했다. 

다시 10.10으로 깔은것이다.

그러고 나서는 server package에서도 VPN이 정상 작동되지 않고 server package 및 몇가지 기능들이 정상 작동되지 않는다.
완전 미쳐버린다.

일단은 그냥 모든걸 버리고 안전하게 OpenVPN으로 가보려 시도 했다.
인터넷 상의 문서들을 참고로 했는데 뭔지 모를 이상한것으로 안된다.

그래서 이것저것 조합해서 해보다 보니 잘된다.

다음 내용이 그러하다.

0. Environments
    MAC Server IP : 192.168.1.x /24 (Currently using IP address)
    MAC Server network device : en0
    MAC Server default gateway : 192.168.1.1 (Router IP)
    VPN virtual IP : 10.1.0.x / 24
    VPN virtual GW: 10.1.0.1
    VPN Protocol : UDP
    VPN device  : tun
    VPN Port : 443

1. mac port를 설치해줘야 편하다. 
(mac port는 XCode가 설치되어 있어야 한다.)
download : https://www.macports.org/install.php

2. openvpn 설치
$ sudo port selfupdate
$ sudo port install openvpn

3. Install turnelblicks
download : https://tunnelblick.net/ ( old : https://code.google.com/p/tunnelblick/)

4. make a certification file (server / client)
root account로 작업을 해야 하는것이 있으므로 root account를 활성화해야한다.
$ dsenableroot

$ mkdir -p ~/Backups/OpenVPN/easy-rsa-tunnelblick
$ sudo rsync -va /Applications/Tunnelblick.app/Contents/Resources/easy-rsa-tunnelblick/ ~/Backups/OpenVPN/easy-rsa-tunnelblick/
$ su -
# cd ~<user>/Backups/OpenVPN/easy-rsa-tunnelblick/
# vi vars
적당히 본인에 맞게 수정한다.

# mkdir -m go-rwx ./keys
# touch ./keys/index.txt
# echo 1 > ./keys/serial
# . ./vars
# ./clean-all
# ./build-ca --pass

make a server's key file
# ./build-key-server <server domain name>

make a client's key file
# ./build-key <client domain name>

# ./build-dh
# /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.6/openvpn --genkey --secret ./keys/ta.key
# cd keys
# openssl verify -CAfile ca.crt ca.crt
# openssl verify -CAfile ca.crt <server domain name>.crt
# openssl verify -CAfile ca.crt <client domain name>.crt
# mkdir ~<user>/Desktop/<server domain name>_tun.tblk
# cd ~/Backups/OpenVPN/easy-rsa-tunnelblick/keys/
# cp -p ca.crt dh4096.pem <server domain name>.crt  <server domain name>.key ta.key ~<user>/Desktop/<server domain name>_tun.tblk
# exit
$ sudo chown -R <user> ~/Desktop/<server domain name>_tun.tblk
$ cd ~/Desktop/<server domain name>_tun.tblk

* Add port forwarding "proto: UDP,  port: 443, <server real ip>" to firewall or router.

5. make a server configuration file.
$ vi server.opvn
----------------------------------------------------------------
# global config
port 443
proto udp
dev tun
# Keys
ca ca.crt
cert <server domain name>.crt
key <server domain name>.key
dh dh4096.pem
#Users
user nobody
group nobody
# Connection type
client-to-client
server 10.1.0.0 255.255.255.0
keepalive 10 120
comp-lzo
persist-key
persist-tun
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push redirect-gateway 10.1.0.1
verb 3
----------------------------------------------------------------

Double click "<server domain name>_tun.tblk" on your desk top screen.
Then check and add to tunnelblicks.

6. connect for server running.
add ip forwarding to the system between 10.1.0.x and <server real ip>.
$ sudo sysctl -w net.inet.ip.forwarding=1

click connect on tunnelblick software.
then will be connected.

7. make a client configuration file.
$ vi ~/Desktop/<client domain name>.ovpn
--------------------------------------------------
client
dev tun
proto udp
remote <remote ip address of openvpn server>  443
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;auth-user-pass
comp-lzo
verb 3
redirect-gateway def1
<ca>
---------------------------------------------
#  cat ~<user>/Backups/OpenVPN/easy-rsa-tunnelblick/keys/ca.crt >> ~<user>/Desktop/<client domain name>.ovpn
# echo "</ca>
<cert>" >> ~<user>/Desktop/<client domain name>.ovpn
# cat  ~<user>/Backups/OpenVPN/easy-rsa-tunnelblick/keys/<client domain name>.crt  >> ~<user>/Desktop/<client domain name>.ovpn
# echo "</cert>
<key> " >> ~<user>/Desktop/<client domain name>.ovpn
# cat ~<user>/Backups/OpenVPN/easy-rsa-tunnelblick/keys/<client domain name>.key  >> ~<user>/Desktop/<client domain name>.ovpn
# echo "</key>" >> ~<user>/Desktop/<client domain name>.ovpn
# chown <user>  ~<user>/Desktop/<client domain name>.ovpn
# exit

Turn off/disable root account
$  sudo dsenableroot -d


Copy this  ~/Desktop/<client domain name>.ovpn file to your iphone's OpenVPN APP via iTune.

You can see <client domain name>'s certification file in OpenVPN app.
Client Add and "connect on" then connected from iphone to the server.


이렇게 하면 간단하게 VPN서버를 구성할수가 있다. 무료로.
2015/10/31 15:25 2015/10/31 15:25
[로그인][오픈아이디란?]