server side setting

insert client ip


centos client side setting

yum install nfs-utils nfs-utils-lib
mkdir -p /mnt/nfs/home
mount {serverIP}:/home /mnt/nfs/home

checking the mounting
df -h

add startup script
vi /etc/fstab
{serverIP}:/home /mnt/nfs/home nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0

if Router Subnet 192.222.222.0
wget https://git.io/vpnsetup-centos -O vpnsetup.sh && sudo sh vpnsetup.sh

nano /etc/ipsec.conf

virtual-private=%v4:10.0.0.0/8,%v4:192.222.222.0/16,%v4:172.16.0.0/12,%v4:!192.222.222.0/24,%v4:!192.222.222.0/24

rightaddresspool=192.222.222.10-192.222.222.20

nano /etc/xl2tpd/xl2tpd.conf

ip range = 192.222.222.10-192.222.222.20
local ip = 192.222.222.2

iptables -t nat -A POSTROUTING -s 192.222.222.0/24 -o eth0 -j MASQUERADE
ip6tables-save

=============
Router Port forward 1701,500,4500 to vpn server

# wget -qO- http://freegeoip.net/json/
{“ip”:”8.8.8.8″,”country_code”:”HK”,”country_name”:”Hong Kong”,”region_code”:””,”region_name”:””,”city”:”San Po Kong”,”zip_code”:””,”time_zone”:”Asia/Hong_Kong”,”latitude”:11.11,”longitude”:11.11,”metro_code”:0}

# wget -qO- http://freegeoip.net/json/ | grep -Po ‘(?<=”ip”:”)[^”]*’
8.8.8.8

首先如果要生一個vmdk大於2TB,必須使用 vmware web client 處理
先安裝windows 2012 R2, 再安裝vCenter Server for Windows
Login vSphere Web Client (Flash)
create datacenter, create host , license可以用試用版,因為目標只是想create HDD
edit virtual machine + HDD

開機

睇睇新hdd資料
fdisk -l

如果大過2TB要用parted尼界HDD

==================Larger than 2TB=============
parted /dev/sdb
mklabel gpt

print
Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 19.9TB<====

 

mkpart primary 0GB 19.9TB

q
==================Larger than 2TB=============

#之後formart the partition to centos ext4
mkfs.ext4 /dev/sdb1

#開mount point
mkdir /home/dataDrive

#開機加入MOUNT PT
nano /etc/fstab
#add a row at the back
/dev/sdb1 /home/disk ext4 defaults 1 2

#手動mount一野
mount /dev/sdb1 /home/dataDrive
#睇結果
df -h

windows server 2012/2016 會食唔到esxi內的default scsi hdd,另到install 唔到window

去edit esxi -> SCSI controller

改做vmware paravirtual

加返esxi 內的driver , 去floppy driver , datastore內的/vmimages/floppes/pvscis-windows2008.flp

2012/2016server 都用windows2008.flp

正常install windows server , 去到hdd個位 load driver

floppy->amd64 ->enter

~ mysql Slave Error ~

Post on (2017.06.22) |mysql | No Comments

my.cnf 設定如下,可以避免slave error

binlog_format = mixed

replicate-ignore-table = xxxDB.xxxtable

slave_skip_errors=1062
#1062=duplicate key error

 

有2個方法一個係需要重新打包

add Boolen Key in info.plist

ITSAppUsesNonExemptEncryption

Value

NO

之後係itune connect㩒黃色三角 , select no 之後就唔會再出現

或尼個方法,不用重新打包,改build number,重新upload ipa

之後係itune connect㩒黃色三角 , select no 之後就唔會再出現 , and start internal tesing

open terminal

cd ~  
mv .itmstransporter/ .old_itmstransporter/  

del左個file 或 mv 之後重開xcode 就可以

update the admob framework to 7.2 version

and do the following steps

我地想做出Dynamite text box可以scroll 效果

首先生一個panel出來,調好大小(尼個大小會係你最後顯示出尼既大小),再生一個UI.text出尼,然後將UI.text拉入去panel內

調一下UI.text的大小,最好大於panel方便測試scrolling

然後,去panel加入<mask>同<scroll Rect>,mask 主要用尼cover左出血既位,scroll rect是用scroll,Content選擇text

然後用script計算出textbox既size

public RectTransform rt;
public Text txt;

void Update () {
        rt.sizeDelta = new Vector2(rt.rect.width, txt.preferredHeight);
}

Next Page »
晴晴兔的少女回憶 =3=~ All rights reserved.