เวิร์กสเตชันการพัฒนา
คู่มือนี้สร้างเวิร์กสเตชัน Ubuntu 24.04 GNOME พร้อมด้วยชุดเครื่องมือแบบอนุรักษ์นิยมและการทดสอบควันที่ชัดเจน เวอร์ชันภาษาและตัวแก้ไขจะเป็นไปตามแหล่งที่มาของแพ็กเกจที่เลือก เว้นแต่คุณจะปักหมุดและตรวจสอบแหล่งข้อมูลอื่น
ด่วน
Create an Ubuntu 24.04 GNOME development workstation with a dark color
scheme, SSH, Docker, Git, Python, Node.js, curl, jq, tmux, htop, and Neovim.
Create a locked-password user named dev with sudo and Docker group intent.
Do not add third-party repositories unless their HTTPS URL, signing key,
release support, and license are explicit. Add tests for the desktop session,
tool versions, Docker service, group membership, and one container smoke test.##ทบทวนสูตร
{
"name": "ubuntu24-development-workstation",
"base_image": "ubuntu-24.04",
"os": {
"features": ["desktop", "ssh", "docker", "git", "python", "nodejs"],
"packages": ["curl", "jq", "tmux", "htop", "neovim"],
"users": [
{
"username": "dev",
"groups": ["sudo", "docker"],
"shell": "/bin/bash"
}
],
"desktop_settings": {
"color_scheme": "prefer-dark",
"fonts": {
"monospace_font": "Ubuntu Mono 13"
},
"power": {
"idle_delay": 600,
"sleep_inactive_ac_timeout": 0,
"sleep_inactive_ac_type": "nothing"
}
}
}
}ยืนยันว่าแต่ละฟีเจอร์จะขยายบน Ubuntu 24.04 ตามที่คาดไว้ ความเป็นสมาชิกกลุ่มโดยทั่วไปจะเทียบเท่ากับรูทเนื่องจากสามารถควบคุม Docker daemon ได้ ลบออกหากผู้ใช้ไม่ควรมีสิทธิ์นั้น
เวอร์ชันและแหล่งที่มา
อย่าถามถึง “ล่าสุด” ในเวิร์กสเตชันที่มีการควบคุม บันทึกเวอร์ชันที่มีอยู่จริงจากสแน็ปช็อตที่เลือกและทดสอบเวอร์ชันเหล่านั้น พื้นที่เก็บข้อมูลของผู้จำหน่ายหรือตัวติดตั้งบูตสแตรปจะเพิ่มรูทที่เชื่อถือได้แยกต่างหากและวงจรการอัพเดต ใช้หลังจากตรวจสอบคีย์ ข้อมูลเมตาของที่เก็บข้อมูล ข้อกำหนด และพฤติกรรมการย้อนกลับเท่านั้น
เครื่องมือต่างๆ เช่น Rustup ตัวจัดการเวอร์ชันภาษา ส่วนขยายตัวแก้ไข และอิมเมจคอนเทนเนอร์ สามารถดาวน์โหลดโค้ดที่เคลื่อนไหวได้หลังจากสร้างอิมเมจแล้ว หากสิ่งเหล่านี้มีความสำคัญต่อพื้นฐานเวิร์กสเตชัน ให้ปักหมุดพวกเขาและรวมที่มาไว้ในแพ็กเก็ตหลักฐาน
สถานการณ์การตรวจสอบ
{
"id": "development-smoke",
"name": "Development workstation smoke test",
"enabled": true,
"tests": ["boot", "login", "packages", "services"],
"custom_tests": [
{
"description": "Confirm core tools and Docker are usable.",
"assertions": [
{
"type": "command_succeeds",
"description": "Python reports a version.",
"params": {"command": "python3 --version"}
},
{
"type": "command_succeeds",
"description": "Node.js reports a version.",
"params": {"command": "node --version"}
},
{
"type": "service_running",
"description": "The Docker daemon is running.",
"params": {"service": "docker"}
},
{
"type": "user_in_group",
"description": "The dev account has the reviewed Docker authority.",
"params": {"username": "dev", "group": "docker"}
}
]
}
]
}เพิ่มการยืนยัน GUI สำหรับโปรแกรมแก้ไขกราฟิกทุกตัวที่คุณติดตั้งจริง การตรวจสอบแพ็คเกจไม่สามารถตรวจพบการเปิดใช้งานครั้งแรกที่เสียหาย กล่องโต้ตอบสิทธิ์การใช้งาน ขาดการรวมจอแสดงผล หรือเดสก์ท็อปเริ่มต้นที่ไม่ถูกต้อง
สุดท้าย ทดสอบการเข้าสู่ระบบด้วยการลงทะเบียนที่ได้รับอนุมัติหรือเส้นทางคีย์ SSH สูตรไม่มีรหัสผ่านโดยเจตนา