วันอังคารที่ 31 พฤษภาคม พ.ศ. 2559

Huawei P8 Lite ALE-L02 Andriod 6.0, EMUI 4.0, C636B530

     หลังจากที่มีข่าว P8 lite ALE-L21 ปล่อยตัว Android 6.0 มาซักพักนึงแล้ว ก็ตั้งหน้าตั้งตารอว่าเมื่อไหร่ ALE-L02 ของเราจะได้อัพเดตกับเค้าบ้าง รอแล้วรอเล่าจนลืมไปเลย 555+ วันนี้นั่งไล่อ่าน Twitter เจอข่าว K4 Note ได้อัพเป็น 6.0 นึกขึ้นได้ว่าตัวเองก็รอ 6.0 อยู่เหมือนกันนี่หว่า กด OTA ก็ไม่มี ลองเข้าเวป http://consumer.huawei.com/tw/mobile-phones/support/downloads/p8-lite-tw.htm อ้าว มีแล้วนี่หว่า (เป็นปกติอยู่แล้วที่ OTA จะอัพได้หลังจากทาง Huawei ปล่อมรอมออกมาแล้วซักพักนึง ใครที่ใจเย็น รอ OTA ดีกว่าไม่เสี่ยงด้วย)
     เวอร์ชั่นที่สามารถอัพเกรดได้
- ALE-L02C636B150
- ALE-L02C636B522


     ขั้นตอนการอัพเกรด
1. ถ้าเครื่อง Root อยู่ให้ Unroot ไปก่อน
2. เข้าไปดาวน์โหลดไฟล์รอมได้ที่ http://consumer.huawei.com/tw/mobile-phones/support/downloads/p8-lite-tw.htm
3. ระเบิด zip ทำตามคู่มือที่อยู่ในนั้นได้เลย (หรือทำตามขั้นตอนข้างล่างนี้)
3.1 หลังจากระเบิด zip ให้ก๊อปปี้โฟลเดอร์ dload ไปใส่ใน Micro SD card
3.2 ไปที่ Settings > Updater > กด Menu > Local update
3.3 รอจนเสร็จ


วันอาทิตย์ที่ 18 ตุลาคม พ.ศ. 2558

Mikrotik Hotspot Freeradius config file

- Port ether2 ip 192.168.1.2/24 ต่อกับ Gateway 192.168.1.1
- Port ether3 ip 10.0.1.1/24
- แจกไอพี 10.0.1.10 - 10.0.1.250
- DNS 192.168.1.1 , 8.8.8.8
- เรียกใช้ฐานข้อมูลผู้ใช้จาก Radius Server 192.168.1.1 secret = testing123

/ip hotspot profile
add hotspot-address=10.0.1.1 login-by=http-chap,http-pap name=hsprof1 \
    use-radius=yes
/ip pool
add name=hs-pool-3 ranges=10.0.1.10-10.0.1.250
/ip dhcp-server
add address-pool=hs-pool-3 disabled=no interface=ether3 lease-time=1h name=\
    dhcp1
/ip hotspot
add address-pool=hs-pool-3 disabled=no interface=ether3 name=hotspot1 \
    profile=hsprof1
/tool user-manager customer
set admin access=\
    own-routers,own-users,own-profiles,own-limits,config-payment-gw
/ip address
add address=192.168.1.2/24 comment=WAN interface=ether2 network=192.168.1.0
add address=10.0.1.1/24 comment=LAN interface=ether3 network=10.0.1.0
/ip dhcp-server network
add address=10.0.1.0/24 comment="hotspot network" gateway=10.0.1.1
/ip dns
set servers=192.168.1.1,8.8.8.8
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=10.0.1.0/24
/ip hotspot user
add name=admin
/ip route
add check-gateway=ping distance=1 gateway=192.168.1.1
/radius
add address=192.168.1.1 secret=testing123 service=hotspot timeout=2s
/radius incoming
set accept=yes
/system clock
set time-zone-name=Asia/Bangkok
/system lcd
set contrast=0 enabled=no port=parallel type=24x4
/system lcd page
set time disabled=yes display-time=5s
set resources disabled=yes display-time=5s
set uptime disabled=yes display-time=5s
set packets disabled=yes display-time=5s
set bits disabled=yes display-time=5s
set version disabled=yes display-time=5s
set identity disabled=yes display-time=5s
set ether1 disabled=yes display-time=5s
set ether2 disabled=yes display-time=5s
set ether3 disabled=yes display-time=5s
set ether4 disabled=yes display-time=5s
set ether5 disabled=yes display-time=5s
/tool user-manager database
set db-path=user-manager




วันศุกร์ที่ 16 ตุลาคม พ.ศ. 2558

Mikrotik Hotspot Freeradius

วิธี set Mikrotik เป็น Hotspot โดยใช้ฐานข้อมูลผู้ใช้จาก Freeradius Server
   โดยที่ Fix ip ของ Mikrotik เป็น 192.168.1.2 ต่อกับ Gateway ip 192.168.1.1
   Freeradius Server ip 192.168.1.1

- ใช้ port 1 เป็นขา gateway ตั้งค่า ip 192.168.1.2/24
   โดยกด IP เลือก Addresses กด + ใส่ Address: 192.168.1.2/24 , Interface:  ether1-gateway




- เพิ่ม Route เพื่อให้ออกเน็ตได้
   โดยกด IP เลือก Routes กด + ใส่ Dst. Address: 0.0.0.0/0 , Gateway: 192.168.1.1 ,
   Check Gateway: ping




- ตั้งค่า DNS
   โดยกด IP เลือก DNS ใส่ Server: 192.168.1.1




- ทดลอง ping ip, host ดูว่าออกเน็ตได้หรือเปล่า
   โดยกด New Terminal แล้วใช้คำสั่ง ping 8.8.8.8 , ping www.google.com




- ตั้งค่า Radius Server
   โดยกด Radius กด + ติ๊กที่ hotspot ใส่ Address: 192.168.1.1 , Secret: รหัสของ Freeradius ,                     Authentication Port: 1812 , Accounting Port: 1813 , Timeout: 300


   กด Incoming ติ๊กที่ Accept ใส่ Port: 3799


   กดแถบ Status ดูถ้ามีค่า Requests และ Accepts แสดงว่า Mikrotik ติดต่อกับ Radius Server ได้ 
   ถ้ามี Timeouts มากให้เพิ่มค่า Timeoute ในแถบ General

   


- ตั้งค่า Hotspot
   โดยกด IP เลือก Hotspot กดแถบ Server แล้วกด Hotspot Setup
   Hotspot Interface: ether2-master-local


   Local Address of Network: 192.168.88.1/24 ติ๊กที่ Masquerade Network


   Address Pool of Network: 192.168.88.10-192.168.88.254


   Select Certificate: none


   IP Address of SMTP Server : 0.0.0.0


   DNS Servers: 192.168.1.1 หรือ 8.8.8.8


   DNS Name: ไม่ต้องใส่


   Name of HotSpot User: admin , Password for the User: ไม่ต้องใส่


   กดแถบ Server Profiles แล้วกดเลือก profile ที่เพิ่มเข้ามาใหม่ (hsprof1)
   แถบ Login ติ๊กที่ HTTP CHAP กับ HTTP PAP
  

   แถบ RADIUS ติ๊กที่ Use RADIUS กับ Accounting , NAS Port Type: 19 (wireless-802.11)





- เสียบสายแลนของคอมพิวเตอร์กับ Mikrotik จะได้ ip 192.168.88.xxx ทดลองเปิดเวปจะเด้งเข้าหน้า        จอ login





เอกสารอ้างอิง
MikroTik's Remote Radius Configuration

วันเสาร์ที่ 1 สิงหาคม พ.ศ. 2558

ปัญหา Huawei P8 Lite กับ Wearable Devices

     P8 Lite EMUI 3.1 ALE-L02 V100R001C636B120
- ไม่มีเมนู Notification Access แก้ไขด้วยการโหลด Notification Listener Settings ใน Play Store
- ไม่มีเมนู Smart Lock น่าจะเป็นบัคคงต้องรอรอมเวอร์ชั่นใหม่
- บัคการล็อคหน้าจอ Notification ที่เราเลือกไว้จะไม่ถูกเลือก ต้องเลือกใหม่ทุกครั้ง วิธีแก้ ปิดการล็อคหน้าจอ โดยเข้าไปที่ การตั้งค่า -> การล็อคหน้าจอและรหัสผ่าน -> ล็อคหน้าจอ

ก่อนล็อคหน้าจอ


หลังปลดล็อคหน้าจอต้องเข้ามาเลือกใหม่ทุกครั้ง

อัพเดท P8 Lite มีการอัพเดทรอมเป็น ALE-L02C636B140 ได้แก้ไขบัคการล็อคหน้าจอเรียบร้อยแล้ว ที่เพิ่มเข้ามาอีกอย่างคือ การตั้งค่า แบ่งเป็น 2 แถบคือ ทั่วไป กับ ทั้งหมด



วันอาทิตย์ที่ 26 กรกฎาคม พ.ศ. 2558

