Yadda ake aiwatar da Sabar Samba mai sauƙi a cikin Ubuntu 24.04?

Samba Server akan Ubuntu 24.04: Shigarwa da saitin farko

Samba Server akan Ubuntu 24.04: Shigarwa da saitin farko

Ko daga kwamfutar gida ko ƙaramin ofis zuwa uwar garken a cikin matsakaici ko babban kamfani, ɗaya daga cikin mafi asali da muhimman ayyuka cewa kowa zai iya so ko bukata, ba tare da shakka ba, iko ne raba fayiloli a ciki. Tunda, ba koyaushe ba shine mafi kyawun abu kuma mafi aminci don amfani da hanyar sadarwar Intanet (sabis na imel, dandamali na ajiya akan layi ko aikace-aikacen saƙon take) don canja wurin kowane nau'in takardu zuwa wasu.

Don haka, a baya mun yi musayar bayanai masu amfani kuma cikakke ko ƙananan jagorori masu sauri don warware wannan mahimmancin sha'awar ko buƙatu mai mahimmanci ta hanyoyi daban-daban. Amma, tun da, lokacin da ya zo adanawa da raba fayiloli a cikin hanyar sadarwa, amfani da ka'idar Samba shine sananne, aiki da kuma amfani da duniya gabaɗaya, duka don Windows, macOS da Linux, a yau za mu yi amfani da damar sabunta jagorarmu mai sauri ta baya dangane da Ubuntu 14.10. Don haka, ba tare da ƙarin ado ba, a ƙasa za mu koya muku kai tsaye da sauƙi game da «Yadda ake aiwatar da Sabar Samba mai sauƙi a cikin Ubuntu 24.04.

samba Linux windows

Amma, kafin fara wannan sabon jagorar mai sauri «Yadda ake aiwatar da Sabar Samba mai sauƙi a cikin Ubuntu 24.04, muna ba da shawarar ku bincika bayanan da suka gabata da wannan batu, a karshen karanta shi:

Samba shine aiwatar da ayyuka da ka'idoji masu jituwa na SMB (yanzu ana kiran su CIFS) waɗanda kwamfutocin Windows ke hulɗa da juna tare da su: Andrew Tridgell ne ya haɓaka ta ta hanyar injiniyan baya, ta amfani da Wireshark (wanda aka fi sani da Ethereal) salon zirga-zirgar zirga-zirga don bayar da dacewa * mahalli na nix, wani abu da ake buƙata don kada a keɓance shi a cikin haɗin gwiwa da muhallin ilimi waɗanda dandamali da yawa galibi ke kasancewa tare (Windows, Linux, Mac OS X).

samba Linux windows
Labari mai dangantaka:
Yadda ake girka da saita Samba akan Ubuntu 14.10

Samba Server akan Ubuntu 24.04: Shigarwa da saitin farko

Samba Server akan Ubuntu 24.04: Shigarwa da saitin farko

Mahimman bayanai da mahimmanci

Tun da yake wannan jagora ne mai sauri, ba za mu shiga cikin muhimman al'amuran da ke buƙatar sani da ƙwarewa a gaba ba. Misali: Menene fayil fstab kuma ta yaya ake amfani da shi don hawa ɓangarori ko fayafai ta atomatik akan Linux Ubuntu?, kuma Menene zaɓuɓɓukan umarnin Samba kuma menene su? Don haka, a ƙasa mun bar muku hanyoyin da suka dace don yin la'akari da su don cika wannan bayanin yadda ya kamata:

Matakai don aiwatar da Sabar Samba mai sauƙi a cikin Ubuntu 24.04

Mataki na 1: Sanya fakiti

A kan kwamfutar tebur ko uwar garken cibiyar sadarwa tare da Ubuntu 24.04, abu na farko da za mu yi shine shigar da Samba tare da oda mai zuwa:

sudo apt install samba samba-client -y # Paquetes de samba esenciales
smbd -V # Validar versión de Samba instalada
sudo apt install cifs-utils dosfstools exfat-fuse exfatprogs fuse3 libsmbclient ntfs-3g smbclient #Paquetes extras útiles y necesarios

Mataki na 2: Sanya babban fayil ɗin tsarin don amfani dashi azaman babban fayil ɗin jama'a

sudo mkdir /opt/publico #Crear carpeta “público” en la carpeta “/opt” del sistema operativo.
sudo chmod -R 777 /opt/publico/ #Dar permisos totales a carpeta “público”.
sudo chown nobody:nogroup -R /opt/publico/ #Asignar carpeta “público” a usuario y grupo genérico.

Mataki na 3: Sanya NTFS da aka tsara faifai/bangare (sdb1) don amfani dashi azaman babban fayil na jama'a

sudo mkdir /media/disk2 #Crear carpeta “media” en la carpeta “/media” del sistema operativo.
sudo mount -t ntfs /dev/sdb1 /media/disk2 #Probar montaje de partición/disco “sdb1” en la carpeta asignada.
sudo umount /dev/sdb1 #Desmontar partición/disco “sdb1”

Idan komai ya tafi daidai, za mu ci gaba da matakai masu zuwa:

sudo nano /etc/fstab #Editar archivo fstab

Muna saka layi mai zuwa a ƙarshen fayil ɗin:

/dev/sdb1 /media/disk2 ntfs-3g defaults 0 0 #Montaje automático de la partición/disco “sdb1” en el arranque. 

Muna ajiye canje-canje kuma muna gudanar da umarni mai zuwa don sake gwada dutsen:

