{"id":479,"date":"2022-01-05T09:17:42","date_gmt":"2022-01-05T08:17:42","guid":{"rendered":"http:\/\/daisy-street.fr\/index.php\/2022\/01\/05\/changer-lediteur-pour-nano\/"},"modified":"2022-01-11T00:06:26","modified_gmt":"2022-01-10T23:06:26","slug":"changer-lediteur-pour-nano","status":"publish","type":"post","link":"https:\/\/daisy-street.fr\/index.php\/2022\/01\/05\/changer-lediteur-pour-nano\/","title":{"rendered":"Changer l&#8217;\u00e9diteur pour nano"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"linux-3\">Linux<\/h2>\n\n\n\n<p>On Linux (Ubuntu, for example), typically the default command-line&nbsp;<code class=\"ph codeph vm-code-block prettyprint\">EDITOR<\/code>&nbsp;is Vim. If so, no further action is needed to use the&nbsp;<code class=\"ph codeph vm-code-block prettyprint\">kubectl edit<\/code>&nbsp;command. If you want to use a different editor, create an environment variable named&nbsp;<code class=\"ph codeph vm-code-block prettyprint\">KUBE_EDITOR<\/code>&nbsp;with the value set to the path of your preferred text editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JAVA_HOME<\/h2>\n\n\n\n<p>1.1 Edit&nbsp;<code>\/etc\/environment<\/code>&nbsp;file with a text editor like vim or nano, need root or sudo.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Add JAVA_HOME at the next line, and points to a specified JDK folder directly.<\/pre>\n\n\n\n<p>PATH=&#8221;\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/usr\/games:\/usr\/local\/games&#8221; JAVA_HOME=\/usr\/lib\/jvm\/adoptopenjdk-11-hotspot-amd64<\/p>\n\n\n\n<p>source \/etc\/environment<\/p>\n\n\n\n<p>echo $JAVA_HOME<\/p>\n\n\n\n<p><strong>Note<\/strong><br>The new changes will disappear if we close the current session or reopen a new terminal because a new shell does not trigger the&nbsp;<code>\/etc\/environment<\/code>. Try to restart the Ubuntu or login again; the new changes in&nbsp;<code>\/etc\/environment<\/code>&nbsp;will apply automatically.<\/p>\n\n\n\n<p>whereis nano<br>nano: \/usr\/bin\/nano \/usr\/share\/nano \/usr\/share\/man\/man1\/nano.1.gz<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo nano \/etc\/environment<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>KUBE_EDITOR=&quot;\/usr\/bin\/nano&quot;<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux On Linux (Ubuntu, for example), typically the default command-line&nbsp;EDITOR&nbsp;is Vim. If so, no further action is needed to use the&nbsp;kubectl edit&nbsp;command. If you want to use a different editor, create an environment variable named&nbsp;KUBE_EDITOR&nbsp;with the value set to the path of your preferred text editor. JAVA_HOME 1.1 Edit&nbsp;\/etc\/environment&nbsp;file with a text editor like vim &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/daisy-street.fr\/index.php\/2022\/01\/05\/changer-lediteur-pour-nano\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Changer l&#8217;\u00e9diteur pour nano&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[45,33,70,71],"class_list":["post-479","post","type-post","status-publish","format-standard","hentry","category-non-classe","tag-dashboard","tag-kubernetes","tag-nano","tag-vim"],"jetpack_publicize_connections":[],"featured_image_src":null,"author_info":{"display_name":"admin9483","author_link":"https:\/\/daisy-street.fr\/index.php\/author\/admin9483\/"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/comments?post=479"}],"version-history":[{"count":2,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/479\/revisions"}],"predecessor-version":[{"id":520,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/479\/revisions\/520"}],"wp:attachment":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/media?parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/categories?post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/tags?post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}