View Single Post
Old 09-08-2008, 07:44   #26
Intrepido
Senior Member
 
L'Avatar di Intrepido
 
Iscritto dal: Feb 2007
Messaggi: 7121
Quote:
Originariamente inviato da DigitalMax Guarda i messaggi
Mi sono espresso male XD intendevo configurare una connessione lan su ubuntu ^^
Avevo trovato e copiato una guida a riguardo, te la posto, se puņ esserti di aiuto (non trovo il link )

Devi installare samba

Quote:
sudo apt-get install samba
stopparlo

Codice PHP:
sudo /etc/init.d/samba stop 
editare il confi.smb

Codice PHP:
sudo gedit /etc/samba/smb.conf 
e ci copi dentro questo

Codice:
[global]
    ; General server settings
    netbios name = TUO_NOME
    server string =
    workgroup = TUO_WORKGROUP
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

    passdb backend = tdbsam
    security = user
    null passwords = true
    username map = /etc/samba/smbusers
    name resolve order = hosts wins bcast

    wins support = yes

    printing = CUPS
    printcap name = CUPS

    syslog = 1
    syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
    ;valid users = %S
    ;create mode = 0600
    ;directory mode = 0755
    ;browseable = no
    ;read only = no
    ;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
    path = /var/lib/samba/printers
    browseable = yes
    guest ok = yes
    read only = yes
    write list = root
    create mask = 0664
    directory mask = 0775

[printers]
    path = /tmp
    printable = yes
    guest ok = yes
    browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

[MyFiles]
    path = /media/samba/
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = TUO_USERNAME
    force group = TUO_USERGROUP
sostituisci TUO_user con il nome del pc
e TUO_WORKGROUP con il nome della rete.

infine restarti

Codice PHP:
sudo /etc/init.d/samba start 
Intrepido č offline   Rispondi citando il messaggio o parte di esso