Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

dial in linux . HELP!!!

[es] :: Linux mreže :: dial in linux . HELP!!!

[ Pregleda: 2260 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

marciko

Član broj: 27581
Poruke: 10
*.panet.co.yu.



Profil

icon dial in linux . HELP!!!09.04.2006. u 10:04 - pre 219 meseci
Instaliran Slackware 10.2 kernel 2.6.15 sa podrškom za ppp, modem rs232 us.robotics v92 exerni na ttyS0, pokušaću da objasnim ukratko šta me muči:
Trebalo bi na linuxu da radi dial'in server za konekciju sa jednim računarom za update baze podataka.
Probao sam da podesim dial-in pomoću uugetty-ja (Mgetty nikako nisam uspeo da podignem, javlja error 2 canot write echo\n), modemi rade kad se ručno javim iz minicom-a sa komandom ata, pa mislim da je problem do neke konfiguracije mislim da nije do kernel-a ili modema. Konfiguracija fajlova koje mislim da on koristi izgledaju ovako:
/etc/inittab

# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
# 3.00 02/06/1999 PV
# 4.00 04/10/2002 PV
#
# Author: Miquel van Smoorenburg, <[email protected]>
# Modified by: Patrick J. Volkerding, <[email protected]>
#

# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S

# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K

# Script to run when going multi user.
rc:2345:wait:/etc/rc.d/rc.M

# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now

# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0

# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6

# What to do when power fails.
pf::powerfail:/sbin/genpowerfail start

# If power is back, cancel the running shutdown.
pg::powerokwait:/sbin/genpowerfail stop

# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

# Local serial lines:
#s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
#s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100

# Dialup lines:
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100

# Runlevel 4 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:wait:/etc/rc.d/rc.4
#2:123:respawn:/sbin/agetty -w -I 'ATE0Q1&D2&C1S0=\013' 115200 ttyS0 vt100
#s1:2345:respawn:/sbin/uugetty ttyS0 56000 vt100 -x 8
#debug 8
#S0:2345:respawn:/sbin/mgetty -n 2 ttyS0
#S1:2345:respawn:/sbin/mgetty -D ttyS1
#S2:2345:respawn:/sbin/mgetty -D ttyS2
#S3:2345:respawn:/sbin/mgetty -D ttyS3
S0:3:respawn:/sbin/uugetty -d /etc/conf.uugetty.ttyS0 ttys0 38400 vt100

/etc/conf.uugetty.ttyS0
ALTLOCK=/dev/ttyS0 # probao sam i sa cua0
INITLINE=/dev/ttyS0 # takođe
TIMEOUT=60
INIT="" \d+++\dAT\r OK\r\n ATH0\r OK\r\n AT\sM0\sE1\sQ0\sV1\sX4\ATS0=2\r OK\r\n
WAITFOR=RING
CONNECT="" ATA\r CONNECT\s\A
DELAY=1
#DEBUG=010

/etc/options.server
-detach
asyncmap 0
modem
crtscts
lock
proxyarp
ms-dns 192.168.10.1
ms-dns 192.168.111.30
ms-dns 10.0.57.3
192.168.11.10:192.168.11.1

a na drugom računaru sa drugim (potpuno istim modemom) sam konfigurisao vezu pomoću ppp-setup, i računar neće da se jevi na dolayeći poziv, da li neko može da mi objasni gde sam pogrešio???
 
Odgovor na temu

NightHawk
Djordje Stojanovic
Nish

Član broj: 17045
Poruke: 209
*.19.eunet.yu.

Jabber: night@elitesecurity.org
ICQ: 229516907
Sajt: www.shadow-inc.net


Profil

icon Re: dial in linux . HELP!!!27.07.2006. u 10:00 - pre 216 meseci
Citat:
Mgetty nikako nisam uspeo da podignem, javlja error 2 canot write echo\n

Pogledaj config file za mgetty gde pishe echo\n jer treba da postoji razmak izmedju.
A ostalo google.
Of all the things I've lost, I miss my mind the most.
 
Odgovor na temu

[es] :: Linux mreže :: dial in linux . HELP!!!

[ Pregleda: 2260 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.