Cov txheej txheem:

Ubuntu File Server: 4 Kauj Ruam
Ubuntu File Server: 4 Kauj Ruam

Video: Ubuntu File Server: 4 Kauj Ruam

Video: Ubuntu File Server: 4 Kauj Ruam
Video: Setting up Simple Samba File Shares 2024, Hlis ntuj nqeg
Anonim
Ubuntu File Server
Ubuntu File Server

Ubuntu neeg rau zaub mov yog qhov hnyav hnyav OS rau cov servers, thiab ua ke nrog samba koj tuaj yeem muaj qhov kawg server hauv tsev. Muaj cov ntaub ntawv server yog lub tswv yim zoo heev, vim tias Koj yuav xav siv nws li: thaub qab, tshaj tawm xov xwm thiab "sib koom" nplaub tshev. Tab sis cov no tsuas yog qee qhov laj thawj uas koj yuav xav ua, yog li cia peb nkag mus rau hauv!

Kauj ruam 1: Nruab Software

Nruab Software
Nruab Software

Txhawm rau pib tawm, koj yuav tsum ua kom Ubuntu Server muaj peev xwm ua cov ntaub ntawv hosting. Yog li ua qhov no peb yuav tsum tau teeb tsa samba. Yog li ntaus cov lus txib: sudo apt-get install samba. Tam sim no tsis yooj yim, Peb tau teeb tsa TXHUA software!

Kauj ruam 2: Configuring Samba

Configuring Samba
Configuring Samba
Configuring Samba
Configuring Samba

Txhawm rau txiav txim siab yam koj xav kom samba ua, lawv tau tsim cov ntaub ntawv teeb tsa uas nws muaj ntau pua lossis cov lus hais tawm. Yog li qhib /etc/samba/smb.conf nrog cov ntawv nyeem zoo li nano. Thawj qhov tsis pom zoo lossis ntxiv kev nyab xeeb = tus neeg siv, qhov no tuaj yeem pom nyob hauv qab qhov kev lees paub lub taub hau hauv cov ntawv. Tom qab ntawd ntxiv cov kab no ntawm kab lus: [Fred] tawm tswv yim = Fred's Filespath =/path/to/folderwritable = tau nyeem nkaus xwb = yog tsim daim npog ntsej muag = 0755 muaj = yog tam sim no ntxiv tus password rau koj cov neeg siv nrog cov lus txib no: sudo smbpasswd fredThen hom: sudo kev pabcuam smbd rov pib dua

Kauj ruam 3: Tsav Auto Mount

Tsav Auto Mount
Tsav Auto Mount
Tsav Auto Mount
Tsav Auto Mount

Yog tias koj lub khoos phis tawj lub hard drive tsis loj txaus koj yuav xav siv lub hard drive sab nraud. Tab sis tsis tuaj yeem yooj yim tsuas yog ntsaws rau hauv, koj yuav tsum ua kom nws pib nce nrog qhov tso cai raug. Yog li koj yuav tsum tau ntaus cov lus txib blkid rau lub hard drive's uuid tom qab ntawd ntaus cov lej no thaum kawg ntawm /etc /fstab: UUID = XXXXXXXXX /media /NASdrive user, umask = 000, utf8 noautoThen txuag nws thiab ntaus sudo mkdir / media/NASdrive thiab tom qab ntawd sudo rov pib dua.

Kauj ruam 4: Saib Server

Saib Server
Saib Server
Saib Server
Saib Server

Ua tau zoo! Koj tau ua tiav teeb tsa koj lub server! Tab sis ua li cas koj nkag mus rau koj cov ntaub ntawv? Zoo, ntawm Android koj tuaj yeem siv Tus Thawj Tswj Ntaub Ntawv los ntawm Asus ZenUI thiab ntawm lub khoos phis tawj desktop koj tuaj yeem yooj yim qhib koj tus thawj tswj ntaub ntawv thiab xauj koj lub network.

Pom zoo: