Wednesday, July 22, 2015

Install - How to install ossec-hids-2.8

OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.
$ cd /usr/local/src/ossec-hids-2.8
$ ./install.sh

which: no host in (/sbin:/bin:/usr/sbin:/usr/bin)

  ** Para instalação em português, escolha [br].
  ** 要使用中文进行安装, 请选择 [cn].
  ** Fur eine deutsche Installation wohlen Sie [de].
  ** Για εγκατάσταση στα Ελληνικά, επιλέξτε [el].
  ** For installation in English, choose [en].
  ** Para instalar en Español , eliga [es].
  ** Pour une installation en français, choisissez [fr]
  ** A Magyar nyelvű telepítéshez válassza [hu].
  ** Per l'installazione in Italiano, scegli [it].
  ** 日本語でインストールします.選択して下さい.[jp].
  ** Voor installatie in het Nederlands, kies [nl].
  ** Aby instalować w języku Polskim, wybierz [pl].
  ** Для инструкций по установке на русском ,введите [ru].
  ** Za instalaciju na srpskom, izaberi [sr].
  ** Türkçe kurulum için seçin [tr].
  (en/br/cn/de/el/es/fr/hu/it/jp/nl/pl/ru/sr/tr) [en]:
-> enter

 You are about to start the installation process of the OSSEC HIDS.
 You must have a C compiler pre-installed in your system.
 If you have any questions or comments, please send an e-mail
 to dcid@ossec.net (or daniel.cid@gmail.com).

  - System: Linux hostname 2.6.32-431.23.3.el6.x86_64
  - User: root
  - Host: hostname


  -- Press ENTER to continue or Ctrl-C to abort. --
-> enter

What kind of installation do you want (server, agent, local, hybrid or help)
-> local

$ cd /var/ossec/bin
$ ./ossec-control start

Setting up ossec ui...

Username:
-> Input your id and password


Friday, July 3, 2015

Cordova - A error is ANDROID_HOME is not set

■ To deploy the application to the emulator from the command line:
■ There is a error like the following.
$ cordova emulate android
Running command: /Users/kim_woongjoon/git/hello/platforms/android/cordova/run --emulator
ERROR: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
Error: /Users/njoonk/git/hello/platforms/android/cordova/run: Command failed with exit code 2
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:755:16)
    at Process.ChildProcess._handle.onexit (child_process.js:822:5)


--------------------------SOLUTION----------------------------
■ Install Android Studio on your computer.
■ Add the following phrase to .profile on your mac.
$ vim ./.profile
## Android SDK
export ANDROID_HOME=/Users/njoonk/android-sdks
export PATH=$ANDROID_HOME/bin:$PATH


-----------------------------OUT---------------------------------
Built the following apk(s):
    /Users/njoonk/git/hello/platforms/android/build/outputs/apk/android-debug.apk
Installing app on emulator...
Using apk: /Users/njoonk/git/hello/platforms/android/build/outputs/apk/android-debug.apk
Launching application...
LAUNCH SUCCESS