Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto]montare l'hd di un pc da remoto tramite porte com
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 9:54 am    Post subject: [risolto]montare l'hd di un pc da remoto tramite porte com Reply with quote

Come da topic, è possibile fare una cosa del genere?

mi potreste dare una mano?

thx
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it


Last edited by abaddon83 on Mon May 24, 2004 8:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 10:02 am    Post subject: Reply with quote

intendi montare l'hd di un altro pc attraverso la seriale, giusto?

usi ppp per stabilire la connex di rete e poi lo esporti con NFS

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 10:15 am    Post subject: Reply with quote

mi dai su dritte sul ppp?
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 12:32 pm    Post subject: Reply with quote

dai un occhio qui:

http://www.tldp.org/HOWTO/PPP-HOWTO/direct.html

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 1:42 pm    Post subject: Reply with quote

il problema è che quando lancio pppd da console da solo mi iniziano ad uscire strani segni... quando lo lancio tramite questo script non succede nulla....
Code:

#! /bin/sh

# Elaboratore A

IP_REMOTO="192.168.200.1"
IP_LOCALE="192.168.100.1"
PERIFERICA="/dev/modem"
VELOCITA="115200"
C_FLUSSO="crtscts"

/usr/sbin/pppd \
    mru 576 \
    mtu 576 \
    lock \
    passive \
    local \
    $C_FLUSSO \
    $IP_LOCALE:$IP_REMOTO \
    $PERIFERICA \
    $VELOCITA \
    noauth \
    refuse-chap \
    refuse-pap \
    persist


che sbaglio? i moduli li ho caricati nel kernel...
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 1:59 pm    Post subject: Reply with quote

lanciando pppd da solo e' normale che puti un po' di schifezze :)
perche' cerca di comunicare attraverso il tuo terminale (non corretto)

per il tuo script controlla che esiste il tuo device seriale e controlla con ps -e | grep pppd che il demone sia in ascolto sulla tua seriale.

ciao
_________________
while True:Gentoo()


Last edited by xchris on Sun May 23, 2004 2:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 2:02 pm    Post subject: Reply with quote

