Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installare un samba client
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
digu
Apprentice
Apprentice


Joined: 26 Feb 2006
Posts: 201
Location: Verona

PostPosted: Sun Apr 02, 2006 11:45 am    Post subject: Installare un samba client Reply with quote

Ciao a tutti volevo sapere se e' possibile installare solo un client samba, o se questo non e' altro che un server samba con particolari impostazioni. Sono da poco passato a gentoo mentre prima usavo Suse.
C'e' molta differenza tra le due distribuzioni:
- Suse semplifica notevolmente le configurazioni, ma una personalizzazione delle impostazioni non sempre e' possibile.
- Gentoo ti permette di fare quello che vuoi, e' necessario pero' fare esperienza.
Ringrazio chiunque sapra' darmi spiegazioni...

Ciao :)
_________________
..:[DiGu]:.
Back to top
View user's profile Send private message
pjphem
n00b
n00b


Joined: 09 Feb 2006
Posts: 64

PostPosted: Sun Apr 02, 2006 12:23 pm    Post subject: Reply with quote

Code:

cartina ~ # emerge -s smb4k
Searching...
[ Results for search key : smb4k ]
[ Applications found : 1 ]

*  net-misc/smb4k
      Latest version available: 0.6.9
      Latest version installed: 0.6.9
      Size of files: 1,076 kB
      Homepage:      http://smb4k.berlios.de/
      Description:   Smb4K is a SMB share browser for KDE 3.2.x.
      License:       GPL-2


cartina ~ #     


ecco cosa fa per te :)

vai con
Code:
emerge smb4k
Back to top
View user's profile Send private message
digu
Apprentice
Apprentice


Joined: 26 Feb 2006
Posts: 201
Location: Verona

PostPosted: Sun Apr 02, 2006 12:29 pm    Post subject: Grazie... Reply with quote

Grazie mille :D...

Ho notato facendo:
Code:
emerge -vp smb4k


che installa i seguenti pacchetti:

Code:
Calculating dependencies ...done!
[ebuild  N    ] net-fs/samba-3.0.21b  -acl -async -automount +cups -doc -examples -kerberos -ldap -ldapsam -libclamav -mysql -oav +pam -postgres +python -quotas +readline (-selinux) -swat -syslog -winbind +xml +xml2 17,143 kB
[ebuild  N    ] net-misc/smb4k-0.6.4  -arts -debug -xinerama 1,143 kB


quindi anche il server samba.. o sbaglio?
_________________
..:[DiGu]:.
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sun Apr 02, 2006 1:22 pm    Post subject: Reply with quote

Non basterebbe usare i moduli smbfs inclusi nel kernel per montare partizioni windows?
Back to top
View user's profile Send private message
digu
Apprentice
Apprentice


Joined: 26 Feb 2006
Posts: 201
Location: Verona

PostPosted: Sun Apr 02, 2006 1:32 pm    Post subject: ? Reply with quote

Descrivo nei dettagli la situazione:
ho un server Gentoo su cui e' in esecuzione il server samba e funziona tutto correttamente.
Le altre macchine win vedono correttamente le cartelle condivise e ci posso accedere.
Mi chiedevo per vedere da un'altra macchina Gentoo le cartelle condivise con samba se era sufficiente installare un client samba, e se ce n'era uno. Pjphem mi ha segnalato smb4k per kde, che richiede l'installazione di net-fs/samba...
Avere il modulo per samba nel kernet e' essenziale per poterle "caricare", ma non credo per poterle "rilevare".

Tu riesci ad accederci con il solo modulo del kernel?
_________________
..:[DiGu]:.
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Sun Apr 02, 2006 1:52 pm    Post subject: Reply with quote

per il modulo del kernel 'smbfs' è necessario avere il pacchetto samba installato sulla propria macchina, altrimenti non funziona. La cosa migliore invece è usare CIFS come modulo del kernel (che è la versione migliorata ed aggiornata di smbfs), il quale non richiede samba installato localmente.

usa CIFS, my 2 cents.

Quote:
Tu riesci ad accederci con il solo modulo del kernel?


con CIFS puoi farlo tranquillamente. Io lo uso da un paio di anni con estrema soddisfazione.
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
digu
Apprentice
Apprentice


Joined: 26 Feb 2006
Posts: 201
Location: Verona

PostPosted: Sun Apr 02, 2006 2:00 pm    Post subject: Reply with quote

scusa se ti chiedo questa cosa, ma:
Quote:
usa CIFS, my 2 cents.


cosa intendi?
_________________
..:[DiGu]:.
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Sun Apr 02, 2006 2:03 pm    Post subject: Reply with quote

digu wrote:
scusa se ti chiedo questa cosa, ma:
Quote:
usa CIFS, my 2 cents.


cosa intendi?


nel kernel ci sono 2 moduli per accedere alle condivisioni samba:

- smbfs
- cifs