sudo mount -a #Ejecutar montaje manual de todas las particiones/discos dentro del archivo “fstab”.

Idan komai ya yi kyau har zuwa wannan batu, ana ba da shawarar sake kunna kwamfutar / uwar garken kuma gwada hawan atomatik, a cikin gida da ta hanyar sadarwa, bayan tsarin aiki na uwar garken yana aiki.

Mataki 4: Saita ƙaramin fayil ɗin samba tare da hannun jari biyu

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.1.bck #Respaldar el archivo de configuración de samba.

sudo nano /etc/samba/smb.conf #Editar el archivo de configuración actual de samba.

Muna kwashe fayil ɗin gaba ɗaya kuma muna ƙara abun ciki mai zuwa:

#======================= Global Settings =======================

[global]

workgroup = WORKGROUP
security = user
netbios name = SAMBA-PUBLICO
server string = Samba 4.x
hosts allow = 192.168.250.0/255.255.255.0
log level = 3
map to guest = bad user

[PublicoServ]
comment = Data compartida sobre Disco principal del Servidor
path = /opt/publico/
browsable = yes
writable = yes
guest ok = yes
guest only = yes
force create mode = 0777
force directory mode = 0777
read only = no
force group = nogroup
force user = nobody

[PublicoDisk]
comment = Data compartida sobre Disco adicional del Servidor
path = /media/disk2/
browsable = yes
writable = yes
guest ok = yes
guest only = yes
force create mode = 0777
force directory mode = 0777
read only = no
force group = nogroup
force user = nobody

Mataki 5: Gwada Kanfigareshan Raba da Samuwar

sudo testparm #Probar configuración exitosa del archivo de Samba.

sudo systemctl restart smbd nmbd #Reiniciar los Servicios de Samba y NetBIOS.

Bayan haka, kuma idan duk wani kuskure da aka samu an riga an warware shi, abin da ya rage shi ne a gwada daga kwamfutoci ɗaya ko fiye da ke kan hanyar sadarwar, tare da Windows da GNU/Linux, don samun damar shiga abubuwan da aka raba ba tare da suna ba (baƙi), wato. , , Ba tare da kalmomin shiga ba kuma karantawa da rubuta ƙuntatawa.

Hotunan hotunan wasu sassa na cikakken tsarin shigarwa da tsari

Ubuntu Samba Server 24.04: Cikakken shigarwa da tsarin daidaitawa: Screenshot 01

Ubuntu Samba Server 24.04: Cikakken shigarwa da tsarin daidaitawa: Screenshot 02

Ubuntu Samba Server 24.04: Cikakken shigarwa da tsarin daidaitawa: Screenshot 03

Ubuntu Samba Server 24.04: Cikakken shigarwa da tsarin daidaitawa: Screenshot 04

Ubuntu Samba Server 24.04: Cikakken shigarwa da tsarin daidaitawa: Screenshot 05

Cikakken shigarwa da tsarin daidaitawa: Screenshot 06

Cikakken shigarwa da tsarin daidaitawa: Screenshot 07

Cikakken shigarwa da tsarin daidaitawa: Screenshot 08

Cikakken shigarwa da tsarin daidaitawa: Screenshot 09

Cikakken shigarwa da tsarin daidaitawa: Screenshot 10

Samba shine daidaitaccen tsari na shirye-shiryen haɗin gwiwar Windows don Linux da Unix.
Labari mai dangantaka:
An riga an fitar da Samba 4.20 kuma ya zo tare da ɗimbin canje-canje da sabbin abubuwa

Takaitacciyar 2023 - 2024

Tsaya

A taƙaice, kuma kamar yadda muke iya gani tare da wannan ɗan gajeren jagorar mai amfani, shigarwa da daidaitawa mai sauƙi Samba Server akan Ubuntu 24.04» Yana yiwuwa tare da ƴan tukwici da matakai masu sauri daga ƙarshen tsarin aikin ku. Kuma tun daga wannan lokacin, kawai muna saita babban fayil na jama'a (ba tare da hani ga kowane mai amfani akan hanyar sadarwar ba), ba da daɗewa ba muna fatan za mu ba ku kashi na biyu tare da daidaita manyan fayiloli don masu amfani ko ƙungiyoyin masu amfani waɗanda aka riga aka ƙayyade ta kalmar sirri. Kuma idan kun san wasu shawarwari ko shawarwari masu amfani don ingantawa ko cika wannan jagorar mai sauri, muna gayyatar ku don gaya mana game da su ta hanyar yin sharhi don sanin kowa da amfaninsa.

A ƙarshe, ku tuna don raba wannan matsayi mai ban sha'awa da ban sha'awa tare da wasu, haka ma ziyarci farkon mu «shafin yanar gizo» da Espanol. Ko, a cikin kowane harshe (kawai ta ƙara haruffa 2 zuwa ƙarshen URL ɗin mu na yanzu, misali: ar, de, en, fr, ja, pt da ru, da sauran su) don ƙarin koyan abubuwan da ke cikin yanzu. Bugu da ƙari, muna gayyatar ku don shiga cikin mu Official Telegram channel don karantawa da raba ƙarin labarai, jagorori da koyarwa daga gidan yanar gizon mu. Haka kuma, na gaba Alternative Telegram channel don ƙarin koyo game da Linuxverse gabaɗaya.


Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Wanda ke da alhakin bayanan: Miguel Ángel Gatón
  2. Manufar bayanan: Sarrafa SPAM, sarrafa sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.