Cov txheej txheem:

Txoj Kev Sib Txawv Sib Txuas rau Koj Mac Mini: 5 Kauj Ruam
Txoj Kev Sib Txawv Sib Txuas rau Koj Mac Mini: 5 Kauj Ruam

Video: Txoj Kev Sib Txawv Sib Txuas rau Koj Mac Mini: 5 Kauj Ruam

Video: Txoj Kev Sib Txawv Sib Txuas rau Koj Mac Mini: 5 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Txoj hauv kev sib txawv los txuas rau Koj Mac Mini
Txoj hauv kev sib txawv los txuas rau Koj Mac Mini
Txoj hauv kev sib txawv los txuas rau Koj Mac Mini
Txoj hauv kev sib txawv los txuas rau Koj Mac Mini
Txoj hauv kev sib txawv los txuas rau Koj Mac Mini
Txoj hauv kev sib txawv los txuas rau Koj Mac Mini

Kev txuas rau koj lub mac mini thaum nyob hauv tsev lossis nyob deb yog qhov tseem ceeb, tshwj xeeb tshaj yog tias koj tsis muaj keyboard nas thiab saib xyuas txuas mus tas li. Ib daig ntawm lingo peb xav tau teeb tsa ncaj ncaj nrog lub khoos phis tawj twg peb tab tom tham txog. Kuv yuav ib txwm siv "localhost" xa mus rau lub khoos phis tawj uas koj txuas rau koj lub mac mini. Rau kuv nws feem ntau yog kuv lub laptop uas kuv siv tom haujlwm thiab kuv nqa mus tsev. "Remotehost" yog rooj plaub no mac mini. Nws yog lub khoos phis tawj koj feem ntau yuav tsum txuas rau. Muaj ntau txoj hauv kev los txuas thiab txhua txoj hauv kev muab cov kev pabcuam sib txawv thiab zoo rau ntau yam sib txawv. Kuv tsuas yog tham txog cov uas kuv siv, tab sis lawv tau siv yooj yim uas koj yuav zaum siv tau zoo ntawm lawv ib yam nkaus. Yog tias koj theej cov ntaub ntawv koj yuav xav txuas nrog ib lub network cable lossis hluav taws xob cable. Peb peb yuav tham txog kev sib faib cov ntaub ntawv ntawm macs Tom qab ntawd peb yuav tham txog kev tshuaj ntsuam sib qhia thiab tshuaj ntsuam sib qhia nyob deb. Peb yuav tham txog SSH thiab SCP, uas tau siv dav hauv cov lus qhia tom qab hauv pab pawg no Qhov no yog ib feem ntawm cov ntawv sau ua ke Txheeb xyuas lwm qhov ntawm: https://www.instructables.com/id/READ-ME-FIRST-How-to-setup-the-ultimate-Mac-Mini-/https://www.instructables.com/ id/Teeb-up-the-ultimate-Mac-Mini/https://www.instructables.com/id/Different-ways-to-connect-to-your-Mac-Mini/https://www.instructables. com/id/Yuav ua li cas-nkag-tau-koj-suab paj nruag-los ntawm-nyob qhov twg-nrog-koj-M/https://www.instructables.com/id/How-to-share-your-photos-from-your- mac-mini-on-the/https://www.instructables.com/id/How-to-Setup-the-Ultimate-Media-Player-with-the-Ma/

Kauj ruam 1: Sib Qhia Cov Ntaub Ntawv Ntawm Macs

Cov Ntaub Ntawv Sib Koom Ntawm Macs
Cov Ntaub Ntawv Sib Koom Ntawm Macs
Cov Ntaub Ntawv Sib Koom Ntawm Macs
Cov Ntaub Ntawv Sib Koom Ntawm Macs
Cov Ntaub Ntawv Sib Koom Ntawm Macs
Cov Ntaub Ntawv Sib Koom Ntawm Macs
Cov Ntaub Ntawv Sib Koom Ntawm Macs
Cov Ntaub Ntawv Sib Koom Ntawm Macs

