{"id":1447,"date":"2013-01-08T12:54:36","date_gmt":"2013-01-08T06:54:36","guid":{"rendered":"http:\/\/notes.norfolks.org\/?p=1447"},"modified":"2013-01-08T12:57:31","modified_gmt":"2013-01-08T06:57:31","slug":"%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-vnc-%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80%d0%b0-%d0%b2-ubuntu","status":"publish","type":"post","link":"https:\/\/notes.norfolks.fun\/?p=1447","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 VNC-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 Ubuntu"},"content":{"rendered":"<p>\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f VNC \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b, \u0438 \u0432\u0441\u0435 \u0432\u0430\u0448\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043c\u044b\u0448\u0438 \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043e\u0442\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435. \u041a\u0430\u043a \u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c VNC \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 Ubuntu? \u042d\u0442\u043e \u0437\u0430\u0439\u043c\u0435\u0442 \u0432\u0441\u0435\u0433\u043e-\u043b\u0438\u0448\u044c \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<br \/>\n\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0438 \u0432 \u043d\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c:\t<\/p>\n<pre lang=\"bash\">sudo apt-get install vnc4server xinetd<\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u0432\u0435\u0436\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre lang=\"bash\">vnc4server<\/pre>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044c. \u0412\u0432\u0435\u0434\u044f \u0435\u0433\u043e \u0434\u0432\u0430\u0436\u0434\u044b, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 <code>New 'insider:2 (localhost)' desktop is insider:2<\/code>, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e vnc \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u043c tty. \u0423 \u0432\u0430\u0441 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043f\u0430\u043f\u043a\u0430 .vnc, \u0437\u0430\u0439\u0442\u0438 \u0432 \u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a <\/p>\n<pre lang=\"bash\">cd ~\/.vnc<\/pre>\n<p>\u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c vnc \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<pre lang=\"bash\">vnc4server -kill :2<\/pre>\n<p>2 &#8212; \u0446\u0438\u0444\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u043b\u0430 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435.<\/p>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <code>.vnc\/xstartup<\/code> \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043b\u044e\u0431\u0438\u043c\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<pre lang=\"sh\">#!\/bin\/sh\r\n# Uncomment the following two lines for normal desktop:\r\n \r\nunset SESSION_MANAGER\r\nexec \/etc\/X11\/xinit\/xinitrc\r\n \r\n[ -x \/etc\/vnc\/xstartup ] && exec \/etc\/vnc\/xstartup\r\n \r\n[ -r $HOME\/.Xresources ] && xrdb $HOME\/.Xresources\r\n \r\n#xsetroot -solid grey\r\n#vncconfig -iconic &\r\n#xterm -geometry 80x24+10+10 -ls -title \"$VNCDESKTOP Desktop\" &\r\n \r\nx-window-manager &\r\n<\/pre>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0444\u0430\u0439\u043b <code>\/etc\/X11\/xinit\/xinitrc<\/code>:<\/p>\n<pre lang=\"bash\">sudo chmod 755 \/etc\/X11\/xinit\/xinitrc<\/pre>\n<p>\u0438 \u0441\u043d\u043e\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<pre lang=\"bash\">vnc4server<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0430\u0448\u0435\u043c\u0443 vnc \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e vncclient. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 Remote Desktop Viewer.<\/p>\n<p>P.S. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\u0435 \u043f\u043e\u0440\u0442\u044b 5900-5906. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u0442\u0443 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0441\u0435\u0439\u0447\u0430\u0441 vnc:<\/p>\n<pre lang=\"bash\">netstat -tulpen | grep 590\r\n\r\ninsider@localhost:~$ netstat -tulpen | grep 590\r\n(Not all processes could be identified, non-owned process info\r\n will not be shown, you would have to be root to see it all.)\r\ntcp        0      0 0.0.0.0:5902              0.0.0.0:*               LISTEN      0          4425        -   \r\n<\/pre>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0443 \u043c\u0435\u043d\u044f vnc \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u043d\u0430 5902 \u043f\u043e\u0440\u0442\u0443, \u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043a \u043d\u0435\u043c\u0443 \u043f\u043e\u0434\u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u044c\u0441\u044f \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 127.0.0.1:5902<br \/>\n \u0412 \u0432\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 127.0.0.1 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0430\u0448 ip, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043f\u043e\u0440\u0442.<\/p>\n<p><a href=\"http:\/\/www.prolinux.org\/content\/ustanovka-vnc-servera-v-ubuntu.php\">http:\/\/www.prolinux.org\/content\/ustanovka-vnc-servera-v-ubuntu.php<\/a><\/p>\n<p>\u041f\u0430\u0440\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432:<\/p>\n<p><strong>Ubuntu 12.04 Desktop:<\/strong><\/p>\n<pre lang=\"bash\">#!\/bin\/sh\r\n\r\n# Uncomment the following two lines for normal desktop:\r\nunset SESSION_MANAGER\r\n#exec \/etc\/X11\/xinit\/xinitrc\r\ngnome-session --session=ubuntu-2d &\r\n\r\n[ -x \/etc\/vnc\/xstartup ] && exec \/etc\/vnc\/xstartup\r\n[ -r $HOME\/.Xresources ] && xrdb $HOME\/.Xresources\r\nxsetroot -solid grey\r\nvncconfig -iconic &\r\n#x-terminal-emulator -geometry 1280x1024+10+10 -ls -title \"$VNCDESKTOP Desktop\" & \r\n#x-window-manager &<\/pre>\n<p><strong>Ubuntu 12.04 Server:<\/strong><\/p>\n<pre lang=\"bash\">#!\/bin\/sh\r\n\r\n# Uncomment the following two lines for normal desktop:\r\nunset SESSION_MANAGER\r\n#exec \/etc\/X11\/xinit\/xinitrc\r\ngnome-session --session=gnome-classic &\r\n\r\n[ -x \/etc\/vnc\/xstartup ] && exec \/etc\/vnc\/xstartup\r\n[ -r $HOME\/.Xresources ] && xrdb $HOME\/.Xresources\r\nxsetroot -solid grey\r\nvncconfig -iconic &\r\n#x-terminal-emulator -geometry 1280x1024+10+10 -ls -title \"$VNCDESKTOP Desktop\" &\r\n#x-window-manager &<\/pre>\n<p><a href=\"http:\/\/marcecaro.blogspot.ru\/2012\/06\/install-vnc-server-in-ubuntu-1204-lts.html\">http:\/\/marcecaro.blogspot.ru\/2012\/06\/install-vnc-server-in-ubuntu-1204-lts.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f VNC \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b, \u0438 \u0432\u0441\u0435 \u0432\u0430\u0448\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043c\u044b\u0448\u0438 \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043e\u0442\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435. \u041a\u0430\u043a \u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c VNC \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 Ubuntu? \u042d\u0442\u043e \u0437\u0430\u0439\u043c\u0435\u0442 \u0432\u0441\u0435\u0433\u043e-\u043b\u0438\u0448\u044c \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e &hellip; <a href=\"https:\/\/notes.norfolks.fun\/?p=1447\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,8],"tags":[],"class_list":["post-1447","post","type-post","status-publish","format-standard","hentry","category-linux","category-8"],"_links":{"self":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1447"}],"version-history":[{"count":3,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1447\/revisions"}],"predecessor-version":[{"id":1449,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1447\/revisions\/1449"}],"wp:attachment":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}