Results 1 to 3 of 3

Thread: Automatic downloading

  1. #1
    Join Date
    Oct 2009
    Beans
    32

    Question Automatic downloading

    i am using ubuntu 12.04 LTS.I noticed that,some time it downloading something from internet.i find out it from system monitor.How to find which file is downloading now?
    update manager is disabled at that time.

  2. #2
    Join Date
    Sep 2009
    Location
    California U.S.A.
    Beans
    398

    Re: Automatic downloading

    Some simple commands to help:
    Network Processes:
    Code:
    ps -o cmd= -p $(lsof -i -n -P | sed 1d | awk '{print $2}' | uniq)
    Ip Addresses:
    Code:
    netstat --tcp --numeric | awk 'NR>2 {print $5}'| sort -n -t : -k 2,2
    Then do a whois on the ip address. Example:
    Code:
    $whois 74.125.25.109
    ...
    
    NetRange:       74.125.0.0 - 74.125.255.255
    CIDR:           74.125.0.0/16
    OriginAS:       
    NetName:        GOOGLE
    NetHandle:      NET-74-125-0-0-1
    Parent:         NET-74-0-0-0-0
    NetType:        Direct Allocation
    RegDate:        2007-03-13
    Updated:        2012-02-24
    Ref:            http://whois.arin.net/rest/net/NET-74-125-0-0-1
    
    ...

    Just throw it in a while loop in a terminal for a while if you want. Here's a one-liner:
    Code:
    while true; do ps -o cmd= -p $(lsof -i -n -P | sed 1d | awk '{print $2}' | uniq) && netstat --tcp --numeric | awk 'NR>2 {print $5}'| sort -n -t : -k 2,2 && sleep 1; done
    then just ctrl+c to kill it. Hope that helps.

  3. #3
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,479
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Automatic downloading

    Quote Originally Posted by kiranmatrixlee View Post
    i am using ubuntu 12.04 LTS.I noticed that,some time it downloading something from internet.i find out it from system monitor.How to find which file is downloading now?
    update manager is disabled at that time.
    There's two possibilities:

    1. Update Manager sometimes checks for updates periodically, unless you disable that option.

    2. Some combinations of wireless card and router are very "chatty" and exchange a lot of data even when there's nothing really happening. If the amount of data being exchanged is small (1-2kbps) then this is probably what's happening. It's nothing to worry about; this information is only travelling across your local network, not to the internet. You can't stop it without changing to a different wireless card or router, but this small amount of data doesn't matter on a home network.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

Tags for this Thread

Bookmarks

Posting Permissions

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