Wednesday, December 31, 2014

Install Nagios from Sources in CentOS 6.X

Nagios is software monitoring. It can monitor server uptime, service, and so on. For more details, you can go here.

To install nagios, follow step below:

Wednesday, December 24, 2014

Set and Remove Proxy for Git

To set Proxy into git, do this step
  1. Open git console
  2. Type this
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
 Where:
  • proxyuser is username for proxy
  • proxypwd is proxy password for the username
  • proxy.server.com is address of the proxy. It can be IP address.
  • 8080 is proxy port. You can change it based on your proxy configuration
If you don't use username and password, you just need to use this format:
git config --global http.proxy http://proxy.server.com:8080
git config --global https.proxy https://proxy.server.com:8080
 If you want to unset proxy, just do this:
 git config --global --unset http.proxy
 git config --global --unset https.proxy

Saturday, December 13, 2014

Import Mysql Dump into PostgreSQL Ubuntu

First, you must dump mysql with command below
mysqldump --compatible=postgresql --default-character-set=utf8 -r nama_file.sql -u root -p db_name
 If you don't need mysql password, please remove "-p"

After that, you need to convert sql into psql. You can go github repository here.

After you get psql format, than you can import with
psql -U postgres -h localhost -d database_name -f nama_file.psql