วันศุกร์ที่ 9 พฤศจิกายน พ.ศ. 2561

การเปิด Sharing SMB1 ใน Windows 10 10 Build 1803 เพื่อให้มองเห็นไฟล์แชร์จาก OS เวอร์ชั่นเก่า

1. ค้นหาคำว่า ‘Turn Windows features on or off’ ในเมนู Search 
2. ติ๊กที่ช่อง  ‘SMB1.0/CIFS File Sharing Support’ 
3. Restart เครื่อง 1 ครั้ง

วันพุธที่ 29 สิงหาคม พ.ศ. 2561

ติดตั้ง NTP Server CentOS

ntp : ntpd server which continuously adjusts system time and utilities used to query and configure the ntpd daemon.
ntpdate : Utility to set the date and time via NTP.
ntp-doc : NTP documentation

Setup NTPD on CentOS Linux
# yum install ntp ntpdate ntp-doc

Turn on service, enter:
# chkconfig ntpd on

Synchronize the system clock with 0.pool.ntp.org server (use this command only once or as required):
# ntpdate pool.ntp.org

Start the NTP server. The following will continuously adjusts system time from upstream NTP server. No need to run ntpdate:
# /etc/init.d/ntpd start

web reference : https://www.cyberciti.biz/faq/howto-install-ntp-to-synchronize-server-clock/

วันศุกร์ที่ 17 สิงหาคม พ.ศ. 2561

แก้ปัญหา VeeamONE ไม่สามารถเชื่อมต่อ vCenter ได้ เนื่องจากติดปัญหา Time Difference

1.open Registry Editor and navigate to this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam ONE Monitor\Service

2.Create a new DWORD value with the following parameters:
Value name = MaxTimeDiff
Value data (in DECIMAL format) = 43200

This will set maximum time difference timeout to 12 hours. According to your first post, that would be more than enough.

3.Restart Veeam ONE Monitor Server service and try to add a vCenter Server into Veeam ONE configuration one again.

Web Reference : https://www.veeam.com/kb1677

วันจันทร์ที่ 13 สิงหาคม พ.ศ. 2561

วิธีแก้ วีธีลบ ไวรัส มัลแวร์ ที่ซ่อนไฟล์ข้อมูลใน USB Flash Drive

1. เข้า cmd
2. เปลี่ยนเป็น Drive ของ Flash Drive
3. พิมพ์ attrib *.* -s -h -a -r /d /s
ตัวอย่าง :  G:/>attrib *.* -s -h -a -r /d /s

วันอังคารที่ 10 กรกฎาคม พ.ศ. 2561

วิธีแก้ปัญหา OS Server 2008 R2 ขึ้น “Bootmgr is missing” ใน Virtual machine

ในกรณีที่ขึ้น BOOTMGR is missing ดังภาพ


วิธีการแก้ปัญหาคือ 
1. Boot กับ Windows Server 2008 R2


2. คลิก Repair your Computer


3. ในกรณีที่มีการทำไฟล์ Recovery ให้คลิกที่ไฟล์แล้วกด Next

4. ในกรณีไม่มี ให้คลิกที่ Restore แล้วกด Next
5. เมื่อขึ้นหน้านี้ ให้เลือก Command Prompt

6. เปลี่ยนจาก x: เป็น c: 
7. พิมพ์คำสั่งดังนี้ 

BCDBOOT C:\Windows

BOOTREC /FIXMBR

BOOTREC /FIXBOOT

BOOTREC /REBUILDBCD

BOOTREC /SCANOS

8. เมื่อเสร็จทุกคำสั่งแล้ว พิมพ์ exit ออกมา แล้ว Restart เครื่อง 1 ครั้ง

web reference : http://www.running-system.com/virtual-machine-with-os-server-2008-r2-bootmgr-is-missing-error/



วันศุกร์ที่ 29 มิถุนายน พ.ศ. 2561

การเพิ่มขนาดความจุฮาร์ดดิสก์ใน LVM-Ubuntu


1. ใช้ GParted ขยายพื้นที่

หากขยายไม่ได้
- ให้คลิกขวา sd2 และ sd5 แล้วเลือก  "Deactivate"
- ให้ resized extended (sda2) partition.
- ให้ resized lvm (sda5) partition.
หากไม่ได้ให้ลองสร้าง partition ส่วนที่ unallocated ก่อน แล้วลบทิ้ง

2. เปิดเครื่อง แล้วใช้คำสั่ง df -h  แล้วดู MOUNTPOINT (ตัวอย่างคือ /dev/mapper/hrm--vg-root)

3. ใช้คำสั่ง lvextend -l+100%FREE [MOUNTPOINT]
ตัวอย่าง
lvextend -l+100%FREE /dev/mapper/hrm--vg-root

4. ใช้คำสั่ง resize2fs [MOUNTPOINT]
ตัวอย่าง
resize2fs /dev/mapper/hrm--vg-root
5. ใช้คำสั่ง pvs

หากมีพื้นที่ว่างอยู่จะมีปรากฏ PFree

หากขยายเต็ม 100% จะไม่มี

หรือใช้คำสั่ง  vgdisplay


Tip
ใช้คำสั่ง lvdisplay
แล้วดู MOUNTPOINT (ตัวอย่างคือ /dev/hrm-vg/root) ค่าเหมือนกันกับ /dev/mapper/hrm--vg-root