0% found this document useful (0 votes)
75 views6 pages

Linux Commands

Uploaded by

api-19750719
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views6 pages

Linux Commands

Uploaded by

api-19750719
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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 [Link]
ftp [Link]
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.[Link] /penta/
cd /penta/
ls
tar -zxvf pentaval-RH7x-2.1.6_020225.[Link]
ls
cd pentaval-RH7x-2.1.6
ls
make clean
./configure
make
make install
cd etc/
ls
cp [Link] /etc/
cd /root/
ls
vi [Link]
cd /usr/src/
ls
ln -s linux-2.4.18-3 linux
vi /etc/[Link]
cd /root/
cd /penta/pentaval-RH7x-2.1.6/pentavalt -a -d pentaval0 -f /etc/[Link]
/penta/pentaval-RH7x-2.1.6/pentavalt -a -d pentaval0 -f /etc/[Link]
shutdown -h now
/penta/pentaval-RH7x-2.1.6/pentavalt -a -d pentaval0 -f /etc/[Link]
/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@[Link] 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/[Link]
service network restart
arp [Link]
ftp [Link]
vi /etc/[Link]
shutdown -r now
/penta/pentaval-RH7x-2.1.6/pentavalm
/penta/pentaval-RH7x-2.1.6/pentavalt -a -d pentaval0 -f /etc/[Link]
arp [Link]
ftp [Link]
vi /etc/[Link]
vi /etc/[Link]
vi /etc/rc.d/[Link]
/etc/[Link]
iptables –F
echo "1" > /proc/sys/net/ipv4/ip_forward
vi /etc/rc.d/[Link]
/etc/rc.d/[Link]
vi /etc/sysconfig/network-scripts/ifcfg-eth1
service network restart
ifconfig
ls
vi [Link]
/etc/rc.d/[Link]
ls
rpm -ivh [Link]
mv -f [Link] /etc/squid/[Link]
vi /etc/squid/[Link]
service squid restart
cd /etc/init.d/
ls
cd /etc/xinetd.d/
ls
vi wu-ftpd
/etc/init.d/squid start
vi /etc/[Link]
/etc/rc.d/[Link]
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/[Link]
service squid restart
/penta/pentaval-RH7x-2.1.6/pentavalm
service network restart
shutdown -r now
ping [Link]
ping [Link]
ftp [Link]
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@[Link] 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 [Link] [Link] up


ifconfig eth1:1 [Link] [Link]
clear
/etc/[Link]
tail -f /var/log/squid/[Link]
startx
exit
ftp [Link]

service network restart


vi /etc/sysconfig/network-scripts/ifcfg-eth0
/penta/pentaval-RH7x-2.1.6/pentavalm
/etc/rc.d/[Link]
shutdown -r now
tail -f /var/log/squid/[Link]
ifconfig
arp [Link]
ftp [Link]
ping [Link]
ping [Link]
netstat -nr
arp [Link]
vi /etc/[Link]
service network restart
ifconfig eth1 down
ping [Link]
ifcfg eth1 up
ftp [Link]
rpm -ivh [Link]
iptraf
ls
vi [Link]
mv [Link] /etc/rc.d/
cd /etc/rc.d/
ls
chmod 777 [Link]
./[Link]
iptables -L -v -n |grep DROP
vi /etc/[Link]
exit
nslookup
exit
/etc/init.d/squid restart
tail -f /var/log/squid/[Link]
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@[Link] 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/[Link] > /root/squidlog
cat squidlog
rm -f squidlog
/penta/pentaval-RH7x-2.1.6/pentavalm
tail -f /var/log/squid/[Link]
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 [Link]
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/[Link]

#!/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/[Link]

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@[Link] 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 [Link]/32 -d 0/0 --dport 80:8080 -j REJECT


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

OLD LINUX COMMANDS

/penta/pentaval-RH7x-2.1.7/pentavalm
tail -f /var/log/squid/[Link]
shutdown -r now
init 0
logout
iptables -t nat -F
iptables -F
vi /etc/rc.d/[Link]
adduser bdtel
passwd bdtel
cat commabd
/etc/rc.d/[Link]
vi /etc/rc.d/[Link]
vi /etc/rc.d/[Link]
service squid restart
shutdown -r now
./[Link]
ls
chmod 777 [Link]
cd /etc/rc.d/
vi /etc/squid/[Link]
mv [Link] /etc/squid/[Link]
vi [Link]
vi /etc/squid/[Link]
rpm -ivh [Link]
cd /root/
cd /etc/rc.d/
cp [Link] /etc/rc.d/
vi [Link]
vi /etc/[Link]
vi /etc/rc.d/[Link]
iptraf
rpm -ivh [Link]
ftp [Link]

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@[Link] 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 [Link]
vi /etc/[Link]
echo "1" > /proc/sys/net/ipv4/ip_forward
vi /etc/[Link]
cd /root/
cd /home/jami/
vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/network-scripts/ifcfg-eth1
vi /etc/[Link]
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 [Link]
traceroute [Link]
ping [Link]
ping [Link] -p 80 –S
vi /etc/[Link]
cat /etc/[Link]
cat /etc/rc.d/[Link]
vi /etc/[Link]
route -n
vi ifcfg-eth0
cd /etc/sysconfig/network-scripts/

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


#!/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/[Link]
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/[Link]

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


#iptables -A FORWARD -p tcp -s [Link]/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@[Link] Mobile: 017-575024, 0171-283839, 0171-972810
Copyright © Advanced Micro Computers Online 2002-2004. All Rights Reserved.

You might also like