Difference between revisions of "TFTP: Instalasi"

From OnnoWiki
Jump to navigation Jump to search
(New page: 9 down vote accepted I got TFTP service working great by using: sudo apt-get install xinetd tftpd tftp Here is where the solution came from: http://mohammadthalif.wordpress.com/2010/...)
 
 
Line 1: Line 1:
9 down vote accepted
+
Install
 
  
I got TFTP service working great by using:
+
sudo apt-get install xinetd tftpd tftp
  
sudo apt-get install xinetd tftpd tftp
+
Buat
  
Here is where the solution came from: http://mohammadthalif.wordpress.com/2010/03/05/installing-and-testing-tftpd-in-ubuntudebian/
+
vi /etc/xinetd.d/tftp
  
And here is what's there:
+
isi dengan
  
    Install following packages.
+
service tftp
 
+
{
    sudo apt-get install xinetd tftpd tftp
 
 
 
    Create /etc/xinetd.d/tftp and put this entry
 
 
 
    service tftp
 
    {
 
 
     protocol        = udp
 
     protocol        = udp
 
     port            = 69
 
     port            = 69
Line 26: Line 19:
 
     server_args    = /tftpboot
 
     server_args    = /tftpboot
 
     disable        = no
 
     disable        = no
    }
+
}
 +
 
  
    Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot
+
Buat folder /tftpboot
  
    sudo mkdir /tftpboot
+
sudo mkdir /tftpboot
    sudo chmod -R 777 /tftpboot
+
sudo chmod -R 777 /tftpboot
    sudo chown -R nobody /tftpboot
+
sudo chown -R nobody /tftpboot
  
    Restart the xinetd service.
+
Restart xinetd service.
  
    sudo /etc/init.d/xinetd restart
+
sudo /etc/init.d/xinetd restart
  
    Now our tftp server is up and running.
 
  
Testing our tftp server
+
==Testing==
  
    Create a file named test with some content in /tftpboot path of the tftp server
+
Buat file test di /tftpboot
 +
Cek ip address (misalnya 192.168.1.2) dari tftp server
  
    Obtain the ip address of the tftp server using ifconfig command
+
Coba lakukan
  
    Now in some other system follow the following steps.
 
  
    tftp 192.168.1.2
+
tftp 192.168.1.2
    tftp> get test
+
tftp> get test
    Sent 159 bytes in 0.0 seconds
+
Sent 159 bytes in 0.0 seconds
  
    tftp> quit
+
tftp> quit
  
    cat test
+
cat test
  
  
Line 63: Line 56:
  
 
* http://askubuntu.com/questions/201505/how-do-i-install-and-run-a-tftp-server
 
* http://askubuntu.com/questions/201505/how-do-i-install-and-run-a-tftp-server
 +
* http://mohammadthalif.wordpress.com/2010/03/05/installing-and-testing-tftpd-in-ubuntudebian/

Latest revision as of 02:52, 13 December 2013

Install

sudo apt-get install xinetd tftpd tftp

Buat

vi /etc/xinetd.d/tftp

isi dengan

service tftp
{
   protocol        = udp
   port            = 69
   socket_type     = dgram
   wait            = yes
   user            = nobody
   server          = /usr/sbin/in.tftpd
   server_args     = /tftpboot
   disable         = no
}


Buat folder /tftpboot

sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot

Restart xinetd service.

sudo /etc/init.d/xinetd restart


Testing

Buat file test di /tftpboot Cek ip address (misalnya 192.168.1.2) dari tftp server

Coba lakukan


tftp 192.168.1.2
tftp> get test
Sent 159 bytes in 0.0 seconds
tftp> quit
cat test



Referensi