หน้าเว็บ

วันพฤหัสบดีที่ 22 สิงหาคม พ.ศ. 2562

VMware : VMware Tools Windows 2003 On ESXi 6.7

VMware : VMware Tools Windows 2003 On ESXi 6.7 มีอาการ จอฟ้า จึงทดลองติดตั้ง VMware Tools

VMware Tools
VMware Tools 10.3.2 Release Notes

These Notes clear stats that there is no iso or packages has been released for Windows 2003 or earlier OS. The list of the OS which support these latest VMware tools are below.

Windows OS level prerequisites
Windows Server 2016
Windows 10
Windows Server 2012 R2
Windows 8.1
Windows Server 2012
Windows 8
Windows Server 2008 R2 Service Pack 1 (SP1)
Windows 7 SP1
Windows Server 2008 Service Pack 2 (SP2)
Windows Vista SP2
Windows Server 2012 R2 with Microsoft update KB2919355
Windows 8.1 with Microsoft update KB2919355

ไม่มี Windows server 2003 ถูกตัดออก เนื่องจาก
End of Support for Microsoft Windows Server 2003 as well as some other old traditional legacy EUC OS
Microsoft Product Life Cycle
https://support.microsoft.com/en-gb/lif ... 02003%20R2

ต้องใช้ VMware Tools Version 10.0.12
winPreVista.iso
ติดตั้งได้
แต่จะมีข้อความขึ้น
VMware Tools is installed and supported, but a newer version is available on the host.
The configured guest OS (Microsoft Windows Server 2003 (32-bit)) for this virtual machine does not match the guest that is currently running (Microsoft Windows Server 2003 Standard (32-bit)). You should specify the correct guest OS to allow for guest-specific optimizations.

วันอังคารที่ 13 สิงหาคม พ.ศ. 2562

Ubuntu : Ubuntu 18.04 Change Pasword root phpmyadmin

Ubuntu : Ubuntu 18.04 Change Pasword root phpmyadmin

User เริ่มต้น เป็น : phpmyadmin
รหัสตั้งตอนลง pypmyadmin

ต้องการใช้ user root หรือ sa
  1. sudo mysql
  2. SELECT user,authentication_string,plugin,host FROM mysql.user;
ตั้งรหัสของ root ใหม่
  1. SET PASSWORD 'root'@'localhost'=PASSWORD('mynewpasword');

ถ้า Error ไม่ผ่านใช้คำสั่ง
  1. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'mynewpassword';

ตามด้วย
  1. FLUSH PRIVILEGES;
สร้าง User ใหม่ sa
  1. mysql -u root -p
  2. CREATE USER 'NewUser'@'localhost' IDENTIFIED BY 'NewPassword';
  3. GRANT ALL PRIVILEGES ON *.* TO 'NewUser'@'localhost' WITH GRANT OPTION;
  4. exit

https://linuxhint.com/install_phpmyadmin_ubuntu_1804/

วันพฤหัสบดีที่ 8 สิงหาคม พ.ศ. 2562

Ubuntu :: Ubuntu 18.04 Set IP

Ubuntu :: Ubuntu 18.04 Set IP
1. Set ตอนที่ลงไม่ได้ Save แล้วกลับไป Reset หาย หน้านี้
2. ต้องต่อ Lan วง 0 เพื่อให้ได้รับ DHCP ถึงจะลงผ่าน แล้วค่อยไป เปลี่ยนให้ไปใช้ VM Network
3. Set Ip ที่ ไฟล์
  1. nano /etc/netplan/50-cloud-init.yaml

4. การ Set ห้ามใช้ Tab ให้ใช้ Space bar แทน แต่ละ : ต้องขนาดเท่ากัน ถึงจะผ่าน เช่น
  1. network:
  2.    version: 2
  3.    renderer: networkd
  4.    ethernets:
  5.       ens160:
  6.          addresses: [192.168.2.202/24]
  7.          gateway4: 192.168.2.2
  8.          nameservers:
  9.             addresses: [8.8.8.8,8.8.4.4,192.168.2.2]

