2018/02/12

How to install IKEv2 VPN Service on Ubuntu Server 16.04

Download install script from Github
wget --no-check-certificate https://raw.githubusercontent.com/quericy/one-key-ikev2-vpn/master/one-key-ikev2.sh

Modify script file permission
chmod +x one-key-ikev2.sh

Run script
bash one-key-ikev2.sh

Set Server Configuration
Reference URL: https://github.com/quericy/one-key-ikev2-vpn

Installation completed









2017/12/04

VMware - Resize HDD by LVM on Ubuntu 14.04

1. Set your VM OS HDD 20GB to 40GB
2. Boot your VM and use SSH login
3. Follow the command as below:
  
    sudo su
    parted
    mkpart primary 20GB 40GB
    print
    quit
    reboot
  
    sudo su
    lvm
    pvcreate /dev/sda3
    pvs
    quit
  
    pvscan
    vgextend ubuntu1404-vg /dev/sda3
  
    pvscan
    ls /dev/ubuntu1404-vg
    df -h
  
    lvextend -L +20G /dev/ubuntu1404-vg/root
    resize2fs /dev/ubuntu1404-vg/root
    df -h

2017/11/17

How to disable Windows Remote Desktop Copy/Paste Function

1. Press Win+R key to open Run window.
2. Type gpedit.msc then press Enter.
3. Expand  Computer Configuration→Administrative Templates→Windows Components→Remote Desktop Services→Remote Desktop Session Hosts→Device and Resource Redirection
4. Enable "Do not allow clipboard redirection" rule.

Reference screen capture as below:





2017/11/08

How to Install Nagios 4 on CentOS 6.x

[Install Package]
yum update
yum install  -y nano openssl-devel git
yum install -y httpd php
yum install -y gcc glibc glibc-common
yum install -y gd gd-devel

[Create User and Group]
useradd nagios
passwd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache

2017/11/04

Nagios 4 - Monitor Server and Remote Client Configuration

Install NRPE v3 to Remote Client

cd /tmp
wget --no-check-certificate -O nrpe.tar.gz https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.2.1.tar.gz
tar xzf nrpe.tar.gz
cd /tmp/nrpe-nrpe-3.2.1/
./configure --enable-command-args
make all
make install
make install-config
echo >> /etc/services
echo '# Nagios services' >> /etc/services
echo 'nrpe    5666/tcp' >> /etc/services
make install-init
nano /usr/local/nagios/etc/nrpe.cfg
allowed_hosts=127.0.0.1,192.168.xx.xx

service nrpe start
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1

2017/08/18

How to restore your Macbook from Netwrok TimeMachine

1.Reboot your macbook
2.Press Command+R into Recovery Mode
3.Connect to WiFi.
4.Open Terminal in Utilities menu
5.Type cd /Volumes
6.Type mkdir TMBackup for create folder
7.Type cd TMBackup
8.Type pwd for see your path /Volumes/TMBackup
9.Type mount -t afp afp://username:password@ServerIP/ShareName /Volumes/TMBackup
10.Type ls -l for find your backup file
11.Type hdid /Volumes/TMBackup/xxxSparseBundle
12.Go back Restore From Time Machine Backup
13.Now you can see your TimeMachine backup and select it to restore macbook.