Ikani Server ya VNC ku Ubuntu

Pin
Send
Share
Send

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.

  1. Pitani ku menyu ndipo mutsegule "Pokwelera". Pali hotkey Ctrl + Alt + Tzomwe zimakupatsani mwayi wochita izi mwachangu.
  2. Ikani zosintha zamalaibulale onse a dongosolokukonda kwambiri.
  3. Lowetsani mawu achinsinsi kuti mupeze mizu.
  4. Mapeto muyenera kulembetsa timusudo apt-get windowsndipo dinani Lowani.
  5. Tsimikizani kuwonjezera mafayilo atsopano ku makina.
  6. 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:

  1. Mulimonsemo, lembani lamulovncserverudindo woyambitsa seva.
  2. Muyenera kufunsa kuti musankhe achinsinsi pa desiki yanu. Apa muyenera kulowa zilembo zilizonse, koma zosachepera zisanu. Mukamalemba, zilembo siziziwonetsedwa.
  3. Tsimikizani mawu achinsinsi polowetsanso.
  4. 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.

  1. Choyamba malizitsani kukonza desktop ndikukhala ndi lamulovncserver -menya: 1.
  2. Kenako, yendetsani fayilo yosinthira kudzera pazosintha zolemba. Kuti muchite izi, lowetsaninano ~ / .vnc / xstartup.
  3. 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 &

  4. Ngati mwasintha, sungani zosintha ndikanikizira fungulo Ctrl + O.
  5. Mutha kutuluka mufayilo podina Ctrl + X.
  6. Kuphatikiza apo, muyenera kutumizanso madoko kuti mupereke mwayi wakutali. Gululi lithandizira kukwaniritsa ntchitoyi.iptables -A INPUT --p tcp --dport 5901 -j ACCEPT.
  7. Mukamalowetsa iwo, sungani zoikazo polembaipt-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.

  1. Choyamba, muyenera kuyambitsa seva yomwe pakulowavncserver.
  2. Tsimikizani kuti njirayi yakwanira bwino.
  3. Pitilizani kuwonjezera pulogalamu ya Remmina kuchokera pazosunga. Kuti muchite izi, lembani mu cholemberasudo apt-add-repository ppa: remmina-ppa-timu / remmina-wotsatira.
  4. Dinani Lowani kuwonjezera phukusi latsopano ku kachitidwe.
  5. Pambuyo kukhazikitsa kwathunthu, muyenera kusinthira malaibulale a dongosolozosintha mwachikondi.
  6. Tsopano zikungotengera pulogalamu yamakono mwalamulosudo apt remmina remmina-plugin-rdp remmina-plugin-chinsinsi.
  7. Tsimikizani kuti ntchitoyi ikhazikitsa mafayilo atsopano.
  8. Mutha kuyambitsa Remmina kudzera pamenyu podina pazomwe zikugwirizana.
  9. 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.

Pin
Send
Share
Send