{"id":658,"date":"2021-08-05T12:49:30","date_gmt":"2021-08-05T15:49:30","guid":{"rendered":"https:\/\/greenoperations.com.br\/greenblog\/?p=658"},"modified":"2021-08-05T12:49:45","modified_gmt":"2021-08-05T15:49:45","slug":"map-os-2021-instalar-no-linux-ou-raspberry-pi-sistema-de-controle-de-ordens-de-servico-gratuito","status":"publish","type":"post","link":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/2021\/08\/05\/map-os-2021-instalar-no-linux-ou-raspberry-pi-sistema-de-controle-de-ordens-de-servico-gratuito\/","title":{"rendered":"MAP-OS 2021: Instalar no Linux ou Raspberry Pi (Sistema de Controle de Ordens de Servi\u00e7o Gratuito)"},"content":{"rendered":"<p>Ol\u00e1, Dessa vez vou falar um pouco sobre sistema empresarial. Muitas pessoas tem a inten\u00e7\u00e3o de organizar seus neg\u00f3cios mas, nem sempre tem or\u00e7amento pra isso, assim no v\u00eddeo abaixo explico como instalar o MAP-OS numa estrutura linux, seja ela x86 ou arm64 (mais abaixo a lista de todos os comandos utilizados):<\/p>\n<p><iframe loading=\"lazy\" title=\"MAP-OS 2021: Instalar no Linux ou Raspberry Pi (Sistema de Controle de Ordens de Servi\u00e7o Gratuito)\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/ky_ft8-4F1E?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>Lista de comandos usados (root):<\/p>\n<p>Logar como root: $sudo su<\/p>\n<p>Atualizar o Ubuntu: #apt update &amp;&amp; apt upgrade -y<\/p>\n<p>Ver o IP da m\u00e1quina: #ip a<\/p>\n<p>Instalar o Cockpit (opcional): #apt install cockpit -y<\/p>\n<p>Editar as configura\u00e7\u00f5es de rede (ip fixo): #nano \/etc\/netplan\/*.yaml<\/p>\n<p>Testar a configura\u00e7\u00e3o de rede: #netplan try<\/p>\n<p>Fixar configura\u00e7\u00e3o IP: #netplan apply<\/p>\n<p>Instalar o MySQL Server: #apt install mysql-server -y<\/p>\n<p>Iniciar o MySQL Server: #systemctl start mysql<\/p>\n<p>Entrar no prompt do mySQL: #mysql<\/p>\n<blockquote><p>No MySQL:<br \/>\n&gt;create database mapos;<\/p>\n<p>&gt;create user &#8216;mapos&#8217;@&#8217;localhost&#8217; identified by &#8216;mapos&#8217;;<\/p>\n<p>&gt;grant all privileges on *.* to &#8216;mapos&#8217;@&#8217;localhost&#8217; with grant option;<\/p>\n<p>&gt;fush privileges;<\/p>\n<p>&gt;quit;<\/p><\/blockquote>\n<p>Instalar o PHP: #apt install php php-gd php-xml php-zip php-curl php-mysql php-mysqli -y<\/p>\n<p>Instalar o Apache WebServer (caso ainda n\u00e3o esteja instalado): #apt install apache2 -y<\/p>\n<p>Iniciar o Apache: #systemctl restart apache2<\/p>\n<p>Apagar conte\u00fado da pasta VAR: #rm \/var\/www\/html\/*<\/p>\n<p>Baixar o MapOS: #cd \/tmp &amp;&amp; wget\u00a0 https:\/\/github.com\/RamonSilva20\/mapos\/archive\/refs\/tags\/v4.34.0.zip<\/p>\n<p>Descompactar o MapOS: #apt install unzip -y &amp;&amp; unzip v4.34.0.zip<\/p>\n<p>Entrar na pasta e copiar para o diret\u00f3rio web: #cd mapos-4.34.0 &amp;&amp; cp -R * \/var\/www\/html<\/p>\n<p>Reparar permiss\u00f5es e propriet\u00e1rio: #cd \/var\/www\/html &amp;&amp; chown -R www-data.www-data *<\/p>\n<p>Instalar o Composer: #apt install composer -y<\/p>\n<p>Executar o composer: #composer install &#8211;no-dev<\/p>\n<p>Agora voc\u00ea j\u00e1 tem o software instalado basta acessar o site pelo IP do seu servidor e fazer as configura\u00e7\u00f5es no seu navegador. Espero que tenha sido \u00fatil, at\u00e9 logo! \ud83d\ude09<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MAP-OS 2021: Instalar no Linux ou Raspberry Pi (Sistema de Controle de Ordens de Servi\u00e7o Gratuito)<\/p>\n","protected":false},"author":1,"featured_media":659,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,41,3,20],"tags":[22,86,85,72,87],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/posts\/658"}],"collection":[{"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/comments?post=658"}],"version-history":[{"count":1,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/posts\/658\/revisions"}],"predecessor-version":[{"id":660,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/posts\/658\/revisions\/660"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/media\/659"}],"wp:attachment":[{"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/media?parent=658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/categories?post=658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/tags?post=658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}