I-Virtual Network Computing (VNC) uhlelo lokuhlinzeka ngokufinyelela okukude kudeskithophu yekhompyutha. Izithombe zesikrini zidluliselwa ngenethiwekhi, izinkinobho zegundane nezinkinobho zekhibhodi kuyacindezelwa. Kuhlelo lokusebenza lobuntu, uhlelo olishiwo lufakiwe endaweni yokugcina esemthethweni, futhi kuphela lapho-ke inqubo yendawo kanye nokumiswa okunemininingwane kwenzeka.
Faka iseva ye-VNC ku-Ubuntu
Njengoba kuzinguqulo zakamuva ze-Ubuntu igobolondo le-Gnome elizenzakalelayo lifakiwe, sizofaka futhi silungiselele i-VNC ngokususelwa kule ndawo. Ukuze kube lula, sizohlukanisa yonke inqubo ibe yizinyathelo ezilandelanayo, ngakho-ke akufanele ube nobunzima bokuqonda ukulungiswa kwethuluzi elinentshisekelo.
Isinyathelo 1: Faka izimfanelo
Njengoba kushiwo ngaphambili, sizosebenzisa okusemthethweni. Kunohlobo lwakamuva futhi oluzinze kakhulu kwiseva yeVNC. Zonke izenzo zenziwa ngokusebenzisa ikhonsoli, ngakho-ke kufanele uqale ngokuqala kwayo.
- Iya kumenyu uvule "Isiginali". Kukhona i-hotkey I-Ctrl + Alt + Tokuvumela ukuthi ukwenze ngokushesha.
- Faka izibuyekezo kuyo yonke imitapo yolwazi ngo
ukuvuselelwa kwesudo
. - Faka iphasiwedi ukuhlinzeka ukufinyelela kwezimpande.
- Ekugcineni kufanele ubhalise iqembu
sudo apt-get ukufaka - Akufaki-faka-ubuntu-desktop gnome-pan-gnome-izilungiselelo-daemon metacity nautilus gnome-terminal vnc4server
bese uqhafaza Ngena. - Qinisekisa ukungeza amafayela amasha ohlelweni.
- Lindela ukufakwa nokwengeza ukuze uqede ngaphambi kokuvela komugqa omusha wokufaka.
Manje ku-Ubuntu kukhona zonke izinto ezidingekayo, kuhlala kungukuqinisekisa umsebenzi wabo nokulungiswa ngaphambi kokuqala ideskithophu elikude.
Isinyathelo 2: Ukuqala kokuqala kwe-VNC-server
Ngesikhathi sekwethulwa kokuqala kwethuluzi, amapharamitha asemqoka asetwa, futhi kuphela lapho kuqala ideskithophu. Kufanele uqiniseke ukuthi konke kusebenza kahle, futhi ungakwenza ngale ndlela:
- Kwikhonsoli, bhala umyalo
vncserver
unesibopho sokuqala iseva. - Uzocelwa ukuthi usethe iphasiwedi yamadeski akho. Lapha kufanele ufake noma yikuphi ukuhlanganiswa kwezinhlamvu, kepha kungabi ngaphansi kwesihlanu. Uma uthayipha, izinhlamvu ngeke ziboniswe.
- Qinisekisa iphasiwedi ngokufaka futhi.
- Uzokwaziswa ukuthi iskripthi sokuqala sakhiwe futhi ideskithophu entsha sha isiqalile umsebenzi wayo.
Isinyathelo 3: Ukulungiselela iseva ye-VNC ngokusebenza okugcwele
Uma ngabe kusinyathelo esedlule senze isiqiniseko nje sokuthi izinto ezifakiwe ziyasebenza, manje sidinga ukuzilungiselela ukwenza uxhumano olukude kudeskithophu lenye ikhompyutha.
- Okokuqala qeda ideskithophu esebenzayo ngomyalo
i-vncserver -kill: 1
. - Okulandelayo, sebenzisa ifayela lokucushwa ngokusebenzisa isihleli sombhalo esakhelwe ngaphakathi. Ukuze wenze lokhu, ngena
nano ~ / .vnc / xstartup
. - Qiniseka ukuthi ifayela linayo yonke imigqa ekhonjiswe ngezansi.
#! / bin / sh
# Vula imigqa emibili elandelayo yedeskithophu evamile:
# okungasebenzi SESSION_MANAGER
# ukwenziwa / njll / X11 / xinit / xinitrc[-x / etc / vnc / xstartup] && exec / etc / vnc / xstartup
[-r $ HOME / .Xresource] && xrdb $ IKHAYA / .Imithombo
xsetroot -solid grey
I-vncconfig -iconic &
x-terminal-emulator -geometry 80x24 + 10 + 10 -ls -title "$ VNCDESKTOP Desktop" &
x-iwindi-umphathi &Iphaneli ye-gnome &
gnome-izilungiselelo-daemon &
metacity &
i-nautilus & - Uma wenze noma yiziphi izinguquko, gcina amasethingi ngokucindezela ukhiye I-Ctrl + O.
- Ungaphuma ifayela ngokuchofoza kulo I-Ctrl + X.
- Ngaphezu kwalokho, kufanele futhi uhambise amachweba ukuze unikeze ukufinyelela okukude. Iqembu lizosiza ukufeza lo msebenzi.
iptables -A INPUT -p tcp --dport 5901 -j ACCEPT
. - Ngemuva kokuyifaka, gcina izilungiselelo ngokubhala
gcina amathebula
.
Isinyathelo 4: Qinisekisa Ukusebenza Kweseva ye-VNC
Isinyathelo sokugcina ukuqinisekisa iseva ye-VNC efakiwe neyamisiwe isebenza. Sizosebenzisa isicelo esisodwa sokuphatha ama-desktops akude kulokhu. Siphakamisa ukuthi uzijwayeze ukufakwa kwawo futhi wethule ngezansi.
- Okokuqala, udinga ukuqala iseva ngokwayo ngokungena
vncserver
. - Qinisekisa ukuthi inqubo isiqede kahle.
- Qhubeka ukwengeza uhlelo lwe-Remmina kusuka endaweni yokugcina yomsebenzisi. Ukuze wenze lokhu, thayipha ikhonsoli
i-sudo apt-add-reptipory ppa: i-remmina-ppa-iqembu / i-remmina-elandelayo
. - Qhafaza Ngena ukufaka amaphakheji amasha ohlelweni.
- Ngemuva kokufaka kuqediwe, udinga ukubuyekeza imitapo yolwazi yohlelo
ukuvuselelwa kwesudo
. - Manje kusahlala kuphela ukuqoqa inguqulo yakamuva yohlelo ngomyalo
sudo apt faka i-remmina remmina-plugin-rdp remmina-plugin-imfihlo
. - Qinisekisa ukusebenza ukufaka amafayela amasha.
- Ungaqala i-Remmina ngemenyu ngokuchofoza isithonjana esihambelanayo.
- Lapha kuhlala kuphela ukukhetha ubuchwepheshe be-VNC, ubhalise ikheli le-IP olifunayo bese uxhuma kwideskithophu.
Vele, ukuxhuma ngale ndlela, umsebenzisi udinga ukwazi ikheli langaphandle le-IP lekhompyutha yesibini. Ukunquma lokhu, kunezinsizakalo ezikhethekile eziku-inthanethi noma ezinye izinsiza ezingezwe ku-Ubuntu. Uzothola imininingwane enemininingwane ngalesi sihloko kumibhalo esemthethweni evela kubathuthukisi be-OS.
Manje usujwayele zonke izinyathelo eziyisisekelo okudingeka uzenze ukufaka futhi ulungiselele iseva ye-VNC yokusatshalaliswa kuka-Ubuntu kwigobolondo le-Gnome.