You are on page 1of 6

Advanced Micro Computers Online

Broadband Internet Service Provider AND Computer Sales & Service Centre

Setup Commands to Configure Linux DVB Server

Pent@Value Card Configuration:

PID= 599
Frequency= 4145.0000
Symbol rate= 19.8429

ifconfig
vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/network-scripts/ifcfg-eth1
service network restart
telnet 203.188.191.1
ftp 203.188.191.6
shutdown -h now
mkdir /penta
mount /dev/cdrom /mnt/cdrom/
cd /mnt/cdrom/
ls
cd Pent\@Value/
ls
cp pentaval-RH7x-2.1.6_020225.tar.gz /penta/
cd /penta/
ls
tar -zxvf pentaval-RH7x-2.1.6_020225.tar.gz
ls
cd pentaval-RH7x-2.1.6
ls
make clean
./configure
make
make install
cd etc/
ls
cp pentaval.conf /etc/
cd /root/
ls
vi pentaval.conf
cd /usr/src/
ls
ln -s linux-2.4.18-3 linux
vi /etc/pentaval.conf
cd /root/
cd /penta/pentaval-RH7x-2.1.6/pentavalt -a -d pentaval0 -f /etc/pentaval.conf
/penta/pentaval-RH7x-2.1.6/pentavalt -a -d pentaval0 -f /etc/pentaval.conf
shutdown -h now
/penta/pentaval-RH7x-2.1.6/pentavalt -a -d pentaval0 -f /etc/pentaval.conf
/penta/pentaval-RH7x-2.1.6/pentavalm
vi /etc/sysconfig/network-scripts/ifcfg-eth0

Head Office: Begum Mill Moor, Puratan Koshba, Biman Office Road, Jessore-7400, Bangladesh.
Branch Office: Arab Pur Moor, Airport Road, Near Cantonment Rail Crossing, 1st Floor, Jessore-7400, Bangladesh.
Phone: 880-421-67776 (Off.), 66065 (Res.) E-mail: amconline@ranksitt.net Mobile: 017-575024, 0171-283839, 0171-972810
Copyright © Advanced Micro Computers Online 2002-2004. All Rights Reserved.
Advanced Micro Computers Online
Broadband Internet Service Provider AND Computer Sales & Service Centre

service network restart


vi /etc/resolv.conf
service network restart
arp www.yahoo.com
ftp ftp.redhat.com
vi /etc/resolv.conf
shutdown -r now
/penta/pentaval-RH7x-2.1.6/pentavalm
/penta/pentaval-RH7x-2.1.6/pentavalt -a -d pentaval0 -f /etc/pentaval.conf
arp www.cisco.com
ftp ftp.redhat.com
vi /etc/rc.local
vi /etc/sysctl.conf
vi /etc/rc.d/rc.local
/etc/rc.local
iptables –F
echo "1" > /proc/sys/net/ipv4/ip_forward
vi /etc/rc.d/rc.local
/etc/rc.d/rc.local
vi /etc/sysconfig/network-scripts/ifcfg-eth1
service network restart
ifconfig
ls
vi rc.firewall
/etc/rc.d/rc.local
ls
rpm -ivh squid-2.4.STABLE6-1.7.2.i386.rpm
mv -f squid.conf /etc/squid/squid.conf
vi /etc/squid/squid.conf
service squid restart
cd /etc/init.d/
ls
cd /etc/xinetd.d/
ls
vi wu-ftpd
/etc/init.d/squid start
vi /etc/rc.local
/etc/rc.d/rc.local
shutdown -r now
/penta/pentaval-RH7x-2.1.6/pentavalm
cd /penta/pentaval-RH7x-2.1.6
vi /etc/sysconfig/network-scripts/ifcfg-eth0
/etc/rc.d/rc.local
service squid restart
/penta/pentaval-RH7x-2.1.6/pentavalm
service network restart
shutdown -r now
ping 210.80.58.66
ping www.cisco.com
ftp 203.188.191.6
netstat –nat
arp –a

