Warning: this is an htmlized version!
The original is across this link,
and the conversion rules are here.
#######
#
# E-scripts on PPP.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://angg.twu.net/e/ppp.e>
#           or at <http://angg.twu.net/e/ppp.e.html>.
#        See also <http://angg.twu.net/emacs.html>,
#                 <http://angg.twu.net/.emacs[.html]>,
#                 <http://angg.twu.net/.zshrc[.html]>,
#                 <http://angg.twu.net/escripts.html>,
#             and <http://angg.twu.net/>.
#
#######





# «.ppp-password»	(to "ppp-password")
# «.pppoeconf»		(to "pppoeconf")
# «.pppoe-iconecta»	(to "pppoe-iconecta")
# «.thttpd»		(to "thttpd")






# «ppp-password»  (to ".ppp-password")
# (find-angg ".zshrc" "showperms")
# (find-fline "/etc/ppp/")
# (find-sh "sudo ls  /etc/ppp/peers/")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
cd /etc/ppp/
showperms chap-secrets
showperms pap-secrets
showperms peers/

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
cd /etc/ppp/
sudo chmod 666 /etc/ppp/chap-secrets
sudo chmod 666 /etc/ppp/pap-secrets
sudo chmod 777 /etc/ppp/peers/
sudo chmod 666 /etc/ppp/peers/*
# (find-fline "/etc/ppp/")
# (find-fline "/etc/ppp/peers/")
# (find-fline "/etc/ppp/peers/dsl-provider")

# (find-fline "/etc/ppp/peers/dsl-provider")
#   ^ Add "replacedefaultroute" to this file.


* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
sudo chmod  600 /etc/ppp/chap-secrets
sudo chmod  600 /etc/ppp/pap-secrets
sudo chmod  640 /etc/ppp/peers/*
sudo chmod 2750 /etc/ppp/peers/






#####
#
# pppoeconf
# 2010feb24
#
#####

# «pppoeconf»  (to ".pppoeconf")
# (find-status   "pppoeconf")
# (find-vldifile "pppoeconf.list")
# (find-udfile   "pppoeconf/")
# (find-man "8 pppoeconf")
# (find-fline "/usr/sbin/pppoeconf")
# (find-fline "/usr/sbin/pppoeconf" "pon dsl-provider")
# (find-fline "/usr/sbin/pppoeconf" "'noauth' and 'defaultroute'")
# (find-fline "/etc/ppp/ip-up.d")

# (find-man "8 pppd")
# (find-man "8 pppd" "defaultroute")
# (find-man "8 pppd" "replacedefaultroute")
# (find-man "8 pppd" "\nFILES")




#####
#
# pppoe on iconecta
# 2012jun18
#
#####

# «pppoe-iconecta»  (to ".pppoe-iconecta")
# No Windows:
#   desmarcar todos os protocolos
#   iniciar -> painel de controle -> conexoes de rede -> conexao local 
#   criar uma nova conexao
#   pppoe -> login eduaordoochs senha 123456
# validacao por MAC, nome de usuario

# http://www.ubuntugeek.com/how-to-setup-networkmanager-work-with-pppoe-connection-on-ubuntu-9-10-karmic.html

# (find-status   "pppoe")
# (find-vldifile "pppoe.list")
# (find-udfile   "pppoe/")

# (find-man "8 pppoe")
# (find-man "8 pppoe-connect")
# (find-man "8 pppoe-relay")
# (find-man "8 pppoe-server")
# (find-man "8 pppoe-setup")
# (find-man "8 pppoe-sniff")
# (find-man "8 pppoe-start")
# (find-man "8 pppoe-status")
# (find-man "8 pppoe-stop")

# (find-status   "pppoeconf")
# (find-vldifile "pppoeconf.list")
# (find-udfile   "pppoeconf/")
# (find-fline "/usr/sbin/pppoeconf")
# (find-man "8 pppoeconf")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
R
ifconfig ppp0
pon dsl-provider
plog
poff

http://wiki.debian.org/PPPoE

pty "pppoe -I eth0 -T 80 -m 1452"






#####
#
# Weirdness at Valeria's
# 2010feb23
#
#####

# «thttpd»  (to ".thttpd")
# (find-es "ubuntu" "thttpd")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
ps ax
sudo ifconfig
     killall thttpd
sudo killall thttpd
/hda1/usr/sbin/thttpd -p 8080 -D -d /home/edrx/TH/L/ -nor -nos -l /dev/stdout -T iso-8859-1 &
#  /usr/sbin/thttpd -p 8080 -d /home/edrx/TH/L/ -nor -nos -l /dev/null -T iso-8859-1 &

wget -O /dev/null http://192.168.1.3:8080/









sudo chmod 666 

# (find-sh "sudo cat /etc/ppp/chap-secrets")
# (find-sh "sudo cat /etc/ppp/pap-secrets")

eduardo.ochs
j7n4g9















#  Local Variables:
#  coding:               raw-text-unix
#  ee-delimiter-hash:    "\n#*\n"
#  ee-delimiter-percent: "\n%*\n"
#  ee-anchor-format:     "«%s»"
#  End: