Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

lug-bg: Samba for beginners


  • Subject: lug-bg: Samba for beginners
  • From: MAD740@xxxxxxxxxxx (MAD740@xxxxxxxxxxx)
  • Date: Tue, 20 Jul 1999 23:49:08 +0300



Chesno da si kaja edno vreme, kogato za parvi pat se sblaskah 
sas Samba, mi beshe neudobno da pitam i se naloji dosta da se 
pozanimavam sam.
Vposledstvie uspyah da resha problema po dosta udoben nachin, 
koyto struva mi se nikoy ne spomena v diskusiyata.
Dostatachno e da se napravi slednoto:
1. Pravi se edna direktoriya za celta (pri men "/samba" v root 
direktoriyata).
2. V neya se pravyat direktorii saotvetstvashti na mountvanite 
Windows ustroystva v mrejata.
Ako naprimer imame 2 computera - ediniyat sam az pod Linux s 
ime SASHO, a drugiya e naprimer KALPAZAN i e pod Windows.
Na KALPAZAN imame 2 share-nati diska - v sluchaya sa 
narecheni MARIA_C i MARIA_D (pod tezi imena sa share-nati v 
Windows na drugiya computer).
Taka che v "/samba" pravya 2 direktorii - saotvetno "/samba/c" 
otgovaryashta na MARIA_C i "/samba/d" otgovaryashta na 
MARIA_D.
3. Vav faila "/etc/smb.config" dobavyam slednite redove:

//KALPAZAN/MARIA_C	/samba/c	smbfs	defaults	0 0
//KALPAZAN/MARIA_D	/samba/d	smbfs	defaults	0 0

i toy okonchatelno izglejda naprimer taka:

/dev/hda6		/		ext2	defaults	1 1
/dev/hda8		/rescue		ext2    defaults        1 2
/dev/hda7		swap		swap    defaults        0 0
/dev/hda1		/mnt/windows	vfat	defaults	0 0
/dev/hda5		/mnt/documents	vfat	defaults	0 0
/dev/fd0        	/mnt/floppy     auto    noauto          0 0
/dev/cdrom      	/mnt/cdrom      iso9660 noauto,ro       0 0
//KALPAZAN/MARIA_C	/samba/c	smbfs	defaults	0 0
//KALPAZAN/MARIA_D	/samba/d	smbfs	defaults	0 0
none            	/proc           proc    defaults        0 0
none            	/dev/pts        devpts  mode=0622  	0 0

4. V /usr/bin ima edna programa, koyato se kazva "usermount" 
(User Mount Tool), koyato daje e vklyuchena v menutata na nyakoi 
window manageri kato GNOME ili Afterstep.
S neya moje da se mountvat i unmountvat ustroystvata.
Tryabva da otbeleja obache, che smbfs failovite sistemi se 
mountvat ot edna programa narechena "smbmnt" i za da moje 
"usermount" da i podade pravilno opciite tryabva da ima specialen 
script.
Tozi skript varvi standartno sas Samba paketa i pri men (az sam s 
Red Hat 6.0) si go ima na neobhodimoto myasto i ne se 
zanimavam izobshto s nego.
Ako pri nyakogo lipsva - to tryabva da si go napishe ili da deystva 
rachno - t.e da propusne t.3. i da mountva s komandata:
smbmount "//KALPAZAN/MARIA_D" -c 'mount /samba/d'
i saotvetno da unmountva s:
umount /samba/d

Poneje nyakoy poiska da mu se izpratyat raboteshti 
konfiguracionni failove - eto nyakoy ot moite (bez komentarite):

# *** /etc/smb.config ***
[global]
   workgroup = THE DORKS

   server string = Samba Server

   printcap name = /etc/printcap
   load printers = yes

   log file = /var/log/samba/log.%m

   max log size = 50

   security = user

   socket options = TCP_NODELAY 

   dns proxy = no 

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

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

[public]
   path = /usr/somewhere/else/public
   public = yes
   only guest = yes
   writable = yes
   printable = no
# *** end ***

!!!Da ne zabravish da si napravish backup na originalniya fail, 
zashtoto e vazmojno da sam se uvlyakal v triene na komantari.

# *** /etc/lmhosts ***
127.0.0.1 	localhost
192.168.3.1	SASHO
192.168.3.2	KALPAZAN
# *** end ***

# *** /etc/hosts ***
127.0.0.1 	localhost localhost.localdomain
192.168.3.1	SASHO
192.168.3.2	KALPAZAN
# *** end ***

Zabelejka: Computera pod Windows sashto e s tvard IP adres (v 
sluchaya 192.168.3.2)

Na savsem nachinaeshtite bih preporachal da obarnat vnimanie na 
"fstab" faila po-gore.
Tam sa prilojeni 2 trika, koito sa propusnati v nyakoi samouchiteli 
"za 24 chasa".
Ediniyat e da se obyavi failovata sistema na floppy-to za auto. Taka 
Linuxa sam razpoznava dali e ext2, msdos, hfs ili druga.
Drugoto ne e trik a nachin da se vijdat dalgi failovi imena na 
lokalnite Windows diskove. Prosto tryabva da se deklarirat kato vfat 
a ne kato msdos, kakto pishe v nyakoi knigi.

Emi tova e.
Nadyavam se da sam pomognal.

Sasho

==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
For more send to lug-bg-request@xxxxxxxxxxxx a single word 'info'
==================================================================


  • Относно:
    • lug-bg: samba
      • Изпратено от: judas@xxxxxx (Hristo Georgiev)

 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.