Home Page › Forums › Network Management › ZeroShell › install iptraf into zeroshell
- This topic is empty.
-
AuthorPosts
-
June 6, 2007 at 2:50 am #40641
yuda
Memberuse 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 iptrafJune 6, 2007 at 8:06 pm #45395imported_fulvio
Participantiptraf 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.
FulvioJune 21, 2007 at 4:28 pm #45396Nickman
MemberCan 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.
July 5, 2007 at 3:34 am #45397webwarrior
MemberHi,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.