{"id":287350,"date":"2018-08-16T14:07:19","date_gmt":"2018-08-16T10:07:19","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=287350"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2018-08-16T10:07:19","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=287350","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0442\u043e\u043d\u043a\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0434\u0435\u0448\u0435\u0432\u044b\u0445 \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u041f\u041a"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/420099\/\" class=\"post__text post__text-html js-mediator-article\">\u0418\u043d\u043e\u0433\u0434\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0445\u0438\u0442\u0440\u044b\u0439 \u0442\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u2014 \u0441 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u043c \u0437\u0430\u0442\u0440\u0430\u0442.<\/p>\n<p>  \u041f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Linux.<\/p>\n<p>  \u0414\u043b\u044f \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u043a \u043d\u0430 \u0431\u0430\u0437\u0435 ARM \u0448\u0438\u0440\u043e\u043a\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 <a href=\"https:\/\/www.armbian.com\/\">Armbian<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 Debian \u0432\u0435\u0442\u043a\u0435.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0443 \u043c\u0435\u043d\u044f \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0431\u044b\u043b\u0430 \u043f\u043b\u0430\u0442\u0430 OrangePi One<br \/>  <img decoding=\"async\" src=\"https:\/\/www.armbian.com\/wp-content\/uploads\/2018\/02\/orangepione.png\" alt=\"image\"\/><br \/>  \u0438 MicroSD \u043a\u0430\u0440\u0442\u0430 \u043d\u0430 2G \u2014 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 RDP \u0441 \u043e\u043a\u043d\u043e\u043c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Armbian \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u043f\u043b\u0430\u0442\u044b <a href=\"https:\/\/www.armbian.com\/orange-pi-one\/\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>  \u041a\u0430\u0447\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441 \u043f\u043e\u043c\u0435\u0442\u043a\u043e\u0439:<\/p>\n<p>  <b>Server or light desktop usage scenarios.<\/b><\/p>\n<p>  \u0412 \u043d\u0435\u043c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0432 \u0442\u043e\u043d\u043a\u043e\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0435.<\/p>\n<p>  \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0437 \u043d\u0430 MicroSD (\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"https:\/\/sourceforge.net\/projects\/win32diskimager\/\">sourceforge.net\/projects\/win32diskimager<\/a>).<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438: \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c MicroSD, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b (LAN, \u0414\u0438\u0441\u043f\u043b\u0435\u0439, \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0443, \u043c\u044b\u0448\u044c), \u043f\u043e\u0434\u0430\u0435\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u0435, \u0436\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u043f\u043e SSH \u0433\u043b\u044f\u043d\u0443\u0432 \u0432\u044b\u0434\u0430\u043d\u043d\u044b\u0439 DHCP \u0430\u0434\u0440\u0435\u0441 (\u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u044d\u0442\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u0431\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b PuTTY).<\/p>\n<p>  \u041b\u043e\u0433\u0438\u043d: <b>root<\/b><br \/>  \u041f\u0430\u0440\u043e\u043b\u044c: <b>1234<\/b><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u0445\u043e\u0434\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c: \u0432\u0432\u043e\u0434\u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 <b>1234<\/b> \u0438 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u2014 \u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0433\u043e <b>user<\/b>.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0434 \u0437\u0430\u0434\u0430\u0447\u0443.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<pre><code class=\"bash\">apt update apt install xorg lightdm xcursor-themes numix-gtk-theme numix-icon-theme  apt install python-gtk2 freerdp<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f systemd \u0432\u043a\u043b\u044e\u0447\u0435\u0442\u0441\u044f \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">systemctl set-default graphical.target<\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b\u044b:<br \/>  (\u0441\u043e\u0434\u0430\u0442\u044c \u0438\u0445 \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 vi \u2014 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c i \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u2014 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0432 \u043e\u043a\u043d\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u0430 \u043f\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u043d\u0430\u0436\u0430\u0442\u044c Esc \u0438 \u043d\u0430\u0431\u0440\u0430\u0442\u044c :w \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 :q \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430)<\/p>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 DHCP \u0441\u0435\u0440\u0432\u0435\u0440 <\/p>\n<pre><code class=\"bash\">vi \/etc\/dhcp\/dhclient-exit-hooks.d\/paramscript<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">setup_add() {     echo $new_host_name &gt; \/etc\/hostname     hostname $new_host_name      if [ -z &quot;$new_nds_servers&quot; ] ; then         echo $new_routers &gt; \/tmp\/rdp_server         echo &quot;testuser&quot; &gt; \/tmp\/rdp_user         echo &quot;1234test#&quot; &gt; \/tmp\/rdp_passwd     else         echo $new_nds_servers &gt; \/tmp\/rdp_server         echo $new_nds_tree_name &gt; \/tmp\/rdp_user         echo $new_nds_context &gt; \/tmp\/rdp_passwd     fi }  case $reason in     BOUND|RENEW|REBIND|REBOOT)         setup_add         ;;     EXPIRE|FAIL|RELEASE|STOP)         return         ;; esac <\/code><\/pre>\n<p>  \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043f\u043e DHCP \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0438 nds_servers, nds_tree_name, nds_context \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d IP \u0430\u0434\u0440\u0435\u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a GTK \u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0435\u0433\u043e \u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c<\/p>\n<pre><code class=\"bash\">vi \/home\/user\/.gtkrc-2.0<\/code><\/pre>\n<p>  <\/p>\n<pre><code>gtk-icon-theme-name = &quot;Numix&quot; gtk-theme-name = &quot;Numix&quot; gtk-cursor-theme-name = &quot;whiteglass&quot;<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0440\u0435\u0434\u044b LightDM:<\/p>\n<pre><code class=\"bash\">vi \/etc\/lightdm\/lightdm.conf<\/code><\/pre>\n<p>  <\/p>\n<pre><code>[LightDM] greeter-user=user [Seat:*] greeter-session=my-greeter<\/code><\/pre>\n<p>  \u044f \u043f\u043e\u0441\u043b\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c greeter (\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u0445\u043e\u0434\u0430), \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0432\u0445\u043e\u0434, \u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u043e\u0442 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u044f\u0440\u043b\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (\u0438 \u0435\u0433\u043e \u043f\u0430\u043f\u043a\u0443):<\/p>\n<pre><code class=\"bash\">mkdir \/usr\/share\/xgreeters\/ vi \/usr\/share\/xgreeters\/my-greeter.desktop<\/code><\/pre>\n<p>  <\/p>\n<pre><code>[Desktop Entry] Name=PyGTK+ Greeter Comment=This runs the PyGTK+ greeter, it should only be run from LightDM Exec=python \/home\/user\/greeter.py Type=Application X-Ubuntu-Gettext-Domain=lightdm<\/code><\/pre>\n<p>  \u0418 \u0441\u0430\u043c \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u0445\u043e\u0434\u0430:<\/p>\n<pre><code class=\"bash\">vi \/home\/user\/greeter.py<\/code><\/pre>\n<p>  \u041a\u043e\u0434 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 4 \u0437\u043d\u0430\u0447\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c 0811 (\u043c\u0435\u0441\u044f\u0446 \u0434\u0435\u043d\u044c \u0441 \u043d\u0435\u0437\u043d\u0430\u0447\u0430\u0449\u0438\u043c\u0438 \u043d\u0443\u043b\u044f\u043c\u0438 \u0431\u0435\u0437 \u043f\u0440\u0431\u0435\u043b\u043e\u0432)<br \/>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f xfreerdp \u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">#!\/usr\/bin\/env python # -*- coding: UTF-8 -*-  from datetime import datetime from gobject import timeout_add import os,sys,gtk,pango,subprocess  class GreeterApp: \tdef __init__( self ): \t\tself.builder = gtk.Builder() \t\t#self.builder.add_from_file(&quot;ui.glade&quot;) \t\tself.builder.add_from_string(ui) \t\tself.window = self.builder.get_object (&quot;window&quot;) \t\tself.pass_field = self.builder.get_object (&quot;pass_field&quot;) \t\tself.passct = self.builder.get_object (&quot;pass&quot;) \t\tself.contrl = self.builder.get_object (&quot;control&quot;) \t\tself.pass_field.modify_font(pango.FontDescription('Sans Bold 36')) \t\tself.passwd = datetime.now().strftime(&quot;%m%d&quot;) \t\tself.rdp_server = open(&quot;\/tmp\/rdp_server&quot;).read().split(',')[0] \t\tself.rdp_user = open(&quot;\/tmp\/rdp_user&quot;).read() \t\tself.rdp_passwd = open(&quot;\/tmp\/rdp_passwd&quot;).read() \t\tself.process = None \t\ttimeout_add(5000, self.timeout) \t\tif self.window: \t\t\tself.window.connect(&quot;destroy&quot;, gtk.main_quit) \t\t\tself.contrl.set_visible(False) \t\t\tself.window.set_size_request(gtk.gdk.screen_width(),gtk.gdk.screen_height()) \t\tself.builder.connect_signals(self) \tdef hide(self, widget): \t\tself.contrl.set_visible(False) \t\tself.passct.set_visible(True) \t\tself.window.move(0,0) \t\tself.window.set_size_request(gtk.gdk.screen_width(),gtk.gdk.screen_height()) \t\tif self.process: \t\t\tself.process.terminate() \t\t\tself.process = None \tdef timeout(self): \t\tif self.window: \t\t\tself.window.set_keep_above(True) \t\t\tself.window.set_modal(True) \t\treturn True \tdef check_pass(self, widget): \t\tif self.pass_field.get_text() == self.passwd: \t\t\tself.pass_field.set_text(&quot;&quot;) \t\t\tself.passct.set_visible(False) \t\t\tself.contrl.set_visible(True) \t\t\tself.window.set_size_request(50,50) \t\t\tself.window.move(0,gtk.gdk.screen_height()-50) \t\t\t#sys.exit() \t\t\tself.process = subprocess.Popen([&quot;xfreerdp&quot;,&quot;\/v:&quot;+self.rdp_server,&quot;\/f&quot;,&quot;\/cert-ignore&quot;,&quot;\/u:&quot;+self.rdp_user,&quot;\/p:&quot;+self.rdp_passwd]) \tdef clear_pass(self, widget): \t\tself.pass_field.set_text(&quot;&quot;) \tdef num_press(self, widget): \t\tself.pass_field.set_text(self.pass_field.get_text()+widget.get_tooltip_text()) \tdef on_destroy(self, widget): \t\tsys.exit() if __name__ == &quot;__main__&quot;: \tsettings = gtk.settings_get_default() \t#settings.props.gtk_button_images = True \tsettings.props.gtk_enable_tooltips = False \tui = &quot;&quot;&quot; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;interface&gt;   &lt;requires lib=&quot;gtk+&quot; version=&quot;2.24&quot;\/&gt;   &lt;object class=&quot;GtkWindow&quot; id=&quot;window&quot;&gt;     &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;     &lt;property name=&quot;type&quot;&gt;popup&lt;\/property&gt;     &lt;property name=&quot;title&quot; translatable=&quot;yes&quot;&gt;MyGreeter&lt;\/property&gt;     &lt;property name=&quot;resizable&quot;&gt;False&lt;\/property&gt;     &lt;signal name=&quot;destroy&quot; handler=&quot;on_destroy&quot; swapped=&quot;no&quot;\/&gt;     &lt;child&gt;       &lt;object class=&quot;GtkVBox&quot; id=&quot;vbox1&quot;&gt;         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;         &lt;child&gt;           &lt;object class=&quot;GtkHBox&quot; id=&quot;control&quot;&gt;             &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;             &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;             &lt;child&gt;               &lt;object class=&quot;GtkButton&quot; id=&quot;power1&quot;&gt;                 &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                 &lt;property name=&quot;width_request&quot;&gt;50&lt;\/property&gt;                 &lt;property name=&quot;height_request&quot;&gt;42&lt;\/property&gt;                 &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                 &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                 &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                 &lt;signal name=&quot;clicked&quot; handler=&quot;hide&quot; swapped=&quot;no&quot;\/&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkImage&quot; id=&quot;image4&quot;&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;stock&quot;&gt;gtk-no&lt;\/property&gt;                   &lt;\/object&gt;                 &lt;\/child&gt;               &lt;\/object&gt;               &lt;packing&gt;                 &lt;property name=&quot;expand&quot;&gt;False&lt;\/property&gt;                 &lt;property name=&quot;fill&quot;&gt;True&lt;\/property&gt;                 &lt;property name=&quot;position&quot;&gt;0&lt;\/property&gt;               &lt;\/packing&gt;             &lt;\/child&gt;             &lt;child&gt;               &lt;placeholder\/&gt;             &lt;\/child&gt;             &lt;child&gt;               &lt;placeholder\/&gt;             &lt;\/child&gt;           &lt;\/object&gt;           &lt;packing&gt;             &lt;property name=&quot;expand&quot;&gt;False&lt;\/property&gt;             &lt;property name=&quot;fill&quot;&gt;True&lt;\/property&gt;             &lt;property name=&quot;position&quot;&gt;0&lt;\/property&gt;           &lt;\/packing&gt;         &lt;\/child&gt;         &lt;child&gt;           &lt;object class=&quot;GtkHBox&quot; id=&quot;hbox1&quot;&gt;             &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;             &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;             &lt;child&gt;               &lt;object class=&quot;GtkTable&quot; id=&quot;pass&quot;&gt;                 &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                 &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                 &lt;property name=&quot;n_rows&quot;&gt;6&lt;\/property&gt;                 &lt;property name=&quot;n_columns&quot;&gt;3&lt;\/property&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkEntry&quot; id=&quot;pass_field&quot;&gt;                     &lt;property name=&quot;width_request&quot;&gt;240&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;60&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;visibility&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;invisible_char&quot;&gt;\u25cf&lt;\/property&gt;                     &lt;property name=&quot;xalign&quot;&gt;1&lt;\/property&gt;                     &lt;property name=&quot;invisible_char_set&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;primary_icon_activatable&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;secondary_icon_activatable&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;primary_icon_sensitive&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;secondary_icon_sensitive&quot;&gt;True&lt;\/property&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;right_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_0&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;0&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_0&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;0&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;top_attach&quot;&gt;5&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;6&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_1&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;1&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_1&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;1&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;top_attach&quot;&gt;4&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;5&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_2&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;2&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_2&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;2&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;left_attach&quot;&gt;1&lt;\/property&gt;                     &lt;property name=&quot;right_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;top_attach&quot;&gt;4&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;5&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_3&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;3&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_3&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;3&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;left_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;right_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;top_attach&quot;&gt;4&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;5&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_4&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;4&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_4&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;4&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;top_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;4&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_5&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;5&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_5&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;5&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;left_attach&quot;&gt;1&lt;\/property&gt;                     &lt;property name=&quot;right_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;top_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;4&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_6&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;6&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_6&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;6&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;left_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;right_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;top_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;4&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_7&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;7&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_7&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;7&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;top_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_8&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;8&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_8&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;8&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;left_attach&quot;&gt;1&lt;\/property&gt;                     &lt;property name=&quot;right_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;top_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_9&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;tooltip_text&quot; translatable=&quot;yes&quot;&gt;9&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;num_press&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkLabel&quot; id=&quot;l_9&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;9&lt;\/property&gt;                         &lt;attributes&gt;                           &lt;attribute name=&quot;weight&quot; value=&quot;bold&quot;\/&gt;                           &lt;attribute name=&quot;size&quot; value=&quot;40000&quot;\/&gt;                         &lt;\/attributes&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;left_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;right_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;top_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_ent&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;check_pass&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkImage&quot; id=&quot;image2&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;stock&quot;&gt;gtk-yes&lt;\/property&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;left_attach&quot;&gt;1&lt;\/property&gt;                     &lt;property name=&quot;right_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;top_attach&quot;&gt;5&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;6&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;                 &lt;child&gt;                   &lt;object class=&quot;GtkButton&quot; id=&quot;b_del&quot;&gt;                     &lt;property name=&quot;use_action_appearance&quot;&gt;False&lt;\/property&gt;                     &lt;property name=&quot;width_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;height_request&quot;&gt;80&lt;\/property&gt;                     &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;can_focus&quot;&gt;True&lt;\/property&gt;                     &lt;property name=&quot;receives_default&quot;&gt;True&lt;\/property&gt;                     &lt;signal name=&quot;clicked&quot; handler=&quot;clear_pass&quot; swapped=&quot;no&quot;\/&gt;                     &lt;child&gt;                       &lt;object class=&quot;GtkImage&quot; id=&quot;image3&quot;&gt;                         &lt;property name=&quot;visible&quot;&gt;True&lt;\/property&gt;                         &lt;property name=&quot;can_focus&quot;&gt;False&lt;\/property&gt;                         &lt;property name=&quot;stock&quot;&gt;gtk-no&lt;\/property&gt;                       &lt;\/object&gt;                     &lt;\/child&gt;                   &lt;\/object&gt;                   &lt;packing&gt;                     &lt;property name=&quot;left_attach&quot;&gt;2&lt;\/property&gt;                     &lt;property name=&quot;right_attach&quot;&gt;3&lt;\/property&gt;                     &lt;property name=&quot;top_attach&quot;&gt;5&lt;\/property&gt;                     &lt;property name=&quot;bottom_attach&quot;&gt;6&lt;\/property&gt;                     &lt;property name=&quot;x_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                     &lt;property name=&quot;y_options&quot;&gt;GTK_SHRINK&lt;\/property&gt;                   &lt;\/packing&gt;                 &lt;\/child&gt;               &lt;\/object&gt;               &lt;packing&gt;                 &lt;property name=&quot;expand&quot;&gt;True&lt;\/property&gt;                 &lt;property name=&quot;fill&quot;&gt;False&lt;\/property&gt;                 &lt;property name=&quot;position&quot;&gt;0&lt;\/property&gt;               &lt;\/packing&gt;             &lt;\/child&gt;           &lt;\/object&gt;           &lt;packing&gt;             &lt;property name=&quot;expand&quot;&gt;True&lt;\/property&gt;             &lt;property name=&quot;fill&quot;&gt;False&lt;\/property&gt;             &lt;property name=&quot;position&quot;&gt;1&lt;\/property&gt;           &lt;\/packing&gt;         &lt;\/child&gt;       &lt;\/object&gt;     &lt;\/child&gt;   &lt;\/object&gt; &lt;\/interface&gt; \t&quot;&quot;&quot; \tapp = GreeterApp() \tapp.window.show() \tgtk.main()<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u043e\u0434 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0432\u043e\u0434 \u0438\u043c\u0435\u043d\u0438 \u0438 \u043f\u0430\u0440\u043e\u043b\u044f \u0434\u043b\u044f RDP \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0432\u044b\u0431\u043e\u0440 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0432\u0441\u0435 \u043d\u0430 \u0447\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u0432\u0430\u0448\u0430 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u044f \u2014 \u0445\u043e\u0442\u044c \u0432\u0445\u043e\u0434 \u043f\u043e \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043a\u0443 \u043f\u0430\u043b\u044c\u0446\u0430.<\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <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\/post\/420099\/\"> https:\/\/habr.com\/post\/420099\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/420099\/\" class=\"post__text post__text-html js-mediator-article\">\u0418\u043d\u043e\u0433\u0434\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0445\u0438\u0442\u0440\u044b\u0439 \u0442\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u2014 \u0441 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u043c \u0437\u0430\u0442\u0440\u0430\u0442.<\/p>\n<p>  \u041f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Linux.<\/p>\n<p>  \u0414\u043b\u044f \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u043a \u043d\u0430 \u0431\u0430\u0437\u0435 ARM \u0448\u0438\u0440\u043e\u043a\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 <a href=\"https:\/\/www.armbian.com\/\">Armbian<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 Debian \u0432\u0435\u0442\u043a\u0435.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0443 \u043c\u0435\u043d\u044f \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0431\u044b\u043b\u0430 \u043f\u043b\u0430\u0442\u0430 OrangePi One<br \/>  <img decoding=\"async\" src=\"https:\/\/www.armbian.com\/wp-content\/uploads\/2018\/02\/orangepione.png\" alt=\"image\"\/><br \/>  \u0438 MicroSD \u043a\u0430\u0440\u0442\u0430 \u043d\u0430 2G \u2014 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 RDP \u0441 \u043e\u043a\u043d\u043e\u043c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f.  <\/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-287350","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287350","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=287350"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287350\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}