5. คำสั่ง นำไปใช้
  1. netplan apply

วันพุธที่ 10 กรกฎาคม พ.ศ. 2562

Volumio : SSH access on volumio

Volumio : SSH access on volumio
open ssh IP/dev
Click Enable
  1. ssh volumio@192.168.0.XX

logs
  1. nano /var/log/volumio.log

View date time.
  1. date
root@volumio:/var/log# date
Thu Jul 11 08:08:12 +07 2019

https://volumio.github.io/docs/User_Manual/SSH.html

Multiboot USB Install Windows 7 และ Windows10

Multiboot USB Install Windows 7 และ Windows10
Multi boot USB ที่รองรับ bios เครื่องรุ่นเก่าและรุ่นใหม่
UEFI  : เครื่องรุ่นใหม่  Disk จะเป็น GPT หรือ MBR ก็ได้ ต้องทำ ตัว Boot ให้ตรงกัน ไม่อย่างนั้นจะ Format HDD ไม่ได้
BIOS : เครื่องรุ่นเก่า Disk จะเป็น MBR

สามารถใช้ โปรแกรม WinUSB ทำได้
https://www.winusb.net/

Disk Partition GPT VS MBR
GPT (Guid Partition Table)
MBR (Partition แบบเก่า)

MBR ทุก OS ใช้ได้
GPT OS ใหม่ๆ เท่านั้น Windows 7, 8, 10

MBR Partition มาตรฐานทั่วไป
GPT ใช้ EFI (Extensible frimware interface)

MBR ตั้ง Primary ได้ 3-4 Partition 2TB/Partition
GPT ตั้ง Primary ได้ 128 Partitions ความจุ 256 TB/Partition
การตั้ง Primary ทำให้ลง OS ได้ใน HD ลูกเดียวได้หลาย OS

UEFI VS BIOS
Compared with BIOS, UEFI has the following advantages:

1. UEFI enables users to handle drives that are larger than 2 TB, while the old legacy BIOS couldn't handle large storage drives.
2. UEFI supports more than 4 primary partitions with a GUID Partition Table.
3. Computers who use UEFI firmware have faster booting process than the BIOS. Various optimizations and enhancement in the UEFI can help your system boot more quickly than it could before.
4. UEFI supports secure startup, which means that the validity of the operating system can be checked to ensure that no malware tampers with the startup process.
5. UEFI supports networking function in the UEFI firmware itself, which helps remote troubleshooting and UEFI configuration.
6. UEFI has a simpler graphical user interface and also has much richer setup menus than legacy BIOS.

After reading the above, you may find that UEFI has many advantages over BIOS. And it is due to these advantages, UEFI is regarded as a successor to BIOS.

However, UEFI is not supported by all computers or devices. To use UEFI firmware, the hardware on your disk must support UEFI. Besides, your system disk needs to be a GPT disk. If not, you can convert MBR disk to GPT disk with a professional partition magic. In this way, you can boot up your computer with UEFI mode successfully.

Tip: If your computer doesn't support UEFI firmware, you need to buy new hardware that supports and includes UEFI.

https://www.partitionwizard.com/partitionmagic/uefi-vs-bios.html

วันจันทร์ที่ 1 กรกฎาคม พ.ศ. 2562

Alfresco :: วิธีนำข้อมูลออกจาก Alfresco ที่มีข้อมูลเยอะ ๆ และต้องการได้ Folder ตามเดิม

Alfresco :: วิธีนำข้อมูลออกจาก Alfresco ที่มีข้อมูลเยอะ ๆ และต้องการได้ Folder ตามเดิม