come faccio a capire che device ho? in dmesg non mi pare di vedere nulla :(
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 2:04 pm    Post subject: Reply with quote

abaddon83 wrote:
come faccio a capire che device ho? in dmesg non mi pare di vedere nulla :(


controlla sul kernel

Code:

grep SERIAL_8250  /usr/src/linux/.config


ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 2:09 pm    Post subject: Reply with quote

mi restituisce sta cosa qua...


bash-2.05b# grep SERIAL_8250 /usr/src/linux/.config
CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_CONSOLE is not set
# CONFIG_SERIAL_8250_CS is not set
# CONFIG_SERIAL_8250_ACPI is not set
CONFIG_SERIAL_8250_NR_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set

e non ho idea se è bene o male...

inoltre su entrambi i pc se faccio ifconfig non mi compare ppp0

help :(
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 2:17 pm    Post subject: Reply with quote

a quanto pare il supporto per le seriali e' builtin nel kernel

usa come device /dev/ttyS0 e assicurati che usi la COM 1

poi lancia lo script

e controlla che pppd sia attivo

Code:

ps -ef | grep pppd


se vedi il processo attivo sei a posto

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 2:24 pm    Post subject: Reply with quote

mi restituisce questo:

Quote:

bash-2.05b# ./ppp.sh
bash-2.05b# ps -ef | grep pppd
root 8517 1 0 16:34 ttyS0 00:00:00 /usr/sbin/pppd mru 576 mtu 576 lock passive local crtscts 192.168.100.1:192.168.200.1 /dev/ttyS0 115200 noauth refuse-chap refuse-pap persist
root 8526 7663 0 16:34 pts/0 00:00:00 grep pppd


mi pare attiva...

unica domanda come mi connetto tra i 2 pc?
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 2:30 pm    Post subject: Reply with quote

a questo punto siamo sicuri che la seriale funziona.

Se segui l'howto che ti ho postato e' scritto molto bene.

Lanci gli script sulle 2 macchine (sono leggermente diversi!!) e poi provi a pingare attraverso il cavo.

A quel punto passi al howto di nfs :)

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 2:44 pm    Post subject: Reply with quote

mi sento stupido ma a me non va un tubo... seguendo la guida ho scritto:

pppd -detach crtscts lock defaultroute 192.168.0.101:192.168.0.100 /dev/ttyS3 38400 noauth &

e mi da questo msg:

bash-2.05b# pppd -detach crtscts lock defaultroute 192.168.0.101:192.168.0.100 /dev/ttyS3 38400
Couldn't get channel number: Input/output error
ioctl(PPPIOCGFLAGS): Bad file descriptor


stesso errore se tolgo defaultrouter


non so piu' che fare
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 3:04 pm    Post subject: Reply with quote

/dev/ttyS0? o 3 come hai riportato?

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 5:32 pm    Post subject: Reply with quote

si scusami gli errori li dava con il devise "3" ora ho provato con quello giusto, non da errori, pero' non mi si crea comunque la periferica ppp0 in ifconfig e non riesco a pingarmi :(

c'è per caso un ordine con cui lanciare i comandi pppd [ecc..] sui 2 pc?
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 7:59 pm    Post subject: Reply with quote

ecco alcune info:

Quote:

bash-2.05b# pppd -detach crtscts lock 192.168.0.101:192.168.0.100 /dev/ttyS0 38400 noauth &
[1] 15441
bash-2.05b# ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:A7:12:7A:33
inet addr:192.168.0.60 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12259 errors:0 dropped:0 overruns:0 frame:0
TX packets:11167 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13759437 (13.1 Mb) TX bytes:1433859 (1.3 Mb)
Interrupt:10 Base address:0x9f00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:99 errors:0 dropped:0 overruns:0 frame:0
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8792 (8.5 Kb) TX bytes:8792 (8.5 Kb)



e questo è l'output di pppstat

Quote:

bash-2.05b# pppstats
pppstats: nonexistent interface 'ppp0' specified


mente sull'altro pc mi compare qualche cosa...

vi prego c'è qualche cosa da fare su gento?? lanciare qualche script all'avvio o robe simili?
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 8:18 pm    Post subject: Reply with quote

prova a postare questo

Code:

grep PPP /usr/src/linux/.config


e' possibile che il tuo kernel non abbia il supporto a ppp

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 8:20 pm    Post subject: Reply with quote

ecco qua:
Quote:
bash-2.05b# grep PPP /usr/src/linux/.config
CONFIG_PPP=m
# CONFIG_PPP_MULTILINK is not set
# CONFIG_PPP_FILTER is not set
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPPOE=m

_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 8:27 pm    Post subject: Reply with quote

dovrebbe essere a posto.

potresti provare a fare un lsmod per vedere se effettivamente i moduli sono caricati (dovrebbe caricarli all'occorrenza)


Se come immagino li carica allora propendo per un problema sulle seriali.

Fai questa prova:

PC A: cat /dev/ttyS0
PC B: echo "OK FUNZIONA" > /dev/ttyS0

se la comunicazione seriale funziona dovresti vedere il msg sul PC A.

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 8:32 pm    Post subject: Reply with quote

nota stupida..

ma sai che con questo link avrai cmq delle prestazioni "penose" ?
e' indispensabile?
ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 8:34 pm    Post subject: Reply with quote

Quote:

ash-2.05b# lsmod
Module Size Used by
8139too 20224 0
ipt_multiport 1920 2
ipt_state 1664 1
ip_conntrack 27440 1 ipt_state
iptable_filter 2432 1
ip_tables 15488 3 ipt_multiport,ipt_state,iptable_filter
ppp_deflate 5120 0
bsd_comp 5504 0
ppp_async 9856 0
ppp_generic 20756 5 ppp_deflate,bsd_comp,ppp_async
slhc 6912 1 ppp_generic
it87 20236 0
i2c_sensor 2560 1 it87
i2c_isa 1920 0
i2c_core 18564 3 it87,i2c_sensor,i2c_isa
supermount 35476 2


e il messagio se lo mandano (figata non lo sapevo :P )

che mi invento ora? :(([/quote]
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 8:37 pm    Post subject: Reply with quote

xchris wrote:
nota stupida..

ma sai che con questo link avrai cmq delle prestazioni "penose" ?
e' indispensabile?
ciao


si...

il pc a cui mi voglio connettere è un portatile 486 senza scheda di rete o modem e ha solo il lettore floppy -.-

io devo spedirlgi 64mb ma non lo metto quel file su 68 floppy....
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 8:39 pm    Post subject: Reply with quote

ok comprendo..

prova ad abbassare la velocita' a 9600 su entrambi i pc.
(ormai andiamo ad esclusione...)

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
abaddon83
Guru
Guru


Joined: 17 Jan 2004
Posts: 494

PostPosted: Sun May 23, 2004 8:46 pm    Post subject: Reply with quote

ti ringrazio per la pazienza


purtroppo ancora nulla :(

Quote:

bash-2.05b# pppd -detach crtscts lock 192.168.0.101:192.168.0.100 /dev/ttyS0 9600 noauth &
[1] 17369


stesso codice su entrambi i pc, invertendo gli ip, sul portatile dice che il devise ppp0 è stato registrato anche se con ifconfig non lo si vede..., sul pc da cui scrivo invece non dice nulla
_________________
Abaddon's House
Jabber account: abaddon@jabber.linux.it
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun May 23, 2004 8:52 pm    Post subject: Reply with quote

non usare la & finale per ora... almeno non ti riamangono appesi i processi e li puoi interrompere. (visto che sei in decisa fase di debugging)

prova con questa sintassi

Code:

pppd -detach local noauth crtscts lock 192.168.0.1:192.168.0.2 /dev/ttyS0 9600


switchando sempre gli ip


P.S.: prova eliminando anche crtscts!
ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum