Yuav ua li cas Siv VNC Lub Chaw Txuas Duab Quab Ua Haujlwm rau Linux

Commands, Syntax, thiab Cov Piv txwv

Tsab ntawv xov xwm no piav qhia seb yuav teeb tsa thiab siv tej thaj chaw deb desktop ntawm Linux siv VNC (Virtual Network Computing). VNC yog ib qho chaw ua haujlwm rau sab nrauv uas ua rau koj pib lub chaw puag ncig ntawm ib lub tshuab thiab siv los ntawm lwm cov computers los ntawm kev sib txuas Internet . Koj tuaj yeem tsim cov khoom lag luam uas yuav ua kom zoo thaum koj tshem, ces koj tuaj yeem ua haujlwm raws nraim qhov koj tawm thaum koj rov mus txuas ntxiv.

Qhov no yog ib qho tseem ceeb rau cov piv txwv thaum koj xav ua hauj lwm rau tib "desktop" los ntawm ntau qhov chaw, thiab nws siv tau los khiav lub chaw ua haujlwm ntawm cov neeg ua haujlwm uas koj tsis muaj kev nkag mus los lossis tsis muaj lub davhlau yaig (saib thiab ntaus keyboard). Txhua yam koj xav tau yog qhov kev sib txuas network.

Yog li nws ua haujlwm li cas? Koj yuav tsum nruab "nvcserver" rau ntawm lub tshuab neeg siv khoom (yog tias tsis tau txhim kho) thiab "nvcviewer" thiab tus neeg siv tshuab (saib realVNC rau qhov nrov version VNC software). Yuav kom tsis txhob muaj teeb meem kev siv hluav taws xob , nws yog ib lub tswv yim zoo uas yuav siv lub plhaub ruaj ntseg ssh los txuas ntawm koj lub tshuab "neeg saib" rau tus neeg rau zaub mov uas koj xav khiav qhov kev sib kho duab. PuTTY pob ua haujlwm zoo rau lub hom phiaj no.

Li ntawd, thawj kauj ruam yog tso tawm ib ssh siv Piv txwv PuTTY. Tom qab ntawd koj cav rau tus neeg rau zaub mov thiab sau:

vncserver Tshiab 'server1.org1.com:6 "(juser)' desktop yog server1.org1.com.6

Ua ntej koj khiav "vncserver" koj yuav tsum teev cov ntaub ntawv "xstartup" hauv ".vnc" directory, uas yuav tsum tau tsim hauv koj phau ntawv qhia tsev. Cov ntaub ntawv no muaj cov kev pib pib, xws li

# Execute ntau xstartup ntaub ntawv [-x / etc / vnc / xstartup] & & exec / etc / vnc / xstartup # Load .Xresources ntaub ntawv [-r $ HOME / .Xresources] && xrdb $ HOME / .Xresources # Khiav vncconfig helper rau pab kom cov ntawv teev cia kev sib txuas lus thiab kev tswj ntawm cov duab vncconfig -iconic & # Launch tus GNOME desktop exec gnome-kev sib kho &

Tam sim no ib tug "desktop" khiav ntawm tus neeg rau zaub mov uas tos kom pom ntawm koj lub computer. Koj tuaj yeem txuas rau nws li cas? Yog hais tias koj ntsia lub realVNC software los yog downloaded VNC tus tuav koj tau khiav no saib thiab sau tus neeg rau zaub mov thiab tso saib raws li hauv cov piv txwv no:

server1.org1.com:6

Tus saib xyuas software yuav nug koj txog lo lus zais. Thawj zaug koj siv VNC ntawm no neeg rau zaub mov koj sau tus password tshiab, uas yuav tau rua hauv lub .vnc sis. Tus password yog rau VNC sib txuas thiab tsis muaj feem xyuam rau koj tus neeg siv nyiaj rau tus neeg rau zaub mov. Tom qab lub sijhawm ua tsis zoo, tej zaum koj yuav raug hais kom nkag mus rau koj tus password (account password) nrog rau kev tso cai rau tus neeg siv khoom.

Thaum tus password tau txais lub qhov rais duab yuav tsum tshwm sim nrog tag nrho cov kev teev cia graphical user interface hais. Koj tuaj yeem disconnect ntawm lub desktop los kaw qhov rais desktop.

Koj tuaj yeem foob kev VNC tus neeg siv cov txheej txheem ("desktop") los ntawm kev nkag mus hauv cov lus hais hauv qab no hauv lub qhov rai khib ntawm tus neeg rau zaub mov:

vncserver -keeg:

Piv txwv li:

vncserver -kwm: 6 export geometry = 1920x1058

Nyob qhov twg "1920" yog qhov dav qhov xav tau thiab "1058" qhov siab yam ntawm qhov rais duab. Nws yog qhov zoo tshaj plaws los ua kom nws phim lub sijhawm daws teeb meem ntawm koj npo.

Saib MobaXterm kom yooj yim rau siv tej thaj chaw deb duab lwm qhov