We can deleted older files more than 10 days or older 5 minutes.
Ex:
First we need to fine files older than 10 day :
$find /PATH/* -mtime +10
Second we nedd to fine files older than 5 minutes and delete it:
$find /PATH/* -mmin +5 -exec rm {} \;
วันพุธที่ 8 กุมภาพันธ์ พ.ศ. 2555
How to dump Mysql
We can use command for dump mysql on linux
Ex:
$mysqldump -uroot -p'xxxxx' databasename > /PATH/databasename.sql
-u is mean user
-p is mean password
databasename mean databese for need to dump
Restore database:
Ex:
$ mysql -uroot -p'xxxx' databasename < /PATH/databasename.sql
Ex:
$mysqldump -uroot -p'xxxxx' databasename > /PATH/databasename.sql
-u is mean user
-p is mean password
databasename mean databese for need to dump
Restore database:
Ex:
$ mysql -uroot -p'xxxx' databasename < /PATH/databasename.sql
วันอาทิตย์ที่ 22 มกราคม พ.ศ. 2555
Jail break IOS 5.0.1
In ios 5.0.1 change broadband of 3Gs It will show "no service" when we jailbreak don't create iso for it
Before Jail break you should back up to you computer or to iCloud
Create IOS 5.0.1
1. Download ios 5.0.1.
iPhone2,1_5.0.1_9A405_Restore
2. Sn0wbreeze-v28b11
Build IOS 5.0.1 for iphone 3Gs
Connect iphone with PC
Open Sn0wbreeze 2.8b1
Click OK.
Click Close credits
Click Next
Click Next again
Click Browse and Chroose IOS iPhone2,1_5.0.1_9A405_Restore
and Next
Click Next
It Should Show Plese select a mode:
We need to select Baseband Preservation Mode Then Clieck Next and Yes
Waiting Then OK.
It will request to DFU follow up Picture in program.
Then click OK
finish
We shuold have Sn0wbreeze_iPhone3GS-5.0.1
3. Update iPhone to 5.0.1 use mode restore in iTune on Windows
4. Jailbreak IOS 5.0.1 use redsn0w_win_0.9.10b2
Open the program and select Jailbreak
Click Next
And Enter to DFU mode and waiting for jail break
5. After jailbreak completed you should restore backup to you iPhone.
Repotory for IOS:
http://ispaziorepository.com/
http://cydia.hackulo.us/
http://sinfuliphonerepo.com/
http://xsellize.com/
http://cydia.iphonecake.com/
วันพุธที่ 3 สิงหาคม พ.ศ. 2554
Message:The features supported by the processor(s) in this machine are different from the features supported by the processor(s) in the machine on whi
จากหัวข้อเกิดจากการ copy host ข้าม esxi ที่มี space เครื่องต่างกันมากๆ นะ ครับ บางที เราก็ไม่อยาก สร้างvm host ขึ้นมาใหม่ก็เลยก๊อปซะเลย จาก Message เรามีวิธีแก้อยู่ครับ
เข้าผ่าน SSH ไปยัง directory ที่เก็บ host ครับ แล้วหาไฟล์ นามสกุล .vmx เพิ่มโค้ดด้านล้างเข้าไป
checkpoint.disableCpuCheck = "true"
ครับแค่นี้เป็นอันจบครับ
เข้าผ่าน SSH ไปยัง directory ที่เก็บ host ครับ แล้วหาไฟล์ นามสกุล .vmx เพิ่มโค้ดด้านล้างเข้าไป
checkpoint.disableCpuCheck = "true"
ครับแค่นี้เป็นอันจบครับ
วันจันทร์ที่ 1 สิงหาคม พ.ศ. 2554
How to get Dell Service Tag on Windows System in Console
How to get Dell Service Tag on Windows System in Console
Use WMI on Windows to get service tag as shown below:
C:\Users\john>wmic bios get serialnumber
SerialNumber
ABCDEF1
And We Use WMIC command will give make and model number along with service below:
C:\Users\john>wmic csproduct get vendor,name,identifyingnumber
IdentifyingNumber Name Vendor
ABCDEF1 PowerEdge 2950 Dell Inc.
Use WMI on Windows to get service tag as shown below:
C:\Users\john>wmic bios get serialnumber
SerialNumber
ABCDEF1
And We Use WMIC command will give make and model number along with service below:
C:\Users\john>wmic csproduct get vendor,name,identifyingnumber
IdentifyingNumber Name Vendor
ABCDEF1 PowerEdge 2950 Dell Inc.
วันเสาร์ที่ 30 กรกฎาคม พ.ศ. 2554
FastSCP
สวัสดีครับ
หายไปนาน เลย ไม่ได้อัพเดจบทความ วันนี้ขอนำเสนอโปรแกรมที่ช่วยในการย้าย vm hosts ใน esxi กันนะครับ ก็หาก เราใช้งาน esxi อยู่นี่ก็ฟรีอยู่แล้ว แต่ไม่มีเงินซื้อตัว v center ก็สามารถใช้ตัวนี้แก้ขัดไปได้
นั้นก็คือ Veeam FastSCP
โปรแกรมตัวนี้ดียังไง ผม ว่าหลายคงเคยเจอ เวลาจะย้าย vm hosts ต้องหา hdd external มาก๊อป ไฟล์ ต้องมา mount partition ให้กับ HDD external อีก หลายอย่าง โปรแกรมตัวนี้ช่วยได้ครับ สมมุติว่า เรามี esxi ใหม่ กับ ตัวเก่า เราต้องการย้าย host จากตัวเก่าไปตัวใหม่ ก็แค่ ให้เจ้าตัว FastSCP เชื่อมต่อกับ server esxi ของเราทั้งสองตัว แล้วทำการลากไฟล์ ข้าม มาเลย อย่างง่ายดายเลย ครับ
แต่มีข้อแนะนำนิดหน่อยนะครับเวลาใช้เราควรสร้าง vm บน esxi ปลายทางไว้ก่อน แล้วค่อย ก๊อปปี้ไปวางทับจะทำให้ไม่ได้วุ่นวายกับการสร้าง vm ทีหลัง เพราะ esxi ไม่มี import host เข้ามา เนี้ยซิ
โปรแกรมตัวนี้ อาจจะไม่มีที่สุดนะครับในการจัดการ esxi แต่มันถูกครับ
วันพฤหัสบดีที่ 10 กุมภาพันธ์ พ.ศ. 2554
How to force yum update command to Exclude certain packages
On CentOS yum uses a configuration file at /etc/yum.conf. If you need to place exclude directive to define list of packages to exclude from updates or install. You can follow up as below:
nano -w /etc/yum.conf
and add line:
exclude=kernel*
It should look like as follows:
And we can skip yum command updates on command line using as below:
#yum --exclude=kernel* update
nano -w /etc/yum.conf
and add line:
exclude=kernel*
It should look like as follows:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
exclude=kernel*
# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h
# Default.
# installonly_limit = 3
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
And we can skip yum command updates on command line using as below:
#yum --exclude=kernel* update
สมัครสมาชิก:
บทความ (Atom)