{"id":1296,"date":"2012-06-23T15:08:06","date_gmt":"2012-06-23T09:08:06","guid":{"rendered":"http:\/\/blog.amigas.ru\/?p=1296"},"modified":"2018-05-28T14:36:26","modified_gmt":"2018-05-28T09:36:26","slug":"rusifikaciya-konsoli","status":"publish","type":"post","link":"http:\/\/blog.amigas.ru\/?p=1296","title":{"rendered":"\u0420\u0443\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u0438."},"content":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 FreeBSD v9.0 , \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u0440\u0443\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u041d\u0430 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435, \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 9 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0443\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u0412\u0435\u0440\u043d\u0435\u0435 \u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0441\u044f.<br \/>\n\u0417\u0434\u0435\u0441\u044c \u044f \u043e\u043f\u0438\u0448\u0443 \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0434\u043e 9-\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u0438 \u043a\u0430\u043a \u0441\u0442\u0430\u043b\u043e \u0442\u0435\u043f\u0435\u0440\u044c.<br \/>\n\u041d\u0430\u0447\u043d\u0451\u043c:<br \/>\n<code>1. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0442\u0430\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 <span style=\"color: #ff0000;\">\/etc\/login.conf<\/span><br \/>\n#<br \/>\n# Russian Users Accounts. Setup proper environment variables.<br \/>\n#<br \/>\nrussian|Russian Users Accounts:\\<br \/>\n:charset=KOI8-R:\\<br \/>\n:lang=ru_RU.KOI8-R:\\<br \/>\n:tc=default:<br \/>\n\u0415\u0441\u043b\u0438 \u043d\u0435\u0442\u0443, \u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438 \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<br \/>\n<span style=\"color: #ff0000;\">cap_mkdb \/etc\/login.conf<\/span><br \/>\n2. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <span style=\"color: #ff0000;\">\/etc\/rc.conf<\/span> , \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438:<br \/>\nfont8x14=\"cp866-8x14\"<br \/>\nfont8x16=\"cp866-8x16\"<br \/>\nfont8x8=\"cp866-8x8\"<br \/>\nscrnmap=\"koi8-r2cp866\"<br \/>\nkeymap=\"ru.koi8-r\"<br \/>\n3. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <span style=\"color: #ff0000;\">\/etc\/ttys<\/span> \u0438\u0437\u043c\u0435\u043d\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>\n<span style=\"text-decoration: underline;\">\u0431\u044b\u043b\u043e \u0442\u0430\u043a:<\/span><br \/>\nttyv0 \"\/usr\/libexec\/getty Pc\" cons25 on secure<br \/>\n# Virtual terminals<br \/>\nttyv1 \"\/usr\/libexec\/getty Pc\" cons25 on secure<br \/>\nttyv2 \"\/usr\/libexec\/getty Pc\" cons25 on secure<br \/>\nttyv3 \"\/usr\/libexec\/getty Pc\" cons25 on secure<br \/>\nttyv4 \"\/usr\/libexec\/getty Pc\" cons25 on secure<br \/>\nttyv5 \"\/usr\/libexec\/getty Pc\" cons25 on secure<br \/>\nttyv6 \"\/usr\/libexec\/getty Pc\" cons25 on secure<br \/>\nttyv7 \"\/usr\/libexec\/getty Pc\" cons25 on secure<br \/>\n<span style=\"text-decoration: underline;\">\u0441\u0442\u0430\u043b\u043e \u0442\u0430\u043a:<\/span><br \/>\nttyv0 \"\/usr\/libexec\/getty Pc\" cons25r on secure<br \/>\n# Virtual terminals<br \/>\nttyv1 \"\/usr\/libexec\/getty Pc\" cons25r on secure<br \/>\nttyv2 \"\/usr\/libexec\/getty Pc\" cons25r on secure<br \/>\nttyv3 \"\/usr\/libexec\/getty Pc\" cons25r on secure<br \/>\nttyv4 \"\/usr\/libexec\/getty Pc\" cons25r on secure<br \/>\nttyv5 \"\/usr\/libexec\/getty Pc\" cons25r on secure<br \/>\nttyv6 \"\/usr\/libexec\/getty Pc\" cons25r on secure<br \/>\nttyv7 \"\/usr\/libexec\/getty Pc\" cons25r on secure<br \/>\n4. \u0414\u0430\u0451\u043c \u044e\u0437\u0435\u0440\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0441\u0441\u043a\u0443\u044e \u043b\u043e\u043a\u0430\u043b\u044c:<br \/>\n<span style=\"color: #ff0000;\">pw usermod user -L russian<\/span><br \/>\n5. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f.<\/code><br \/>\n\u042d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439 FreeBSD \u043d\u0438\u0436\u0435 9.0<br \/>\n\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 9-\u043e\u0439 \u0432\u0435\u0442\u043a\u0438, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b <span style=\"color: #ff0000;\">\/etc\/ttys !!!<\/span><\/p>\n<p><strong>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 11-\u043e\u0439 \u0432\u0435\u0442\u043a\u0438:<\/strong><br \/>\n\u0434\u043b\u044f \u0440\u0443\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 class russian:<br \/>\npw useradd user_name -L russian<\/p>\n<p>\u0418\u043b\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<br \/>\npw user mod user_name -L russian<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0439\u0442\u0438 \u0432 \u0441\u0435\u0441\u0441\u0438\u044e \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0448\u0435\u043b\u043b.<\/p>\n<p>P.S. \u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u044b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \/boot\/loader.conf:<br \/>\nhw.vga.textmode=0<br \/>\n\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043a\u043e\u043c\u043f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 FreeBSD v9.0 , \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u0440\u0443\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u041d\u0430 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435, \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 9 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0443\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u0412\u0435\u0440\u043d\u0435\u0435 \u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0441\u044f. \u0417\u0434\u0435\u0441\u044c \u044f \u043e\u043f\u0438\u0448\u0443 \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0434\u043e 9-\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u0438 \u043a\u0430\u043a \u0441\u0442\u0430\u043b\u043e \u0442\u0435\u043f\u0435\u0440\u044c. \u041d\u0430\u0447\u043d\u0451\u043c: 1. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0442\u0430\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/login.conf # # Russian Users Accounts. Setup proper environment [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[106],"tags":[149],"class_list":["post-1296","post","type-post","status-publish","format-standard","hentry","category-misc-freebsd","tag-freebsd"],"views":2357,"_links":{"self":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts\/1296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1296"}],"version-history":[{"count":0,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts\/1296\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1296"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}