{"id":393354,"date":"2024-06-29T10:57:40","date_gmt":"2024-06-29T10:57:40","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=393354"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=393354","title":{"rendered":"<span>\u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f X11<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/574742\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/wc\/wp\/qb\/wcwpqb-pcumalfntuw_9isd2jfo.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/wc\/wp\/qb\/wcwpqb-pcumalfntuw_9isd2jfo.jpeg\" data-blurred=\"true\"\/><\/div>\n<p><\/a><br \/>  \u0415\u0441\u0442\u044c \u0434\u0432\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0432 \u0418\u0422, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u043b\u0438 \u0438\u0441\u0447\u0435\u0437\u043d\u0443\u0442\u044c \u043d\u0430 \u0440\u0443\u0431\u0435\u0436\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0432\u0435\u043a\u0430, \u043d\u043e \u0438\u0445 \u0436\u0438\u0432\u0443\u0447\u0435\u0441\u0442\u044c \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0440\u0430\u0437 \u0437\u0430 \u0440\u0430\u0437\u043e\u043c \u043e\u0442\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0438\u0445 \u0443\u0445\u043e\u0434 \u0441\u043e \u0441\u0446\u0435\u043d\u044b. \u0420\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e\u0431 IPv4 \u0438 X11. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0430\u0441\u043f\u0435\u043a\u0442\u0430\u0445 \u0443\u0441\u0442\u0443\u043f\u0430\u0435\u0442 IPv6, \u0442\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u00a0Wayland, \u043a\u0430\u043a \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043d\u0430\u0434 X11 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b \u043d\u0435 \u0432\u0441\u0435\u043c. Wayland \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u0435\u043d, \u043a\u0430\u043a X Windows System, \u043e\u043d \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442. \u042d\u0442\u043e \u0434\u0430\u0435\u0442 \u0435\u043c\u0443 \u0440\u044f\u0434 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0438\u043a\u0441\u0430\u043c\u0438, \u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u0436\u0435 \u043a\u0440\u043e\u044e\u0442\u0441\u044f \u0435\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u0445, \u0442\u043e \u044d\u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0434\u043e\u043b\u0433\u043e\u0436\u0434\u0430\u043d\u043d\u043e\u0435 \u0438\u0437\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0440\u0435\u0434\u044b Linux \u043e\u0442 \u0442\u0430\u043a\u0438\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0438, \u043a\u0430\u043a \u0440\u0430\u0437\u0440\u044b\u0432\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, a\u2024 k\u2024 a\u2024\u00a0tearing. \u0421 \u044d\u0442\u0438\u043c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0438 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442 NVidia. \u0425\u0432\u0430\u0442\u0430\u0435\u0442 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u043e\u0432 \u0438 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0438 \u0437\u0430\u043c\u0435\u043d\u044b X-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430\u043f\u0438\u0440\u0430\u044e\u0442 \u043d\u0430 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u0445.<a name=\"habracut\"><\/a><\/p>\n<blockquote><p>As mentioned, X is essentially a networking protocol with graphical displaying capabilities.<\/p><\/blockquote>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 X11 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438, \u0430\u00a0\u043d\u0435 <a href=\"https:\/\/tldp.org\/HOWTO\/XWindow-User-HOWTO\/xsecurity.html\">\u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442<\/a>. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432 \u0441\u043a\u043e\u0440\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u044b Linux \u043f\u0435\u0440\u0435\u0439\u0434\u0443\u0442 \u043d\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b Wayland, \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f X \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0443\u0434\u0443\u0442 \u0432\u043e\u0441\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u044b \u0435\u0449\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0438 \u0441\u0435\u0441\u0441\u0438\u044f\u043c\u00a0<a href=\"http:\/\/x.org\/\">X.Org<\/a>\u00a0&#8212; \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 X Window System, \u043e\u0434\u043d\u0430 \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<h2><font color=\"#3AC1EF\">\u258d \u0421\u0435\u0442\u0435\u0432\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 X-\u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/font><\/h2>\n<p>  \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u043c IPC, \u0442\u2024 \u0435\u2024 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438, X-\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 X-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043e\u043a\u0435\u0442\u044b. \u0418\u0445 \u0440\u043e\u043b\u044c \u0432 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 API \u0441\u0432\u044f\u0437\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 TCP\/IP, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u043a\u0435\u0442\u043e\u0432 \u0434\u043e\u043c\u0435\u043d\u0430 Unix. \u041f\u043e\u043c\u0438\u043c\u043e \u0441\u043e\u043a\u0435\u0442\u043e\u0432 \u043a\u043b\u0438\u0435\u043d\u0442 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u044b\u0435 \u043a\u0430\u043d\u0430\u043b\u044b IPC, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440\u00a0MIT Shared Memory Extension.<\/p>\n<p>  \u0414\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u043e\u043a\u0435\u0442\u044b Unix (\u043e\u0442 \u0430\u043d\u0433\u043b. Unix Domain Sockets, UDS) \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f POSIX-\u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c IPC, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u041e\u0421 \u043c\u043e\u0433\u0443\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c. \u0422\u0430\u043a\u0438\u0435 \u0441\u043e\u043a\u0435\u0442\u044b \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0435\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 TCP\/IP \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u0430\u0439\u0442\u043e\u0432 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430. \u041f\u043e\u0434\u043e\u0431\u043d\u043e \u0441\u043e\u043a\u0435\u0442\u0430\u043c TCP\/IP, \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u043e\u043a\u0435\u0442\u044b Unix \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u043d\u0430\u0434\u0451\u0436\u043d\u0443\u044e \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0SOCK_STREAM. \u041e\u043d\u0438 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0439 ( \u0441\u043c\u2024\u00a0SOCK_SEQPACKET) \u0438 \u043d\u0435\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0439 ( \u0441\u043c\u2024\u00a0SOCK_DGRAM) \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u0442\u0430\u0433\u0440\u0430\u043c\u043c.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/hy\/ta\/un\/hytaunp3tm0giowbnenosipahl8.png\" data-src=\"https:\/\/habrastorage.org\/webt\/hy\/ta\/un\/hytaunp3tm0giowbnenosipahl8.png\"\/><\/div>\n<p>  <i><font color=\"#999999\">\u0420\u0438\u0441. 1 \u0421\u0435\u0442\u0435\u0432\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c X \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e UDS.<\/font><\/i><\/p>\n<p>  UDS \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u041e\u0421 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0451\u043d (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<code>\u00a0\/tmp\/my_xapp<\/code>), \u0441\u0430\u043c\u0438 \u0441\u043e\u043a\u0435\u0442\u044b \u0432 \u043d\u0435\u0439 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c\u00a0<i>inode<\/i>, \u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043a \u0441\u043e\u043a\u0435\u0442\u0430\u043c, \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u043a \u0444\u0430\u0439\u043b\u0443. \u041e\u0434\u043d\u0430\u043a\u043e \u043e\u0431\u043c\u0435\u043d \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0443\u0444\u0435\u0440\u044b \u043f\u0430\u043c\u044f\u0442\u0438 \u044f\u0434\u0440\u0430.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/fi\/n-\/hi\/fin-hiceduod9jydtus_yoaz3os.png\" data-src=\"https:\/\/habrastorage.org\/webt\/fi\/n-\/hi\/fin-hiceduod9jydtus_yoaz3os.png\"\/><\/div>\n<p>  <i><font color=\"#999999\">\u0420\u0438\u0441. 2 \u0421\u0435\u0442\u0435\u0432\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c X\u00a0\u043f\u043e\u0432\u0435\u0440\u0445 TCP\/IP.<\/font><\/i><\/p>\n<p>  \u0421\u043e\u043a\u0435\u0442\u044b TCP\/IP \u0438 UDS \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0CreateWellKnownSockets(). \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043d\u0430 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a\u00a0<code>_XSERVTransMakeAllCOTSServerListeners<\/code>. \u042d\u0442\u0430 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043f\u0440\u043e\u0431\u0435\u0433\u0430\u0435\u0442 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0430, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c.<\/p>\n<pre><code class=\"cs\">static Bool TryCreateSocket(int num, int *partial) {     char port[20];     snprintf(port, sizeof(port), \"%d\", num);  &lt;span class=\"hljs-keyword\" style=\"color: rgb(0, 0, 255);\">return&lt;\/span> (_XSERVTransMakeAllCOTSServerListeners(port, partial,     &amp;ListenTransCount,     &amp;ListenTransConns) >= &lt;span class=\"hljs-number\" style=\"color: rgb(0, 128, 0);\">0&lt;\/span>);  }<\/code><\/pre>\n<p>  \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0430\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043e\u0439 <code>NUMTRANS <\/code>\u0432 \u0444\u0430\u0439\u043b\u0435 <code>X11\/Xtrans\/Xtrans.c.<\/code><\/p>\n<pre><code class=\"lisp\">#define NUMTRANS        (sizeof(Xtransports)\/sizeof(Xtransport_table))<\/code><\/pre>\n<p>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 <code>Xtransports[] <\/code>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0432 \u0442\u043e\u043c \u0436\u0435 \u0441\u0430\u043c\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 10 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c <code>NUMTRANS <\/code>\u2264 10.<\/p>\n<pre><code class=\"1c\">|admin@redeye:[~]> grep '{ &amp;TRANS' \/usr\/include\/X11\/Xtrans\/Xtrans.c     { &amp;TRANS(SocketTCPFuncs),   TRANS_SOCKET_TCP_INDEX },     { &amp;TRANS(SocketINET6Funcs), TRANS_SOCKET_INET6_INDEX },     { &amp;TRANS(SocketINETFuncs),  TRANS_SOCKET_INET_INDEX },     { &amp;TRANS(SocketLocalFuncs), TRANS_SOCKET_LOCAL_INDEX },     { &amp;TRANS(SocketUNIXFuncs),  TRANS_SOCKET_UNIX_INDEX },     { &amp;TRANS(LocalFuncs),       TRANS_LOCAL_LOCAL_INDEX },     { &amp;TRANS(PTSFuncs),         TRANS_LOCAL_PTS_INDEX },     { &amp;TRANS(NAMEDFuncs),       TRANS_LOCAL_NAMED_INDEX },     { &amp;TRANS(PIPEFuncs),        TRANS_LOCAL_PIPE_INDEX },     { &amp;TRANS(SCOFuncs),         TRANS_LOCAL_SCO_INDEX },<\/code><\/pre>\n<p>  \u0421\u0430\u043c\u0438 \u0436\u0435 \u0444\u043b\u0430\u0433\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b X \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432<code> xc\/config\/cf\/linux.cf<\/code>.<\/p>\n<pre><code class=\"vala\">#if HasDECnet # define ConnectionFlags    -DUNIXCONN -DTCPCONN -DDNETCONN # define ExtraLibraries        -ldnet #else # define ConnectionFlags    -DUNIXCONN -DTCPCONN #endif<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0434\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430<code> socket()<\/code> \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0442\u0430\u043a\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440.<\/p>\n<pre><code class=\"1c\">TRANS(MakeAllCOTSServerListeners)                  |                  v               +-------------------------+ +----->TRANS(OpenCOTSServer)+--->|TRANS(SocketSelectFamily)| |                |               |TRANS(SocketOpen)        | |                v               +-------+-----------------+ |           TRANS(Open)                  | |                |                       | |                v                       v +------+TRANS(ParseAddress)          socket()<\/code><\/pre>\n<p>  \u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441 \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>TRANS(CreateListener)<\/code> \u0438\u0437 <code>Xtrans.c<\/code>. \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<pre><code class=\"1c\">TRANS(MakeAllCOTSServerListeners)    |    v TRANS(CreateListener)    |    v TRANS(SocketCreateListener)    |    v bind()   <\/code><\/pre>\n<p>  \u0412 \u0444\u0430\u0439\u043b\u0435 <code>Xtransmit.h<\/code> \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c <code>X_TCP_PORT<\/code>. \u041f\u0435\u0440\u0432\u043e\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u0442 6000, \u0432\u0442\u043e\u0440\u043e\u0435 \u2014 6001 \u0438 \u0442\u2024 \u0434\u2024<\/p>\n<pre><code class=\"cs\">#define X_TCP_PORT    6000<\/code><\/pre>\n<h2><font color=\"#3AC1EF\">\u258d \u0412\u0437\u0433\u043b\u044f\u0434 \u0438\u0437\u043d\u0443\u0442\u0440\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c X<\/font><\/h2>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0443\u044e \u0438\u043a\u0441\u043e\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 <i>Xclock<\/i> \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043a\u0430\u043a \u0432\u0441\u0435 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435.<\/p>\n<pre><code class=\"perl\">|admin@redeye:[~]> DISPLAY=tcp\/192.168.10.10:0.0 strace -e trace=network -f xclock 2>&amp; 1  |grep -A3 TCP 1. socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 3 2. setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0 3. setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 4. connect(3, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr(\"192.168.10.10\")}, 16) = 0 <\/code><\/pre>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432\u044b\u0432\u043e\u0434\u0430 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 <code>socket()<\/code> \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0441\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0438 \u0432\u0435\u0440\u043d\u0443\u043b \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0434\u0435\u0441\u0442\u043a\u0440\u0438\u043f\u0442\u043e\u0440 3. \u0414\u0430\u043b\u0435\u0435, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 <code>setsockopt()<\/code> \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>TCP_NODELAY<\/code>, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c TCP \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u0441\u0435\u0442\u0438 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u043d\u0435\u0435, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u044d\u0442\u0438 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0430\u043b\u044b. \u0412 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043e\u043f\u044f\u0442\u044c \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f <code>setsockopt()<\/code> \u043d\u0430 \u044d\u0442\u043e \u0440\u0430\u0437 \u0434\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043e\u043f\u0446\u0438\u0438 <code>SO_KEEPALIVE<\/code>. \u0414\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0432 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u041d\u0430\u043a\u043e\u043d\u0435\u0446 \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432<code> connect()<\/code> \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442 X \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c, \u043f\u043e TCP \u043f\u043e\u0440\u0442\u0443 6000.<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 TCP \u043f\u043e\u0440\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441\u0432\u044f\u0437\u0430\u043d \u0441 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0438 \u043d\u043e\u043c\u0435\u0440\u043e\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <code>$DISPLAY<\/code>, \u0435\u0441\u043b\u0438 \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u043e\u0441\u044c <code>DISPLAY=tcp\/192.168.10.10:1.0<\/code>, \u0442\u043e \u0442\u043e\u0433\u0434\u0430 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 <code>connect()<\/code> \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u0431\u044b \u043f\u043e TCP \u043f\u043e\u0440\u0442\u0443 6001.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0440\u0443\u043a\u043e\u043f\u043e\u0436\u0430\u0442\u0438\u044f \u043e\u0431\u043c\u0435\u043d \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 X-\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u2014 <code>xConnClientPrefix<\/code>, \u0438 X-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u2014 <code>xConnSetupPrefix<\/code>, <code>XconnSetup<\/code>, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0432 \u0444\u0430\u0439\u043b\u0435<code> \/usr\/include\/X11\/Xproto.h<\/code>. \u0420\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0432 \u0431\u0430\u0439\u0442\u0430\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u0432 <code>#define<\/code> \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<pre><code class=\"objectivec\">#define sz_xConnClientPrefix 12 #define sz_xConnSetupPrefix 8 #define sz_xConnSetup 32 ... typedef struct {     CARD8       byteOrder;     BYTE        pad;     CARD16      majorVersion, minorVersion;     CARD16      nbytesAuthProto;        \/* Authorization protocol *\/     CARD16      nbytesAuthString;       \/* Authorization string *\/     CARD16      pad2; } xConnClientPrefix; ... typedef struct {     CARD8          success;     BYTE           lengthReason; \/*num bytes in string following if failure *\/     CARD16         majorVersion,                    minorVersion;     CARD16         length;       \/* 1\/4 additional bytes in setup info *\/ } xConnSetupPrefix;<\/code><\/pre>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ja\/ke\/zg\/jakezglilcvjunwklpebldtqcl8.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ja\/ke\/zg\/jakezglilcvjunwklpebldtqcl8.png\"\/><\/div>\n<p>  <i><font color=\"#999999\">\u0420\u0438\u0441. 3 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432 \u0441\u0435\u0441\u0441\u0438\u0438 X11.<\/font><\/i><\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0437\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430, \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 <i>Initial connection request<\/i> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u044b\u0437\u043e\u0432\u0443 <code>xConnClientPrefix<\/code>. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e<i> Initial connection reply<\/i> \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b <code>xConnSetupPrefix <\/code>\u0438 <code>xConnSetup<\/code>. \u0414\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Wireshark \u0438 \u0441\u043b\u0443\u0448\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043b\u0438\u0431\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <i>tcpdump<\/i>.<\/p>\n<pre><code class=\"java\">|root@redeye:[~]> tcpdump -i lo -vv not arp -w x11_trace.pcapng<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u0441\u0430\u043c \u0444\u0430\u0439\u043b \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0432 Wireshark \u0438 \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 <code>x11<\/code>. \u041e\u0431\u044b\u0447\u043d\u043e \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0443\u0436\u043d\u044b \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 root.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/oy\/-g\/2c\/oy-g2csosbqvjrbbwnzd1-d4syi.png\" data-src=\"https:\/\/habrastorage.org\/webt\/oy\/-g\/2c\/oy-g2csosbqvjrbbwnzd1-d4syi.png\"\/><\/div>\n<p>  <i><font color=\"#999999\">\u0420\u0438\u0441. 4 \u0421\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u043b\u0435\u0434 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f X11 \u0432 WireShark.<\/font><\/i><\/p>\n<p>  \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 tshark \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435. \u0422\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 X11 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<pre><code class=\"plaintext\">Frame 11: 134 bytes on wire (1072 bits), 134 bytes captured (1072 bits)     Encapsulation type: Ethernet (1)     ...     [Protocols in frame: eth:ethertype:ipv6:tcp:x11] Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)     Destination: 00:00:00_00:00:00 (00:00:00:00:00:00)         Address: 00:00:00_00:00:00 (00:00:00:00:00:00)     ... Internet Protocol Version 6, Src: ::1, Dst: ::1     0110 .... = Version: 6     ... Transmission Control Protocol, Src Port: 49202, Dst Port: 6010, Seq: 1, Ack: 1, Len: 48     Source Port: 49202     Destination Port: 6010     ... X11, Request, Initial connection request     byte-order: 0x6c (Little-endian)     unused     protocol-major-version: 11     protocol-minor-version: 0     authorization-protocol-name-length: 18     authorization-protocol-data-length: 16     unused     authorization-protocol-name: MIT-MAGIC-COOKIE-1<\/code><\/pre>\n<p>  \u041f\u0430\u043a\u0435\u0442 \u0441 \u043e\u0442\u0432\u0435\u0442\u043e\u043c \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b X-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0442\u0430\u043a \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u0435\u043d, \u0432 \u043d\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d.<\/p>\n<pre><code class=\"plaintext\"> Frame 13: 14698 bytes on wire (117584 bits), 14698 bytes captured (117584 bits)     Encapsulation type: Ethernet (1)     ...     [Protocols in frame: eth:ethertype:ipv6:tcp:x11] Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)     Destination: 00:00:00_00:00:00 (00:00:00:00:00:00)         Address: 00:00:00_00:00:00 (00:00:00:00:00:00)     ... Internet Protocol Version 6, Src: ::1, Dst: ::1     0110 .... = Version: 6     ... Transmission Control Protocol, Src Port: 6010, Dst Port: 49202, Seq: 1, Ack: 49, Len: 14612     Source Port: 6010     ... X11, Reply, Initial connection reply     success: 1     unused     protocol-major-version: 11     protocol-minor-version: 0     replylength: 3651     release-number: 12011000     resource-id-base: 0x0b200000     resource-id-mask: 0x001fffff     motion-buffer-size: 256     length-of-vendor: 20     maximum-request-length: 65535     number-of-screens-in-roots: 1     number-of-formats-in-pixmap-formats: 7     image-byte-order: 0x00 (LSBFirst)     bitmap-format-bit-order: 0x00 (LSBFirst)     bitmap-format-scanline-unit: 32     bitmap-format-scanline-pad: 32     min-keycode: 8     max-keycode: 255     unused     vendor: The X.Org Foundation     pixmap-format         pixmap-format     ...         pixmap-format     ...     screen         screen (000007a4: 1920 x 1080 x 24)             root: 0x000007a4             default_colormap: 0x00000020             white_pixel: 0x00ffffff             black_pixel: 0x00000000             current_input_masks: 0x00fa8033             width_in_pixels: 1920             height_in_pixels: 1080             width_in_millimeters: 451             height_in_millimeters: 254             min_installed_maps: 1             max_installed_maps: 1             root_visual: 0x00000021             backing_stores: 0x01             save_unders: False             root_depth: 24             allowed_depths_len: 7             depth-detail                 depth-detail                     depth: 24                     unused                     visualtypes-numbers: 576                     unused                     visualtype                         visualtype                 ...                         visualtype                 ...                         visualtype                 ... <\/code><\/pre>\n<h2><font color=\"#3AC1EF\">\u258d \u0423\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a X-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e ssh<\/font><\/h2>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u044f \u043e\u0442 \u0442\u0435\u043e\u0440\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 <i>X Window System<\/i> \u043a \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0443\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c X-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043f\u043e ssh.<\/p>\n<pre><code class=\"java\">|admin@redeye:[~]> ssh -X my.remote.host |admin@redeye:[~]> ssh -Y my.remote.host<\/code><\/pre>\n<p>  <\/p>\n<ol>\n<li>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <code>-X<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044e X11. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u043e\u0434\u043d\u0430\u043a\u043e \u0438\u0437-\u0437\u0430 <i>X11 SECURITY extension<\/i> \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 <code>-Y<\/code> \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441 \u0434\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0435\u0439 X11.<\/li>\n<li>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043f\u0430\u043a\u0435\u0442 <code>xauth<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b <code>~\/.Xauthority<\/code>y. \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0442\u043e \u0444\u0430\u0439\u043b \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 MAGIC COOKIE.<\/li>\n<\/ol>\n<p>  <\/p>\n<pre><code class=\"java\">|admin@redeye:[~]> xauth list host\/unix:0  MIT-MAGIC-COOKIE-1  00000000000000111111111111111111<\/code><\/pre>\n<p>  <\/p>\n<ol>\n<li>\u0418\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u043a\u0441\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c <i>xclock<\/i> \u043f\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c JAVA installer, \u0438\u043b\u0438 \u043c\u0430\u0441\u0442\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0435\u043a\u043e\u0435\u0439 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 CRM, \u0438\u043b\u0438 ERP \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0415\u0441\u043b\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043e\u043a\u043d\u043e <i>xclock<\/i>, \u0442\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 X-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043d\u0430\u0434\u043e.<\/li>\n<\/ol>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/we\/be\/vw\/webevwpbt_y6aacouyfkeiqnb4o.png\" data-src=\"https:\/\/habrastorage.org\/webt\/we\/be\/vw\/webevwpbt_y6aacouyfkeiqnb4o.png\"\/><\/div>\n<p>  <i><font color=\"#999999\">\u0420\u0438\u0441. 5 \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e xclock, \u0437\u043d\u0430\u0447\u0438\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0435 \u0438\u043a\u0441\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442.<\/font><\/i><\/p>\n<ol>\n<li>\u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u043b\u043e\u0433\u0438\u043d\u0430 \u043f\u043e ssh \u0431\u044b\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u043c\u0435\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <code>sudo su - <\/code>\u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0432 root, \u0442\u043e \u0442\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e DISPLAY. \u042d\u0442\u043e\u0433\u043e <i>\u043d\u0435 \u043d\u0430\u0434\u043e<\/i> \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438 \u0441\u0435\u0430\u043d\u0441 shell.<\/li>\n<\/ol>\n<p>  <\/p>\n<pre><code class=\"bash\">|admin@redeye:[~]> export DISPLAY=:0 echo $DISPLAY :0<\/code><\/pre>\n<p>  \u042f \u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043f\u043e \u043c\u0435\u0440\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0430\u043d\u0441 Wayland \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u043d\u043e\u0432\u043e\u043c \u0440\u0435\u043b\u0438\u0437\u0435 KDE Plasma, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0440\u0430\u0437\u043e\u043c, \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 <i>kde-apps-21.04.3<\/i> \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0448\u044c \u043d\u0430 Plasma-X11. \u0412 \u0447\u0435\u043c \u0431\u044b \u043d\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0438 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 Wayland, \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u0437\u0430\u0432\u0438\u0441\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 man, \u0445\u0430\u043e\u0442\u0438\u0447\u043d\u043e \u043f\u0440\u044b\u0433\u0430\u044e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0438\u0441\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u043c\u0435\u043d\u044e \u0438 \u0431\u043b\u0443\u0436\u0434\u0430\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440, \u0441\u0442\u0430\u0440\u044b\u0439 \u0438 \u0434\u043e\u0431\u0440\u044b\u0439 X Window System \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0438. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0442\u0430\u043a \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u043b\u0433\u043e.<\/p>\n<h2><font color=\"#3AC1EF\">\u258d \u0414\u043b\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/font><\/h2>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/xwindow.angelfire.com\/index.html\">X Window system internals<\/a><\/li>\n<li><a href=\"https:\/\/access.redhat.com\/solutions\/2355881\">Can&#8217;t start X11 applications after su&#8230;<\/a><\/li>\n<li><a href=\"https:\/\/access.redhat.com\/solutions\/971803\">Xterm cannot open display?<\/a><\/li>\n<li><a href=\"https:\/\/www.x.org\/releases\/current\/doc\/libX11\/libX11\/libX11.html\">Xlib \u2014 C Language X Interface<\/a><\/li>\n<\/ul>\n<p>  <a href=\"http:\/\/ruvds.com\/ru-rub?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=temujin&amp;utm_content=setevye_soedineniya_x11\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ou\/g5\/kh\/oug5kh6sjydt9llengsiebnp40w.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ou\/g5\/kh\/oug5kh6sjydt9llengsiebnp40w.png\"\/><\/a><\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/574742\/\"> https:\/\/habr.com\/ru\/articles\/574742\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/574742\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/wc\/wp\/qb\/wcwpqb-pcumalfntuw_9isd2jfo.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/wc\/wp\/qb\/wcwpqb-pcumalfntuw_9isd2jfo.jpeg\" data-blurred=\"true\"\/><\/div>\n<p><\/a><br \/>  \u0415\u0441\u0442\u044c \u0434\u0432\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0432 \u0418\u0422, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u043b\u0438 \u0438\u0441\u0447\u0435\u0437\u043d\u0443\u0442\u044c \u043d\u0430 \u0440\u0443\u0431\u0435\u0436\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0432\u0435\u043a\u0430, \u043d\u043e \u0438\u0445 \u0436\u0438\u0432\u0443\u0447\u0435\u0441\u0442\u044c \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0440\u0430\u0437 \u0437\u0430 \u0440\u0430\u0437\u043e\u043c \u043e\u0442\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0438\u0445 \u0443\u0445\u043e\u0434 \u0441\u043e \u0441\u0446\u0435\u043d\u044b. \u0420\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e\u0431 IPv4 \u0438 X11. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0430\u0441\u043f\u0435\u043a\u0442\u0430\u0445 \u0443\u0441\u0442\u0443\u043f\u0430\u0435\u0442 IPv6, \u0442\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u00a0Wayland, \u043a\u0430\u043a \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043d\u0430\u0434 X11 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b \u043d\u0435 \u0432\u0441\u0435\u043c. Wayland \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u0435\u043d, \u043a\u0430\u043a X Windows System, \u043e\u043d \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442. \u042d\u0442\u043e \u0434\u0430\u0435\u0442 \u0435\u043c\u0443 \u0440\u044f\u0434 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0438\u043a\u0441\u0430\u043c\u0438, \u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u0436\u0435 \u043a\u0440\u043e\u044e\u0442\u0441\u044f \u0435\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u0445, \u0442\u043e \u044d\u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0434\u043e\u043b\u0433\u043e\u0436\u0434\u0430\u043d\u043d\u043e\u0435 \u0438\u0437\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0440\u0435\u0434\u044b Linux \u043e\u0442 \u0442\u0430\u043a\u0438\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0438, \u043a\u0430\u043a \u0440\u0430\u0437\u0440\u044b\u0432\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, a\u2024 k\u2024 a\u2024\u00a0tearing. \u0421 \u044d\u0442\u0438\u043c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0438 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442 NVidia. \u0425\u0432\u0430\u0442\u0430\u0435\u0442 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u043e\u0432 \u0438 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0438 \u0437\u0430\u043c\u0435\u043d\u044b X-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430\u043f\u0438\u0440\u0430\u044e\u0442 \u043d\u0430 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u0445.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-393354","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/393354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=393354"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/393354\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=393354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=393354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=393354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}