smbfs è stato sostituito da cifs. smbfs è rimasto nel kernel perchè destinato alla famiglia di Win9x, mentre per Win200x e WinXP è preferibile usare il più recente cifs (perchè è molto più solido e prestante di smbfs). tutto qua.
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
digu
Apprentice
Apprentice


Joined: 26 Feb 2006
Posts: 201
Location: Verona

PostPosted: Sun Apr 02, 2006 2:09 pm    Post subject: Reply with quote

ah ok..
non mi era chiara l'affermazione "my 2 cent"...
Se posso ti faccio altre domande..
Se compilo il kernel col modulo CIFS (togliendo smb), posso disinstallare net-fs/samba e smb4k, e che client samba posso usare?

Secondo te usando il modulo CIFS ho dei miglioramenti di compatibilita' e prestazioni anche sulla macchina su cui ho installato il server? su questa devo cmq tenere net-fs/samba se no perdo le funzionalita' di server samba?

Grazie mille :)
_________________
..:[DiGu]:.
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sun Apr 02, 2006 2:13 pm    Post subject: Reply with quote

uhmmm io cifs senza samba non riesco a usalo... mi da return error = -22 quando provo a montare qualcosa....
Back to top
View user's profile Send private message
digu
Apprentice
Apprentice


Joined: 26 Feb 2006
Posts: 201
Location: Verona

PostPosted: Sun Apr 02, 2006 2:15 pm    Post subject: Reply with quote

MeMyselfAndI wrote:
uhmmm io cifs senza samba non riesco a usalo... mi da return error = -22 quando provo a montare qualcosa....


intendi senza il modulo smb del kernel o senza il pacchetto net-fs/samba?
_________________
..:[DiGu]:.
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Sun Apr 02, 2006 2:20 pm    Post subject: Reply with quote

digu wrote:
ah ok..
non mi era chiara l'affermazione "my 2 cent"...


vai qui e cerca la frase "Put my two cents in" :wink:


digu wrote:
Se compilo il kernel col modulo CIFS (togliendo smb), posso disinstallare net-fs/samba e smb4k, e che client samba posso usare?


non ho idea di come funzioni smb4k sinceramente. dovresti chiedere a chi lo usa, io non uso software extra per collegarmi alle condivisioni samba, uso solo CIFS, ma tutto dipende dalle tue esigenze.

digu wrote:
Secondo te usando il modulo CIFS ho dei miglioramenti di compatibilita' e prestazioni anche sulla macchina su cui ho installato il server?


CIFS non influenza in nessun modo i server o gli altri client, solo la tua connessione alla condivisione che sfrutterà meglio il protocollo samba

digu wrote:
su questa devo cmq tenere net-fs/samba se no perdo le funzionalita' di server samba?


ovviamente. CIFS fa solo da client, non da server.
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
digu
Apprentice
Apprentice


Joined: 26 Feb 2006
Posts: 201
Location: Verona

PostPosted: Sun Apr 02, 2006 2:23 pm    Post subject: ? Reply with quote

Scusa la mia ignoranza in campo SAMBA... ma tu come accedi alle risorse remote sul server samba?
_________________
..:[DiGu]:.
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sun Apr 02, 2006 2:24 pm    Post subject: Reply with quote

digu wrote:
MeMyselfAndI wrote:
uhmmm io cifs senza samba non riesco a usalo... mi da return error = -22 quando provo a montare qualcosa....


intendi senza il modulo smb del kernel o senza il pacchetto net-fs/samba?


senza pacchetto samba..
in pratica dando mount -t cifs //server/cartella_condivisa /mount_point
mi rogna contro con questo :

mount: wrong fs type, bad option, bad superblock on //aserver/D,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

e guardando il syslog mi da solo un return error code = -22

!equilibrium, scusa ma tu come lo utilizzi cifs?
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Sun Apr 02, 2006 2:31 pm    Post subject: Reply with quote

MeMyselfAndI wrote:
!equilibrium, scusa ma tu come lo utilizzi cifs?


specifico il mount point nell'fstab:

Code:
//172.16.1.2/administrator      /home/administrator/samba  cifs    user=administrator,pass=xxxxxxxx,rw,user,noauto 0 0


e poi con KDE mi trovo automaticamente l'icona sul desktop e da li la monto/smonto quando voglio.
se sono a riga di comando invece la monto come se fosse una periferica locale ( mount /home/administrator/samba).
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Sun Apr 02, 2006 2:38 pm    Post subject: Reply with quote

@MeMyselfAndI
il problema è che ti manca mount.cifs (fornito da samba).
copiando il binario dovrebbe funzionare.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sun Apr 02, 2006 2:50 pm    Post subject: Reply with quote

no no il problema era un altro....
Se specifico l'ip del server si monta correttamente, se lo chiamo col suo nome no. eppure /etc/resolv.conf e' settato correttamente.
Boh,, cmq sono riuscito a montare tutte le mie partizioni correttamente. grazie
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Sun Apr 02, 2006 2:51 pm    Post subject: Reply with quote

