install iptraf into zeroshell

Home Page Forums Network Management ZeroShell install iptraf into zeroshell

This topic contains 2 replies, has 0 voices, and was last updated by  yuda 11 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #40641

    yuda
    Member

    use console into shell
    #must use HD(IDE)
    create new partition hda1 (>=3G)
    mkext2 /dev/hda1
    mkdir /hda1
    mount /dev/hda1 /hda1
    ls -dl /usr
    cd /cdrom
    tar zcvf /hda1/usr.tgz usr
    cd /hda1
    tar zxvf usr.tgz
    wget http://www.zeroshell.net/download/gcc-include.tar.bz2
    wget http://www.zeroshell.net/download/static-lib.tar.bz2
    wget ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz
    bzip2 -d gcc-include.tar.bz2
    tar xvf gcc-include.tar
    bzip2 -d static-lib.tar.bz2
    tar xvf static-lib.tar
    tar zxvf iptraf-3.0.0.tar.gz
    ls
    you can see
    usr iptraf-3.0.0
    cd /
    ls -dl usr
    rm -f usr
    ln -s /hda1/usr usr
    cd /hda1/iptraf-3.0.0
    ./Setup
    cd src
    #modify ifaces.c
    char ifaces[][6] ={……..”eth”…….
    “eth” change “ETH”
    #modify packet.c
    if (strncmp(ifname, “eth”, 3) == 0)
    “eth” change “ETH”
    #modify promisc.c
    if ((strncmp(buf, “eth”, 3) == 0)
    “eth” change “ETH”
    if (((strncmp(ptmp->params.ifname, “eth”, 3) == 0)
    “eth” change “ETH”
    #modify Makefile
    “LDOPTS = #-static” change “LDOPTS =-static”
    make
    mdkir /DB/bin
    cp iptraf rawtime rvnamed /DB/bin
    #change root password
    password
    cp /etc/shadow* /DB
    #modify /etc/rc.local
    #my rc.local
    rm -rf /etc/shadow*
    cp -a /DB/shadow* /etc
    /etc/rc.d/init.d/sshd start
    cp /DB/bin/* /bin
    mkdir /var/run/iptraf
    #reboot zeroshell
    sync;sync;reboot
    #you can login zeroshell with putty and use iptraf

    #45395

    imported_fulvio
    Participant

    iptraf is an useful tool to debug network problems. ZeroShell already contains tcpdump, but I think that iptraf is easier to use and therefore I will install it as soon as possible.

    Regards and thank you for the step by step instructions.
    Fulvio

    #45396

    Nickman
    Member

    Can i beg for a additional future please? I wouldlike to be have an option to install Zeroshell in my hard drive. For us, Linux newbies could be very handy an option in web interface to install Zeroshell in one of our hard drives.

    Nick.

    #45397

    webwarrior
    Member

    Hi,

    I also think to have an option to install to the hardrive, will make it the ultimate system for allot of users.

    I think this will be the best feature ever added, and will not require clever tricks and Linux know-how to get a flash image installed to a hard drive.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.