โดยใช้ FTP FileZilla ต่อวงเดียวกับกับ Server Connect เข้าไปด้วย User ที่เป็น Admin เพื่อให้ได้สิทธิ์ เข้าถึง Folder นั้น ๆ
ข้อมูลมีเยอะ ใช้วิธีดังนี้ไม่ได้ผล Error ก่อนเสร็จ และได้ไฟล์ไม่ครบ
1. Download ทั้งหมด ไม่มี Error แต่เช็คไฟล์ไม่ครบ
2. Download ทีละ Folder เสร็จไม่มี Error แต่เช็คไฟล์ได้ไฟล์ไม่ครบ
**** ช่วงที่ทำจะต้องไม่มีการใช้งานเพราะจะช้ามากและจะมี Error ถ้ามีการใช้งานคู่กันไปด้วย ****

ต้องทำแบบนี้
1. Add Folder ที่จะ Download โดย Add to queue ก่อน ให้เสร็จ เมื่อเสร็จแล้วไม่มี Error จะได้จำนวนไฟล์ทั้งหมด


2. แล้วค่อย Process Queue เริ่มแรกจะเร็ว สักพักจะช้าไปเรื่อง ๆ เนื่องจาก กิน CPU
วิธีแก้ ต้องคอย Stop Process Queue แล้ว Restart Service Alfresco เรื่อย ๆ ถ้ารู้สึกว่าช้า

3. เหลือไฟล์ที่ Download ไม่ได้
3.1. ให้ Reset and requeue all แล้ว Process Queue อีกรอบ จำนวนที่ไม่ได้จริง ๆ ก็จะลดลง
3.2. ที่ไม่ได้จริง ๆ เพราะ Path ยาว ใช้วิธี เข้าไปแก้ชื่อไฟล์หรือ ชื่อ Folder ให้สั้นลง แล้ว Copy ใส่ USB Box Manual

Axapta : Axatpa Update Costing ไม่ผ่าน

Axapta : Axatpa Update Costing ไม่ผ่าน (ทำใน DB Local ก่อน ทำในของจริง)
Warning Production - Costing\Production: PD18-029841\Calculating BOM consumption\Financial item picking\Warehouse=WIP,Batch number=190501,Location=WIP2 Item consumption for 3.00 cannot be updated, as the cost price is known only for in stock.
Error Production - Costing\Production: PD18-029841\Calculating BOM consumption Update has been canceled.

เคสนี้เกิดจาก คำสั่งผลิต ที่มีการนำเอา Part มาใช้ใน PD18-029841 ไม่มี Cost ซึ่งเกิดจาก 2 PD คือ PD18-029850, PD18-029849
คำสั่งผลิตมีปัญหาทำติดลบแล้ว Reports เพิ่มมาอีกทำให้ ตัวที่ Reports เพิ่มขึ้นมาทีหลังไม่มีต้นทุน ทำให้ PD ที่จะนำไปใช้ต่อทำไม่ได้
ต้องแก้ Transaction

วิธีแก้ ดู Transaction ที่คาดว่าจะผิดใน คำสั่งผลิต เช่นไม่มี Cost amount เป็นต้น **** สำคัญต้องลบให้ถูกตัว ไม่อย่างนั้นจะทำให้ Onhand ผิด


ลบที่ SQL SERVER
  
Run Job recalcInventSum


ดู Onhand จะเห็นว่ายอดไม่ถูกต้อง จริง ๆ ตั้งหักล้างกันไปหมด เพราะใช้ไปหมดแล้ว

ต้อง Edit Dimmetion
ที่ Item --> Function -->Edit Dimensions
แก้ Batch และ Location ให้ถูก เพื่อให้มันหลักล้างกัน ถ้าฟ้องไม่มี Batch ก็ไปสร้าง Batch ให้มันที่
Inventory management --> Inquiries --> Dimensions -->Batches
แก้ Batch และ Location ให้ถูก ทั้ง 2 Code
ดู Onhand จะไม่มียอดค้าง

ทดลอง Update Costing PD18-029841 ดูจะผ่าน