แสดงบทความที่มีป้ายกำกับ tftp แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ tftp แสดงบทความทั้งหมด

วันพฤหัสบดีที่ 3 ตุลาคม พ.ศ. 2556

build tftp (tftp-hpa) for solaris

Standard
     ปัญหาของ tftp ใน solaris 10 ที่ไม่สามารถ get หรือ put file ด้วย single command ได้เลยต้องไปหา tftp client แบบอื่นมาลง เคยได้ใช้ของ Red Hat ซึ่งมันก็โอเคก็เลยไปหามา มันชื่อ tftp-hpa ซึ่งวิธีการคอมไฟล์ก็ง่ายแสนง่าย ลองดูกันครับ
  1. Download Source Code จาก 
  2. https://www.kernel.org/pub/software/network/tftp/tftp-hpa/
  3. extract file ใช่คำสั่ง  ./configure เพื่อสร้าง Makefile
  4. gmake เพื่อ compile 
  5. ไฟล์ binary จะอยู่ที่ 
  6. tftp-hpa-5.2/tftp/tftp
วิธีใช้ก็
tftp 192.168.1.1 -c get /path_file/filename.txt


วันศุกร์ที่ 6 กันยายน พ.ศ. 2556

ติดตั้ง tftp server บน CentOS 6

Standard

yum install -y tftp-server
ไฟล์ config ของ  tftp-server อยู่ที่
vi /etc/xinetd.d/tftp 
ตัวอย่างไฟล์ config


folder จะต้อง chmod 755  /var/myuploadfile

chown nobody /var/myuploadfile


สั่ง start service
service xinetd start
เพิ่มให้ service auto start
chkconfig  xinetd on

หมายเหตุถ้าพบปัญหา
Sep  6 21:53:27 localhost in.tftpd[4706]: sending NAK (0, Permission denied) to 192.168.10.62
ให้ลอง
restorecon -Rv /var/myuploadfile

setenforce 0

chkconfig rsync on