วันพฤหัสบดีที่ 11 พฤษภาคม พ.ศ. 2560

คำสั่ง SQL

คำสั่ง SQL แยกหรือตัดข้อมูลใน FIELD
- SUBSTRING_INDEX(ชื่อฟิลด์,ตัวแบ่งเขตข้อมูล,จำนวน)

วันพฤหัสบดีที่ 1 กันยายน พ.ศ. 2559

UBUNTU : การลง Ubuntu Server สำหรับทำ VM (Ubuntu 16.04)

เตรียมเครื่อง
เพิ่ม การกำหนด IP การ update upgarde ก่อนการลง webmin
  1. ปลดเน็ตให้เครื่อง server ใน Endian ก่อน
  2. ssh เข้า server ใช้คำสั่ง ssh administrator@IPServer
  3. sudo nano /etc/hostname
  4. sudo nano /etc/hosts
  5. sudo apt-get update
  6. sudo apt-get -y dist-upgrade

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

วิธีการ SSH ผ่าน MC เพื่อคัดลอกไฟล์ข้ามเครื่องกรณีไม่ได้ Mount เครื่องไว้

  1. ssh เข้าเครื่องใดเครื่องหนึ่งที่ต้องการคัดลอกแล้วใส่รหัสผ่าน
  2. พิมพ์ MC แล้วกดปุ่ม Enter
  3. จะเข้าสู่หน้า MC
  4. เมื่อเข้าสู่หน้า MC ให้คลิกที่เมนู Left --> Shell link...
  5. ใส่ ชื่อที่ใช้ login เข้า server@IP Server ที่ต้องการ ssh แล้วคลิกที่ปุ่ม OK [ตัวอย่าง user@192.168.1.1] 
  6. ใส่รหัสผ่านของ Server
  7. จะเข้าหน้า MC ของทั้งสองเครื่อง โดยด้านซ้ายจะเป็นเครื่องที่เพิ่ง ssh เข้าไป และด้านขวาจะเป็นเครื่องที่ ssh ไว้ก่อนหน้าแล้ว และสามารถคัดลอกไฟล์ข้ามเครื่องได้เลยค่ะ
  8. หากต้องการออกจากหน้า MC ไปที่เมนู File --> Exit

AS400 : วิธีตั้งค่าคีย์บอร์ด Enter ที่ปุ่มตัวเลขให้สามารถใช้งานได้ใน AS400

วิธีตั้งค่าคีย์บอร์ด Enter ที่ปุ่มตัวเลขให้สามารถใช้งานได้เหมือนปุ่ม Enter ปกติใน AS400

  1. เปิดโปรแกรม AS400 แล้วใส่รหัสผ่าน
  2. ไปที่เมนู Edit --> Preferences --> Keyboard... จะขึ้นหน้าต่าง Keyboard Setup
  3. คลิกที่ปุ่ม Customize... จะขึ้นหน้าต่าง Customize Keyboard - enhanced AS400.KMP
  4. คลิกที่ปุ่มที่เป็นรูป <-' (ที่อยู่ตรงกลางหน้าจอ ลักษณะปุ่มแนวนอน) แล้วจำค่าที่อยู่ในแท็บ Change Current Actions for Selected Key
  5. คลิกที่ปุ่มที่เป็นรูป <-' (ที่อยู่ตรงริมขวาของหน้าจอ ลักษณะปุ่มแนวตั้ง) แล้วใส่ค่าในแท็บ Change Current Actions for Selected Key ให้เหมือนกัน
  6. ไปที่เมนู File --> Save
  7. ปิดหน้าต่าง Customize Keyboard - enhanced AS400.KMP
  8. คลิกปุ่ม OK

ตั้ง auto login บน Windows XP

Windows XP Auto Login

     You can configure Windows XP to automate the logon process if your computer is not part of a domain. Computers configured in a business environment generally have a domain and for those machines the option "Users must enter a username" does not appear because a password must be given to access the local area network or domain.

  1. Click Start, click Run, and type control userpasswords2. This is a shortcut instead of having to click on Start -> Control Panel -> User Accounts.
  2. Uncheck the "Users must enter a username and password to use this computer" check box.
  3. Click Apply.
  4. Enter the user name and password you wish to automatically log on with, and then click OK.
  5. Click OK again and you're all done.

     This feature allows other users to start your computer and use the account that you establish to automatically log on. Enabling auto logon makes your computer more convenient to use, but can pose a security risk since anyone can just turn the machine on and access your files.

วันจันทร์ที่ 20 มิถุนายน พ.ศ. 2559

ลง ubuntu server สำหรับ VM

เตรียมเครื่อง
  1. ปลดเน็ตให้เครื่อง server ใน Firewall ก่อน
  2. ssh เข้า server ใช้คำสั่ง ssh administrator@ipserver
  3. sudo -i
  4. nano /etc/hostname
  5. nano /etc/hosts
  6. apt-get update
  7. apt-get -y dist-upgrade

TOTORO