Yog tias koj tau theej cov ntaub ntawv ntau uas tsis nyob hauv ib daim ntawv, lossis yog tias koj xav tau yooj yim cherry khaws cov ntaub ntawv los ntawm ib lub khoos phis tawj tso rau lwm qhov ces qhov no yog txoj hauv kev zoo tshaj plaws. Cov ntaub ntawv sib faib ib qho tso cai rau koj pom cov ntawv 'pej xeem' uas cov neeg siv remotehost xaiv rau kev sib qhia cov ntaub ntawv, lossis nws tseem tso cai rau koj pom thiab sau rau txhua tus neeg siv cov khoom siv nyob deb yog tias koj muaj tus ID nkag mus thiab tus password rau tus neeg siv ntawd. Hmoov tsis zoo, qhov no tsuas yog ua haujlwm yog tias koj nyob hauv tib lub network. Ua ntej koj yuav tsum teeb tsa 'tus tswv nyob deb' rau kev sib qhia cov ntaub ntawv. Mus rau Apple Menu> System Preferences> Sib koom. Nyem rau ntawm File Sharing los qhib nws. Yog tias koj xav ntxiv ib daim ntawv pej xeem, uas muaj rau lwm tus siv mus tom ntej thiab ua qhov ntawd. Txwv tsis pub, yog tias koj tsuas xav kom koj cov ntawv khaws cia muaj rau cov neeg uas paub cov ntaub ntawv nkag mus rau cov neeg siv nyob deb, tom qab ntawd koj tuaj yeem tso qhov ntawd tseg. Yog tias koj xav qhia cov ntaub ntawv nrog cov neeg siv qhov rais nyem rau SMB, tab sis dua lawv yuav xav tau cov ntaub ntawv nkag mus tshwj tsis yog koj ua qee cov ntawv 'pej xeem'. Yog tias koj yog lub khoos phis tawj hauv cheeb tsam yog mac, tom qab ntawd nws yuav tsum pom lub khoos phis tawj nyob hauv 'Sib Koom' hauv lub qhov rai nrhiav tshiab (Command + N). Yog tias koj tsis pom nws hauv lub qhov rai nrhiav, nyem "tag nrho" hauv kab ntawv sab laug. Yog tias yog qee qhov laj thawj koj tshem qhov no los ntawm koj lub qhov rai tsis zoo, koj tuaj yeem txuas rau server los ntawm kev mus "Mus> Txuas rau Server" tom qab ntawd nias xaub. Qhov no yuav tsum nqa cov npe ntawm cov khoos phis tawj uas sib qhia cov ntaub ntawv. Nyem rau ntawm qhov koj xav tau remotehost. Nws yuav, los ntawm kev sim ua txuas mus ua tus qhua, yog tias koj tsis muaj qhov qhib lossis koj xav tau kev nkag tau ntau dua, koj tuaj yeem nyem "txuas ua" txhawm rau nkag mus ua tus neeg siv ntawm lub khoos phis tawj ntawd. Qhov no txhais tau tias koj xav tau cov ntaub ntawv nkag mus rau tus neeg siv uas nws cov ntaub ntawv koj tau sim nkag mus.

Kauj ruam 2: Screen Sib Koom Ntawm Macs

Kev Sib Tham Ntawm Macs
Kev Sib Tham Ntawm Macs
Kev Sib Tham Ntawm Macs
Kev Sib Tham Ntawm Macs
Vijtsam sib koom ntawm Macs
Vijtsam sib koom ntawm Macs

Kev tshuaj ntsuam sib qhia yog qhov yooj yim suav nrog cov khoom siv nrog macs uas tso cai rau koj saib thiab tswj hwm lwm lub mac zoo li koj tau siv nws. Koj tsis tuaj yeem txav cov ntaub ntawv siv nws, txawm li cas los xij. Yog li yog tias koj yuav tsum tau siv lub khoos phis tawj zoo li koj tau txuas lub cev nrog nws, ces qhov no yog txoj hauv kev zoo dua. Koj tuaj yeem ua txhua yam uas ib tus tuaj yeem ua tau yog tias lawv muaj cov keyboard thiab saib txuas rau lub khoos phis tawj ntawd. Txhawm rau teeb tsa lub vijtsam sib qhia ntawm koj lub mac mini lossis remotehost, mus rau "Apple Menu> System Preferences> Sharing" ntawm lub computer no. Lub sijhawm no nyem rau ntawm "Kev Tswj Chaw Taws Teeb" kom pab tau qhov no. Yog tias koj muaj ntau tus neeg siv ntawm cov chaw nyob deb, thiab tsis xav kom txhua tus tau txais kev nkag los ntawm lwm lub khoos phis tawj, tsuas yog nyem qhov "Allow access for> Only these users" option. Tom qab ntawd nyem rau lub cim ntxiv rau ntxiv rau qhov uas koj xav tau nkag mus rau. Koj tuaj yeem tswj hwm txhua tus neeg tso cai cais kom koj tsis tuaj yeem ua yam vwm thaum ntsaws los ntawm ib nrab txoj kev hla lub ntiaj teb - tej zaum yog lub tswv yim zoo. Koj yuav tsum ib txwm tso cai tshwj xeeb rau txhua tus neeg siv dawb. Txoj kev no, tsuas yog cov tib neeg nrog cov ntaub ntawv nkag mus raug rau tus neeg siv tuaj yeem ua tej yam nyob ntawd. Kev siv tshuaj ntsuam sib qhia tau yooj yim ntawm ib lub network. Hauv qhov nrhiav pom "Mus> Txuas rau Server". Tom qab ntawd hauv kev sib tham, ntaus "vnc: // remotehost_ip", qhov twg remotehost_ip yog qhov chaw nyob IP zoo li qub ntawm koj lub computer. Saib cov lus qhia hais txog teeb tsa koj lub mac mini. Koj tseem tuaj yeem xauj mus rau qhov chaw nyob deb ntawm tus nrhiav thiab tom qab ntawd nyem rau "sib qhia screen". Tom qab ntawv txheeb xyuas qhov tseeb thiab koj nyob hauv!

