View previous topic :: View next topic |
Author |
Message |
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Sun Dec 05, 2004 9:06 pm Post subject: [HOWTO] p3nfs per telofonini symbian |
|
|
Questo howto e' uan traduzione di questo
Introduzione
Questo howto serve a quelli di voi che vogliono interagire con il proprio telefonino (con sistema symbian) via bluetooth senza installare gnome-bluetooth o kdebluetooth.
Preparazione sistema
Per prima cosa configuriamo il nostro kernel affiche' possa sopportare le chiavette usb e i vari protocolli
Code: | Device Drivers ---> Networking support --->
<M> Bluetooth subsystem support --->
--- Bluetooth subsystem support
<M> L2CAP protocol support
< > SCO links support
<M> RFCOMM protocol support
[*] RFCOMM TTY support
<M> BNEP protocol support
[ ] Multicast filter support
[ ] Protocol filter support
<M> HIDP protocol support
Bluetooth device drivers --->
<M> HCI USB driver |
Dovete anche attivare il server nfs
Code: | File systems ---> Network File Systems --->
<*> NFS file system support
[*] Provide NFSv3 client support
[ ] Provide NFSv4 client support (EXPERIMENTAL)
[ ] Allow direct I/O on NFS files (EXPERIMENTAL)
<*> NFS server support
[*] Provide NFSv3 server support
[ ] Provide NFSv4 server support (EXPERIMENTAL)
[*] Provide NFS server over TCP support |
Ora ricompilate il kernel.
Una volta fatto questo compiliamo i programmi necessari per far funzionare p3nfs
Code: | # emerge bluez-libs bluez-utils bluez-bluefw |
A questo punto il nostro sistema e' pronto per installare p3nfs.
Installare p3nfs
p3nfs non e' presente in portage ma esiste l'ebuild. Per prima cosa assicuratevi che nel vostro /etc/make.conf sia presente la linea
Code: | PORTDIR_OVERLAY=/usr/local/portage |
ora creiamo le cartelle necessarie
Code: | # mkdir -p /usr/local/portage/net-wireless/p3nfs
# cd /usr/local/portage/net-wireless/p3nfs |
Ora copiate il seguente file nella cartella p3nfs nominandolo p3nfs-5.16.ebuild (ultima versione alla stesura di questo documento)
Code: | # Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Symbian to Unix/Linux communication program"
HOMEPAGE="http://www.koeniglich.de/p3nfs.html"
SRC_URI="http://www.koeniglich.de/packages/p3nfs-5.16.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
DEPEND="virtual/glibc"
RDEPEND="net-nds/portmap"
src_compile() {
econf || die "config failed"
emake || die "make failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
dodoc CHANGES LICENCE README TODO doc/*
}
pkg_postinst() {
echo
einfo "You need to install one of the nfsapp-*.sis clients on your"
einfo "Symbian device to be able to mount it's filesystems."
echo
einfo "Make sure to have portmap running before you start the"
einfo "p3nfsd server."
echo
}
|
Una volta fatto questo eseguiamo i seguenti comandi per installarlo
Code: | # ebuild p3nfs-5.16.ebuild digest
# echo "net-wireless/p3nfs ~x86" >> /etc/portage/package.keywords
# emerge p3nfs |
Questo programma non ha i file di configurazione ne i file di init quindi li creeremo noi a mano.
Per prima cosa create il file /etc/conf.d/symbian mettendoci il contenuto seguente
Code: | # Specify where in the file system you want your
# device to be mounted. The default is /mnt/psion,
# and does NOT need to be specified.
MOUNTDIR="/mnt/nokia"
# Specify your device BDADDR - this is MANDATORY!
# You can find the device BDADDR by issuing the
# command: 'hcitool inq'
BDADDR="00:0E:6D:16:F2:76"
# Specify what channel you want to use - this is MANDATORY!
# Default for Nokia 3650 / Nokia 7650 / Nokia N-Gage is channel 3
# Default for Ericsson P800 is channel 4
# Default for newer series60 (Siemens SX1, Nokia 7650) is channel 11
CHANNEL="11"
# Specify what terminal type to use - this is MANDATORY!
# Bluetooth is normally /dev/rfcomm0 for 2.4.X and /dev/bluetooth/rfcomm/0 for 2.6.X
# Serial is noramlly /dev/ttyS0
# IrDA is normally /dev/ttyIR0
DEVTYPE="/dev/rfcomm0"
# Specify your device type from the selection below - this is MANDATORY!
# EPOC/16 is -series3 / -series3a
# EPOC/32 is -series5
# Nokia 3650 / Nokia 7650 / Nokia N-Gage (SymbianOS 6.0) is -series60
# Nokia 92X0 (SymbianOS 7.0) is -n9210
# Ericsson P800/P900 (SymbianOS 7.0) is -UIQ
#
# {series3, series3a, series5, series60, n9210, p800, p900}
#
DEVICE="series60"
#Not yet used
#PASSWORD=""
#USER=""
#SPEED="" |
Dovrete cambiare il BDADDR, CHANNEL e DEVICE a seconda del vostro telefono (queste impostazioni sono per un nokia 6600).
Fatto questo creiamo il file /etc/init.d/symbian mettendoci
Code: | #!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
#NB! Config is in /etc/conf.d/symbian
depend() {
need modules portmap
}
checkconfig() {
# The following two modules should be given an alias in /etc/modules.d/aliases
# from the symbian ebuild, so they are autoloaded when needed. Perhaps all four...
# modprobe bluez &> /dev/null
# modprobe hci_usb &> /dev/null
modprobe rfcomm &> /dev/null
modprobe l2cap &> /dev/null
if [ ! -e /proc/bluetooth ] ; then
eerror "Bluetooth not supported by the kernel"
return 1
fi
if [ ! -e /proc/bluetooth/rfcomm ] ; then
eerror "Module rfcomm not loaded or compiled into the kernel"
return 1
fi
if [ ! -e /proc/bluetooth/l2cap ] ; then
eerror "Module l2cap not loaded or compiled into the kernel"
return 1
fi
if [ -e /etc/conf.d/symbian ]; then
source /etc/conf.d/symbian
else
eerror "/etc/conf.d/symbian is missing"
return 1
fi
#Replace this with net.hci0 perhaps...
hciconfig hci0 up
rfcomm bind $DEVTYPE $BDADDR $CHANNEL
}
start() {
checkconfig || return 1
sleep 2
ebegin "Mounting Symbian $DEVICE device on $MOUNTDIR - Please accept the connection on the device"
start-stop-daemon --start --quiet --exec /usr/bin/p3nfsd \
-- -dir $MOUNTDIR -$DEVICE -tty $DEVTYPE
eend $? "Failed to start the symbian service - Please verify your settings in /etc/conf.d/symbian"
}
stop() {
# I have to zap the service after its shut down, because
# start-stop-daemon is retarded :-)
ebegin "Releasing Symbian device from $MOUNTDIR"
/bin/ls $MOUNTDIR/exit &> /dev/null
/etc/init.d/symbian zap &> /dev/null
rfcomm release all
eend $? "Failed to stop the symbian service - Maybe NFS is stuck in the mud again"
}
|
PS: lo sleep 2 nella funzione start l'ho aggiunto io perche' se no dava problemi la prima volta che si avviava.
PS2: se avete compilato il server nfs come modulo aggiungete la linea Code: | modprobe nfsd &> /dev/null | alla funzione checkconfig()
Fatto questo il vostro pc e' pronto.
Installare il programma sul vostro telefonino
Per potere usare questo programma dovrete usare installare anche il client sul vostro cellulare. Non c'e' un metodo solo per farlo e quindi sta a voi riuscire a installarlo. Comunque l'applicazione da installare la trovare sotto /usr/share/doc/p3nfs-5.16/ e si chiama
Code: | nfsapp-2.8-<vostro sistema telefono>.sis |
(per il nokia 6600 il file e' nfsapp-2.8-series60.sis
Messa in funzione del sistema
Create il file /bin/bluepin e scrivateci dentro
Code: | #!/bin/sh
echo /etc/bluetooth/pin |
e poi modificate il file /etc/bluetooth/pin mettendo
dove per 0000 potete cambiarlo con un pin che piu' vi aggrada. Poi modificategli i permessi con
Code: | # chmod 600 /etc/bluetooth/pin |
- abilitate il vostro cellulare per la ricezione bluetooth
- avviate sul vostro cellulare l'applicazione nfsapp
- date il comando
Code: | /etc/init.d/symbian start |
A questo punto (la prima volta che lo date) vi chiede di inserire il pin che avete messo nel file /etc/bluetooth/pin in precedenza.
Una volta finito per smontare il sistema date un
Code: | /etc/init.d/symbian stop |
A questo punto nella vostra mount dir che averte specificato nel file di configurazione dovreste trovare tutte le directory del vostro cellulare.
PS: Nota che se cancellate dei file che sono di sistema potete creare dei casini sul vostro telefonino _________________ Questions are guaranteed in life; Answers aren't.
Last edited by fedeliallalinea on Mon Jan 03, 2005 12:02 pm; edited 3 times in total |
|
Back to top |
|
|
power83 l33t
Joined: 28 Nov 2004 Posts: 638
|
Posted: Mon Dec 06, 2004 3:34 pm Post subject: |
|
|
ehehe, vedo che hai gia' fatto l'HOWTO!
il mio suggerimento riguardo a questo programma e' stato utile allora!
sono contento di aver dato il mio primo contributo a questa community! |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Mon Dec 06, 2004 3:53 pm Post subject: |
|
|
Si ma continua a darmi l'errore
Code: | # /etc/init.d/symbian start
* Mounting Symbian series60 device on /mnt/nokia - Please accept the connection on the device...
p3nfsd: version 5.15, using /dev/bluetooth/rfcomm/0 (115200), mounting on /mnt/nokia
p3nfsd: to stop the server do "ls /mnt/nokia/exit". (pid 17092)
nfs mount /mnt/nokia: (errno 19) No such device [ok] |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
power83 l33t
Joined: 28 Nov 2004 Posts: 638
|
Posted: Mon Dec 06, 2004 4:01 pm Post subject: |
|
|
strano, a me no ha mai dato errore, cmq io ho lasicato /mnt/psion come suggerito nele Readme. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Mon Dec 06, 2004 4:06 pm Post subject: |
|
|
power83 wrote: | strano, a me no ha mai dato errore, cmq io ho lasicato /mnt/psion come suggerito nele Readme. |
Si si ok ma anche cosi' da problemi. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Mon Dec 06, 2004 4:10 pm Post subject: |
|
|
Praticamnte sul telefono chiede se voglio accettare la connessione e quandi dico si si sconnette _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
power83 l33t
Joined: 28 Nov 2004 Posts: 638
|
Posted: Mon Dec 06, 2004 4:12 pm Post subject: |
|
|
hai settato bene i parametri di rfcomm.conf e hcid.conf nel caso tu usi bluetooth?
cmq se vedi il topic piu' in basso ora io ho problemi del genere e non so come risolvere |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Mon Dec 06, 2004 4:18 pm Post subject: |
|
|
power83 wrote: | hai settato bene i parametri di rfcomm.conf e hcid.conf nel caso tu usi bluetooth? |
Si uso bluetooth. Posti il tuo hcid.conf per favore? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
power83 l33t
Joined: 28 Nov 2004 Posts: 638
|
Posted: Mon Dec 06, 2004 4:27 pm Post subject: |
|
|
non posso.
sono senza rete, ora sto postando dall'universita', dove purtroppo per ora non possiamo attaccarci coi portatili |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Mon Dec 06, 2004 4:36 pm Post subject: |
|
|
E che sto cercando ma non si trova nulla _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Josuke Veteran
Joined: 07 May 2003 Posts: 1175 Location: Italy - Bolzano
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Mon Dec 06, 2004 8:16 pm Post subject: |
|
|
Si ma non ho capito molto... _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Wed Dec 08, 2004 3:28 pm Post subject: |
|
|
Ok ragazzi trovato il problema: praticamente quando ho ricompilato il kernel ho messo il server nfs come modulo e non piu' built-in quindi bastava dare un modprobe nfsd _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Wed Dec 08, 2004 4:04 pm Post subject: |
|
|
Aggiunto ai post utilissimi sezione howto _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Truzzone Guru
Joined: 16 Oct 2003 Posts: 492 Location: Italy
|
Posted: Wed Dec 08, 2004 4:48 pm Post subject: |
|
|
In questo modo si "shara" la connessione a internet del pc nel cell?
CIao by Truzzone |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Wed Dec 08, 2004 4:48 pm Post subject: |
|
|
Truzzone wrote: | In questo modo si "shara" la connessione a internet del pc nel cell? |
Si praticamente monti il file system del natel e puoi copiare rimuovere aggiungere,... _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Ambrosa n00b
Joined: 04 Nov 2003 Posts: 31 Location: Milan - Italy
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Wed Dec 08, 2004 7:36 pm Post subject: |
|
|
Molto comodo questo e' la prima cosa che ho installato. Ci sono tantissimi applicazioni per symbian _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Josuke Veteran
Joined: 07 May 2003 Posts: 1175 Location: Italy - Bolzano
|
Posted: Wed Dec 08, 2004 7:54 pm Post subject: |
|
|
!!!! non lo conoscevo!...lo installo subito!!! _________________ fletto i muscoli...e sono nel vuoto |
|
Back to top |
|
|
rota l33t
Joined: 13 Aug 2003 Posts: 960
|
Posted: Wed Dec 08, 2004 9:56 pm Post subject: |
|
|
io appena finito di installare gentoo all lavoro... lo provvo .... |
|
Back to top |
|
|
iDreamer Guru
Joined: 23 Jan 2004 Posts: 317 Location: Corigliano Calabro(CS)
|
Posted: Thu Dec 09, 2004 9:52 am Post subject: |
|
|
ciao, io usavo questo p3nfs da un pò di tempo... ora però averlo in portage è molto comodo...(ma è ancora in sviluppo o è frezee)
io cmq non so perchè una volta mi funzionava sempre ora mi si collega 1 volta su 10 se va bene...
in pratica creo il device con rfcomm e poi lancio p3nfs il cell(che accetta tutte le connessioni provenienti dal cel) da subito ok.
Sulla console dice che per uscire si deve fare ls .../exit sta un pò.. dopo di che ho si collega o il cell si disconnette dicendo -21 qualcosa disconnect(dove posso vedere che significa?)...
oggi installo come hai fatto te dopo di che se mi da ancora errore mi date una mano a risolvere il problema?
ciao iDreamer _________________ .::..::.iDreamer.::..::.
^__^ -> HH: Happy Hacking |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Thu Dec 09, 2004 9:56 am Post subject: |
|
|
iDreamer wrote: | (ma è ancora in sviluppo o è frezee) |
Su bugs l'ebuild e' per la versione 5.15 ma sul sito c'e' gia' la 5.16 (l'ebuild postato qua si riferisce a queato). Quindi penso sia ancora attivo il progetto.
iDreamer wrote: | oggi installo come hai fatto te dopo di che se mi da ancora errore mi date una mano a risolvere il problema? |
Una mano te la diamo non assicuriamo che riusciamo a risolvere _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
power83 l33t
Joined: 28 Nov 2004 Posts: 638
|
Posted: Thu Dec 09, 2004 11:31 am Post subject: |
|
|
putty e' comodissimo, io lo uso x connettermi alla rete privata del'universita' quando no nho il pc e ho necessita', cosi' posso leggere il newsgroup con pine oppure navigare in Internet in modalita' testuale con links, il tutto alla velocita' istantanea data la banda dell'universita' |
|
Back to top |
|
|
earcar Guru
Joined: 20 Sep 2004 Posts: 425 Location: Bologna, Italy
|
Posted: Sun Dec 12, 2004 1:19 pm Post subject: Re: [HOWTO] p3nfs per telofonini symbian |
|
|
fedeliallalinea wrote: | [senza installare gnome-bluetooth o kdebluetooth |
Attenti che si potrebbe offendere motaboy! ehehe skerzo! _________________ Bip... bip... bip... -- Sputnik 1 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Sun Dec 12, 2004 1:24 pm Post subject: Re: [HOWTO] p3nfs per telofonini symbian |
|
|
earcar wrote: | Attenti che si potrebbe offendere motaboy! ehehe skerzo! |
eheheh... sono due tool che vanno benone ma non avevo voglio di installare le 3000 dep che hanno _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|