Unlock Bootloader Huawui P8 Lite ALE-L02

     การ Unlock Bootloader Huawui P8 Lite ทำได้โดยการเมล์ไปยัง mobile@huawei.com เพื่อทำการขอ Unlock Code โดยเราต้องให้ข้อมูลของเครื่องที่เราต้องการ Unlock ตามนี้
     Product: HUAWEI ALE-L02                  การตั้งค่า -> เกี่ยวกับโทรศัพท์ -> หมายเลขรุ่น 
     IMEI-1: xxxxxxxxxxxxxxx                     การตั้งค่า -> เกี่ยวกับโทรศัพท์ -> สถานะ
     IMEI-2: xxxxxxxxxxxxxxx                     การตั้งค่า -> เกี่ยวกับโทรศัพท์ -> สถานะ
     SN: xxxxxxxxxxxxxxx                            การตั้งค่า -> เกี่ยวกับโทรศัพท์ -> หมายเลขซีเรียล
     Product ID: xxxxxxxx                             กด *#*#1357946#*#*

ตัวอย่างเมล์

To: mobile@huawei.com
Subject: request a bootloader unlock code

Hello,
I'd like to request a bootloader unlock code for my Huawei device. 

Information: 
Product: HUAWEI ALE-L02
IMEI-1: xxxxxxxxxxxxxxx
IMEI-2: xxxxxxxxxxxxxxx
SN: xxxxxxxxxxxxxxx 
Product ID: xxxxxxxxxxxxxxx

Thank you

     หลังจากได้ Unlock Code มาแล้วทำตามนี้
1. เปิดโหมดการแก้ไขจุดบกพร่อง USB (ADB Debugging) และเปิดการอนุญาตการแก้ไขจุดบกพร่อง USB โดยการเข้าไปที่ การตั้งค่า -> การพัฒนา -> การแก้ไขข้อบกพร่อง USB 
เสียบสาย USB เครื่องกับคอมพิวเตอร์ กดยอมรับการแก้ไขจากคอมพิวเตอร์ที่หน้าจอโทรศัพท์ 
1. Download minimal_adb_fastboot_v1.3_setup แตกไฟล์และติดตั้งจนเสร็จ
3. ปิดเครื่องแล้วเปิดใหม่โดยการกดปุ่มลดเสียงค้างไว้แล้วกดปุ่มเพาเวอร์ รอจนกว่าจะเข้า Fastboot & Rescue Mode สังเกตุใต้หุ่นเขียว จะมีคำว่า PHONE Locked
4. เปิด minimal adb fastboot จะเป็นการเรียกเปิด Command Prompt ขึ้นมา แล้วใช้คำสั่ง
     fastboot devices
     จะโชว์หมายเลขซีเรียลนัมเบอร์ของเครื่อง
5. พิมพ์คำสั่ง fastboot oem unlock xxxxxxxxxxxxxxx ( Unlock Code ที่เราได้มา) รอจนเสร็จ สังเกตุใต้หุ่นเขียวจะมีคำว่า PHONE Unlocked ปิด/เปิดเครื่องใหม่เป็นอันเสร็จวิธีการ Unlock Bootloader
     


วันเสาร์ที่ 31 พฤษภาคม พ.ศ. 2557

Heros of Newerth (Garena) Hackintosh

    วิธีติดตั้ง
- โหลด GarenaHonLauncher
- โหลดตัวเกมส์จาก http://www.heroesofnewerth.com/download/
- ติดตั้งเกมล์ เปิดเข้าเกมส์แล้วออก
- แตกไฟล์ที่โหลดมา (Garena.zip) ลงบน Desktop
- เปิด Finder > Applications คลิกขวาที่ Heroes of Newerth เลือก Show Package Contents
- ก๊อปปี้ทุกไฟล์ในโฟลเดอร์ garenahon-master ที่ได้จากการแตกไฟล์ Garena.zip ไปใส่ใน Package Contents
- ก๊อปปี้ GarenaHonLauncher จากการแตกไฟล์ วางบน Desktop
- รัน GarenaHonLauncher มันจะทำการเชคอัพเดทตัวเกมตามขั้นตอนปกติ
- เมื่อเข้าเกมส์เรียบร้อยแล้ว ให้ Login (Garena) จากในเกมส์ได้เลย
- ตั้งค่าการแสดงผลของเกมส์ให้เป็นแบบ Windows Mode เพราะถ้าเล่นเต็มจอจะไม่สามารถ Tab ออกมาทำอย่างอื่นได้ (แหม่...เหมาะสำรับฮี่โร่สายเฟสบุคซะจริงๆ)

Update Hackintosh 10.9 เป็น 10.9.1

          ต่อเนื่องจากการติดตั้ง Hackintosh 10.9 ตามลิ้งค์ http://buffajoe.blogspot.com/2014/05/hackintosh-109-amd-phenom-ii-x6.html
          วิธีอัพเดท
- โหลด OS X Mavericks 10.9.1 Update
- ติดตั้งตามปกติ