Kauj Ruam 3: SSH - Ruaj Ntseg Plhaub

SSH - Ruaj Ntseg Plhaub
SSH - Ruaj Ntseg Plhaub
SSH - Ruaj Ntseg Plhaub
SSH - Ruaj Ntseg Plhaub
SSH - Ruaj Ntseg Plhaub
SSH - Ruaj Ntseg Plhaub

Yog lawm, ssh sawv cev rau Kev Ruaj Ntseg Ruaj Ntseg, txaus ntshai npaum li cas. Yuav muaj (lav yog tias koj teeb tsa cov cuab yeej tsim tawm) koj tau qhib openssh. Nws yog qhov txiaj ntsig zoo rau kev nyab xeeb txuas rau lwm lub khoos phis tawj. Muaj ntau cov ntaub ntawv los siv SSH yog tias koj tau cuam tshuam nrog cov khoom. Yog tias koj tsis muaj thiab nws sab laug ntawm nws lub hauv paus nws zoo nkauj ncaj nraim rau siv. Yog li cia xav tias koj tau pib txij thaum pib. SSH tso cai rau koj nkag mus rau qhov chaw nyob deb ntawm qhov kab hais kom ua (aaack Terminal). Nws zoo ib yam rau kev siv tshuaj ntsuam sib qhia, tshwj tsis yog koj tab tom khiav los ntawm kab hais kom ua thiab koj tsis tuaj yeem pom dab tsi uas lwm tus ua. Ib yam li txhua yam ntxiv, koj yuav tsum qhia koj lub mac koj xav siv SSH. Ntawm koj tus remotehost (mac mini) mus rau "System Preferences> Sharing" thiab pab "Remote Login". Tam sim no ntawm koj lub computer localhost, qhib lub davhlau ya nyob twg thiab ntaus cov nram qab no ssh remoteuser@remotehostSubstitute remoteuser nrog tus neeg siv koj xav txuas raws li ntawm rau remotehost. Ib yam nkaus, hloov chaw nyob nrog tus IP chaw nyob tiag, lossis yog tias koj txuas los ntawm lwm qhov, siv tus lej sau npe chaw nyob Yog tias koj tsis tau txuas nrog ua ntej, nws yuav qhia koj txog RSA ntiv tes. Yeej nws tsuas yog hais tias nws tsis tuaj yeem lees paub lub khoos phis tawj koj tab tom sim txuas rau vim tias koj tsis tau txuas nrog nws ua ntej. Yog tias koj paub tseeb txog qhov no, lees paub nrog y lossis yog. Yog tias koj puas tau hloov kho lub computer lossis daim npav ethernet uas lub khoos phis tawj siv, nws yuav los nrog lwm tus hais tias cov ntiv tes tau hloov pauv, thiab nws yuav tsis cia koj txuas. Yog tias koj yog tus hloov pauv lub khoos phis tawj, tom qab ntawd koj tuaj yeem tshem qhov nkag nkag qub los ntawm /Users/locasuser/.ssh/Known_hosts, txwv tsis pub ceev faj qee yam! Nws pib tawm nrog tus IP chaw nyob cuam tshuam thiab yuav tsum yog ob peb kab ntev. Kuv yuav tshaj tawm ib daim duab, tab sis kuv muaj qhov kev xav tias cov ntaub ntawv tuaj yeem siv tawm tsam kuv. Ntawm qhov txawv ntawm SSH: SSH muaj ntau txoj kev xaiv, piv txwv li koj tuaj yeem siv SSH txuas rau kev tshuaj ntsuam sib qhia (saib cov kauj ruam tom ntej) ssh remoteuser@remotehost -L 5900: localhost: 5900Tau qhov koj cov nkauj sib koom los ntawm lwm qhov (saib cuam tshuam qhia tau) ssh -g remoteuser@remotehost -L 3689: localhost: 3689

