klaus a �crit :
> 
> Salut,
> 
> Jean (j'ai plus l'adresse email) m'a conseill�  de ne pas activer
> sous vmware un port physique d'imprimante (HP 722 C), mais de le
> faire � travers samba. Je ne sais pas comment faire. Ca passe par
> samba sous linux (je sais pas me servir de samba), et comment
> d�clarer sous windoze une imprimante r�seau ?
> Ca me permettrait de supprimer ma partition windoze r�el, avec
> vmware, �a marche tr�s bien

Bonjour Klaus,

C'est assez facile, car VMware installe son propre serveur SAMBA, donc
tu peux carr�ment d�sactiver le Samba original install� par MDK
(DrakConf --> Services de d�marrage --> d�cocher SMB).

Ensuite, il faut �diter le fichier /etc/vmware/vmnet1/smb/smb.conf pour
effectuer les op�rations suivantes:
1. WORKGROUP = nom.de.partage.le.m�me.que.d�finit.pour.W$
2. netbios name = nom.de.ta.machine.linux
3. security = user
4. encrypt passwords = yes
5. load printers = yes
6. local master = yes
7. preferred master = yes
8. dns proxy = no

Je joins une copie pour info.

Sous W$ d�finir les param�tres r�seaux (IP/masque/nom de WORKGROUP/nom
de machine), rebooter, lancer l'explorateur et dans le voisinage r�seau
tu verra appara�tre le serveur Samba avec ton r�pertoire perso
(/home/klaus) ainsi que lp l'imprimante.
Pour connecter l'imprimante D�marrer-->param�tre-->imprimante-->ajout et
chercher l'imprimante sur le r�seau. Utilises les pilotes WinWin fournis
pour ton imprimante.

Voila, ca devrait rouler.

Jean
(Qui a tester MDK7.2, super mais KDE2 est vraiment trop instable encore
pour une machine en production... Retour vers MDK7.1 donc.)
;
; Configuration file for Samba 2.0.6 vmware-[sn]mbd operating on vmnet1.
;
; This file was automatically generated by the VMware configuration program.
; If you modify it, it will be backed up the next time you run the
; configuration program.
;

; Global settings
[global]
;
; Identity
;

; Allow several Samba servers on different subnet without conflicts
   socket address = 192.168.253.1
   interfaces = 192.168.253.0/255.255.255.0
   bind interfaces only = yes

; Workgroup the host belongs to
  workgroup = Votre.Groupe.de.Travail

; SMB name of the host (the hostname by default)
  netbios name = Nom.Linux.du.Poste


; Description of the host
  server string = VMware host

;
; Access
;

;  Allow connections from
;   Beware: if we use this directive, smbd will try to do a reverse resolution
;   of the guest IP. If the host is disconnected from the network and uses
;   named, that reverse resolution will take a long time, and the smb client
;   (the guest) will give up waiting for a smb reply before the reverse
;   resolution timeout occurs :(
;   Because it doesn't add any real security, we don't use this --hpreg
;  hosts allow = 192.168.253.0/255.255.255.0

;  Authentication scheme
  security = user
  encrypt passwords = yes

;
; Options
;

; Automatically load the printer list (from /etc/printcap by default)
  load printers = yes

; Gives better performance
  socket options = TCP_NODELAY 

; VMware extension to use a different shared memory access key on each
; Samba server running on this host
  sysv shm key = /dev/vmnet1

;
; Files and directories
;

;  Debug log for _both_ daemons
  log file = /etc/vmware/vmnet1/smb/var/log.smb
;  log level = 1
;   Max log size in KB 
  max log size = 10

;  Locks
  lock directory = /etc/vmware/vmnet1/smb/var/locks

;  SMB passwords
  smb passwd file = /etc/vmware/vmnet1/smb/private/smbpasswd

;  VMware extension to use codepages in a different directory
  codepage dir = /opt/vmware/lib/vmware/smb/codepages

;
; Name browsing
;

; Allow the host to participate in master browser elections
  local master = yes

; Force a local browser election upon startup
; We need that otherwise it takes a long time before the windows network is
; browsable
  preferred master = yes

; Do not try to resolve SMB names via DNS
  dns proxy = no 

;
; Shared resources
;

; Home directories
[homes]
  comment = Home directories
  browseable = no
  writable = yes

; Printers
[printers]
  comment = All printers
  path = /var/lpd
  browseable = no
  guest ok = no
  writable = no
  printable = yes

[HostFS]
  comment = VMware host filesystem
  path = /
  public = no
  writeable = yes
  printable = no

Répondre à