Putididdigar Cibiyoyin Sadarwa (VNC) wani tsari ne na samar da hanya mai nisa zuwa tebur ɗin kwamfuta. Ana yada hoton allon ta hanyar hanyar sadarwa, maɓallan linzamin kwamfuta da maɓallin keyboard suna matse. A cikin tsarin aikin Ubuntu, an shigar da tsarin da aka ambata ta hanyar wurin ajiya ne na ainihi, sannan kawai ana aiwatar da yanayin farfaɗo da cikakken tsari.
Sanya sabar VNC a Ubuntu
Tunda a cikin 'yan kwanan nan na Ubuntu an shigar da tsohuwar Gnome harsashi, za mu kafa kuma saita VNC dangane da wannan mahallin. Don saukakawa, zamu rarraba tsarin gaba ɗayan matakai, don haka bai kamata ku sami wahalar fahimtar gyaran kayan aiki mai amfani ba.
Mataki na 1: Sanya Kayan aiki
Kamar yadda aka ambata a baya, za mu yi amfani da wurin ajiye aikin hukuma. Akwai sabuwa kuma mafi daidaituwa sigar uwar garken VNC. Ana yin duk ayyukan ta hanyar na'ura wasan bidiyo, saboda haka ya kamata ka fara da farawa.
- Je zuwa menu kuma buɗe "Terminal". Akwai hotkey Ctrl + Alt + Twanda zai baka damar yin saurin sauri.
- Shigar da sabuntawa don duk ɗakunan karatu na tsarin ta
sudo dace-samu sabuntawa
. - Shigar da kalmar wucewa don samar da tushen tushe.
- A karshen yakamata ku yi rajistar ƙungiyar
sudo dace-samu shigar -no-install-yana bada shawarar ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal vnc4server
kuma danna kan Shigar. - Tabbatar da ƙara sabbin fayiloli a cikin tsarin.
- Jira shigarwa da ƙari don kammalawa kafin sabon layin shigarwar ya bayyana.
Yanzu a cikin Ubuntu akwai dukkanin abubuwan da ake buƙata, ya rage kawai don tabbatar da aikin su da kuma daidaita su kafin fara tebur mai nisa.
Mataki na 2: Farkon farkon VNC-uwar garken
Yayin farkon fitowar kayan aiki, an saita babban sigogi, sannan kawai sai kwamfutar ta fara aiki. Ya kamata ka tabbata cewa komai yana aiki yadda yakamata, kuma zaka iya yin haka:
- A cikin na'ura wasan bidiyo, rubuta umarnin
abdukumar
alhakin fara sabar. - Za a umarce ka da ka saita kalmar sirri don kwamfyutocin ka. Anan dole ne ku shigar da duk haɗin haruffa, amma ba kasa da biyar ba. Lokacin buga rubutu, ba za a nuna haruffa ba.
- Tabbatar da kalmar wucewa ta shigar da shi.
- Za a sanar da ku cewa an ƙirƙiri wani rubutun farawa kuma sabon tebur mai kama-da-wane ya fara aikin sa.
Mataki na 3: Tabbatar da VNC Server don Cikakken Aiki
Idan a cikin matakin da ya gabata mun tabbatar kawai cewa abubuwan haɗin da aka sanya suna aiki, yanzu muna buƙatar shirya su don yin haɗi mai nisa zuwa tebur na wani kwamfuta.
- Da farko kammala tebur da ke gudana tare da umarnin
vncserver -kill: 1
. - Na gaba, gudanar da fayil ɗin sanyi ta cikin ginannun rubutun edita. Don yin wannan, shigar
nano ~ / .vnc / xstartup
. - Tabbatar fayel yana da duk layin da aka nuna a ƙasa.
#! / bin / sh
# Rashin daidaituwa da layi biyu masu zuwa wajan al'ada:
# ba tare da SESSION_MANAGER ba
# exec / sauransu / X11 / xinit / xinitrc[-x / sauransu / vnc / xstartup] && exec / sauransu / vnc / xstartup
[-r $ GIDA / .Xsosources] && xrdb $ Gida / .Saboda tushe
xsetroot -solid launin toka
vncconfig -iconic &
x-tashar-emulator -geometry 80x24 + 10 + 10 -ls -title "$ VNCDESKTOP Desktop" &
x-window-manager &gnome-panel &
gnome-settings-daemon &
metacity &
nautilus & - Idan kun yi kowane canje-canje, ajiye saitunan ta latsa madannin Ctrl + O.
- Kuna iya fita fayil ɗin ta danna Ctrl + X.
- Bugu da kari, yakamata ku tura tashar jiragen ruwa don samar da dama ta nesa. Willungiyar zata taimaka don cim ma wannan aikin.
iptables -A INPUT -p tcp --dakatar da 5901 -j ACCEPT
. - Bayan shigar da shi, ajiye saitunan ta rubuce
iptables-ajiye
.
Mataki na 4: Tabbatar da Aikin VNC Server
Mataki na karshe shine tabbatar da sabar kayan aikin VNC da aka sanya kuma aka saita a aikace. Zamu yi amfani da ɗayan aikace-aikacen don sarrafa kwamfyutocin nesa don wannan. Muna ba da shawarar fahimtar kanku tare da shigarwa da ƙaddamarwa a ƙasa.
- Da farko, kuna buƙatar fara sabar da kanta ta shiga
abdukumar
. - Tabbatar da cewa tsari ya kammala daidai.
- Ci gaba da ƙara aikace-aikacen Remmina daga wurin manunin mai amfani. Don yin wannan, rubuta a cikin na'ura wasan bidiyo
sudo apt-add-mangaza ppa: remmina-ppa-team / remmina-gaba
. - Danna kan Shigar don ƙara sabon kunshin zuwa tsarin.
- Bayan an gama kafuwa, kuna buƙatar sabunta ɗakunan karatu na tsarin
sabar dacewa
. - Yanzu ya rage kawai don tattara sabon sigar shirin ta hanyar umarni
sudo ya dace kafa remmina remmina-plugin-rdp remmina-plugin-sirri
. - Tabbatar da aiki don shigar da sabbin fayiloli.
- Kuna iya fara Remmina ta cikin menu ta danna kan alamar da ta dace.
- Anan ya rage kawai don zaɓar fasaha ta VNC, rajistar adireshin IP da ake so kuma haɗa zuwa tebur.
Tabbas, don haɗawa ta wannan hanyar, mai amfani yana buƙatar sanin adireshin IP na waje na kwamfuta ta biyu. Don ƙayyade wannan, akwai sabis na kan layi na musamman ko ƙarin kayan amfani da aka ƙara Ubuntu. Za ku sami cikakkun bayanai game da wannan batun a cikin aikin hukuma daga masu haɓaka OS.
Yanzu kun saba da duk matakan asali waɗanda kuke buƙatar aiwatarwa don sanyawa da saita sabar VNC don rarraba Ubuntu akan kwaswar Gnome.