Tuesday, April 22, 2008

apt-proxy

อยากลองใช้ apt-proxy ดูบ้าง เนื่องจากในออฟฟิศผมติดตั้งเดเบียนไว้สามเครื่องแล้ว ก็ลองติดตั้งตามเดเบียนคลับอีกตามเคย หลังจากคอนฟิกเรียบร้อยแล้วก็ยังใช้ไม่ได้ ก็งมอยู่ประมาณสามชั่วโมง ก็พบว่าเป็นเพราะที่ออฟฟิศใช้อินเทอร์เน็ตผ่านพร็อกซี จึงต้องบอก apt-proxy ให้ใช้ด้วย ก็โอเคละ
ค่าคอนฟิกใน /etc/apt-proxy/apt-proxy-v2.conf
;;Use HTTP proxy?
http_proxy = yourproxy:port

;;Backend Server
[debian]
backend =
http://ftp.debainclub.org/debian
http://ftp.tw.debian.org/debian

[security]
backend =
http://security.debian.org/debian-security
ค่าคอนฟิกใน /etc/apt/sources.list ทางฝั่ง client
deb http://yourserver:9999/debian stable main contrib
deb http://yourserver:9999/security stable/updates main contrib

No comments: