Virtual Network Computing (VNC) ndi njira yoperekera mwayi wakutali pakompyuta ya kompyuta. Chithunzithunzi chimafalitsidwa kudzera pa netiweki, mabatani a mbewa ndi makiyi a kiyibodi akukanikizidwa. Munjira yoyendetsera Ubuntu, kachitidwe kamatchulidwe kamaikidwako kaikidwe ka boma, pokhapokha njira ya mawonekedwe ndi makonzedwe atsatanetsatane amachitika.
Ikani seva ya VNC ku Ubuntu
Popeza m'matembenuzidwe aposachedwa a Ubuntu ndiye kuti chipolopolo cha Gnome chosakhazikika chakhazikitsidwa, tidzakhazikitsa ndikusintha VNC potengera chilengedwe. Kuti zitheke, tidzagawa dongosolo lonselo m'njira zotsatizana, chifukwa chake simuyenera kuvutika kusintha kusintha kwa chida chosangalatsira.
Gawo 1: Khazikitsani Prerequisites
Monga tanena kale, tigwiritsa ntchito posungira boma. Pali mtundu waposachedwa kwambiri komanso wosasunthika wa seva ya VNC. Zochita zonse zimachitidwa kudzera mu kutonthoza, kotero muyenera kuyamba ndi kukhazikitsa kwake.
- Pitani ku menyu ndipo mutsegule "Pokwelera". Pali hotkey Ctrl + Alt + Tzomwe zimakupatsani mwayi wochita izi mwachangu.
- Ikani zosintha zamalaibulale onse a dongosolo
kukonda kwambiri
. - Lowetsani mawu achinsinsi kuti mupeze mizu.
- Mapeto muyenera kulembetsa timu
sudo apt-get windows
ndipo dinani Lowani. - Tsimikizani kuwonjezera mafayilo atsopano ku makina.
- Yembekezani kukhazikitsa ndi kuwonjezera kuti mutsirize mzere wanu watsopano usanachitike.
Tsopano ku Ubuntu pali zinthu zonse zofunika, zimangotsimikizira kokha ntchito yawo ndikusintha musanayambe desktop yakutali.
Gawo 2: Kuyamba koyamba kwa VNC-seva
Pakutsegulira koyamba kwa chida, magawo akulu amakhazikitsidwa, ndipo pokhapokha desktop imayamba. Muyenera kuwonetsetsa kuti zonse zikuyenda bwino, ndipo mutha kuchita izi:
- Mulimonsemo, lembani lamulo
vncserver
udindo woyambitsa seva. - Muyenera kufunsa kuti musankhe achinsinsi pa desiki yanu. Apa muyenera kulowa zilembo zilizonse, koma zosachepera zisanu. Mukamalemba, zilembo siziziwonetsedwa.
- Tsimikizani mawu achinsinsi polowetsanso.
- Mudziwitsidwa kuti script yoyambira idapangidwa ndipo desktop yatsopano idayamba ntchito.
Gawo 3: Kukhazikitsa Server ya VNC Yogwira Ntchito Yonse
Ngati m'mbuyomu tidangowonetsetsa kuti zida zomwe zayikidwa zikugwira ntchito, tsopano tikuyenera kuzikonzekera popanga kulumikizana kwakutali ndi kompyuta ya kompyuta ina.
- Choyamba malizitsani kukonza desktop ndikukhala ndi lamulo
vncserver -menya: 1
. - Kenako, yendetsani fayilo yosinthira kudzera pazosintha zolemba. Kuti muchite izi, lowetsani
nano ~ / .vnc / xstartup
. - Onetsetsani kuti fayilo ili ndi mizere yonse yomwe ili pansipa.
#! / bin / sh
# Vomerezani mizere iwiri ili pakompyuta yachilendo:
# sanayikitse SESSION_MANAGER
# exec / etc / X11 / xinit / xinitrc[-x / etc / vnc / xstartup] && exec / etc / vnc / xstartup
[-r $ HOME / .Xresource] && xrdb $ HOME / .Xresource
xsetroot - kuphatikiza imvi
vncconfig -ononic &
x-terminal-emulator -geometry 80x24 + 10 + 10 -ls -title "$ VNCDESKTOP Desktop" &
x -windo-woyang'anira &gnome-gulu &
makonzedwe a gnome
metacity &
nautilus & - Ngati mwasintha, sungani zosintha ndikanikizira fungulo Ctrl + O.
- Mutha kutuluka mufayilo podina Ctrl + X.
- Kuphatikiza apo, muyenera kutumizanso madoko kuti mupereke mwayi wakutali. Gululi lithandizira kukwaniritsa ntchitoyi.
iptables -A INPUT --p tcp --dport 5901 -j ACCEPT
. - Mukamalowetsa iwo, sungani zoikazo polemba
ipt-kusunga
.
Gawo 4: Onetsetsani Kuti Mukugwira Ntchito pa Server ya VNC
Gawo lomaliza ndikutsimikizira seva ya VNC yokhazikitsidwa ndikuchita. Tidzagwiritsa ntchito imodzi mwazomwe tikugwiritsa ntchito posungira ma desktops akutali pa izi. Tikukulimbikitsani kuti muzidziwiratu ndi kukhazikitsa ndi kukhazikitsa pansipa.
- Choyamba, muyenera kuyambitsa seva yomwe pakulowa
vncserver
. - Tsimikizani kuti njirayi yakwanira bwino.
- Pitilizani kuwonjezera pulogalamu ya Remmina kuchokera pazosunga. Kuti muchite izi, lembani mu cholembera
sudo apt-add-repository ppa: remmina-ppa-timu / remmina-wotsatira
. - Dinani Lowani kuwonjezera phukusi latsopano ku kachitidwe.
- Pambuyo kukhazikitsa kwathunthu, muyenera kusinthira malaibulale a dongosolo
zosintha mwachikondi
. - Tsopano zikungotengera pulogalamu yamakono mwalamulo
sudo apt remmina remmina-plugin-rdp remmina-plugin-chinsinsi
. - Tsimikizani kuti ntchitoyi ikhazikitsa mafayilo atsopano.
- Mutha kuyambitsa Remmina kudzera pamenyu podina pazomwe zikugwirizana.
- Apa zikungosankha ukadaulo wa VNC, kulembetsa adilesi ya IP yoyenera ndikulumikiza pa desktop.
Zachidziwikire, kuti mulumikizane motere, wosuta ayenera kudziwa adilesi yakunja ya IP ya kompyuta yachiwiri. Kuti muwone izi, pali ntchito zapadera za pa intaneti kapena zowonjezera zowonjezeredwa ku Ubuntu. Mupeza zambiri pamutuwu mu zolembedwa zovomerezeka za opanga OS.
Tsopano mukudziwa zofunikira zonse zomwe muyenera kuchita kuti mukhazikitse ndikusintha seva ya VNC yogawa Ubuntu pagulu la Gnome.