Laptop มักมีแค่ Wi-Fi Desktop ไม่มี Mobile Internet Built-in แต่ถ้าต้องการออนไลน์ Linux ไม่มี Wi-Fi/Ethernet จะทำไง?
คำตอบคือ Tethering แบ่งปันอินเทอร์เน็ตมือถือจาก Smartphone ให้คอมพิวเตอร์
ตราบใด Carrier ไม่จำกัดการใช้ Data Internet Connection Sharing (Netshare) กับ Linux เป็นทางเลือกดี Wi-Fi Tethering เป็นหนึ่งทางเลือก นี่คือวิธี USB Tethering บน Linux ด้วย Android และ iPhone
Tethering คืออะไร?
Tethering = เชื่อม Mobile Device กับ Computer เพื่อแชร์ Mobile Internet
บาง Carrier อาจจำกัด แต่ตอนนี้ نادر กส่วนใหญ่ Data Plan อนุญาต Tethering ทำให้เป็นทางเลือกดึงดูด
อย่างเคร่งครัด Tethering = ใช้ USB Cable แชร์ Mobile Internet ต้องพก USB Data Cable ของโทรศัพท์
Wireless Tethering ทำได้ด้วย Wi-Fi/Bluetooth เรียกว่า "Wireless Hotspot" มักง่ายกว่า แต่มีเหตุผลดีใช้ USB Tethering:
- Connection น่าเชื่อถือกว่า
- ชาร์จโทรศัพท์พร้อมกัน
- หลีกเลี่ยง Wireless Interference
- ป้องกัน Wireless Sniffers ขโมยข้อมูล
ถ้าไม่มี USB Cable ใช้ Wireless Hotspot แทน: เชื่อม Linux เข้า Hotspot ของโทรศัพท์
ใช้ USB Cable ที่รองรับ Tethering
ก่อนเริ่ม ต้องแน่ใจว่า USB Cable รองรับ Tethering ไม่ใช่ทุกเส้น บางเส้นทำแค่ชาร์จ ทดสอบ: เสียบคอมพิวเตอร์ เชื่อมโทรศัพท์ รอ Detect หากมี Data Transfer/File Browsing = ใช้ได้
หาก Cable มีปัญหา ซื้อ Data Cable คุณภาพดีออนไลน์ได้
วิธีด้านล่างต้องเสียบ USB ก่อน แล้วค่อยเปิด Tethering
Tether Android เข้ากับ Linux
Android ทำได้ง่าย เพราะทั้งคู่ Linux-based
- เสียบ USB Cable ระหว่างโทรศัพท์และ Linux PC
- Android ตรวจพบการเชื่อมต่อ — ถาม Allow access กด Allow
- ใน Notifications หาข้อความ USB กดเข้าไป
- ใต้ Use USB for เลือก USB tethering
ส่วนใหญ่เชื่อมต่ออัตโนมัติ เช็ค IP Address ยืนยัน:
ifconfig
หรือ
ip address
หา Interface ชื่อ usb0
บาง Distro ต้องเลือก USB Connection เอง:
- หา Network Tray Applet บน Linux
- คลิกหา Network Option ชื่อแบบ "auto usb0"
- เลือกเพื่อเชื่อม Linux กับโทรศัพท์ผ่าน USB
ไม่มี Data Plan อนุญาต Tethering? ติดตั้ง Custom Android ROM ช่วยหลีกเลี่ยงข้อจำกัด
อยาก Tether BlackBerry Phone?
ขึ้นกับอายุ BlackBerry มีหลายทางเลือก หาก BlackBerry รัน:
- Android (2015-present) -> ใช้วิธีด้านบน
- BlackBerry 10 (2013-2018)
- BlackBerry OS 7.0 (2011-2013)
BlackBerry 10: เสียบ USB -> Settings > Network Connections > Internet Tethering -> Connect -> USB -> Enable Internet Tethering
BlackBerry OS: Manage Connections > Network and Connections > Mobile Hotspot Connections > ตั้งค่า Credentials
ทุกวิธี: เลือก Network usb0 ใน Linux Panel หากไม่เชื่อมอัตโนมัติ
Tether iPhone เข้ากับ Linux
iPhone ที่มี Data Plan อนุญาต Tethering ทำ USB Tethering ได้ แต่ไม่เชื่อมอัตโนมัติเหมือน Android ต้องใช้ libimobiledevice (Cross-platform software protocol library สำหรับ iOS) เช็คความเข้ากันได้: www.libimobiledevice.org
Ubuntu: libimobiledevice มาอยู่แล้ว ถ้าไม่มี ติดตั้งก่อนเสียบ iPhone:
sudo apt install libimobiledevice6
เชื่อมอินเทอร์เน็ตผ่าน iPhone:
- Settings > Personal Hotspot
- Enable Allow Others to Join
เลือก Connection ใน Linux: ไม่เหมือน Android iPhone แสดงเป็น Ethernet Device ใหม่ ไม่ใช่ USB หา eth0 หรือ eth1 — มักเป็น eth1 เพราะ eth0 ให้ Ethernet Port จริง
Tethering Linux Phones ไป Linux
มี Linux Mobile OS หลายตัว: Pure OS (Librem 5), PostmarketOS (PinePhone), UBPorts (Ubuntu Touch)
น่าประหลาด ไม่ทุกตัวมี USB/Wireless Tethering น่าเชื่อถือ ดู Documentation ของโปรเจคที่ใช้
Tethering โทรศัพท์ไป Linux: สำเร็จ!
Smartphone เป็น Wireless Hotspot ให้ Laptop/PC ได้ แต่ USB Tethering ยังมีประโยชน์: คอมพิวเตอร์อาจมี Network Card ชำรุด หรืออุปกรณ์ไวต่อ Wireless Interference
แบ่งปัน Mobile Internet จากโทรศัพท์ วิธีเยี่ยมให้ Linux PC ออนไลน์ และ USB Cable ชาร์จโทรศัพท์พร้อมกัน Win-Win!
อยากแชร์อินเทอร์เน็ตโทรศัพท์ไป OS อื่น? Android -> PC/Laptop, iPhone Hotspot ก็ได้