Head Office: Begum Mill Moor, Puratan Koshba, Biman Office Road, Jessore-7400, Bangladesh.
Branch Office: Arab Pur Moor, Airport Road, Near Cantonment Rail Crossing, 1st Floor, Jessore-7400, Bangladesh.
Phone: 880-421-67776 (Off.), 66065 (Res.) E-mail: amconline@ranksitt.net Mobile: 017-575024, 0171-283839, 0171-972810
Copyright © Advanced Micro Computers Online 2002-2004. All Rights Reserved.
Advanced Micro Computers Online
Broadband Internet Service Provider AND Computer Sales & Service Centre

ifconfig eth1:1 192.168.0.1 255.255.255.0 up


ifconfig eth1:1 192.168.0.1 255.255.255.0
clear
/etc/rc.local
tail -f /var/log/squid/access.log
startx
exit
ftp 203.188.191.6

service network restart


vi /etc/sysconfig/network-scripts/ifcfg-eth0
/penta/pentaval-RH7x-2.1.6/pentavalm
/etc/rc.d/rc.local
shutdown -r now
tail -f /var/log/squid/access.log
ifconfig
arp www.cisco.com
ftp ftp.redhat.com
ping 203.91.153.41
ping 203.91.153.43
netstat -nr
arp www.yahoo.com
vi /etc/resolv.conf
service network restart
ifconfig eth1 down
ping www.yahoo.com
ifcfg eth1 up
ftp ftp.redhat.com
rpm -ivh iptraf-2.5.0-3.i386.rpm
iptraf
ls
vi rc.firewall
mv rc.firewall /etc/rc.d/
cd /etc/rc.d/
ls
chmod 777 rc.firewall
./rc.firewall
iptables -L -v -n |grep DROP
vi /etc/rc.local
exit
nslookup
exit
/etc/init.d/squid restart
tail -f /var/log/squid/access.log
top
ps -ax |more
kill -9 1083
cd /var/log/
ls
cd /root/
clear

Head Office: Begum Mill Moor, Puratan Koshba, Biman Office Road, Jessore-7400, Bangladesh.
Branch Office: Arab Pur Moor, Airport Road, Near Cantonment Rail Crossing, 1st Floor, Jessore-7400, Bangladesh.
Phone: 880-421-67776 (Off.), 66065 (Res.) E-mail: amconline@ranksitt.net Mobile: 017-575024, 0171-283839, 0171-972810
Copyright © Advanced Micro Computers Online 2002-2004. All Rights Reserved.
Advanced Micro Computers Online
Broadband Internet Service Provider AND Computer Sales & Service Centre

vi squidlog
tail -f /var/log/squid/access.log > /root/squidlog
cat squidlog
rm -f squidlog
/penta/pentaval-RH7x-2.1.6/pentavalm
tail -f /var/log/squid/access.log
service network restart
shutdown -r now

cd /etc/xinetd.d/
ls
vi wu-ftpd
service vsftpd restart
service ftpd restart
service wuftpd restart
cd /root/
clear
adduser jami
passwd jami
ftp 203.91.153.42
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
iptables -L -v -n |grep DROP
exit

vi /etc/rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/penta/pentaval-RH7x-2.1.6/pentavalt -a -d pentaval0 -f /etc/pentaval.conf

Head Office: Begum Mill Moor, Puratan Koshba, Biman Office Road, Jessore-7400, Bangladesh.
Branch Office: Arab Pur Moor, Airport Road, Near Cantonment Rail Crossing, 1st Floor, Jessore-7400, Bangladesh.
Phone: 880-421-67776 (Off.), 66065 (Res.) E-mail: amconline@ranksitt.net Mobile: 017-575024, 0171-283839, 0171-972810
Copyright © Advanced Micro Computers Online 2002-2004. All Rights Reserved.
Advanced Micro Computers Online
Broadband Internet Service Provider AND Computer Sales & Service Centre

echo "1" > /proc/sys/net/ipv4/ip_forward


iptables -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 0/0 -d 0/0 -j MASQUERADE
/etc/init.d/squid start

