Config static ip address Raspbian Jessie (Raspberry pi)

14 Oct 2016,
Share: 

หลังจากที่ Raspberry pi ได้ออก OS Raspbian Jessie Kernal version 4.1 เมื่อ 18-03-2016 วิธีการ Config static ip address แบบเดิม วิธี config ip ใน linux ไม่สามารถใช้งานได้

สําหรับวิธีการ config จะไปแก้ไขค่า config ที่ไฟล์ “/etc/dhcpcd.conf” ใช้คําสั่งนี้

sudo nano /etc/dhcpcd.conf

เพิ่ม config นี้เข้าไปตรงบรรทัดสุดท้าย

interface eth0

static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

คําอธิบาย

  • ip_address คือ ip address ที่ต้องการ
  • routers คือ gateway
  • domain_name_servers คือ dns (จะใส่หรือไม่ใส่ก็ได้)

ในกรณีที่เป็น interface อื่นๆ เช่น wifi ก็สามารถเปลี่ยนตรง eth0 เป็นชื่ออื่นๆได้ตามต้องการ

ตัวอย่าง

Image

Suggestion blogs

CPU load average คืออะไร

CPU load average เป็นตัวเลข 3 ชุดที่บอกในหน้าจอ moniter(uptime, top) ของ Linux

วิธีสร้าง VM Instance ใน google developers console

VM Instance เป็นบริการของ google ที่ให้เราสร้างเครื่อง Server(Virtual machine) โดยเราสามารถกําหนดได้ตั้งแต่ Hardware ของเครื่อง ไปจนถึง OS ที่เราต้องการ ทําให้เราสามารถมีเครื่อง Server เป็นของตัวเองได้ง่ายๆภายในไม่กี่คลิ๊ก เริ่มแรกให้เราเข้าไปที่ console.developers.google.com/project จะขึ้นหน้าจอสําหรับจัดการ project ให้เราคลิ๊ก Create Project

Scanline Flood fill Algorithm

Flood fill AlgorithmFlood fill Algorithm คือ Algorithm การระบายสีโดยมีเงื่อนไขอยู่ว่ารูปทรงที่ต้องการระบายนั้นจะต้องเป็นรูปปิด ถ้าใครนึกภาพไม่ออกก็ลองนึกถึงโปรแกรม paint จะมีเครื่องมือเทสี(Fill) มีลักษณะเช่นเดียวกัน


Copyright © 2019 - 2026 thiti.dev |  v1.61.0 |  Privacy policy | 

Build with ❤️ and Astro.

Github profile   Linkedin profile   Instagram   X profile   Nostr   Youtube channel   Telegram   Email contact   วงแหวนเว็บ