MeMyselfAndI wrote:
no no il problema era un altro....
Se specifico l'ip del server si monta correttamente, se lo chiamo col suo nome no. eppure /etc/resolv.conf e' settato correttamente.
Boh,, cmq sono riuscito a montare tutte le mie partizioni correttamente. grazie


CIFS non supporta ancora la risoluzione dei nomi, è normale.
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
Su-34
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2004
Posts: 110
Location: Sky

PostPosted: Sat Apr 29, 2006 12:05 pm    Post subject: Reply with quote

Salve a tutti raga, scrivo in questo post perchè la mia è una domanda abbastanza banale ma che non riesco a venirne fuori.

Dunque ho insdtallato gentoo e quindi samba e seguendo vari tutorial ho configurato la mia LAN perfettamente.
IL mio unico problema è quello di dover avviare contuamente i demoni smbd e nmbd a mano con il comando

Quote:

smbd restart && nmbd restart


però voelvo rendere la procedura automatica in modo che all avvio del pc i due demoni partissero da soli, senza dover ogni volta ridigitare questi comandi

di conseguenza ho aperto un nuovo file:

Quote:

nano -w /etc/samba/startsmb


con il seguente script:

Quote:

#!/bin/sh
/usr/sbin/smbd -D
/usr/sbin/winbindd -B
/usr/sbin/nmbd -D


e reso eseguibile con il comando:

Quote:

chmod +x startsmb


il problema è che anch se non riavvio il pc, se inserisco questo comando nel terminale
Quote:

startsmb


mi dice che il comando è sconosciuto!!!!
potetre cortesemente dirmi dov è che sbaglio nel mio script?
oltre a
#!/bin/sh
ho provato anche
#!/bin/bash

ma il risultato è lo stesso :x

ciaoooooooo
Back to top
View user's profile Send private message
digu
Apprentice
Apprentice


Joined: 26 Feb 2006
Posts: 201
Location: Verona

PostPosted: Sat Apr 29, 2006 12:41 pm    Post subject: Reply with quote

io per lanciate automaticamente SAMBA uso l' init.d script presente in /etc/init.d.
Per avviarlo automaticamente al boot della macchina digita:
Code:
rc-update add samba default

_________________
..:[DiGu]:.
Back to top
View user's profile Send private message
Su-34
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2004
Posts: 110
Location: Sky

PostPosted: Sat Apr 29, 2006 12:58 pm    Post subject: Reply with quote

grazie digu :D
ma ad ogni modo, ormai solo per curiosità. E nel caso in cui vorrò realizzare degli script? come mai non riesco a fare uno script banale come quello sopra?
dov è l errore?
sbaglio la sintassi? :oops:

grazie ancora
ciaooooooooooo
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sat Apr 29, 2006 4:26 pm    Post subject: Reply with quote

Quote:
il problema è che anch se non riavvio il pc, se inserisco questo comando nel terminale
Quote:

startsmb


mi dice che il comando è sconosciuto!!!!


Scusa eh ma non e' che semplicemente il percorso del tuo script non e' nel tuo PATH ?
Hai provato a chiamarlo dando sh /../pincopallino/script ?
Back to top
View user's profile Send private message
Su-34
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2004
Posts: 110
Location: Sky

PostPosted: Sat Apr 29, 2006 4:57 pm    Post subject: Reply with quote

MeMyselfAndI wrote:
Quote:
il problema è che anch se non riavvio il pc, se inserisco questo comando nel terminale
Quote:

startsmb


mi dice che il comando è sconosciuto!!!!


Scusa eh ma non e' che semplicemente il percorso del tuo script non e' nel tuo PATH ?
Hai provato a chiamarlo dando sh /../pincopallino/script ?


grande!!!!!!!!!!!!!1
hai ragione ora funziona alla grande!!!!!!!!!!!!!!1
graaaaaaaaaaaaaaazieeeeeeeeeeeee :D :D :D :D :D
Back to top
View user's profile Send private message
Su-34
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2004
Posts: 110
Location: Sky

PostPosted: Sat Apr 29, 2006 7:43 pm    Post subject: Reply with quote

Quote:

Hai provato a chiamarlo dando sh /../pincopallino/script ?


scusa la domanda da niubbio, ma poi dove devo mettere questa riga di codice affinche parta ll avvio senza doverla ridigitare ogni volta?

/etc/rc.conf?
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Sat Apr 29, 2006 9:36 pm    Post subject: Reply with quote

Il posto deputato a contenere riferimenti a script che si vuol far partire all'avvio o allo spegnimento è
Code:
/etc/conf.d/local[start|stop]
Ti sconsiglio però vivamente di reinventare la ruota: gli script di avvio e stop del demone samba si occupano di tutto e tengono in considerazione delle piccole e grandi modifiche fatte dai devel gentoo al pacchetto. Oltretutto se usi gli script di init di gentoo puoi usare rc-status per conoscere l'effettivo stato di un demone e comandarlo facilmente.
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
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