iptables -A INPUT -p tcp -s 192.168.1.100/32 -d 0/0 --dport 80:8080 -j REJECT


iptables -A FORWARD -p tcp -s 192.168.1.100/32 -d 0/0 --dport 80:8080 -j REJECT

OLD LINUX COMMANDS

/penta/pentaval-RH7x-2.1.7/pentavalm
tail -f /var/log/squid/access.log
shutdown -r now
init 0
logout
iptables -t nat -F
iptables -F
vi /etc/rc.d/rc.local
adduser bdtel
passwd bdtel
cat commabd
/etc/rc.d/rc.local
vi /etc/rc.d/rc.local
vi /etc/rc.d/rc.firewall
service squid restart
shutdown -r now
./rc.firewall
ls
chmod 777 rc.firewall
cd /etc/rc.d/
vi /etc/squid/squid.conf
mv squid.conf /etc/squid/squid.conf
vi squid.conf
vi /etc/squid/squid.conf
rpm -ivh squid-2.4.STABLE6-1.7.2.i386.rpm
cd /root/
cd /etc/rc.d/
cp rc.firewall /etc/rc.d/
vi rc.firewall
vi /etc/resolv.conf
vi /etc/rc.d/rc.local
iptraf
rpm -ivh iptraf-2.5.0-3.i386.rpm
ftp ftp.redhat.com

Head Office: Begum Mill Moor, Puratan Koshba, Biman Office Road, Jessore-7400, Bangladesh.
Branch Office: Arab Pur Moor, Airport Road, Near Cantonment Rail Crossing, 1st Floor, Jessore-7400, Bangladesh.
Phone: 880-421-67776 (Off.), 66065 (Res.) E-mail: amconline@ranksitt.net Mobile: 017-575024, 0171-283839, 0171-972810
Copyright © Advanced Micro Computers Online 2002-2004. All Rights Reserved.
Advanced Micro Computers Online
Broadband Internet Service Provider AND Computer Sales & Service Centre

ping 210.80.58.66
vi /etc/pentaval.conf
echo "1" > /proc/sys/net/ipv4/ip_forward
vi /etc/sysctl.conf
cd /root/
cd /home/jami/
vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/network-scripts/ifcfg-eth1
vi /etc/resolv.conf
ifconfig |more
ifconfig
echo "1" >/proc/sys/net/ipv4/ip_forward
ifcfg eth1 down
pwd [-PL] read [-ers] [-t timeout] [-p promp
inetconfigpushd [dir | +N | -N] [-n]
telnet 203.188.190.65
traceroute 216.236.114.1
ping 203.91.153.43
ping 203.91.153.43 -p 80 –S
vi /etc/resolv.conf
cat /etc/resolv.conf
cat /etc/rc.d/rc.local
vi /etc/resolv.conf
route -n
vi ifcfg-eth0
cd /etc/sysconfig/network-scripts/

[root@amcns root]# vi /etc/rc.d/rc.local


#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
echo "1" >/proc/sys/net/ipv4/ip_forward

/etc/rc.d/rc.firewall
iptables -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 0/0 -d 0/0 -j MASQUERADE

/penta/pentaval-RH7x-2.1.7/pentavalt -a -d pentaval0 -f /etc/pentaval.conf

#iptables -A INPUT -p tcp -s 192.168.1.3/32 -d 0/0 --dport 8080 -j DROP


#iptables -A FORWARD -p tcp -s 192.168.1.3/32 -d 0/0 --dport 8080 -j DROP

Head Office: Begum Mill Moor, Puratan Koshba, Biman Office Road, Jessore-7400, Bangladesh.
Branch Office: Arab Pur Moor, Airport Road, Near Cantonment Rail Crossing, 1st Floor, Jessore-7400, Bangladesh.
Phone: 880-421-67776 (Off.), 66065 (Res.) E-mail: amconline@ranksitt.net Mobile: 017-575024, 0171-283839, 0171-972810
Copyright © Advanced Micro Computers Online 2002-2004. All Rights Reserved.

You might also like