{"id":33930,"date":"2018-08-16T23:19:12","date_gmt":"2018-08-16T23:19:12","guid":{"rendered":"http:\/\/antonini.med.br\/?p=33930"},"modified":"2021-04-02T04:54:36","modified_gmt":"2021-04-02T04:54:36","slug":"33930","status":"publish","type":"post","link":"https:\/\/antonini.ddns.net\/?p=33930","title":{"rendered":"Como desativar\/ativar o modo gr\u00e1fico no Linux com o systemd"},"content":{"rendered":"<p style=\"text-align: justify;\">Voc\u00ea pode usar o comando systemctl para gerenciar a interface padr\u00e3o \u2014 fazendo a troca entre GUI (modo gr\u00e1fico) e CLI (modo texto).<\/p>\n<p style=\"text-align: justify;\">Para ver qual \u00e9 o padr\u00e3o, neste momento, use o comando assim:<\/p>\n<p style=\"text-align: justify;\"><strong> systemctl get-default <\/strong><\/p>\n<p style=\"text-align: justify;\"><strong> graphical.target<\/strong><\/p>\n<p style=\"text-align: justify;\">O resultado \u201cgraphical.target\u201d indica que a GUI \u00e9 a interface padr\u00e3o (no meu sistema). Se fosse a CLI, o get-default iria resultar em \u201c<strong>multi-user.target<\/strong>\u201d<\/p>\n<p style=\"text-align: justify;\">Para mudar a interface padr\u00e3o para o modo texto, na pr\u00f3xima inicializa\u00e7\u00e3o do sistema, use o set-default:<\/p>\n<p style=\"text-align: justify;\"><strong>systemctl set-default multi-user.target<\/strong><\/p>\n<p style=\"text-align: justify;\">Created symlink \/etc\/systemd\/system\/default.target \u2192 \/lib\/systemd\/system\/multi-user.target.<\/p>\n<p style=\"text-align: justify;\">Este comando pede autentica\u00e7\u00e3o de administrador do sistema e s\u00f3 ter\u00e1 efeito ap\u00f3s o&nbsp;<em>reboot<\/em>.<br \/>\nVoc\u00ea reiniciar o sistema com o pr\u00f3prio systemctl:<\/p>\n<p style=\"text-align: justify;\"><strong> systemctl reboot<\/strong><\/p>\n<p style=\"text-align: justify;\">Para mudar a interface padr\u00e3o para o modo texto, na pr\u00f3xima inicializa\u00e7\u00e3o do sistema, use o set-default:<\/p>\n<p style=\"text-align: justify;\"><strong>systemctl set-default multi-user.target<\/strong><\/p>\n<p style=\"text-align: justify;\">Created symlink \/etc\/systemd\/system\/default.target \u2192 \/lib\/systemd\/system\/multi-user.target.<\/p>\n<p style=\"text-align: justify;\">Este comando pede autentica\u00e7\u00e3o de administrador do sistema e s\u00f3 ter\u00e1 efeito ap\u00f3s o reboot.<br \/>\nVoc\u00ea reiniciar o sistema com o pr\u00f3prio systemctl:<\/p>\n<p style=\"text-align: justify;\"><strong>systemctl reboot<\/strong><\/p>\n<p style=\"text-align: justify;\">Para desfazer o procedimento \u2013 e voltar a usar a interface gr\u00e1fica como padr\u00e3o \u2013 use o seguinte comando:<\/p>\n<p style=\"text-align: justify;\"><strong>systemctl set-default graphical.target<\/strong><\/p>\n<p style=\"text-align: justify;\">Removed \/etc\/systemd\/system\/default.target.<\/p>\n<p style=\"text-align: justify;\">Created symlink \/etc\/systemd\/system\/default.target \u2192 \/lib\/systemd\/system\/graphical.target.<\/p>\n<p style=\"text-align: center;\">[<a href=\"javascript:history.go(-1)\">Voltar<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Voc\u00ea pode usar o comando systemctl para gerenciar a interface padr\u00e3o \u2014 fazendo a troca entre GUI (modo gr\u00e1fico) e CLI (modo texto). Para ver qual \u00e9 o padr\u00e3o, neste momento, use o comando assim: systemctl get-default graphical.target O resultado \u201cgraphical.target\u201d indica que a GUI \u00e9 a interface padr\u00e3o (no meu sistema). Se fosse a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-33930","post","type-post","status-publish","format-standard","hentry","category-informatica"],"_links":{"self":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/33930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33930"}],"version-history":[{"count":5,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/33930\/revisions"}],"predecessor-version":[{"id":33935,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/33930\/revisions\/33935"}],"wp:attachment":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}