Skrypty z vipera.pl

Wszystko na temat internetu za pomocą sieci komórkowych pod systemem Linux.

Moderator: Moderatorzy

ODPOWIEDZ
sqider
Początkujący użytkownik forum
Posty: 1
Rejestracja: 2006-12-28, 04:04

Skrypty z vipera.pl

Post autor: sqider »

Witam!
Moglby ktos mi podeslac skrypty do skonfigurowania blukonekta pod linem?? Znajdowaly sie one na vipera.pl,ale niestety jest jakis problem ze stronka i nie moge pobrac :/

Probowalem wszystkich skryptow ktore spotkalem na necie i forach,ale nic nie chcialo dzialac u mnie!
Kiedys mialem wlasnie skrypty z vipera.pl i chodzilo SUPER!



Jesli ktos ma skrypty do polaczenia sie z era,ktore byly na vipera.pl,to niech mi wysle....


mail: [email protected] | [email protected]



Z góry DZIEKI!


POZDRAWIAM
Awatar użytkownika
Selvis
Stały użytkownik forum
Posty: 133
Rejestracja: 2006-04-09, 19:11
Lokalizacja: ?l?sk

Re: Skrypty z vipera.pl

Post autor: Selvis »

/etc/ppp/peers/gprs

Kod: Zaznacz cały

updetach
debug
connect "chat -v -f /etc/ppp/gprs-chat"
/dev/ttyS0
115200
crtscts
local
noipdefault
defaultroute
usepeerdns
novj
nobsdcomp
nopcomp
noaccomp
#noauth
#auth
user "erainternet"
/etc/ppp/chap-secrets

Kod: Zaznacz cały

# Secret'y do uwierzytelnienia CHAP
# nazwa klienta    nazwa serwera  haslo  adres IP
"erainternet" * "erainternet" *
"erainternettt" * "erainternettt" *
"heyah" * "heyah" *
/etc/ppp/gprs-chat

Kod: Zaznacz cały

ABORT "NO DIALTONE"
ABORT "NO ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
"" "AT"
OK "AT&F"
OK "AT+CMEE=1"
#OK "AT+CPIN=twoj_pin"
OK 'AT+CGDCONT=1,"IP","erainternet"'
OK "ATDT*99***1#"
/etc/ppp/ip-down

Kod: Zaznacz cały

#!/bin/sh

# this is a script which is executed after disconnecting the ppp interface.
# look at man pppd for details

# the followings parameters are available:
# $1 = interface-name
# $2 = tty-device
# $3 = speed
# $4 = local-IP-address
# $5 = remote-IP-address
# $6 = ipparam

if [ "$USEPEERDNS" ]; then

    # taken from debian's 0000usepeerdns
    # follow any symlink to find the real file
    REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)

    if [ "$REALRESOLVCONF" != "/etc/ppp/resolv.conf" ]; then

        # if an old resolv.conf file exists, restore it
        if [ -e $REALRESOLVCONF.pppd-backup ]; then
            mv $REALRESOLVCONF.pppd-backup $REALRESOLVCONF
        fi

    fi

fi

# Recreate the default route so autodial works
[ -s /etc/conf.d/net ] && . /etc/conf.d/net
if [ -n "${gateway}" ] && [ "${gateway%/*}" = "$1" ]; then
    /sbin/route add default dev ${gateway%/*}
fi

[ -f /etc/ppp/ip-down.local ] && . /etc/ppp/ip-down.local "$@"
/etc/ppp/ip-down.local

Kod: Zaznacz cały

mv /etc/resolv.conf-pppbackup /etc/resolv.conf
/etc/ppp/ip-up

Kod: Zaznacz cały

#!/bin/sh

# this is a script which is executed after connecting the ppp interface.
# look at man pppd for details

# the followings parameters are available:
# $1 = interface-name
# $2 = tty-device
# $3 = speed
# $4 = local-IP-address
# $5 = remote-IP-address
# $6 = ipparam

if [ "$USEPEERDNS" ]; then

    # add the server supplied DNS entries to /etc/resolv.conf
    # (taken from debian's 0000usepeerdns)

    # follow any symlink to find the real file
    REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)

    if [ "$REALRESOLVCONF" != "/etc/ppp/resolv.conf" ]; then

        # merge the new nameservers with the other options from the old configuration
        {
            grep --invert-match '^nameserver[[:space:]]' $REALRESOLVCONF
            cat /etc/ppp/resolv.conf
        } > $REALRESOLVCONF.tmp

        # backup the old configuration and install the new one
        cp -a $REALRESOLVCONF $REALRESOLVCONF.pppd-backup
        mv $REALRESOLVCONF.tmp $REALRESOLVCONF

        # correct permissions
        chmod 0777 /etc/resolv.conf
        chown root:root /etc/resolv.conf

    fi

fi

[ -f /etc/ppp/ip-up.local ] && . /etc/ppp/ip-up.local "$@"
/etc/ppp/ip-up.local

Kod: Zaznacz cały

mv /etc/resolv.conf /etc/resolv.conf-pppbackup
cp -f /etc/ppp/resolv.conf /etc/resolv.conf
chmod a+r /etc/resolv.conf
/etc/ppp/pap-secrets

Kod: Zaznacz cały

# Secret'y do uwierzytelnienia PAP
# nazwa klienta    nazwa serwera  haslo adres IP
"erainternet" * "erainternet" *
"erainternettt" * "erainternettt" *
"heyah" * "heyah" *
/etc/resolv.conf

Kod: Zaznacz cały

nameserver 213.158.194.1
nameserver 213.158.193.38 
Mam nadzieję, że żadnego nie przeoczyłam.
Jednak jeśli mogę coś doradzić, to może lepiej ustaw sobie KPPP

A co do vipera.pl to z tego co wiem (mieszkaliśmy po sąsiedzku) to strony raczej nie już nie będzie.
Zostawili serwer tylko do obsługi poczty :(
ODPOWIEDZ