Page 1 of 13 12311 ... LastLast
Results 1 to 10 of 129
  1. #1
    Untangle Ninja Silver Bullet's Avatar
    Join Date
    Sep 2007
    Posts
    1,946

    Default How To: Install nTop in 5.1

    DO NOT USE THESE INSTRUCTIONS TO INSTALL NTOP IN VERSION 6.1. You will be getting an older version of ntop than what is available in the Debian Lenny repos

    Disclaimer: Perform this at your own risk. While I was careful in constructing these instructions, they may not be perfect. The instructions below were made so you would only have to copy and paste them into a terminal. If your Untangle Gremlins leave and your server no longer runs, then you have been warned and I accept NO responsibility. These were made for Untangle 5.1. DO NOT USE THIS ONE IN 5.03

    First, thanks juank and memay118 for testing.

    Ntop is a network traffic analyzer that produces network usage trends into a format readable via a web browser. For more info about ntop, please visit their website.

    NTop website

    First, create a "Packet Filter" rule in Untangle Alpaca interface to match the screen shot

    >> See attached screen shot.<<
    Note: the screen shot shows the destination address of 10.2.3.1, change that to your Untangle's internal address.

    To install, copy everything (AND I MEAN EVERYTHING) you see in this first window and paste it all at once in the terminal that you have connected to your Untangle server. If you run into an error during installation, then post here and I will try to help. For anything else, please consult ntop's docs located on their website.

    Enter the ntop user password when prompted.

    Code:
    # Increase APT CACHE
    sed -i -e 's/APT::Cache-Limit 10000000/APT::Cache-Limit 20000000/' /etc/apt/apt.conf
    
    # Backup Orignal sources.list
    cp /etc/apt/sources.list /etc/apt/sources.list.orig
    
    #Add Gutsy repos
    
    echo "deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted" >>/etc/apt/sources.list
    echo "deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted" >>/etc/apt/sources.list
    
    echo "deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted" >>/etc/apt/sources.list
    echo "deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted" >>/etc/apt/sources.list
    
    echo "deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe" >>/etc/apt/sources.list
    echo "deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe" >>/etc/apt/sources.list
    echo "deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe" >>/etc/apt/sources.list
    echo "deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe" >>/etc/apt/sources.list
    
    echo "deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse" >>/etc/apt/sources.list
    echo "deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse" >>/etc/apt/sources.list
    echo "deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse" >>/etc/apt/sources.list
    echo "deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse" >>/etc/apt/sources.list
    
    echo "deb http://security.ubuntu.com/ubuntu gutsy-security main restricted" >>/etc/apt/sources.list
    echo "deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted" >>/etc/apt/sources.list
    echo "deb http://security.ubuntu.com/ubuntu gutsy-security universe" >>/etc/apt/sources.list
    echo "deb-src http://security.ubuntu.com/ubuntu gutsy-security universe" >>/etc/apt/sources.list
    echo "deb http://security.ubuntu.com/ubuntu gutsy-security multiverse" >>/etc/apt/sources.list
    echo "deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse" >>/etc/apt/sources.list
    
    apt-get update
    
    apt-get install ntop
    #Set ntop user password
    Code:
    ntop -A
    #Tell ntop which interface to monitor. If you want to monitor an interface other than eth1, then replace "eth1" with the interface you want to monitor

    Code:
    cd /var/lib/ntop
    
    sed 's/INTERFACES="eth0"/INTERFACES="eth1"/g' init.cfg> init.cfg.tmp
    
    cp init.cfg.tmp init.cfg
    
    rm init.cfg.tmp
    #Untangles Alpaca uses port 3000 so we will need to tell ntop to use a different port. I am using 4000

    Code:
    echo 'GETOPT="-w 4000"' >>/etc/default/ntop
    #Restore original sources.list
    Code:
    cp /etc/apt/sources.list.orig /etc/apt/sources.list
    rm /etc/apt/sources.list.orig
    #Start ntop
    Code:
    /etc/init.d/ntop start



    #Browse to your ntop page
    http://ipaddress:4000
    Last edited by Silver Bullet; 04-21-2009 at 08:42 AM. Reason: Reordered instructions.

  2. #2
    Master Untangler GuruLeeNyc's Avatar
    Join Date
    Feb 2008
    Posts
    143

    Default

    Sweet! However, what do you recommend for someone that is currently running 5.03 with nTop and PhpSysInfo? Do I have to perform a clean install or can I do an in place upgrade of 5.1 and then reinstallation of nTop?

    Thanks for the MAJOR contribution!

  3. #3
    Untangler
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    94

    Default

    5.1 currently needs a fresh install. Once they release the final version, they will work on an upgrade version.

  4. #4
    Untangle Ninja Silver Bullet's Avatar
    Join Date
    Sep 2007
    Posts
    1,946

    Default

    Quote Originally Posted by GuruLeeNyc View Post
    Sweet! However, what do you recommend for someone that is currently running 5.03 with nTop and PhpSysInfo? Do I have to perform a clean install or can I do an in place upgrade of 5.1 and then reinstallation of nTop?

    Thanks for the MAJOR contribution!
    I'm not sure how they are going to do the upgrade yet so I really can't give a definite answer.

    Right now, without knowing how the upgrade process is going to happen, I would say do a fresh install and then reinstall those apps if you want them.

    It may be possible to let the upgrade take place on your 5.03 and if everything goes as expected, I would create a backup, do a fresh install and then restore from that backup. Then reinstall those apps if you want.

    It is too hard to say right now though.

  5. #5
    Untangle Ninja juank's Avatar
    Join Date
    Aug 2007
    Location
    Athens
    Posts
    1,413

    Default

    Thanks a lot Silver Bullet for letting me test your script.
    --------------------------------
    Juan Machado
    --------------------------------

  6. #6
    Master Untangler MiniPilote's Avatar
    Join Date
    Feb 2008
    Posts
    188

    Default

    Thanks again Silver Bullet!

    By the way, it might be worth mentioning that the "Packet Filter" section is only located in the "Advanced" mode of the "Network Configuration". It took me a while to find it.

    I'm working on the install now.
    MiniPilote

  7. #7
    Master Untangler GuruLeeNyc's Avatar
    Join Date
    Feb 2008
    Posts
    143

    Default

    I get this error:
    Code:
    Get:48 http://us.archive.ubuntu.com gutsy-updates/multiverse Release [109B]
    Fetched 9747kB in 32s (298kB/s)
    Reading Package Lists... Error!
    E: Dynamic MMap ran out of room
    E: Error occured while processing gtkterm (NewVersion1)
    E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_gutsy_universe_binary-i386_Packages
    E: The package lists or status file could not be parsed or opened.
    ~ #                                                              [root @ uvm51]
    ~ # apt-get install ntop                                         [root @ uvm51]
    Reading Package Lists... Error!
    E: Dynamic MMap ran out of room
    E: Error occured while processing gtkterm (NewVersion1)
    E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_gutsy_universe_binary-i386_Packages
    E: The package lists or status file could not be parsed or opened.
    ~ #

  8. #8
    Master Untangler GuruLeeNyc's Avatar
    Join Date
    Feb 2008
    Posts
    143

    Default

    I fixed it by adding the increasing the following line to /etc/apt/apt.conf:

    Code:
    APT::Cache-Limit "8388608";

  9. #9
    Master Untangler GuruLeeNyc's Avatar
    Join Date
    Feb 2008
    Posts
    143

    Default

    Now I am getting these erorrs:
    Code:
    W: Couldn't stat source package list http://security.ubuntu.com gutsy-security/m                             ain Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security                             _main_binary-i386_Packages) - stat (2 No such file or directory)
    W: Couldn't stat source package list http://security.ubuntu.com gutsy-security/r                             estricted Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-se                             curity_restricted_binary-i386_Packages) - stat (2 No such file or directory)
    W: Couldn't stat source package list http://security.ubuntu.com gutsy-security/m                             ain Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security                             _main_binary-i386_Packages) - stat (2 No such file or directory)
    W: Couldn't stat source package list http://security.ubuntu.com gutsy-security/r                             estricted Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-se                             curity_restricted_binary-i386_Packages) - stat (2 No such file or directory)
    W: Couldn't stat source package list http://security.ubuntu.com gutsy-security/m                             ain Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security                             _main_binary-i386_Packages) - stat (2 No such file or directory)
    W: Couldn't stat source package list http://security.ubuntu.com gutsy-security/r                             estricted Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-se                             curity_restricted_binary-i386_Packages) - stat (2 No such file or directory)
    W: You may want to run apt-get update to correct these problems
    Aside from the above errors, it seems to be working....

    How can I correct the above errrors?
    Last edited by GuruLeeNyc; 03-10-2008 at 05:09 PM.

  10. #10
    Untangle Ninja Silver Bullet's Avatar
    Join Date
    Sep 2007
    Posts
    1,946

    Default

    GuruLeeNyc, try doing the following:

    apt-get clean

    apt-get update

    apt-get remove ntop

    apt-get install ntop


    How large is your hard drive?

Page 1 of 13 12311 ... 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
  •  

SEO by vBSEO 3.6.0 PL2