Find the answer to your Linux question:
Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 33
Like Tree1Likes
Originally Posted by atreyu okay, then try this: Code: sudo /usr/sbin/atftpd --daemon --user nobody --group nobody /tftpboot if it does not output any errors, see if it is running using ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Oct 2012
    Posts
    26

    Quote Originally Posted by atreyu View Post
    okay, then try this:
    Code:
    sudo /usr/sbin/atftpd --daemon --user nobody --group nobody /tftpboot
    if it does not output any errors, see if it is running using that ps command again.
    there is no output.........
    and after ps command,the output is:
    1000 13580 0.0 0.0 4388 828 pts/1 S+ 12:44 0:00 grep --color=auto atftpd

  2. #12
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    is there anything in /var/log/messages related to atftpd not starting? try:

    Code:
    sudo grep atftpd /var/log/messages
    just to and get it to spit out the version, to make sure it can run at all:

    Code:
    /usr/sbin/atftpd -V
    if not, you may have to run a strace, but I hope it doesn't come to that...

  3. #13
    Just Joined!
    Join Date
    Oct 2012
    Posts
    26
    Quote Originally Posted by atreyu View Post
    is there anything in /var/log/messages related to atftpd not starting? try:

    Code:
    sudo grep atftpd /var/log/messages
    just to and get it to spit out the version, to make sure it can run at all:

    Code:
    /usr/sbin/atftpd -V
    if not, you may have to run a strace, but I hope it doesn't come to that...
    after first command there was'nt any message but after the second command,the output was:
    atftp-0.7 (server)

  4. #14
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by mosol2005 View Post
    after first command there was'nt any message
    i think that is the wrong file, try /var/log/sysog, e.g.:

    Code:
    sudo grep atftpd /var/log/syslog

  5. #15
    Just Joined!
    Join Date
    Oct 2012
    Posts
    26
    Quote Originally Posted by atreyu View Post
    i think that is the wrong file, try /var/log/sysog, e.g.:

    Code:
    sudo grep atftpd /var/log/syslog
    the output is :
    Oct 28 08:18:58 ubuntu atftpd[967]: Advanced Trivial FTP server started (0.7)
    Oct 28 08:18:58 ubuntu atftpd[970]: atftpd: invalid IP address
    Oct 28 09:04:45 ubuntu atftpd[958]: Advanced Trivial FTP server started (0.7)
    Oct 28 09:04:45 ubuntu atftpd[963]: atftpd: invalid IP address

  6. #16
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by mosol2005 View Post
    Oct 28 09:04:45 ubuntu atftpd[963]: atftpd: invalid IP address
    try supplying a valid ip address used by your server. if you do not know, check the output of this ip command
    Code:
    ip -o addr show |awk '$2 !~ /lo/ && $3 ~ /inet$/{print $2,$4}'
    say your ip address is 192.168.1.2, try this atftpd command:
    Code:
     sudo /usr/sbin/atftpd --daemon --bind-address 192.168.1.2 --user nobody --group nobody /tftpboot
    then check the output of ps again to see if running. if not, grep the syslog file again.

  7. #17
    Just Joined!
    Join Date
    Oct 2012
    Posts
    26
    Quote Originally Posted by atreyu View Post
    try supplying a valid ip address used by your server. if you do not know, check the output of this ip command
    Code:
    ip -o addr show |awk '$2 !~ /lo/ && $3 ~ /inet$/{print $2,$4}'
    say your ip address is 192.168.1.2, try this atftpd command:
    Code:
     sudo /usr/sbin/atftpd --daemon --bind-address 192.168.1.2 --user nobody --group nobody /tftpboot
    then check the output of ps again to see if running. if not, grep the syslog file again.
    the output of grep is:

    Oct 29 09:30:12 ubuntu atftpd[2782]: Advanced Trivial FTP server started (0.7)
    Oct 29 09:30:12 ubuntu atftpd[2783]: atftpd: can't bind port 192.168.1.2:69/udp

  8. #18
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by mosol2005 View Post
    Oct 29 09:30:12 ubuntu atftpd[2783]: atftpd: can't bind port 192.168.1.2:69/udp
    it looks like you just used the ip address I used in my example (192.168.1.2). you need to determine your ip address (using the "ip" command I suggested. or simply run "ifconfig" and look for "inet" ip addresses).

  9. #19
    Just Joined!
    Join Date
    Oct 2012
    Posts
    26
    Quote Originally Posted by atreyu View Post
    it looks like you just used the ip address I used in my example (192.168.1.2). you need to determine your ip address (using the "ip" command I suggested. or simply run "ifconfig" and look for "inet" ip addresses).
    I'm sorry but now,there is an error:
    sudo: /usr/sbin/atftpd: command not found

  10. #20
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by mosol2005 View Post
    I'm sorry but now,there is an error:
    sudo: /usr/sbin/atftpd: command not found
    Did you remove the atftpd package?

    Code:
    dpkg -L atftpd
    Code:
    ls -l /usr/sbin/atftpd
    reinstall it:
    Code:
    sudo apt-get install atftpd

Page 2 of 4 FirstFirst 1 2 3 4 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •