{"id":1267,"date":"2024-12-05T13:28:40","date_gmt":"2024-12-05T11:28:40","guid":{"rendered":"https:\/\/ricaro.top\/?p=1267"},"modified":"2024-12-05T16:06:51","modified_gmt":"2024-12-05T14:06:51","slug":"%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80-vde-%d0%b4%d0%bb%d1%8f-%d1%82%d0%b5%d0%bb%d0%b5%d0%b3%d1%80%d0%b0%d0%bc%d0%bc-%d0%b1%d0%be%d1%82%d0%b0","status":"publish","type":"post","link":"https:\/\/ricaro.top\/?p=1267","title":{"rendered":"\u0421\u0435\u0440\u0432\u0435\u0440 VDE \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c \u0431\u043e\u0442\u0430"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"457\" height=\"241\" src=\"https:\/\/ricaro.top\/wp-content\/uploads\/2024\/12\/linux.jpg\" alt=\"\" class=\"wp-image-1272\" srcset=\"https:\/\/ricaro.top\/wp-content\/uploads\/2024\/12\/linux.jpg 457w, https:\/\/ricaro.top\/wp-content\/uploads\/2024\/12\/linux-300x158.jpg 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c\u0441\u044f\n<ul class=\"wp-block-list\">\n<li>bash&gt; apt update<\/li>\n\n\n\n<li>bash&gt; apt upgrade<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b MC<\/li>\n\n\n\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043b\u044f ftp, \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e ssh: \n<ul class=\"wp-block-list\">\n<li>bash&gt;usermod -s \/sbin\/nologin testuser<\/li>\n\n\n\n<li>\u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f ftp<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 vsftp: \n<ul class=\"wp-block-list\">\n<li>\u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b .config\n<ul class=\"wp-block-list\">\n<li>listen=NO<\/li>\n\n\n\n<li>listen_ipv6=YES<\/li>\n\n\n\n<li>local_enable=YES<\/li>\n\n\n\n<li>write_enable=YES<\/li>\n\n\n\n<li>local_umask=022<\/li>\n\n\n\n<li>dirmessage_enable=YES<\/li>\n\n\n\n<li>use_localtime=YES<\/li>\n\n\n\n<li>xferlog_enable=YES<\/li>\n\n\n\n<li>connect_from_port_20=YES<\/li>\n\n\n\n<li>chroot_local_user=YES<\/li>\n\n\n\n<li>user_sub_token=$USER<\/li>\n\n\n\n<li>local_root=\/home\/$USER\/[ftp-\u043a\u0430\u0442\u0430\u043b\u043e\u0433]<\/li>\n\n\n\n<li>allow_writeable_chroot=YES<\/li>\n\n\n\n<li>pam_service_name=vsftpd<\/li>\n\n\n\n<li>rsa_cert_file=\/etc\/ssl\/certs\/ssl-cert-snakeoil.pem<\/li>\n\n\n\n<li>rsa_private_key_file=\/etc\/ssl\/private\/ssl-cert-snakeoil.key<\/li>\n\n\n\n<li>ssl_enable=NO<\/li>\n\n\n\n<li>utf8_filesystem=YES<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c python:\n<ul class=\"wp-block-list\">\n<li>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 pip\n<ul class=\"wp-block-list\">\n<li>bash&gt; apt install python3-pip<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430\n<ul class=\"wp-block-list\">\n<li>bash&gt; useradd<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u043b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\n<ul class=\"wp-block-list\">\n<li>bash&gt; python3 -m venv .[\u043f\u0440\u043e\u0435\u043a\u0442]_venv<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\n<ul class=\"wp-block-list\">\n<li>bash&gt; source .eureka_py_venv\/bin\/activate<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0441 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b\n<ul class=\"wp-block-list\">\n<li>bash pip install [\u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e]<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0414\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u0430\u043a \u0441\u043b\u0443\u0436\u0431\u0443\n<ul class=\"wp-block-list\">\n<li>\u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <code>\/etc\/systemd\/system\/<\/code> \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b \u0441\u043b\u0443\u0436\u0431\u044b [\u0438\u043c\u044f_\u0441\u043b\u0443\u0436\u0431\u044b].<code>service<\/code><\/li>\n\n\n\n<li>\u0432 \u0444\u0430\u0439\u043b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438\n<ul class=\"wp-block-list\">\n<li>[Unit]\n<ul class=\"wp-block-list\">\n<li>Description=My Python Service<\/li>\n\n\n\n<li>After=network.target<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>[Service]\n<ul class=\"wp-block-list\">\n<li># \u041f\u0443\u0442\u044c \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0443 Python \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0443<\/li>\n\n\n\n<li>ExecStart=\/[\u043f\u0443\u0442\u044c \u043a \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044e venv]\/bin\/python3 \/[\u043f\u0443\u0442\u044c \u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0443]\/[\u0441\u043a\u0440\u0438\u043f\u0442]<\/li>\n\n\n\n<li># \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/li>\n\n\n\n<li>WorkingDirectory=\/path\/to\/project<\/li>\n\n\n\n<li># \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u0441\u043b\u0443\u0436\u0431\u0430<\/li>\n\n\n\n<li>User=your_username<\/li>\n\n\n\n<li># \u0413\u0440\u0443\u043f\u043f\u0430<\/li>\n\n\n\n<li>Group=your_group<\/li>\n\n\n\n<li># \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u0441\u043b\u0443\u0436\u0431\u044b \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0431\u043e\u044f<\/li>\n\n\n\n<li># Restart=always<\/li>\n\n\n\n<li># \u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e: \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0435\u0440\u0435\u0434 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c<\/li>\n\n\n\n<li>RestartSec=5<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>[Install]\n<ul class=\"wp-block-list\">\n<li>WantedBy=multi-user.target<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0434\u0435\u043c\u043e\u043d systenctl\n<ul class=\"wp-block-list\">\n<li>bash> systemctl daemon-reload<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441\n<ul class=\"wp-block-list\">\n<li>bash> systemctl start [\u0438\u043c\u044f \u0441\u043b\u0443\u0436\u0431\u044b]<\/li>\n\n\n\n<li>bash> systemctl status [\u0438\u043c\u044f \u0441\u043b\u0443\u0436\u0431\u044b]<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e &#8212; \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \n<ul class=\"wp-block-list\">\n<li>bash> systemctl enable [\u0438\u043c\u044f \u0441\u043b\u0443\u0436\u0431\u044b]<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 &#8212; \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0438\n<ul class=\"wp-block-list\">\n<li>bash> journalctl -u [\u0438\u043c\u044f \u0441\u043b\u0443\u0436\u0431\u044b] -n [\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 &#8212; \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 50]<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u043f\u044f\u0442\u044c<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/p>\n","protected":false},"author":1,"featured_media":1272,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18],"tags":[13],"class_list":["post-1267","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux"],"jetpack_featured_media_url":"https:\/\/ricaro.top\/wp-content\/uploads\/2024\/12\/linux.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/posts\/1267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ricaro.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1267"}],"version-history":[{"count":4,"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/posts\/1267\/revisions"}],"predecessor-version":[{"id":1275,"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/posts\/1267\/revisions\/1275"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/media\/1272"}],"wp:attachment":[{"href":"https:\/\/ricaro.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ricaro.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ricaro.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}