I checked all the answers, but they all said no, I chmod almost to 888
Finally, I made it
The first thing you need to do to run into this problem is install it correctly.
1. Install the software package
sudo apt-get install tftpd tftp xinetd
2. Create a profile
Set up a configuration file TFTP under /etc/xinetd.d/
sudo vi /etc/xinetd.d/tftp
The following
Service TFTP
{
Socket_type = dgram
Protocol = udp
Wait = yes
User = root
Server =/usr/sbin/in TFTPD
Server_args = -s /tftpboot // This is the location of ubuntu’s TFPT directory and the current one is in the root directory.
Disable = no
Per_source = 11
The CPS = 100 2
Flags = IPv4
}
3. Establish TFTP service file directory
In the above configuration, server_args = -s /tftpboot, where /tftpboot is where the files are uploaded and downloaded.
Sudo mkdir /tftpboot — Create /tftpboot in the root directory
Sudo Chmod 777/tFTpboot-r — set permissions to 777
4. Restart TFTP service
Sudo /etc/init.d/xinetd restart — RESTART the TFTP server
5, test,
Sudo netstat -a | grep TFTP — to see if the startup was successful, you can see udp 0 0 *: TFTP *:*
But mine is special
Udp60 0 *: TFTP [] :*
But it’s still installed correctly.
And then install this thing
apt-get install inetutils-inetd
What service management is said to be TFTP server
The following
I entered TFTP 192.168.1.205-G-R ABC in the development board
// 192.168.1.205 is my Ubuntu address
-g is for download
-r stands for remote file download
ABC is the test file I placed in the virtual machine TFTP
TFTP 192.168.1.205-p-r ABC
tftp: server error: (2) Access violatio
Encountered this problem TFTP: Server Error: (2) Access Violatio
Server_args = -s /tftpboot // (now I share TFTP directory, set in the root directory)
2: In the configuration file to set the path, but also to create the corresponding directory.
3: Then authorize the Shared directory
Chmod 777/tftpboot:
4: In the virtual machine/tFTpboot we create a file and write anything in it
Touch the ABC
gedit abc
And authorization
chmod 766 abc
5: Where do I type on the development board
[root@gec210 /] TFTP 192.168.1.205-G-R ABC
tftp: server error: (2) Access violatio
6: Again, we are in the current directory of the development board
Touch ABC // Create a file with the same name as the file we want to download // re-authorize it
chmod 766 abc
7: [root@gec210 /] TFTP 192.168.1.205-G-R ABC again
8: Successful ~~~~// success is not shown at all. You can only cat a file on the virtual machine to see if it’s your own.
Upload from the development board (to upload, you must first create a file with the same name in the VIRTUAL machine TFTP, permission is still 766, because the upload is covering write, you need to create a corresponding file name first.)
The first time failed
/ root @ GEC210/TFTP 192.168.1.205 – p – r ABC
0% ABC | | 0 – stalled –
TFTP: a timeout
Once again successfully uploaded ~ ~ ~ ~
/root @ GEC210/TFTP 192.168.1.205 – p – r ABC
100% ABC | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | 16 0:00:00 ETA
Read More:
- LoadRunner error — memory violation: exception access_ Solution
- [Java] Java program error: exception_ ACCESS_ VIOLATION (0xc0000005)
- Unhandled exception: 0xc0000005: access violation while reading location 0x00000000
- Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and co
- Dxly solves the fatal error of AutoCAD2006: unhandled access violation reading 0x0000 exception at 6532b0h.
- C / C + + error handling (document): unhandled exception: 0xc0000005: access violation while reading location 0x00000000
- Syntax error or access violation: 1071 specified key was too long; max key length is 767 bytes
- Unhandled exception at 0x00000000: 0xc0000005: access violation at position 0x0000000000
- Running program encountered Error:Access violation at 0x**(tried to write to 0x**) program terminated
- Error code 1045, state 28000, Java sql.SQLException :Access denied for user ‘root’@’localhost’
- Grpc client access server prompt: RPC error: code = unimplemented desc = unknown service possible reasons
- The idea code pushes to GitHub and reports an error fatal: unable to access
- Ganglia cannot access: you don’t have permission to access / ganglia on this server
- svn Key usage violation in certificate has been detected
- ER_ACCESS_DENIED_ERROR: Access denied for user ‘root‘@‘localhost‘ (using password: NO)
- exception is java.lang.LinkageError: loader constraint violation: loader
- command/usr/bin/codesign failed with exit code 1- code sign error
- Open vs code through terminal using code command in Mac OS
- Windows blue screen code query (bug check code)
- Idea submits code to git / code cloud warehouse for the first time