Faka iServer ye-VNC ku-Ubuntu

Pin
Send
Share
Send

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.

  1. Iya kumenyu uvule "Isiginali". Kukhona i-hotkey I-Ctrl + Alt + Tokuvumela ukuthi ukwenze ngokushesha.
  2. Faka izibuyekezo kuyo yonke imitapo yolwazi ngoukuvuselelwa kwesudo.
  3. Faka iphasiwedi ukuhlinzeka ukufinyelela kwezimpande.
  4. Ekugcineni kufanele ubhalise iqembusudo apt-get ukufaka - Akufaki-faka-ubuntu-desktop gnome-pan-gnome-izilungiselelo-daemon metacity nautilus gnome-terminal vnc4serverbese uqhafaza Ngena.
  5. Qinisekisa ukungeza amafayela amasha ohlelweni.
  6. 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:

  1. Kwikhonsoli, bhala umyalovncserverunesibopho sokuqala iseva.
  2. Uzocelwa ukuthi usethe iphasiwedi yamadeski akho. Lapha kufanele ufake noma yikuphi ukuhlanganiswa kwezinhlamvu, kepha kungabi ngaphansi kwesihlanu. Uma uthayipha, izinhlamvu ngeke ziboniswe.
  3. Qinisekisa iphasiwedi ngokufaka futhi.
  4. 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.

  1. Okokuqala qeda ideskithophu esebenzayo ngomyaloi-vncserver -kill: 1.
  2. Okulandelayo, sebenzisa ifayela lokucushwa ngokusebenzisa isihleli sombhalo esakhelwe ngaphakathi. Ukuze wenze lokhu, ngenanano ~ / .vnc / xstartup.
  3. 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 &

  4. Uma wenze noma yiziphi izinguquko, gcina amasethingi ngokucindezela ukhiye I-Ctrl + O.
  5. Ungaphuma ifayela ngokuchofoza kulo I-Ctrl + X.
  6. Ngaphezu kwalokho, kufanele futhi uhambise amachweba ukuze unikeze ukufinyelela okukude. Iqembu lizosiza ukufeza lo msebenzi.iptables -A INPUT -p tcp --dport 5901 -j ACCEPT.
  7. Ngemuva kokuyifaka, gcina izilungiselelo ngokubhalagcina 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.

  1. Okokuqala, udinga ukuqala iseva ngokwayo ngokungenavncserver.
  2. Qinisekisa ukuthi inqubo isiqede kahle.
  3. Qhubeka ukwengeza uhlelo lwe-Remmina kusuka endaweni yokugcina yomsebenzisi. Ukuze wenze lokhu, thayipha ikhonsolii-sudo apt-add-reptipory ppa: i-remmina-ppa-iqembu / i-remmina-elandelayo.
  4. Qhafaza Ngena ukufaka amaphakheji amasha ohlelweni.
  5. Ngemuva kokufaka kuqediwe, udinga ukubuyekeza imitapo yolwazi yohleloukuvuselelwa kwesudo.
  6. Manje kusahlala kuphela ukuqoqa inguqulo yakamuva yohlelo ngomyalosudo apt faka i-remmina remmina-plugin-rdp remmina-plugin-imfihlo.
  7. Qinisekisa ukusebenza ukufaka amafayela amasha.
  8. Ungaqala i-Remmina ngemenyu ngokuchofoza isithonjana esihambelanayo.
  9. 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.

Pin
Send
Share
Send