Kauj Ruam 4: Siv Screen Sib Koom Hauv Qhov Chaw

Siv Screen Qhia Tawm Ib Leeg!
Siv Screen Qhia Tawm Ib Leeg!
Siv Screen Qhia Tawm Ib Leeg!
Siv Screen Qhia Tawm Ib Leeg!
Siv Screen Qhia Tawm Ib Leeg!
Siv Screen Qhia Tawm Ib Leeg!
Siv Screen Qhia Tawm Ib Leeg!
Siv Screen Qhia Tawm Ib Leeg!

Raws li tau hais hauv qib kawg, nws muaj peev xwm txuas nrog kev tshuaj ntsuam sib qhia thoob plaws hauv lub vev xaib. Nws tsis nkag siab zoo yog tias ob qho kev txuas hauv internet qeeb, tab sis ua dab tsi koj tuaj yeem tau txais los ntawm Terminal Cov kab hais kom ua, ntaus cov lus hauv qab no remoteuser@remotehost -L 5900: localhost: 5900 thiab hloov cov neeg siv nrog koj xav txuas nrog, thiab tom qab ntawd hloov remotehost nrog lub khoos phis tawj koj tab tom sim txuas rau. Koj tuaj yeem tawm ntawm localhost li 'localhost'. Nws paub yuav ua dab tsi. Then thaum koj xav tshuaj ntsuam sib qhia, tsuas yog mus rau tus nrhiav thiab nyem rau "Mus> Txuas rau Server" thiab ntaus invnc: // localhost: 0 thiab nias rov qab. Nws yuav tsum xam seb nws xav tau dab tsi thiab thov kev lees paub yog tias nws tsis ua haujlwm, rov qab mus rau lub davhlau ya nyob twg thiab xyuas kom tseeb tias ssh hais kom ua haujlwm raws li nws yuav tsum tau ua. Koj yuav tsum tau txuas nrog zoo li koj tau ua ntu zus ssh txuas rau remotehost.

Kauj ruam 5: SCP

SCP
SCP
SCP
SCP

SCP yog cov kab hais kom ua zoo tshaj plaws rau kev luam cov khoom ntawm ib lub computer mus rau lwm lub. Nws nrawm thiab ua haujlwm tau zoo yog tias koj paub tias cov ntaub ntawv nyob qhov twg. Tsis tas li ntawd, nws txwv qhov kev puas tsuaj uas koj tuaj yeem ua los ntawm kev luam cov ntaub ntawv tsis tsim nyog. Qhov haujlwm ua haujlwm zoo li SCP lub hom phiaj qhov chaw nyob qhov twg yog lub hom phiaj cov ntaub ntawv yuav tsum theej, thiab lub hom phiaj yog qhov chaw nws yuav tsum tau theej rau. cov hauv qab no/cov ntaub ntawv/ntawm/localhostorremoteuser@remotehost:/file/on/remotehost Yog li koj tuaj yeem luam tawm los ntawm lossis mus rau lub khoos phis tawj ntawm lwm qhov. Remotehost xav tau tus neeg siv txuas nrog thiab koj tsuas tuaj yeem sau mus rau qhov twg tus neeg siv ntawd muaj kev tso cai sau ntawv. Yog li tus cwj pwm ib txwm ntawm kuv yog ib txwm luam rau: ~/ tom qab ntawd kuv ssh mus rau hauv remotehost thiab ua lwm yam tsim nyog txav cov ntaub ntawv tom qab thiab sudo li hauv paus yog tias tsim nyog kiag li. Yog tias sudo raws li lub hauv paus yog txawv teb chaws rau koj, ces koj yuav tsum tsis txhob google nws kom pom qhov ntawd txhais tau li cas. Yog tias koj xav luam ntau cov ntaub ntawv, siv -r lossis -R flag.scp -R / foldname / remoteuser@remotehost: ~/foldname/Qhov no yuav theej cov ntsiab lus ntawm lub npe quav mus rau cov ntawv tais ceev tseg. Siv cov hauv qab no yog tias koj xav kom luam daim nplaub tshev zoo li wellscp -R/foldname remoteuser@remotehost: ~/foldname/Koj puas pom qhov sib txawv? Ib qho suav nrog kev txiav tawm tom ntej, lwm qhov tsis ua. Qhov sib txawv me ntsis uas tuaj yeem txuag koj mob taub hau ntau tom qab.

Pom zoo: