{"id":133,"date":"2019-05-28T07:56:07","date_gmt":"2019-05-28T15:56:07","guid":{"rendered":"http:\/\/www.emeralddesign.com\/?p=133"},"modified":"2022-01-30T20:36:16","modified_gmt":"2022-01-31T04:36:16","slug":"lxc-containers-and-language-locale","status":"publish","type":"post","link":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/","title":{"rendered":"LXC Containers and Language Locale"},"content":{"rendered":"<p>If you&#8217;re beating your head against a wall in regards to why some applications seem to fail to parse text correctly (Bazarr) and ultimately complete actions like notifications (Ombi) it may be due to an un-set Language Locale value in your LXC container. Here&#8217;s how to fix it:<\/p>\n<p>If you type &#8220;locale&#8221; and see no value for &#8220;LANG&#8221; then you have unset values.<\/p>\n<ol>\n<li>ssh to your LXC container and run the following (either as root or prefaced with sudo) replacing the language with your preferred language.<\/li>\n<li>localectl set-locale LANG=en_US.UTF-8<\/li>\n<li>set LC_ALL=en_US.UTF-8<\/li>\n<li>locale-gen &#8220;en_US.UTF-8&#8221;<\/li>\n<li>reboot the LXC container<\/li>\n<\/ol>\n<p>Now if you execute &#8220;locale&#8221; on the host you should see a new value for &#8220;LANG&#8221; with your preferred language.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re beating your head against a wall in regards to why some applications seem to fail to parse text correctly (Bazarr) and ultimately complete actions like notifications (Ombi) it may be due to an un-set Language Locale value in your LXC container. Here&#8217;s how to fix it: If you type &#8220;locale&#8221; and see no [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8,6,9,7],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-locale","tag-lxc","tag-parsing","tag-proxmox"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>LXC Containers and Language Locale - Emerald Design<\/title>\n<meta name=\"description\" content=\"Setting locale values on an LXC container.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LXC Containers and Language Locale - Emerald Design\" \/>\n<meta property=\"og:description\" content=\"Setting locale values on an LXC container.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/\" \/>\n<meta property=\"og:site_name\" content=\"Emerald Design\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-28T15:56:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-31T04:36:16+00:00\" \/>\n<meta name=\"author\" content=\"jclifton\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"jclifton\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2019\\\/05\\\/28\\\/lxc-containers-and-language-locale\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2019\\\/05\\\/28\\\/lxc-containers-and-language-locale\\\/\"},\"author\":{\"name\":\"jclifton\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#\\\/schema\\\/person\\\/655c6a5043811e17f2e425fdbc46040e\"},\"headline\":\"LXC Containers and Language Locale\",\"datePublished\":\"2019-05-28T15:56:07+00:00\",\"dateModified\":\"2022-01-31T04:36:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2019\\\/05\\\/28\\\/lxc-containers-and-language-locale\\\/\"},\"wordCount\":133,\"keywords\":[\"Locale\",\"LXC\",\"Parsing\",\"Proxmox\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2019\\\/05\\\/28\\\/lxc-containers-and-language-locale\\\/\",\"url\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2019\\\/05\\\/28\\\/lxc-containers-and-language-locale\\\/\",\"name\":\"LXC Containers and Language Locale - Emerald Design\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#website\"},\"datePublished\":\"2019-05-28T15:56:07+00:00\",\"dateModified\":\"2022-01-31T04:36:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#\\\/schema\\\/person\\\/655c6a5043811e17f2e425fdbc46040e\"},\"description\":\"Setting locale values on an LXC container.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2019\\\/05\\\/28\\\/lxc-containers-and-language-locale\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2019\\\/05\\\/28\\\/lxc-containers-and-language-locale\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2019\\\/05\\\/28\\\/lxc-containers-and-language-locale\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.emeralddesign.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LXC Containers and Language Locale\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#website\",\"url\":\"https:\\\/\\\/www.emeralddesign.com\\\/\",\"name\":\"Emerald Design\",\"description\":\"Technology, Photography and Shower-thoughts...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.emeralddesign.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#\\\/schema\\\/person\\\/655c6a5043811e17f2e425fdbc46040e\",\"name\":\"jclifton\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g\",\"caption\":\"jclifton\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LXC Containers and Language Locale - Emerald Design","description":"Setting locale values on an LXC container.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/","og_locale":"en_US","og_type":"article","og_title":"LXC Containers and Language Locale - Emerald Design","og_description":"Setting locale values on an LXC container.","og_url":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/","og_site_name":"Emerald Design","article_published_time":"2019-05-28T15:56:07+00:00","article_modified_time":"2022-01-31T04:36:16+00:00","author":"jclifton","twitter_card":"summary_large_image","twitter_misc":{"Written by":"jclifton","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/#article","isPartOf":{"@id":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/"},"author":{"name":"jclifton","@id":"https:\/\/www.emeralddesign.com\/#\/schema\/person\/655c6a5043811e17f2e425fdbc46040e"},"headline":"LXC Containers and Language Locale","datePublished":"2019-05-28T15:56:07+00:00","dateModified":"2022-01-31T04:36:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/"},"wordCount":133,"keywords":["Locale","LXC","Parsing","Proxmox"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/","url":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/","name":"LXC Containers and Language Locale - Emerald Design","isPartOf":{"@id":"https:\/\/www.emeralddesign.com\/#website"},"datePublished":"2019-05-28T15:56:07+00:00","dateModified":"2022-01-31T04:36:16+00:00","author":{"@id":"https:\/\/www.emeralddesign.com\/#\/schema\/person\/655c6a5043811e17f2e425fdbc46040e"},"description":"Setting locale values on an LXC container.","breadcrumb":{"@id":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.emeralddesign.com\/index.php\/2019\/05\/28\/lxc-containers-and-language-locale\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.emeralddesign.com\/"},{"@type":"ListItem","position":2,"name":"LXC Containers and Language Locale"}]},{"@type":"WebSite","@id":"https:\/\/www.emeralddesign.com\/#website","url":"https:\/\/www.emeralddesign.com\/","name":"Emerald Design","description":"Technology, Photography and Shower-thoughts...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.emeralddesign.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.emeralddesign.com\/#\/schema\/person\/655c6a5043811e17f2e425fdbc46040e","name":"jclifton","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g","caption":"jclifton"}}]}},"_links":{"self":[{"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":4,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":140,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/posts\/133\/revisions\/140"}],"wp:attachment":[{"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}