WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: New to Linux. Help to install program called 2n2.  (Read 7060 times)

Offline zone22

  • Newbie
  • *
  • Posts: 8
New to Linux. Help to install program called 2n2.
« on: March 02, 2011, 02:17:31 PM »
I'm new to Tiny Core and have a very basic knowledge of Linux. I'm running a tiny core based distribution in virtual box.  I was hoping someone could walk me through the process of installing 2n2. More information on the program can be found here.> http://www.ntop.org/n2n/



« Last Edit: March 03, 2011, 02:39:11 PM by zone22 »

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: New to Linux. Help to install program called 2n2.
« Reply #1 on: March 02, 2011, 08:49:41 PM »
Tinycore is not compatible with Debian stuff. Your best bet without compiling the stuff, is to download the debian package and use the script in the scripting sub-forum for converting.

http://forum.tinycorelinux.net/index.php?topic=2325.0

Failing that you would need to compile the package for tcl. There are instructions on that but be prepared for a fair amount of work.

Offline zone22

  • Newbie
  • *
  • Posts: 8
Re: New to Linux. Help to install program called 2n2.
« Reply #2 on: March 03, 2011, 07:07:04 AM »
Ok, when downloading n2n debian I have the following:
n2n_2.0.0~svn4035-1.diff.gz   
n2n_2.0.0~svn4035-1.dsc     
n2n_2.0.0~svn4035.orig.tar.gz   

None of which ends in .deb
So this means that the script won't work?

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: New to Linux. Help to install program called 2n2.
« Reply #3 on: March 03, 2011, 02:03:44 PM »
Unfortunately not. Try unpacking those packages with 7-zip and check out the contents. Perhaps that will give more info.

Offline zone22

  • Newbie
  • *
  • Posts: 8
Re: New to Linux. Help to install program called 2n2.
« Reply #4 on: March 03, 2011, 02:26:21 PM »
INSTALL

To build the programs:

$ make

To install the programs and man pages:

$ make install

or

$ make PREFIX=/usr/local install


RPM Package
-----------

These steps should work with RPM based Linux distributions since rpmbuild was
split from the rpm utility (c RedHat 9).


To build an RPM the easy way follow these steps.

1. Build SRPM

$ cd n2n
$ scripts/mk_SRPM.sh

Look for where the src.rpm file was put ( "Wrote:" ).

2. Build binary RPM from SRPM

$ rpm -i path/to/n2n-<ver>.src.rpm
$ rpmbuild -bb n2n.spec


All this can be done as non-root user if you have a ~/.rpmmacros file with this
line in it:

%_topdir /home/username/rpmtopdir


To build an RPM the hard way follow these steps.

$ cp -a n2ndir n2n-2.0
$ tar czf n2n-2.0.tar.gz n2n-2.0
$ mv n2n-2.0.tar.gz /usr/src/redhat/SOURCES
$ cp n2ndir/n2n.spec /usr/src/redhat/SPECS
$ rpmbuild -bb n2n.spec

there is a scripts folder:
mk_deb.sh
mk_SRPM.sh
mk_tar.sh
« Last Edit: March 03, 2011, 02:31:56 PM by zone22 »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: New to Linux. Help to install program called 2n2.
« Reply #5 on: March 03, 2011, 02:31:38 PM »
Umm... and why would you not follow the link to the binaries on the download page of that project and just get those?   ???
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline zone22

  • Newbie
  • *
  • Posts: 8
Re: New to Linux. Help to install program called 2n2.
« Reply #6 on: March 03, 2011, 02:36:36 PM »
Umm... and why would you not follow the link to the binaries on the download page of that project and just get those?   ???

Apparently the web page is unavailable for the binaries.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: New to Linux. Help to install program called 2n2.
« Reply #7 on: March 03, 2011, 02:40:23 PM »
In the meanwhile, I think I found the answer to my upper question myself: fact is, that their download page is a chaos and their info and links are a messup.

I suspect what you might want could be here:
http://sourceforge.net/projects/ntop/files/n2n/binaries/linux/

HTH
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline zone22

  • Newbie
  • *
  • Posts: 8
Re: New to Linux. Help to install program called 2n2.
« Reply #8 on: March 03, 2011, 02:49:08 PM »
Thank you. I'm not sure which version of the binaries that link contains. I have a sneaking suspicion that the Binaries are 1.3 and the latest is 2.0. I might e-mail the developers.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: New to Linux. Help to install program called 2n2.
« Reply #9 on: March 03, 2011, 02:55:39 PM »
If you run them with a '-h' option you will find out  ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline zone22

  • Newbie
  • *
  • Posts: 8
Re: New to Linux. Help to install program called 2n2.
« Reply #10 on: March 03, 2011, 06:31:39 PM »
Here's what happens running the '-h' option:

BusyBox v1.18.3 (2011-02-11 12:08:19 PST) multi-call binary.

Usage: tar -[cxtzjZmvO] [-X FILE] [-f TARFILE] [-C DIR] [FILE]...

Create, extract, or list files from a tar file

Operation:
        c       Create
        x       Extract
        t       List
Options:
        f       Name of TARFILE ('-' for stdin/out)
        C       Change to DIR before operation
        v       Verbose
        z       (De)compress using gzip
        j       (De)compress using bzip2
        Z       (De)compress using compress
        O       Extract to stdout
        h       Follow symlinks
        m       Don't restore mtime
        exclude File to exclude
        X       File with names to exclude
        T       File with names to include

tc@box:~$

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: New to Linux. Help to install program called 2n2.
« Reply #11 on: March 03, 2011, 07:06:10 PM »
Umm, it is implied running the untarred executables with '-h' option...   :o
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline zone22

  • Newbie
  • *
  • Posts: 8
Re: New to Linux. Help to install program called 2n2.
« Reply #12 on: March 05, 2011, 08:12:09 AM »
It has version 1.3 and 2.0  :). So whats the next step?

wget http://sourceforge.net/projects/ntop/files/n2n/binaries/linux/linux32.tar.gz/download
tar -zxvf linux32.tar.gz

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: New to Linux. Help to install program called 2n2.
« Reply #13 on: March 05, 2011, 07:13:43 PM »
Refer to Reply #9 ?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: New to Linux. Help to install program called 2n2.
« Reply #14 on: March 06, 2011, 01:53:03 AM »
It has version 1.3 and 2.0  :). So whats the next step?

wget http://sourceforge.net/projects/ntop/files/n2n/binaries/linux/linux32.tar.gz/download
tar -zxvf linux32.tar.gz

Untar the contents to /tmp, and execute the command to run the program in a terminal (ie type in the name of the binary).

Note any messages which indicate missing dependencies. It will be messages like such-and-such not found. Search the tcl repo for those missing files, download and load the package containing the missing files, and try again until it runs.