Advertisement
erlantostes

Untitled

Oct 24th, 2018
759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 268.55 KB | None | 0 0
  1. Last login: Tue Oct 16 16:41:09 on ttys002
  2. reidtic009242:~ 2221364$ ssh debian@10.6.1.34
  3. debian@10.6.1.34's password:
  4. Linux paracambi 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u5 (2018-09-30) x86_64
  5.  
  6. The programs included with the Debian GNU/Linux system are free software;
  7. the exact distribution terms for each program are described in the
  8. individual files in /usr/share/doc/*/copyright.
  9.  
  10. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  11. permitted by applicable law.
  12. Last login: Wed Oct 24 14:39:16 2018 from 10.4.1.4
  13. debian@paracambi:~$ ls
  14. apache-maven-3.5.4 jdk-8u191-linux-x64.tar.gz
  15. debian@paracambi:~$ sudo apt-get update -y
  16. [sudo] senha para debian:
  17. Sinto muito, tente novamente.
  18. [sudo] senha para debian:
  19. Obter:1 http://security.debian.org stretch/updates InRelease [94,3 kB]
  20. Ign:2 http://deb.debian.org/debian stretch InRelease
  21. Obter:3 http://deb.debian.org/debian stretch-updates InRelease [91,0 kB]
  22. Atingido:4 http://deb.debian.org/debian stretch Release
  23. Baixados 185 kB em 0s (231 kB/s)
  24. Lendo listas de pacotes... Pronto
  25. debian@paracambi:~$ sudo apt-get upgrade -y
  26. Lendo listas de pacotes... Pronto
  27. Construindo árvore de dependências
  28. Lendo informação de estado... Pronto
  29. Calculando atualização... Pronto
  30. 0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
  31. debian@paracambi:~$ sudo systemctl start apache2
  32. debian@paracambi:~$ sudo systemctl enable apache2
  33. Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
  34. Executing: /lib/systemd/systemd-sysv-install enable apache2
  35. debian@paracambi:~$ sudo apt-get install php7.0 php7.0-cli php7.0-mcrypt php7.0-intl php7.0-mysql php7.0-curl php7.0-gd php7.0-soap php7.0-xml php7.0-zip php7.0-readline php7.0-opcache php7.0-json php7.0-gd -y
  36. Lendo listas de pacotes... Pronto
  37. Construindo árvore de dependências
  38. Lendo informação de estado... Pronto
  39. The following additional packages will be installed:
  40. libapache2-mod-php7.0 libcurl3 libgd3 libltdl7 libmcrypt4
  41. libzip4 php-common php7.0-common
  42. Pacotes sugeridos:
  43. php-pear libgd-tools libmcrypt-dev mcrypt
  44. Os NOVOS pacotes a seguir serão instalados:
  45. libapache2-mod-php7.0 libcurl3 libgd3 libltdl7 libmcrypt4
  46. libzip4 php-common php7.0 php7.0-cli php7.0-common php7.0-curl
  47. php7.0-gd php7.0-intl php7.0-json php7.0-mcrypt php7.0-mysql
  48. php7.0-opcache php7.0-readline php7.0-soap php7.0-xml
  49. php7.0-zip
  50. 0 pacotes atualizados, 21 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
  51. É preciso baixar 5.046 kB de arquivos.
  52. Depois desta operação, 18,1 MB adicionais de espaço em disco serão usados.
  53. Obter:1 http://deb.debian.org/debian stretch/main amd64 php-common all 1:49 [14,1 kB]
  54. Obter:2 http://security.debian.org stretch/updates/main amd64 libcurl3 amd64 7.52.1-5+deb9u7 [292 kB]
  55. Obter:3 http://deb.debian.org/debian stretch/main amd64 php7.0-common amd64 7.0.30-0+deb9u1 [877 kB]
  56. Obter:4 http://deb.debian.org/debian stretch/main amd64 php7.0-json amd64 7.0.30-0+deb9u1 [17,0 kB]
  57. Obter:5 http://deb.debian.org/debian stretch/main amd64 php7.0-opcache amd64 7.0.30-0+deb9u1 [77,5 kB]
  58. Obter:6 http://deb.debian.org/debian stretch/main amd64 php7.0-readline amd64 7.0.30-0+deb9u1 [12,2 kB]
  59. Obter:7 http://deb.debian.org/debian stretch/main amd64 php7.0-cli amd64 7.0.30-0+deb9u1 [1.284 kB]
  60. Obter:8 http://deb.debian.org/debian stretch/main amd64 libapache2-mod-php7.0 amd64 7.0.30-0+deb9u1 [1.225 kB]
  61. Obter:9 http://deb.debian.org/debian stretch/main amd64 libgd3 amd64 2.2.4-2+deb9u2 [132 kB]
  62. Obter:10 http://deb.debian.org/debian stretch/main amd64 libltdl7 amd64 2.4.6-2 [389 kB]
  63. Obter:11 http://deb.debian.org/debian stretch/main amd64 libmcrypt4 amd64 2.5.8-3.3 [71,2 kB]
  64. Obter:12 http://deb.debian.org/debian stretch/main amd64 libzip4 amd64 1.1.2-1.1+b1 [40,6 kB]
  65. Obter:13 http://deb.debian.org/debian stretch/main amd64 php7.0 all 7.0.30-0+deb9u1 [53,4 kB]
  66. Obter:14 http://deb.debian.org/debian stretch/main amd64 php7.0-curl amd64 7.0.30-0+deb9u1 [27,3 kB]
  67. Obter:15 http://deb.debian.org/debian stretch/main amd64 php7.0-gd amd64 7.0.30-0+deb9u1 [27,0 kB]
  68. Obter:16 http://deb.debian.org/debian stretch/main amd64 php7.0-intl amd64 7.0.30-0+deb9u1 [124 kB]
  69. Obter:17 http://deb.debian.org/debian stretch/main amd64 php7.0-mcrypt amd64 7.0.30-0+deb9u1 [14,3 kB]
  70. Obter:18 http://deb.debian.org/debian stretch/main amd64 php7.0-mysql amd64 7.0.30-0+deb9u1 [124 kB]
  71. Obter:19 http://deb.debian.org/debian stretch/main amd64 php7.0-soap amd64 7.0.30-0+deb9u1 [113 kB]
  72. Obter:20 http://deb.debian.org/debian stretch/main amd64 php7.0-xml amd64 7.0.30-0+deb9u1 [112 kB]
  73. Obter:21 http://deb.debian.org/debian stretch/main amd64 php7.0-zip amd64 7.0.30-0+deb9u1 [19,9 kB]
  74. Baixados 5.046 kB em 0s (8.224 kB/s)
  75. A seleccionar pacote anteriormente não seleccionado php-common.
  76. (Lendo banco de dados ... 64269 ficheiros e directórios actualmente instalados.)
  77. A preparar para desempacotar .../00-php-common_1%3a49_all.deb ...
  78. A descompactar php-common (1:49) ...
  79. A seleccionar pacote anteriormente não seleccionado php7.0-common.
  80. A preparar para desempacotar .../01-php7.0-common_7.0.30-0+deb9u1_amd64.deb ...
  81. A descompactar php7.0-common (7.0.30-0+deb9u1) ...
  82. A seleccionar pacote anteriormente não seleccionado php7.0-json.
  83. A preparar para desempacotar .../02-php7.0-json_7.0.30-0+deb9u1_amd64.deb ...
  84. A descompactar php7.0-json (7.0.30-0+deb9u1) ...
  85. A seleccionar pacote anteriormente não seleccionado php7.0-opcache.
  86. A preparar para desempacotar .../03-php7.0-opcache_7.0.30-0+deb9u1_amd64.deb ...
  87. A descompactar php7.0-opcache (7.0.30-0+deb9u1) ...
  88. A seleccionar pacote anteriormente não seleccionado php7.0-readline.
  89. A preparar para desempacotar .../04-php7.0-readline_7.0.30-0+deb9u1_amd64.deb ...
  90. A descompactar php7.0-readline (7.0.30-0+deb9u1) ...
  91. A seleccionar pacote anteriormente não seleccionado php7.0-cli.
  92. A preparar para desempacotar .../05-php7.0-cli_7.0.30-0+deb9u1_amd64.deb ...
  93. A descompactar php7.0-cli (7.0.30-0+deb9u1) ...
  94. A seleccionar pacote anteriormente não seleccionado libapache2-mod-php7.0.
  95. A preparar para desempacotar .../06-libapache2-mod-php7.0_7.0.30-0+deb9u1_amd64.deb ...
  96. A descompactar libapache2-mod-php7.0 (7.0.30-0+deb9u1) ...
  97. A seleccionar pacote anteriormente não seleccionado libcurl3:amd64.
  98. A preparar para desempacotar .../07-libcurl3_7.52.1-5+deb9u7_amd64.deb ...
  99. A descompactar libcurl3:amd64 (7.52.1-5+deb9u7) ...
  100. A seleccionar pacote anteriormente não seleccionado libgd3:amd64.
  101. A preparar para desempacotar .../08-libgd3_2.2.4-2+deb9u2_amd64.deb ...
  102. A descompactar libgd3:amd64 (2.2.4-2+deb9u2) ...
  103. A seleccionar pacote anteriormente não seleccionado libltdl7:amd64.
  104. A preparar para desempacotar .../09-libltdl7_2.4.6-2_amd64.deb ...
  105. A descompactar libltdl7:amd64 (2.4.6-2) ...
  106. A seleccionar pacote anteriormente não seleccionado libmcrypt4.
  107. A preparar para desempacotar .../10-libmcrypt4_2.5.8-3.3_amd64.deb ...
  108. A descompactar libmcrypt4 (2.5.8-3.3) ...
  109. A seleccionar pacote anteriormente não seleccionado libzip4:amd64.
  110. A preparar para desempacotar .../11-libzip4_1.1.2-1.1+b1_amd64.deb ...
  111. A descompactar libzip4:amd64 (1.1.2-1.1+b1) ...
  112. A seleccionar pacote anteriormente não seleccionado php7.0.
  113. A preparar para desempacotar .../12-php7.0_7.0.30-0+deb9u1_all.deb ...
  114. A descompactar php7.0 (7.0.30-0+deb9u1) ...
  115. A seleccionar pacote anteriormente não seleccionado php7.0-curl.
  116. A preparar para desempacotar .../13-php7.0-curl_7.0.30-0+deb9u1_amd64.deb ...
  117. A descompactar php7.0-curl (7.0.30-0+deb9u1) ...
  118. A seleccionar pacote anteriormente não seleccionado php7.0-gd.
  119. A preparar para desempacotar .../14-php7.0-gd_7.0.30-0+deb9u1_amd64.deb ...
  120. A descompactar php7.0-gd (7.0.30-0+deb9u1) ...
  121. A seleccionar pacote anteriormente não seleccionado php7.0-intl.
  122. A preparar para desempacotar .../15-php7.0-intl_7.0.30-0+deb9u1_amd64.deb ...
  123. A descompactar php7.0-intl (7.0.30-0+deb9u1) ...
  124. A seleccionar pacote anteriormente não seleccionado php7.0-mcrypt.
  125. A preparar para desempacotar .../16-php7.0-mcrypt_7.0.30-0+deb9u1_amd64.deb ...
  126. A descompactar php7.0-mcrypt (7.0.30-0+deb9u1) ...
  127. A seleccionar pacote anteriormente não seleccionado php7.0-mysql.
  128. A preparar para desempacotar .../17-php7.0-mysql_7.0.30-0+deb9u1_amd64.deb ...
  129. A descompactar php7.0-mysql (7.0.30-0+deb9u1) ...
  130. A seleccionar pacote anteriormente não seleccionado php7.0-soap.
  131. A preparar para desempacotar .../18-php7.0-soap_7.0.30-0+deb9u1_amd64.deb ...
  132. A descompactar php7.0-soap (7.0.30-0+deb9u1) ...
  133. A seleccionar pacote anteriormente não seleccionado php7.0-xml.
  134. A preparar para desempacotar .../19-php7.0-xml_7.0.30-0+deb9u1_amd64.deb ...
  135. A descompactar php7.0-xml (7.0.30-0+deb9u1) ...
  136. A seleccionar pacote anteriormente não seleccionado php7.0-zip.
  137. A preparar para desempacotar .../20-php7.0-zip_7.0.30-0+deb9u1_amd64.deb ...
  138. A descompactar php7.0-zip (7.0.30-0+deb9u1) ...
  139. Configurando libcurl3:amd64 (7.52.1-5+deb9u7) ...
  140. Configurando libgd3:amd64 (2.2.4-2+deb9u2) ...
  141. Configurando libzip4:amd64 (1.1.2-1.1+b1) ...
  142. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  143. Configurando php-common (1:49) ...
  144. Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
  145. Configurando libltdl7:amd64 (2.4.6-2) ...
  146. A processar 'triggers' para man-db (2.7.6.1-2) ...
  147. Configurando php7.0-common (7.0.30-0+deb9u1) ...
  148.  
  149. Creating config file /etc/php/7.0/mods-available/calendar.ini with new version
  150.  
  151. Creating config file /etc/php/7.0/mods-available/ctype.ini with new version
  152.  
  153. Creating config file /etc/php/7.0/mods-available/exif.ini with new version
  154.  
  155. Creating config file /etc/php/7.0/mods-available/fileinfo.ini with new version
  156.  
  157. Creating config file /etc/php/7.0/mods-available/ftp.ini with new version
  158.  
  159. Creating config file /etc/php/7.0/mods-available/gettext.ini with new version
  160.  
  161. Creating config file /etc/php/7.0/mods-available/iconv.ini with new version
  162.  
  163. Creating config file /etc/php/7.0/mods-available/pdo.ini with new version
  164.  
  165. Creating config file /etc/php/7.0/mods-available/phar.ini with new version
  166.  
  167. Creating config file /etc/php/7.0/mods-available/posix.ini with new version
  168.  
  169. Creating config file /etc/php/7.0/mods-available/shmop.ini with new version
  170.  
  171. Creating config file /etc/php/7.0/mods-available/sockets.ini with new version
  172.  
  173. Creating config file /etc/php/7.0/mods-available/sysvmsg.ini with new version
  174.  
  175. Creating config file /etc/php/7.0/mods-available/sysvsem.ini with new version
  176.  
  177. Creating config file /etc/php/7.0/mods-available/sysvshm.ini with new version
  178.  
  179. Creating config file /etc/php/7.0/mods-available/tokenizer.ini with new version
  180. Configurando php7.0-xml (7.0.30-0+deb9u1) ...
  181.  
  182. Creating config file /etc/php/7.0/mods-available/dom.ini with new version
  183.  
  184. Creating config file /etc/php/7.0/mods-available/simplexml.ini with new version
  185.  
  186. Creating config file /etc/php/7.0/mods-available/wddx.ini with new version
  187.  
  188. Creating config file /etc/php/7.0/mods-available/xml.ini with new version
  189.  
  190. Creating config file /etc/php/7.0/mods-available/xmlreader.ini with new version
  191.  
  192. Creating config file /etc/php/7.0/mods-available/xmlwriter.ini with new version
  193.  
  194. Creating config file /etc/php/7.0/mods-available/xsl.ini with new version
  195. Configurando php7.0-intl (7.0.30-0+deb9u1) ...
  196.  
  197. Creating config file /etc/php/7.0/mods-available/intl.ini with new version
  198. Configurando libmcrypt4 (2.5.8-3.3) ...
  199. Configurando php7.0-soap (7.0.30-0+deb9u1) ...
  200.  
  201. Creating config file /etc/php/7.0/mods-available/soap.ini with new version
  202. Configurando php7.0-mysql (7.0.30-0+deb9u1) ...
  203.  
  204. Creating config file /etc/php/7.0/mods-available/mysqlnd.ini with new version
  205.  
  206. Creating config file /etc/php/7.0/mods-available/mysqli.ini with new version
  207.  
  208. Creating config file /etc/php/7.0/mods-available/pdo_mysql.ini with new version
  209. Configurando php7.0-readline (7.0.30-0+deb9u1) ...
  210.  
  211. Creating config file /etc/php/7.0/mods-available/readline.ini with new version
  212. Configurando php7.0-opcache (7.0.30-0+deb9u1) ...
  213.  
  214. Creating config file /etc/php/7.0/mods-available/opcache.ini with new version
  215. Configurando php7.0-gd (7.0.30-0+deb9u1) ...
  216.  
  217. Creating config file /etc/php/7.0/mods-available/gd.ini with new version
  218. Configurando php7.0-mcrypt (7.0.30-0+deb9u1) ...
  219.  
  220. Creating config file /etc/php/7.0/mods-available/mcrypt.ini with new version
  221. Configurando php7.0-curl (7.0.30-0+deb9u1) ...
  222.  
  223. Creating config file /etc/php/7.0/mods-available/curl.ini with new version
  224. Configurando php7.0-zip (7.0.30-0+deb9u1) ...
  225.  
  226. Creating config file /etc/php/7.0/mods-available/zip.ini with new version
  227. Configurando php7.0-json (7.0.30-0+deb9u1) ...
  228.  
  229. Creating config file /etc/php/7.0/mods-available/json.ini with new version
  230. Configurando php7.0-cli (7.0.30-0+deb9u1) ...
  231. update-alternatives: a usar /usr/bin/php7.0 para disponibilizar /usr/bin/php (php) em modo auto
  232. update-alternatives: a usar /usr/bin/phar7.0 para disponibilizar /usr/bin/phar (phar) em modo auto
  233. update-alternatives: a usar /usr/bin/phar.phar7.0 para disponibilizar /usr/bin/phar.phar (phar.phar) em modo auto
  234.  
  235. Creating config file /etc/php/7.0/cli/php.ini with new version
  236. Configurando libapache2-mod-php7.0 (7.0.30-0+deb9u1) ...
  237.  
  238. Creating config file /etc/php/7.0/apache2/php.ini with new version
  239. Module mpm_event disabled.
  240. Enabling module mpm_prefork.
  241. apache2_switch_mpm Switch to prefork
  242. apache2_invoke: Enable module php7.0
  243. Configurando php7.0 (7.0.30-0+deb9u1) ...
  244. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  245. debian@paracambi:~$ sudo nano /etc/php/7.0/apache2/php.ini
  246. debian@paracambi:~$ sudo apt-get install mariadb-server -y
  247. Lendo listas de pacotes... Pronto
  248. Construindo árvore de dependências
  249. Lendo informação de estado... Pronto
  250. The following additional packages will be installed:
  251. galera-3 gawk libaio1 libdbd-mysql-perl libdbi-perl
  252. libhtml-template-perl libjemalloc1 libmariadbclient18
  253. libterm-readkey-perl mariadb-client-10.1
  254. mariadb-client-core-10.1 mariadb-common mariadb-server-10.1
  255. mariadb-server-core-10.1 socat
  256. Pacotes sugeridos:
  257. gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl
  258. libsql-statement-perl libipc-sharedcache-perl mariadb-test
  259. netcat-openbsd tinyca
  260. Os NOVOS pacotes a seguir serão instalados:
  261. galera-3 gawk libaio1 libdbd-mysql-perl libdbi-perl
  262. libhtml-template-perl libjemalloc1 libmariadbclient18
  263. libterm-readkey-perl mariadb-client-10.1
  264. mariadb-client-core-10.1 mariadb-common mariadb-server
  265. mariadb-server-10.1 mariadb-server-core-10.1 socat
  266. 0 pacotes atualizados, 16 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
  267. É preciso baixar 25,2 MB de arquivos.
  268. Depois desta operação, 190 MB adicionais de espaço em disco serão usados.
  269. Obter:1 http://deb.debian.org/debian stretch/main amd64 gawk amd64 1:4.1.4+dfsg-1 [571 kB]
  270. Obter:2 http://deb.debian.org/debian stretch/main amd64 mariadb-common all 10.1.26-0+deb9u1 [27,3 kB]
  271. Obter:3 http://deb.debian.org/debian stretch/main amd64 galera-3 amd64 25.3.19-2 [955 kB]
  272. Obter:4 http://deb.debian.org/debian stretch/main amd64 libdbi-perl amd64 1.636-1+b1 [766 kB]
  273. Obter:5 http://deb.debian.org/debian stretch/main amd64 libaio1 amd64 0.3.110-3 [9.412 B]
  274. Obter:6 http://deb.debian.org/debian stretch/main amd64 mariadb-client-core-10.1 amd64 10.1.26-0+deb9u1 [5.042 kB]
  275. Obter:7 http://deb.debian.org/debian stretch/main amd64 libjemalloc1 amd64 3.6.0-9.1 [89,8 kB]
  276. Obter:8 http://deb.debian.org/debian stretch/main amd64 mariadb-client-10.1 amd64 10.1.26-0+deb9u1 [5.841 kB]
  277. Obter:9 http://deb.debian.org/debian stretch/main amd64 mariadb-server-core-10.1 amd64 10.1.26-0+deb9u1 [5.177 kB]
  278. Obter:10 http://deb.debian.org/debian stretch/main amd64 socat amd64 1.7.3.1-2+deb9u1 [353 kB]
  279. Obter:11 http://deb.debian.org/debian stretch/main amd64 mariadb-server-10.1 amd64 10.1.26-0+deb9u1 [5.333 kB]
  280. Obter:12 http://deb.debian.org/debian stretch/main amd64 libmariadbclient18 amd64 10.1.26-0+deb9u1 [779 kB]
  281. Obter:13 http://deb.debian.org/debian stretch/main amd64 libdbd-mysql-perl amd64 4.041-2 [114 kB]
  282. Obter:14 http://deb.debian.org/debian stretch/main amd64 libhtml-template-perl all 2.95-2 [67,1 kB]
  283. Obter:15 http://deb.debian.org/debian stretch/main amd64 libterm-readkey-perl amd64 2.37-1 [27,2 kB]
  284. Obter:16 http://deb.debian.org/debian stretch/main amd64 mariadb-server all 10.1.26-0+deb9u1 [26,2 kB]
  285. Baixados 25,2 MB em 1s (14,8 MB/s)
  286. Pré-configurando pacotes ...
  287. Can't exec "/tmp/mariadb-server-10.1.config.HVbqKf": Permissão negada at /usr/share/perl/5.24/IPC/Open3.pm line 178.
  288. open2: exec of /tmp/mariadb-server-10.1.config.HVbqKf configure failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59.
  289. A seleccionar pacote anteriormente não seleccionado gawk.
  290. (Lendo banco de dados ... 64531 ficheiros e directórios actualmente instalados.)
  291. A preparar para desempacotar .../0-gawk_1%3a4.1.4+dfsg-1_amd64.deb ...
  292. A descompactar gawk (1:4.1.4+dfsg-1) ...
  293. A seleccionar pacote anteriormente não seleccionado mariadb-common.
  294. A preparar para desempacotar .../1-mariadb-common_10.1.26-0+deb9u1_all.deb ...
  295. A descompactar mariadb-common (10.1.26-0+deb9u1) ...
  296. A seleccionar pacote anteriormente não seleccionado galera-3.
  297. A preparar para desempacotar .../2-galera-3_25.3.19-2_amd64.deb ...
  298. A descompactar galera-3 (25.3.19-2) ...
  299. A seleccionar pacote anteriormente não seleccionado libdbi-perl.
  300. A preparar para desempacotar .../3-libdbi-perl_1.636-1+b1_amd64.deb ...
  301. A descompactar libdbi-perl (1.636-1+b1) ...
  302. A seleccionar pacote anteriormente não seleccionado libaio1:amd64.
  303. A preparar para desempacotar .../4-libaio1_0.3.110-3_amd64.deb ...
  304. A descompactar libaio1:amd64 (0.3.110-3) ...
  305. A seleccionar pacote anteriormente não seleccionado mariadb-client-core-10.1.
  306. A preparar para desempacotar .../5-mariadb-client-core-10.1_10.1.26-0+deb9u1_amd64.deb ...
  307. A descompactar mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  308. A seleccionar pacote anteriormente não seleccionado libjemalloc1.
  309. A preparar para desempacotar .../6-libjemalloc1_3.6.0-9.1_amd64.deb ...
  310. A descompactar libjemalloc1 (3.6.0-9.1) ...
  311. A seleccionar pacote anteriormente não seleccionado mariadb-client-10.1.
  312. A preparar para desempacotar .../7-mariadb-client-10.1_10.1.26-0+deb9u1_amd64.deb ...
  313. A descompactar mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  314. A seleccionar pacote anteriormente não seleccionado mariadb-server-core-10.1.
  315. A preparar para desempacotar .../8-mariadb-server-core-10.1_10.1.26-0+deb9u1_amd64.deb ...
  316. A descompactar mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  317. A seleccionar pacote anteriormente não seleccionado socat.
  318. A preparar para desempacotar .../9-socat_1.7.3.1-2+deb9u1_amd64.deb ...
  319. A descompactar socat (1.7.3.1-2+deb9u1) ...
  320. Configurando mariadb-common (10.1.26-0+deb9u1) ...
  321. update-alternatives: a usar /etc/mysql/mariadb.cnf para disponibilizar /etc/mysql/my.cnf (my.cnf) em modo auto
  322. A seleccionar pacote anteriormente não seleccionado mariadb-server-10.1.
  323. (Lendo banco de dados ... 65055 ficheiros e directórios actualmente instalados.)
  324. A preparar para desempacotar .../0-mariadb-server-10.1_10.1.26-0+deb9u1_amd64.deb ...
  325. A descompactar mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  326. A seleccionar pacote anteriormente não seleccionado libmariadbclient18:amd64.
  327. A preparar para desempacotar .../1-libmariadbclient18_10.1.26-0+deb9u1_amd64.deb ...
  328. A descompactar libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  329. A seleccionar pacote anteriormente não seleccionado libdbd-mysql-perl.
  330. A preparar para desempacotar .../2-libdbd-mysql-perl_4.041-2_amd64.deb ...
  331. A descompactar libdbd-mysql-perl (4.041-2) ...
  332. A seleccionar pacote anteriormente não seleccionado libhtml-template-perl.
  333. A preparar para desempacotar .../3-libhtml-template-perl_2.95-2_all.deb ...
  334. A descompactar libhtml-template-perl (2.95-2) ...
  335. A seleccionar pacote anteriormente não seleccionado libterm-readkey-perl.
  336. A preparar para desempacotar .../4-libterm-readkey-perl_2.37-1_amd64.deb ...
  337. A descompactar libterm-readkey-perl (2.37-1) ...
  338. A seleccionar pacote anteriormente não seleccionado mariadb-server.
  339. A preparar para desempacotar .../5-mariadb-server_10.1.26-0+deb9u1_all.deb ...
  340. A descompactar mariadb-server (10.1.26-0+deb9u1) ...
  341. Configurando libhtml-template-perl (2.95-2) ...
  342. Configurando libjemalloc1 (3.6.0-9.1) ...
  343. Configurando socat (1.7.3.1-2+deb9u1) ...
  344. Configurando libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  345. Configurando gawk (1:4.1.4+dfsg-1) ...
  346. Configurando libterm-readkey-perl (2.37-1) ...
  347. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  348. Configurando libaio1:amd64 (0.3.110-3) ...
  349. Configurando galera-3 (25.3.19-2) ...
  350. A processar 'triggers' para systemd (232-25+deb9u4) ...
  351. A processar 'triggers' para man-db (2.7.6.1-2) ...
  352. Configurando libdbi-perl (1.636-1+b1) ...
  353. Configurando mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  354. Configurando mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  355. Configurando libdbd-mysql-perl (4.041-2) ...
  356. Configurando mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  357. Configurando mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  358. Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
  359. Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
  360. Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
  361. Configurando mariadb-server (10.1.26-0+deb9u1) ...
  362. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  363. A processar 'triggers' para systemd (232-25+deb9u4) ...
  364. debian@paracambi:~$ sudo systemctl start mysql
  365. debian@paracambi:~$ sudo systemctl enable mysql
  366. Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
  367. Executing: /lib/systemd/systemd-sysv-install enable mysql
  368. Failed to enable unit: Refusing to operate on linked unit file mysql.service
  369. debian@paracambi:~$ sudo mysql_secure_installation
  370.  
  371. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  372. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  373.  
  374. In order to log into MariaDB to secure it, we'll need the current
  375. password for the root user. If you've just installed MariaDB, and
  376. you haven't set the root password yet, the password will be blank,
  377. so you should just press enter here.
  378.  
  379. Enter current password for root (enter for none):
  380. Aborting!
  381.  
  382. Cleaning up...
  383. debian@paracambi:~$ ^C
  384. debian@paracambi:~$ ^C
  385. debian@paracambi:~$ ^C
  386. debian@paracambi:~$ ^C
  387. debian@paracambi:~$ sudo systemctl start mysql
  388. debian@paracambi:~$ sudo systemctl stop mysql
  389. debian@paracambi:~$ sudo systemctl start mysql
  390. debian@paracambi:~$ sudo systemctl enable mysql
  391. Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
  392. Executing: /lib/systemd/systemd-sysv-install enable mysql
  393. Failed to enable unit: Refusing to operate on linked unit file mysql.service
  394. debian@paracambi:~$ /lib/systemd/systemd
  395. systemd systemd-quotacheck
  396. systemd-ac-power systemd-random-seed
  397. systemd-backlight systemd-remount-fs
  398. systemd-binfmt systemd-reply-password
  399. systemd-cgroups-agent systemd-resolved
  400. systemd-cryptsetup systemd-rfkill
  401. systemd-fsck systemd-shutdown
  402. systemd-fsckd systemd-sleep
  403. systemd-hibernate-resume systemd-socket-proxyd
  404. systemd-hostnamed systemd-sysctl
  405. systemd-initctl systemd-sysv-install
  406. systemd-journald systemd-timedated
  407. systemd-localed systemd-timesyncd
  408. systemd-logind systemd-udevd
  409. systemd-modules-load systemd-update-utmp
  410. systemd-networkd systemd-user-sessions
  411. systemd-networkd-wait-online
  412. debian@paracambi:~$ /lib/systemd/systemd-sysv-install enable mysql
  413. insserv: fopen(K01ossec): Permission denied
  414. update-rc.d: error: insserv rejected the script header
  415. debian@paracambi:~$ sudo /lib/systemd/systemd-sysv-install enable mysql
  416. debian@paracambi:~$ sudo mysql_secure_installation
  417.  
  418. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  419. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  420.  
  421. In order to log into MariaDB to secure it, we'll need the current
  422. password for the root user. If you've just installed MariaDB, and
  423. you haven't set the root password yet, the password will be blank,
  424. so you should just press enter here.
  425.  
  426. Enter current password for root (enter for none):
  427. OK, successfully used password, moving on...
  428.  
  429. Setting the root password ensures that nobody can log into the MariaDB
  430. root user without the proper authorisation.
  431.  
  432. Set root password? [Y/n] n
  433. ... skipping.
  434.  
  435. By default, a MariaDB installation has an anonymous user, allowing anyone
  436. to log into MariaDB without having to have a user account created for
  437. them. This is intended only for testing, and to make the installation
  438. go a bit smoother. You should remove them before moving into a
  439. production environment.
  440.  
  441. Remove anonymous users? [Y/n] Y
  442. ... Success!
  443.  
  444. Normally, root should only be allowed to connect from 'localhost'. This
  445. ensures that someone cannot guess at the root password from the network.
  446.  
  447. Disallow root login remotely? [Y/n] n
  448. ... skipping.
  449.  
  450. By default, MariaDB comes with a database named 'test' that anyone can
  451. access. This is also intended only for testing, and should be removed
  452. before moving into a production environment.
  453.  
  454. Remove test database and access to it? [Y/n] n
  455. ... skipping.
  456.  
  457. Reloading the privilege tables will ensure that all changes made so far
  458. will take effect immediately.
  459.  
  460. Reload privilege tables now? [Y/n] Y
  461. ... Success!
  462.  
  463. Cleaning up...
  464.  
  465. All done! If you've completed all of the above steps, your MariaDB
  466. installation should now be secure.
  467.  
  468. Thanks for using MariaDB!
  469. debian@paracambi:~$ mysql -u root -p
  470. Enter password:
  471. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  472. debian@paracambi:~$ sudo mysql_secure_installation
  473.  
  474. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  475. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  476.  
  477. In order to log into MariaDB to secure it, we'll need the current
  478. password for the root user. If you've just installed MariaDB, and
  479. you haven't set the root password yet, the password will be blank,
  480. so you should just press enter here.
  481.  
  482. Enter current password for root (enter for none):
  483. OK, successfully used password, moving on...
  484.  
  485. Setting the root password ensures that nobody can log into the MariaDB
  486. root user without the proper authorisation.
  487.  
  488. You already have a root password set, so you can safely answer 'n'.
  489.  
  490. Change the root password? [Y/n] n
  491. ... skipping.
  492.  
  493. By default, a MariaDB installation has an anonymous user, allowing anyone
  494. to log into MariaDB without having to have a user account created for
  495. them. This is intended only for testing, and to make the installation
  496. go a bit smoother. You should remove them before moving into a
  497. production environment.
  498.  
  499. Remove anonymous users? [Y/n] Y
  500. ... Success!
  501.  
  502. Normally, root should only be allowed to connect from 'localhost'. This
  503. ensures that someone cannot guess at the root password from the network.
  504.  
  505. Disallow root login remotely? [Y/n] Y
  506. ... Success!
  507.  
  508. By default, MariaDB comes with a database named 'test' that anyone can
  509. access. This is also intended only for testing, and should be removed
  510. before moving into a production environment.
  511.  
  512. Remove test database and access to it? [Y/n] Y
  513. - Dropping test database...
  514. ... Success!
  515. - Removing privileges on test database...
  516. ... Success!
  517.  
  518. Reloading the privilege tables will ensure that all changes made so far
  519. will take effect immediately.
  520.  
  521. Reload privilege tables now? [Y/n] Y
  522. ... Success!
  523.  
  524. Cleaning up...
  525.  
  526. All done! If you've completed all of the above steps, your MariaDB
  527. installation should now be secure.
  528.  
  529. Thanks for using MariaDB!
  530. debian@paracambi:~$ mysql -u root -p
  531. Enter password:
  532. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  533. debian@paracambi:~$ mysql -u root -p
  534. Enter password:
  535. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  536. debian@paracambi:~$ sudo nano /etc/my.cnf
  537. debian@paracambi:~$ cd /etc
  538. debian@paracambi:/etc$ ls
  539. acpi modprobe.d
  540. adduser.conf modules
  541. adjtime modules-load.d
  542. aliases motd
  543. alternatives mtab
  544. apache2 Muttrc
  545. apparmor Muttrc.d
  546. apparmor.d mysql
  547. apt nanorc
  548. apticron netconfig
  549. at.deny network
  550. bash.bashrc NetworkManager
  551. bash_completion networks
  552. bash_completion.d newt
  553. bindresvport.blacklist nsswitch.conf
  554. binfmt.d ntp.conf
  555. ca-certificates ntp.conf.dpkg-dist
  556. ca-certificates.conf opt
  557. ca-certificates.conf.dpkg-old os-release
  558. calendar ossec-init.conf
  559. chkrootkit.conf pam.conf
  560. console-setup pam.d
  561. cron.d papersize
  562. cron.daily passwd
  563. cron.hourly passwd-
  564. cron.monthly perl
  565. crontab php
  566. cron.weekly pm
  567. dbus-1 postgresql
  568. debconf.conf postgresql-common
  569. debian_version ppp
  570. default profile
  571. deluser.conf profile.d
  572. dhcp protocols
  573. dictionaries-common python
  574. discover.conf.d python2.7
  575. discover-modprobe.conf python3
  576. dpkg python3.5
  577. drirc rc0.d
  578. emacs rc1.d
  579. email-addresses rc2.d
  580. environment rc3.d
  581. exim4 rc4.d
  582. fonts rc5.d
  583. fstab rc6.d
  584. gai.conf rc.local
  585. ghostscript rcS.d
  586. groff reportbug.conf
  587. group request-key.conf
  588. group- request-key.d
  589. grub.d resolv.conf
  590. gshadow rkhunter.conf
  591. gshadow- rmt
  592. gss rpc
  593. gtk-2.0 rsyslog.conf
  594. host.conf rsyslog.d
  595. hostname securetty
  596. hosts security
  597. hosts.allow selinux
  598. hosts.deny sensors3.conf
  599. idmapd.conf sensors.d
  600. init services
  601. init.d sgml
  602. initramfs-tools shadow
  603. inputrc shadow-
  604. insserv shells
  605. insserv.conf skel
  606. insserv.conf.d ssh
  607. iproute2 ssl
  608. iscsi staff-group-for-usr-local
  609. issue subgid
  610. issue.net subgid-
  611. kernel subuid
  612. kernel-img.conf subuid-
  613. ldap sudoers
  614. ld.so.cache sudoers.d
  615. ld.so.conf sysctl.conf
  616. ld.so.conf.d sysctl.d
  617. libaudit.conf sysstat
  618. locale.alias systemd
  619. locale.gen terminfo
  620. localtime texmf
  621. logcheck timezone
  622. login.defs tmpfiles.d
  623. login.defs.dpkg-dist ucf.conf
  624. logrotate.conf udev
  625. logrotate.d ufw
  626. lvm updatedb.conf
  627. machine-id update-motd.d
  628. magic vim
  629. magic.mime vmware-caf
  630. mailcap vmware-tools
  631. mailcap.order w3m
  632. mailname wgetrc
  633. mail.rc X11
  634. manpath.config xdg
  635. mime.types xml
  636. mke2fs.conf zabbix
  637. debian@paracambi:/etc$ cd mysql/
  638. debian@paracambi:/etc/mysql$ ls
  639. conf.d debian-start mariadb.conf.d my.cnf.fallback
  640. debian.cnf mariadb.cnf my.cnf
  641. debian@paracambi:/etc/mysql$ sudo nano my.cnf
  642. debian@paracambi:/etc/mysql$ mysql -u root -p
  643. mysql: unknown option '--skip-grant-tables'
  644. debian@paracambi:/etc/mysql$ sudo nano my.cnf
  645. [sudo] senha para debian:
  646. debian@paracambi:/etc/mysql$ mysql -u root -p
  647. mysql: unknown option '--mysqld'
  648. debian@paracambi:/etc/mysql$ sudo nano my.cnf
  649. debian@paracambi:/etc/mysql$ mysql -u localhost -u root -p mysql
  650. Enter password:
  651. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  652. debian@paracambi:/etc/mysql$ tempo limite de espera excedido aguardando entrada: fim automático da sessão
  653. Connection to 10.6.1.34 closed.
  654. reidtic009242:~ 2221364$ sudo mysql -u root -p
  655. Password:
  656. Sorry, try again.
  657. Password:
  658. Sorry, try again.
  659. Password:
  660. sudo: 3 incorrect password attempts
  661. reidtic009242:~ 2221364$ sudo mysql -u root -p
  662. Password:
  663. Sorry, try again.
  664. Password:
  665. sudo: 1 incorrect password attempt
  666. reidtic009242:~ 2221364$
  667. reidtic009242:~ 2221364$
  668. reidtic009242:~ 2221364$
  669. reidtic009242:~ 2221364$ mysql -u root -p
  670. Enter password:
  671.  
  672. reidtic009242:~ 2221364$
  673. reidtic009242:~ 2221364$
  674. reidtic009242:~ 2221364$
  675. reidtic009242:~ 2221364$ mysql -u root
  676. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
  677. reidtic009242:~ 2221364$ sudo systemctl mysqld
  678. Password:
  679. reidtic009242:~ 2221364$
  680. reidtic009242:~ 2221364$ sudo systemctl mysqld start
  681. Password:
  682. reidtic009242:~ 2221364$ sudo systemctl mysql start
  683. Password:
  684. Sorry, try again.
  685. Password:
  686. sudo: 1 incorrect password attempt
  687. reidtic009242:~ 2221364$
  688. reidtic009242:~ 2221364$
  689. reidtic009242:~ 2221364$ ssh debian@10.6.1.34
  690. debian@10.6.1.34's password:
  691. Linux paracambi 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u5 (2018-09-30) x86_64
  692.  
  693. The programs included with the Debian GNU/Linux system are free software;
  694. the exact distribution terms for each program are described in the
  695. individual files in /usr/share/doc/*/copyright.
  696.  
  697. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  698. permitted by applicable law.
  699. Last login: Wed Oct 24 16:11:43 2018 from 10.4.1.4
  700. debian@paracambi:~$ mysql -u root -p
  701. Enter password:
  702. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  703. debian@paracambi:~$
  704. debian@paracambi:~$ mysql -u root
  705. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  706. debian@paracambi:~$ sudo systemctl start mysql
  707. [sudo] senha para debian:
  708. debian@paracambi:~$ mysql -u root
  709. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  710. debian@paracambi:~$ sudo /etc/init.d/mysql stop
  711. [ ok ] Stopping mysql (via systemctl): mysql.service.
  712. debian@paracambi:~$ sudo mysqld_safe --skip-grant-tables &
  713. [1] 26087
  714. debian@paracambi:~$ 181024 16:58:57 mysqld_safe Logging to syslog.
  715. 181024 16:58:57 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
  716. debian@paracambi:~$
  717. debian@paracambi:~$ mysql -uroot
  718. Welcome to the MariaDB monitor. Commands end with ; or \g.
  719. Your MariaDB connection id is 2
  720. Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1
  721.  
  722. Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
  723.  
  724. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  725.  
  726. MariaDB [(none)]> use mysql;
  727. Reading table information for completion of table and column names
  728. You can turn off this feature to get a quicker startup with -A
  729.  
  730. Database changed
  731. MariaDB [mysql]> update user set password=PASSWORD("root") where User='root';
  732. Query OK, 1 row affected (0.00 sec)
  733. Rows matched: 1 Changed: 1 Warnings: 0
  734.  
  735. MariaDB [mysql]> flush privileges;
  736. Query OK, 0 rows affected (0.00 sec)
  737.  
  738. MariaDB [mysql]> quit
  739. Bye
  740. debian@paracambi:~$ mysql -u root -p
  741. Enter password:
  742. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  743. debian@paracambi:~$ mysql -u root
  744. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  745. debian@paracambi:~$ mysql -u root -p
  746. Enter password:
  747. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  748. debian@paracambi:~$ /etc/init.d/mysql stop
  749. [....] Stopping mysql (via systemctl): mysql.serviceFailed to stop mysql.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
  750. See system logs and 'systemctl status mysql.service' for details.
  751. failed!
  752. debian@paracambi:~$ sudo systemctl stop mysql
  753. debian@paracambi:~$ /etc/init.d/mysql start
  754. [....] Starting mysql (via systemctl): mysql.serviceFailed to start mysql.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
  755. See system logs and 'systemctl status mysql.service' for details.
  756. failed!
  757. debian@paracambi:~$ mysql -u root -p
  758. Enter password:
  759. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  760. debian@paracambi:~$
  761. debian@paracambi:~$
  762. debian@paracambi:~$
  763. debian@paracambi:~$
  764. debian@paracambi:~$
  765. debian@paracambi:~$
  766. debian@paracambi:~$ /etc/init.d/mysql stop
  767. [....] Stopping mysql (via systemctl): mysql.serviceFailed to stop mysql.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
  768. See system logs and 'systemctl status mysql.service' for details.
  769. failed!
  770. debian@paracambi:~$ mysql -u root -p
  771. Enter password:
  772. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  773. debian@paracambi:~$ sudo systemctl stop mariadb.service
  774. debian@paracambi:~$
  775. debian@paracambi:~$ sudo service mysql stop
  776. debian@paracambi:~$ sudo mysqld_safe --skip-grant-tables --skip-networking &
  777. [2] 26546
  778. debian@paracambi:~$ 181024 17:02:45 mysqld_safe Logging to syslog.
  779. 181024 17:02:46 mysqld_safe A mysqld process already exists
  780.  
  781. [2]+ Fim da execução com status 1 sudo mysqld_safe --skip-grant-tables --skip-networking
  782. debian@paracambi:~$
  783. debian@paracambi:~$
  784. debian@paracambi:~$
  785. debian@paracambi:~$
  786. debian@paracambi:~$
  787. top - 17:03:55 up 20 days, 1:45, 1 user, load average: 0,00, 0,00, 0,00
  788. Tasks: 145 total, 1 running, 144 sleeping, 0 stopped, 0 zombie
  789. %Cpu(s): 0,7 us, 0,7 sy, 0,0 ni, 98,7 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
  790. KiB Mem : 1020384 total, 112412 free, 266244 used, 641728 buff/cache
  791. KiB Swap: 1949692 total, 1937588 free, 12104 used. 542712 avail Mem
  792.  
  793. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
  794. 26706 debian 20 0 44920 3716 3080 R 0,7 0,4 0:00.24 top
  795. 1 root 20 0 204896 5928 4272 S 0,0 0,6 0:17.31 systemd
  796. 2 root 20 0 0 0 0 S 0,0 0,0 0:00.24 kthreadd
  797. 3 root 20 0 0 0 0 S 0,0 0,0 0:18.04 ksoftirqd/0
  798. 5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
  799. 7 root 20 0 0 0 0 S 0,0 0,0 2:42.66 rcu_sched
  800. 8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh
  801. 9 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/0
  802. 10 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 lru-add-drain
  803. 11 root rt 0 0 0 0 S 0,0 0,0 0:03.97 watchdog/0
  804. 12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0
  805. 13 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs
  806. 14 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns
  807. 15 root 20 0 0 0 0 S 0,0 0,0 0:01.28 khungtaskd
  808. 16 root 20 0 0 0 0 S 0,0 0,0 0:00.00 oom_reaper
  809. 17 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 writeback
  810. 18 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kcompactd0
  811. 19 root 25 5 0 0 0 S 0,0 0,0 0:00.00 ksmd
  812. 21 root 39 19 0 0 0 S 0,0 0,0 0:00.05 khugepaged
  813. 22 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 crypto
  814. 23 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kintegrityd
  815. 24 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset
  816. 25 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kblockd
  817. 26 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 devfreq_wq
  818. 27 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 watchdogd
  819. 28 root 20 0 0 0 0 S 0,0 0,0 0:03.72 kswapd0
  820. 29 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 vmstat
  821. 41 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kthrotld
  822. 42 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 ipv6_addrconf
  823. debian@paracambi:~$ ^C
  824. debian@paracambi:~$ ^C
  825. debian@paracambi:~$ ^C
  826. debian@paracambi:~$ ^C
  827. debian@paracambi:~$ ^C
  828. debian@paracambi:~$ ^C
  829. debian@paracambi:~$ ^C
  830. debian@paracambi:~$ ^C
  831. debian@paracambi:~$ ps
  832. PID TTY TIME CMD
  833. 25976 pts/0 00:00:00 bash
  834. 26735 pts/0 00:00:00 ps
  835. debian@paracambi:~$ top
  836.  
  837. top - 17:04:28 up 20 days, 1:46, 1 user, load average: 0,00, 0,00, 0,00
  838. Tasks: 145 total, 2 running, 143 sleeping, 0 stopped, 0 zombie
  839. %Cpu(s): 0,3 us, 0,7 sy, 0,0 ni, 99,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
  840. KiB Mem : 1020384 total, 112404 free, 266244 used, 641736 buff/cache
  841. KiB Swap: 1949692 total, 1937588 free, 12104 used. 542712 avail Mem
  842.  
  843. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
  844. 9034 root 20 0 0 0 0 S 0,3 0,0 0:00.15 kworker/u2:0
  845. 25975 debian 20 0 95204 3836 2864 S 0,3 0,4 0:00.17 sshd
  846. 26737 debian 20 0 44920 3616 2968 R 0,3 0,4 0:00.11 top
  847. 1 root 20 0 204896 5928 4272 S 0,0 0,6 0:17.31 systemd
  848. 2 root 20 0 0 0 0 S 0,0 0,0 0:00.24 kthreadd
  849. 3 root 20 0 0 0 0 S 0,0 0,0 0:18.04 ksoftirqd/0
  850. 5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
  851. 7 root 20 0 0 0 0 R 0,0 0,0 2:42.66 rcu_sched
  852. 8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh
  853. 9 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/0
  854. 10 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 lru-add-drain
  855. 11 root rt 0 0 0 0 S 0,0 0,0 0:03.97 watchdog/0
  856. 12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0
  857. 13 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs
  858. 14 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns
  859. 15 root 20 0 0 0 0 S 0,0 0,0 0:01.28 khungtaskd
  860. 16 root 20 0 0 0 0 S 0,0 0,0 0:00.00 oom_reaper
  861. 17 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 writeback
  862. 18 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kcompactd0
  863. 19 root 25 5 0 0 0 S 0,0 0,0 0:00.00 ksmd
  864. 21 root 39 19 0 0 0 S 0,0 0,0 0:00.05 khugepaged
  865. 22 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 crypto
  866. 23 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kintegrityd
  867. 24 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset
  868. 25 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kblockd
  869. 26 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 devfreq_wq
  870. 27 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 watchdogd
  871. 28 root 20 0 0 0 0 S 0,0 0,0 0:03.72 kswapd0
  872. 29 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 vmstat
  873. debian@paracambi:~$ ^C
  874. debian@paracambi:~$ ^C
  875. debian@paracambi:~$ ^C
  876. debian@paracambi:~$ renice
  877.  
  878. Uso:
  879. renice [-n] <prioridade> [-p|--pid] <pid>...
  880. renice [-n] <prioridade> -g|--pgrp <pgid>...
  881. renice [-n] <prioridade> -u|--user <usuário>...
  882.  
  883. Altera a prioridade de processos em execução.
  884.  
  885. Opções:
  886. -n, --priority <núm> especifica o valor de aumento do "nice"
  887. -p, --pid <id> interpreta um argumento como ID de processo (padrão)
  888. -g, --pgrp <id> interpreta um argumento como ID de grupo de processo
  889. -u, --user <nome>|<id> interpreta argumento como nome ou ID de usuário
  890.  
  891. -h, --help exibe esta ajuda e sai
  892. -V, --version mostra informação da versão e sai
  893.  
  894. Para mais detalhes, veja renice(1).
  895. debian@paracambi:~$ pstree
  896. systemd─┬─acpid
  897. ├─agetty
  898. ├─apache2───6*[apache2]
  899. ├─atd
  900. ├─cron
  901. ├─dbus-daemon
  902. ├─exim4
  903. ├─java───41*[{java}]
  904. ├─lvmetad
  905. ├─ntpd───{ntpd}
  906. ├─ossec-analysisd
  907. ├─ossec-csyslogd
  908. ├─ossec-logcollec
  909. ├─ossec-monitord
  910. ├─ossec-syscheckd
  911. ├─postgres───5*[postgres]
  912. ├─rpcbind
  913. ├─rsyslogd─┬─{in:imklog}
  914. │ ├─{in:imuxsock}
  915. │ └─{rs:main Q:Reg}
  916. ├─sshd───sshd───sshd───bash─┬─pstree
  917. │ └─sudo───mysqld_safe─┬─logger
  918. │ └─mysqld───26*[{mysqld}]
  919. ├─2*[systemd───(sd-pam)]
  920. ├─systemd-journal
  921. ├─systemd-logind
  922. ├─systemd-udevd
  923. └─zabbix_agentd───5*[zabbix_agentd]
  924. debian@paracambi:~$ ps
  925. PID TTY TIME CMD
  926. 25976 pts/0 00:00:00 bash
  927. 26775 pts/0 00:00:00 ps
  928. debian@paracambi:~$ PPID
  929. -bash: PPID: comando não encontrado
  930. debian@paracambi:~$ top
  931.  
  932. top - 17:06:46 up 20 days, 1:48, 1 user, load average: 0,00, 0,00, 0,00
  933. Tasks: 145 total, 1 running, 144 sleeping, 0 stopped, 0 zombie
  934. %Cpu(s): 6,7 us, 13,3 sy, 0,0 ni, 80,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
  935. KiB Mem : 1020384 total, 110676 free, 266252 used, 643456 buff/cache
  936. KiB Swap: 1949692 total, 1937588 free, 12104 used. 542704 avail Mem
  937.  
  938. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
  939. 26809 debian 20 0 44920 3692 3048 R 14,3 0,4 0:00.44 top
  940. 25975 debian 20 0 95204 3836 2864 S 7,1 0,4 0:00.30 sshd
  941. 1 root 20 0 204896 5928 4272 S 0,0 0,6 0:17.32 systemd
  942. 2 root 20 0 0 0 0 S 0,0 0,0 0:00.24 kthreadd
  943. 3 root 20 0 0 0 0 S 0,0 0,0 0:18.05 ksoftirqd/0
  944. 5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
  945. 7 root 20 0 0 0 0 S 0,0 0,0 2:42.68 rcu_sched
  946. 8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh
  947. 9 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/0
  948. 10 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 lru-add-drain
  949. 11 root rt 0 0 0 0 S 0,0 0,0 0:03.97 watchdog/0
  950. 12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0
  951. 13 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs
  952. 14 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns
  953. 15 root 20 0 0 0 0 S 0,0 0,0 0:01.28 khungtaskd
  954. 16 root 20 0 0 0 0 S 0,0 0,0 0:00.00 oom_reaper
  955. 17 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 writeback
  956. 18 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kcompactd0
  957. 19 root 25 5 0 0 0 S 0,0 0,0 0:00.00 ksmd
  958. 21 root 39 19 0 0 0 S 0,0 0,0 0:00.05 khugepaged
  959. 22 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 crypto
  960. 23 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kintegrityd
  961. 24 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset
  962. 25 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kblockd
  963. 26 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 devfreq_wq
  964. 27 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 watchdogd
  965. 28 root 20 0 0 0 0 S 0,0 0,0 0:03.72 kswapd0
  966. 29 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 vmstat
  967. 41 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kthrotld
  968. debian@paracambi:~$ ^C
  969. debian@paracambi:~$ ^C
  970. debian@paracambi:~$ ^C
  971. debian@paracambi:~$ ^C
  972. debian@paracambi:~$ ps aux | grep mysql
  973. root 26087 0.0 0.3 49328 3692 pts/0 S 16:58 0:00 sudo mysqld_safe --skip-grant-tables
  974. root 26088 0.0 0.3 11456 3108 pts/0 S 16:58 0:00 /bin/bash /usr/bin/mysqld_safe --skip-grant-tables
  975. mysql 26235 0.1 7.3 649424 75104 pts/0 Sl 16:58 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/x86_64-linux-gnu/mariadb18/plugin --user=mysql --skip-grant-tables --skip-log-error --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
  976. root 26236 0.0 0.1 27032 1436 pts/0 S 16:58 0:00 logger -t mysqld -p daemon error
  977. debian 26836 0.0 0.0 12784 988 pts/0 S+ 17:06 0:00 grep mysql
  978. debian@paracambi:~$ sudo kill -9 23236
  979. kill: (23236): Processo inexistente
  980. debian@paracambi:~$ sudo kill -9 26236
  981. debian@paracambi:~$ ps aux | grep mysql
  982. root 26087 0.0 0.3 49328 3692 pts/0 S 16:58 0:00 sudo mysqld_safe --skip-grant-tables
  983. root 26088 0.0 0.3 11456 3108 pts/0 S 16:58 0:00 /bin/bash /usr/bin/mysqld_safe --skip-grant-tables
  984. mysql 26235 0.1 7.3 649424 75104 pts/0 Sl 16:58 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/x86_64-linux-gnu/mariadb18/plugin --user=mysql --skip-grant-tables --skip-log-error --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
  985. debian 26875 0.0 0.0 12784 972 pts/0 S+ 17:07 0:00 grep mysql
  986. debian@paracambi:~$ c^C
  987. debian@paracambi:~$ ^C
  988. debian@paracambi:~$ ^C
  989. debian@paracambi:~$ ^C
  990. debian@paracambi:~$ ^C
  991. debian@paracambi:~$ ^C
  992. debian@paracambi:~$ ^C
  993. debian@paracambi:~$ ^C
  994. debian@paracambi:~$ ^C
  995. debian@paracambi:~$
  996. debian@paracambi:~$
  997. debian@paracambi:~$
  998. debian@paracambi:~$
  999. debian@paracambi:~$
  1000. debian@paracambi:~$ sudo mysqld_safe --skip-grant-tables --skip-networking &
  1001. [2] 26883
  1002. debian@paracambi:~$ 181024 17:08:11 mysqld_safe Logging to syslog.
  1003. 181024 17:08:11 mysqld_safe A mysqld process already exists
  1004. ^C
  1005. [2]+ Fim da execução com status 1 sudo mysqld_safe --skip-grant-tables --skip-networking
  1006. debian@paracambi:~$ ^C
  1007. debian@paracambi:~$ ^C
  1008. debian@paracambi:~$ ^C
  1009. debian@paracambi:~$ sudo kill -9 26883
  1010. kill: (26883): Processo inexistente
  1011. debian@paracambi:~$ sudo kill -9 181024
  1012. kill: (181024): Processo inexistente
  1013. debian@paracambi:~$
  1014. debian@paracambi:~$
  1015. debian@paracambi:~$
  1016. debian@paracambi:~$
  1017. debian@paracambi:~$
  1018. debian@paracambi:~$ mysql -u root
  1019. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  1020. debian@paracambi:~$ cd /etc/m
  1021. modprobe.d/ modules-load.d/ mysql/
  1022. debian@paracambi:~$ cd /etc/m
  1023. modprobe.d/ modules-load.d/ mysql/
  1024. debian@paracambi:~$ cd /etc/mysql/
  1025. conf.d/ mariadb.conf.d/
  1026. debian@paracambi:~$ sudo systemctl start mysql
  1027. ^C
  1028. debian@paracambi:~$ ^C
  1029. debian@paracambi:~$ ^C
  1030. debian@paracambi:~$ ^C
  1031. debian@paracambi:~$ ^C
  1032. debian@paracambi:~$ service mysql status
  1033. -bash: service: comando não encontrado
  1034. debian@paracambi:~$ sudo service mysql status
  1035. ● mariadb.service - MariaDB database server
  1036. Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
  1037. Active: activating (start) since Wed 2018-10-24 17:09:40 -03; 51s ago
  1038. Process: 27151 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -
  1039. Process: 27145 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  1040. Process: 27144 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
  1041. Main PID: 27242 (mysqld)
  1042. Status: "InnoDB: Error: Unable to lock ./ibdata1, error: 11"
  1043. Tasks: 12 (limit: 4915)
  1044. CGroup: /system.slice/mariadb.service
  1045. └─27242 /usr/sbin/mysqld
  1046.  
  1047. out 24 17:09:40 paracambi systemd[1]: Starting MariaDB database server...
  1048. out 24 17:09:40 paracambi mysqld[27242]: 2018-10-24 17:09:40 140384893633088 [Note] /usr/sbin/mysqld (mysqld 10.1.26-MariaDB-0
  1049. /var/lib/mysql
  1050. debian@paracambi:~$ ^C
  1051. debian@paracambi:~$ ^C
  1052. debian@paracambi:~$ ^C
  1053. debian@paracambi:~$ ^C
  1054. debian@paracambi:~$ cd /var/lib/mysql
  1055. debian@paracambi:/var/lib/mysql$ sudo su
  1056. root@paracambi:/var/lib/mysql# mkdir bak
  1057. root@paracambi:/var/lib/mysql# mv ib
  1058. ibdata1 ib_logfile0 ib_logfile1
  1059. root@paracambi:/var/lib/mysql# mv ib
  1060. ibdata1 ib_logfile0 ib_logfile1
  1061. root@paracambi:/var/lib/mysql# mv ib
  1062. ibdata1 ib_logfile0 ib_logfile1
  1063. root@paracambi:/var/lib/mysql# mv ib
  1064. ibdata1 ib_logfile0 ib_logfile1
  1065. root@paracambi:/var/lib/mysql# mv ibdata1 bak
  1066. root@paracambi:/var/lib/mysql# mv ib_logfile* bak/
  1067. root@paracambi:/var/lib/mysql# cp -a bak/ibdata1 ibdata1
  1068. root@paracambi:/var/lib/mysql# cp -a bak/ib_logfile* .
  1069. root@paracambi:/var/lib/mysql# rm -rf bak
  1070. root@paracambi:/var/lib/mysql# service mysqld restart
  1071. ^C
  1072. root@paracambi:/var/lib/mysql# ^C
  1073. root@paracambi:/var/lib/mysql# ^C
  1074. root@paracambi:/var/lib/mysql# ^C
  1075. root@paracambi:/var/lib/mysql# exit
  1076. exit
  1077. debian@paracambi:/var/lib/mysql$ sudo service mysql status
  1078. ● mariadb.service - MariaDB database server
  1079. Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
  1080. Active: activating (start) since Wed 2018-10-24 17:12:38 -03; 29s ago
  1081. Process: 27377 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -
  1082. Process: 27371 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  1083. Process: 27370 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
  1084. Main PID: 27466 (mysqld)
  1085. Tasks: 2 (limit: 4915)
  1086. CGroup: /system.slice/mariadb.service
  1087. └─27466 /usr/sbin/mysqld
  1088.  
  1089. out 24 17:12:38 paracambi systemd[1]: Starting MariaDB database server...
  1090. out 24 17:12:39 paracambi mysqld[27466]: 2018-10-24 17:12:39 140016453308992 [Note] /usr/sbin/mysqld (mysqld 10.1.26-MariaDB-0
  1091.  
  1092. debian@paracambi:/var/lib/mysql$ ^C
  1093. debian@paracambi:/var/lib/mysql$ ^C
  1094. debian@paracambi:/var/lib/mysql$ ^C
  1095. debian@paracambi:/var/lib/mysql$ ^C
  1096. debian@paracambi:/var/lib/mysql$ ^C
  1097. debian@paracambi:/var/lib/mysql$ ^C
  1098. debian@paracambi:/var/lib/mysql$ ^C
  1099. debian@paracambi:/var/lib/mysql$ ^C
  1100. debian@paracambi:/var/lib/mysql$ ^C
  1101. debian@paracambi:/var/lib/mysql$ ^C
  1102. debian@paracambi:/var/lib/mysql$ mysql -u root
  1103. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  1104. debian@paracambi:/var/lib/mysql$ sudo nano /etc/
  1105. Display all 197 possibilities? (y or n)
  1106. debian@paracambi:/var/lib/mysql$ sudo nano /etc/mysql/
  1107. conf.d/ debian.cnf debian-start mariadb.cnf mariadb.conf.d/ my.cnf my.cnf.fallback
  1108. debian@paracambi:/var/lib/mysql$ sudo nano /etc/mysql/
  1109. conf.d/ debian.cnf debian-start mariadb.cnf mariadb.conf.d/ my.cnf my.cnf.fallback
  1110. debian@paracambi:/var/lib/mysql$ sudo nano /etc/mysql/my.cnf
  1111. debian@paracambi:/var/lib/mysql$ sudo mysql
  1112. Welcome to the MariaDB monitor. Commands end with ; or \g.
  1113. Your MariaDB connection id is 10
  1114. Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1
  1115.  
  1116. Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
  1117.  
  1118. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  1119.  
  1120. MariaDB [(none)]> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
  1121. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'' at line 1
  1122. MariaDB [(none)]> Bye
  1123. debian@paracambi:/var/lib/mysql$ sudo mysql -e
  1124. mysql: option '-e' requires an argument
  1125. debian@paracambi:/var/lib/mysql$ sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'"ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'' at line 1
  1126. debian@paracambi:/var/lib/mysql$ sudo systemctl stop mysql
  1127. ^C
  1128. debian@paracambi:/var/lib/mysql$ ^C
  1129. debian@paracambi:/var/lib/mysql$ ^C
  1130. debian@paracambi:/var/lib/mysql$ ^C
  1131. debian@paracambi:/var/lib/mysql$ mysql -u root
  1132. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  1133. debian@paracambi:/var/lib/mysql$ sudo mysqld_safe --skip-grant-tables --skip-networking &
  1134. [2] 28471
  1135. debian@paracambi:/var/lib/mysql$ 181024 17:17:30 mysqld_safe Logging to syslog.
  1136. 181024 17:17:30 mysqld_safe A mysqld process already exists
  1137. ^C
  1138. [2]+ Fim da execução com status 1 sudo mysqld_safe --skip-grant-tables --skip-networking
  1139. debian@paracambi:/var/lib/mysql$ ^C
  1140. debian@paracambi:/var/lib/mysql$ ^C
  1141. debian@paracambi:/var/lib/mysql$ ^C
  1142. debian@paracambi:/var/lib/mysql$ ^C
  1143. debian@paracambi:/var/lib/mysql$ ^C
  1144. debian@paracambi:/var/lib/mysql$ ^C
  1145. debian@paracambi:/var/lib/mysql$ ^C
  1146. debian@paracambi:/var/lib/mysql$ ^C
  1147. debian@paracambi:/var/lib/mysql$ ^C
  1148. debian@paracambi:/var/lib/mysql$ cd /
  1149. debian@paracambi:/$ sudo service mysql stop
  1150. debian@paracambi:/$ sudo apt-get --purge remove "mysql*"
  1151. Lendo listas de pacotes... Pronto
  1152. Construindo árvore de dependências
  1153. Lendo informação de estado... Pronto
  1154. Note, selecting 'mysqltcl' for glob 'mysql*'
  1155. Note, selecting 'mysql-workbench' for glob 'mysql*'
  1156. Note, selecting 'mysql-client-5.5' for glob 'mysql*'
  1157. Note, selecting 'mysql-client-5.6' for glob 'mysql*'
  1158. Note, selecting 'mysql-client-5.7' for glob 'mysql*'
  1159. Note, selecting 'mysql-common-5.6' for glob 'mysql*'
  1160. Note, selecting 'mysql-server-5.5' for glob 'mysql*'
  1161. Note, selecting 'mysql-server-5.6' for glob 'mysql*'
  1162. Note, selecting 'mysql-server-5.7' for glob 'mysql*'
  1163. Note, selecting 'mysql-utilities' for glob 'mysql*'
  1164. Note, selecting 'mysql-testsuite' for glob 'mysql*'
  1165. Note, selecting 'mysql-server' for glob 'mysql*'
  1166. Note, selecting 'mysql-client' for glob 'mysql*'
  1167. Note, selecting 'mysql-sandbox' for glob 'mysql*'
  1168. Note, selecting 'mysql-client-core-5.5' for glob 'mysql*'
  1169. Note, selecting 'mysql-client-core-5.6' for glob 'mysql*'
  1170. Note, selecting 'mysql-client-core-5.7' for glob 'mysql*'
  1171. Note, selecting 'mysql-testsuite-5.5' for glob 'mysql*'
  1172. Note, selecting 'mysql-testsuite-5.6' for glob 'mysql*'
  1173. Note, selecting 'mysql-testsuite-5.7' for glob 'mysql*'
  1174. Note, selecting 'mysql-common' for glob 'mysql*'
  1175. Note, selecting 'mysqltuner' for glob 'mysql*'
  1176. Note, selecting 'mysql-workbench-data' for glob 'mysql*'
  1177. Note, selecting 'mysql-server-core-5.5' for glob 'mysql*'
  1178. Note, selecting 'mysql-server-core-5.6' for glob 'mysql*'
  1179. Note, selecting 'mysql-server-core-5.7' for glob 'mysql*'
  1180. O pacote 'mysql-client-core-5.5' não está instalado, por isso não será removido
  1181. O pacote 'mysql-client-core-5.6' não está instalado, por isso não será removido
  1182. O pacote 'mysql-client-core-5.7' não está instalado, por isso não será removido
  1183. O pacote 'mysql-client-5.5' não está instalado, por isso não será removido
  1184. O pacote 'mysql-client-5.6' não está instalado, por isso não será removido
  1185. O pacote 'mysql-client-5.7' não está instalado, por isso não será removido
  1186. O pacote 'mysql-server-core-5.5' não está instalado, por isso não será removido
  1187. O pacote 'mysql-server-core-5.6' não está instalado, por isso não será removido
  1188. O pacote 'mysql-server-core-5.7' não está instalado, por isso não será removido
  1189. O pacote 'mysql-server-5.5' não está instalado, por isso não será removido
  1190. O pacote 'mysql-server-5.6' não está instalado, por isso não será removido
  1191. O pacote 'mysql-server-5.7' não está instalado, por isso não será removido
  1192. O pacote 'mysql-testsuite' não está instalado, por isso não será removido
  1193. O pacote 'mysql-testsuite-5.5' não está instalado, por isso não será removido
  1194. O pacote 'mysql-testsuite-5.6' não está instalado, por isso não será removido
  1195. O pacote 'mysql-testsuite-5.7' não está instalado, por isso não será removido
  1196. Note, a seleccionar 'mysql-common' em vez de 'mysql-common-5.6'
  1197. O pacote 'mysql-sandbox' não está instalado, por isso não será removido
  1198. O pacote 'mysql-client' não está instalado, por isso não será removido
  1199. O pacote 'mysql-server' não está instalado, por isso não será removido
  1200. O pacote 'mysql-utilities' não está instalado, por isso não será removido
  1201. O pacote 'mysql-workbench' não está instalado, por isso não será removido
  1202. O pacote 'mysql-workbench-data' não está instalado, por isso não será removido
  1203. O pacote 'mysqltcl' não está instalado, por isso não será removido
  1204. O pacote 'mysqltuner' não está instalado, por isso não será removido
  1205. Os seguintes pacotes foram instalados automaticamente e já não são necessários:
  1206. expect galera-3 libaio1 libdbi-perl libjemalloc1 libtcl8.6 libterm-readkey-perl libtk8.6 libxss1 socat tcl-expect tcl8.6
  1207. tk8.6
  1208. Utilize 'sudo apt autoremove' para os remover.
  1209. Os pacotes a seguir serão REMOVIDOS:
  1210. libdbd-mysql-perl* libmariadbclient18* libmysqlclient18* mariadb-client-10.1* mariadb-client-core-10.1* mariadb-common*
  1211. mariadb-server* mariadb-server-10.1* mariadb-server-core-10.1* mysql-common* ossec-hids*
  1212. 0 pacotes atualizados, 0 pacotes novos instalados, 11 a serem removidos e 0 não atualizados.
  1213. Depois desta operação, 191 MB de espaço em disco serão liberados.
  1214. Você quer continuar? [S/n] S
  1215. (Lendo banco de dados ... 65237 ficheiros e directórios actualmente instalados.)
  1216. A remover libdbd-mysql-perl (4.041-2) ...
  1217. A remover libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  1218. A remover ossec-hids (2.8.3-4wheezy) ...
  1219. A remover libmysqlclient18:amd64 (5.5.57-0+deb8u1) ...
  1220. A remover mariadb-server (10.1.26-0+deb9u1) ...
  1221. A remover mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  1222. A remover mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  1223. A remover mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  1224. A remover mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  1225. A remover mariadb-common (10.1.26-0+deb9u1) ...
  1226. update-alternatives: a usar /etc/mysql/my.cnf.fallback para disponibilizar /etc/mysql/my.cnf (my.cnf) em modo auto
  1227. A remover mysql-common (5.8+1.0.2) ...
  1228. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  1229. A processar 'triggers' para man-db (2.7.6.1-2) ...
  1230. (Lendo banco de dados ... 64726 ficheiros e directórios actualmente instalados.)
  1231. A purgar os ficheiros de configuração para mariadb-common (10.1.26-0+deb9u1) ...
  1232. A purgar os ficheiros de configuração para mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  1233. A purgar os ficheiros de configuração para mysql-common (5.8+1.0.2) ...
  1234. A purgar os ficheiros de configuração para libmysqlclient18:amd64 (5.5.57-0+deb8u1) ...
  1235. A purgar os ficheiros de configuração para mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  1236. userdel: user mysql is currently used by process 26235
  1237. A purgar os ficheiros de configuração para ossec-hids (2.8.3-4wheezy) ...
  1238. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/queue/fts' não estava vazio, por isso não foi removido
  1239. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/queue/ossec' não estava vazio, por isso não foi removido
  1240. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/queue/alerts' não estava vazio, por isso não foi removido
  1241. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/queue/syscheck' não estava vazio, por isso não foi removido
  1242. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/queue/diff' não estava vazio, por isso não foi removido
  1243. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/queue/rootcheck' não estava vazio, por isso não foi removido
  1244. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/stats' não estava vazio, por isso não foi removido
  1245. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/rules' não estava vazio, por isso não foi removido
  1246. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/logs/archives' não estava vazio, por isso não foi removido
  1247. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/logs/alerts' não estava vazio, por isso não foi removido
  1248. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/logs/firewall' não estava vazio, por isso não foi removido
  1249. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/etc/shared' não estava vazio, por isso não foi removido
  1250. dpkg: aviso: ao remover ossec-hids, o directório '/var/ossec/bin' não estava vazio, por isso não foi removido
  1251. A processar 'triggers' para systemd (232-25+deb9u4) ...
  1252. debian@paracambi:/$ sudo rm -rf /etc/mysql/
  1253. debian@paracambi:/$ locate mysql
  1254. /etc/mysql
  1255. /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
  1256. /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0
  1257. /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.18
  1258. /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.18.0.0
  1259. /usr/share/mysql-common
  1260. /usr/share/bash-completion/completions/mysql
  1261. /usr/share/bash-completion/completions/mysqladmin
  1262. /usr/share/doc/libmysqlclient18
  1263. /usr/share/doc/mysql-common
  1264. /usr/share/doc/zabbix-agent/examples/userparameter_mysql.conf
  1265. /usr/share/lintian/overrides/mysql-common
  1266. /usr/share/vim/vim80/syntax/mysql.vim
  1267. /var/cache/apt/archives/libmysqlclient18_5.5.50-0+deb8u1_amd64.deb
  1268. /var/cache/apt/archives/libmysqlclient18_5.5.57-0+deb8u1_amd64.deb
  1269. /var/cache/apt/archives/mysql-common_5.5.50-0+deb8u1_all.deb
  1270. /var/cache/apt/archives/mysql-common_5.5.57-0+deb8u1_all.deb
  1271. /var/cache/apt/archives/mysql-common_5.8+1.0.2_all.deb
  1272. /var/lib/dpkg/info/libmysqlclient18:amd64.list
  1273. /var/lib/dpkg/info/libmysqlclient18:amd64.md5sums
  1274. /var/lib/dpkg/info/libmysqlclient18:amd64.postinst
  1275. /var/lib/dpkg/info/libmysqlclient18:amd64.postrm
  1276. /var/lib/dpkg/info/libmysqlclient18:amd64.shlibs
  1277. /var/lib/dpkg/info/mysql-common.conffiles
  1278. /var/lib/dpkg/info/mysql-common.list
  1279. /var/lib/dpkg/info/mysql-common.md5sums
  1280. /var/lib/dpkg/info/mysql-common.postinst
  1281. /var/lib/dpkg/info/mysql-common.postrm
  1282. /var/lib/dpkg/info/mysql-common.preinst
  1283. /var/lib/dpkg/info/mysql-common.prerm
  1284. debian@paracambi:/$ sudo updatedb
  1285. debian@paracambi:/$ locate mysql
  1286. /etc/php/7.0/apache2/conf.d/10-mysqlnd.ini
  1287. /etc/php/7.0/apache2/conf.d/20-mysqli.ini
  1288. /etc/php/7.0/apache2/conf.d/20-pdo_mysql.ini
  1289. /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
  1290. /etc/php/7.0/cli/conf.d/20-mysqli.ini
  1291. /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
  1292. /etc/php/7.0/mods-available/mysqli.ini
  1293. /etc/php/7.0/mods-available/mysqlnd.ini
  1294. /etc/php/7.0/mods-available/pdo_mysql.ini
  1295. /etc/systemd/system/multi-user.target.wants/mysql.service
  1296. /home/debian/.mysql_history
  1297. /usr/lib/php/20151012/mysqli.so
  1298. /usr/lib/php/20151012/mysqlnd.so
  1299. /usr/lib/php/20151012/pdo_mysql.so
  1300. /usr/share/php7.0-mysql
  1301. /usr/share/bash-completion/completions/mysql
  1302. /usr/share/bash-completion/completions/mysqladmin
  1303. /usr/share/bug/php7.0-mysql
  1304. /usr/share/bug/php7.0-mysql/control
  1305. /usr/share/bug/php7.0-mysql/script
  1306. /usr/share/doc/php7.0-mysql
  1307. /usr/share/doc/zabbix-agent/examples/userparameter_mysql.conf
  1308. /usr/share/lintian/overrides/php7.0-mysql
  1309. /usr/share/php7.0-mysql/mysql
  1310. /usr/share/php7.0-mysql/mysql/mysqli.ini
  1311. /usr/share/php7.0-mysql/mysql/mysqlnd.ini
  1312. /usr/share/php7.0-mysql/mysql/pdo_mysql.ini
  1313. /usr/share/vim/vim80/syntax/mysql.vim
  1314. /var/cache/apt/archives/libdbd-mysql-perl_4.041-2_amd64.deb
  1315. /var/cache/apt/archives/libmysqlclient18_5.5.50-0+deb8u1_amd64.deb
  1316. /var/cache/apt/archives/libmysqlclient18_5.5.57-0+deb8u1_amd64.deb
  1317. /var/cache/apt/archives/mysql-common_5.5.50-0+deb8u1_all.deb
  1318. /var/cache/apt/archives/mysql-common_5.5.57-0+deb8u1_all.deb
  1319. /var/cache/apt/archives/mysql-common_5.8+1.0.2_all.deb
  1320. /var/cache/apt/archives/php7.0-mysql_7.0.30-0+deb9u1_amd64.deb
  1321. /var/lib/dpkg/info/php7.0-mysql.list
  1322. /var/lib/dpkg/info/php7.0-mysql.md5sums
  1323. /var/lib/dpkg/info/php7.0-mysql.postinst
  1324. /var/lib/dpkg/info/php7.0-mysql.postrm
  1325. /var/lib/dpkg/info/php7.0-mysql.preinst
  1326. /var/lib/dpkg/info/php7.0-mysql.prerm
  1327. /var/lib/dpkg/info/php7.0-mysql.triggers
  1328. /var/lib/php/modules/7.0/apache2/enabled_by_maint/mysqli
  1329. /var/lib/php/modules/7.0/apache2/enabled_by_maint/mysqlnd
  1330. /var/lib/php/modules/7.0/apache2/enabled_by_maint/pdo_mysql
  1331. /var/lib/php/modules/7.0/cli/enabled_by_maint/mysqli
  1332. /var/lib/php/modules/7.0/cli/enabled_by_maint/mysqlnd
  1333. /var/lib/php/modules/7.0/cli/enabled_by_maint/pdo_mysql
  1334. /var/lib/php/modules/7.0/registry/mysqli
  1335. /var/lib/php/modules/7.0/registry/mysqlnd
  1336. /var/lib/php/modules/7.0/registry/pdo_mysql
  1337. /var/lib/ucf/cache/:etc:php:7.0:mods-available:mysqli.ini
  1338. /var/lib/ucf/cache/:etc:php:7.0:mods-available:mysqlnd.ini
  1339. /var/lib/ucf/cache/:etc:php:7.0:mods-available:pdo_mysql.ini
  1340. debian@paracambi:/$ sudo apt-get install mariadb-server -y
  1341. Lendo listas de pacotes... Pronto
  1342. Construindo árvore de dependências
  1343. Lendo informação de estado... Pronto
  1344. Os seguintes pacotes foram instalados automaticamente e já não são necessários:
  1345. expect libtcl8.6 libtk8.6 libxss1 tcl-expect tcl8.6 tk8.6
  1346. Utilize 'sudo apt autoremove' para os remover.
  1347. The following additional packages will be installed:
  1348. libdbd-mysql-perl libmariadbclient18 mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server-10.1
  1349. mariadb-server-core-10.1 mysql-common
  1350. Pacotes sugeridos:
  1351. mariadb-test netcat-openbsd tinyca
  1352. Os NOVOS pacotes a seguir serão instalados:
  1353. libdbd-mysql-perl libmariadbclient18 mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server
  1354. mariadb-server-10.1 mariadb-server-core-10.1 mysql-common
  1355. 0 pacotes atualizados, 9 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
  1356. É preciso baixar 0 B/22,3 MB de arquivos.
  1357. Depois desta operação, 181 MB adicionais de espaço em disco serão usados.
  1358. Pré-configurando pacotes ...
  1359. Can't exec "/tmp/mariadb-server-10.1.config.FrdLrT": Permissão negada at /usr/share/perl/5.24/IPC/Open3.pm line 178.
  1360. open2: exec of /tmp/mariadb-server-10.1.config.FrdLrT configure failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59.
  1361. A seleccionar pacote anteriormente não seleccionado mysql-common.
  1362. (Lendo banco de dados ... 64686 ficheiros e directórios actualmente instalados.)
  1363. A preparar para desempacotar .../mysql-common_5.8+1.0.2_all.deb ...
  1364. A descompactar mysql-common (5.8+1.0.2) ...
  1365. A seleccionar pacote anteriormente não seleccionado mariadb-common.
  1366. A preparar para desempacotar .../mariadb-common_10.1.26-0+deb9u1_all.deb ...
  1367. A descompactar mariadb-common (10.1.26-0+deb9u1) ...
  1368. A seleccionar pacote anteriormente não seleccionado mariadb-client-core-10.1.
  1369. A preparar para desempacotar .../mariadb-client-core-10.1_10.1.26-0+deb9u1_amd64.deb ...
  1370. A descompactar mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  1371. A seleccionar pacote anteriormente não seleccionado mariadb-client-10.1.
  1372. A preparar para desempacotar .../mariadb-client-10.1_10.1.26-0+deb9u1_amd64.deb ...
  1373. A descompactar mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  1374. A seleccionar pacote anteriormente não seleccionado mariadb-server-core-10.1.
  1375. A preparar para desempacotar .../mariadb-server-core-10.1_10.1.26-0+deb9u1_amd64.deb ...
  1376. A descompactar mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  1377. Configurando mysql-common (5.8+1.0.2) ...
  1378. update-alternatives: a usar /etc/mysql/my.cnf.fallback para disponibilizar /etc/mysql/my.cnf (my.cnf) em modo auto
  1379. Configurando mariadb-common (10.1.26-0+deb9u1) ...
  1380. update-alternatives: a usar /etc/mysql/mariadb.cnf para disponibilizar /etc/mysql/my.cnf (my.cnf) em modo auto
  1381. A seleccionar pacote anteriormente não seleccionado mariadb-server-10.1.
  1382. (Lendo banco de dados ... 64841 ficheiros e directórios actualmente instalados.)
  1383. A preparar para desempacotar .../mariadb-server-10.1_10.1.26-0+deb9u1_amd64.deb ...
  1384. A descompactar mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  1385. A seleccionar pacote anteriormente não seleccionado libmariadbclient18:amd64.
  1386. A preparar para desempacotar .../libmariadbclient18_10.1.26-0+deb9u1_amd64.deb ...
  1387. A descompactar libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  1388. A seleccionar pacote anteriormente não seleccionado libdbd-mysql-perl.
  1389. A preparar para desempacotar .../libdbd-mysql-perl_4.041-2_amd64.deb ...
  1390. A descompactar libdbd-mysql-perl (4.041-2) ...
  1391. A seleccionar pacote anteriormente não seleccionado mariadb-server.
  1392. A preparar para desempacotar .../mariadb-server_10.1.26-0+deb9u1_all.deb ...
  1393. A descompactar mariadb-server (10.1.26-0+deb9u1) ...
  1394. Configurando mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  1395. Configurando mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  1396. Configurando libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  1397. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  1398. A processar 'triggers' para systemd (232-25+deb9u4) ...
  1399. A processar 'triggers' para man-db (2.7.6.1-2) ...
  1400. Configurando libdbd-mysql-perl (4.041-2) ...
  1401. Configurando mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  1402. Configurando mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  1403. Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
  1404. Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
  1405. Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
  1406. Job for mariadb.service failed because the control process exited with error code.
  1407. See "systemctl status mariadb.service" and "journalctl -xe" for details.
  1408. mariadb.service couldn't start.
  1409. Configurando mariadb-server (10.1.26-0+deb9u1) ...
  1410. A processar 'triggers' para systemd (232-25+deb9u4) ...
  1411. debian@paracambi:/$ sudo systemctl enable mysql
  1412. Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
  1413. Executing: /lib/systemd/systemd-sysv-install enable mysql
  1414. Failed to enable unit: Refusing to operate on linked unit file mysql.service
  1415. debian@paracambi:/$ /etc/systemd/system/mysqld.service
  1416. -bash: /etc/systemd/system/mysqld.service: Permissão negada
  1417. debian@paracambi:/$ ßudo /etc/systemd/system/mysqld.service
  1418. -bash: ßudo: comando não encontrado
  1419. debian@paracambi:/$ sudo /etc/systemd/system/mysqld.service
  1420. sudo: /etc/systemd/system/mysqld.service: comando não encontrado
  1421. debian@paracambi:/$ sudo /etc/systemd/
  1422. network/ system/ user/
  1423. debian@paracambi:/$ sudo /etc/systemd/
  1424. network/ system/ user/
  1425. debian@paracambi:/$ sudo /etc/systemd/
  1426. network/ system/ user/
  1427. debian@paracambi:/$ sudo /etc/systemd/system/
  1428. getty.target.wants/ network-online.target.wants/ remote-fs.target.wants/ sysinit.target.wants/
  1429. multi-user.target.wants/ paths.target.wants/ sockets.target.wants/ timers.target.wants/
  1430. debian@paracambi:/$ sudo /etc/systemd/system/
  1431. getty.target.wants/ network-online.target.wants/ remote-fs.target.wants/ sysinit.target.wants/
  1432. multi-user.target.wants/ paths.target.wants/ sockets.target.wants/ timers.target.wants/
  1433. debian@paracambi:/$ sudo /etc/
  1434. Display all 101 possibilities? (y or n)
  1435. debian@paracambi:/$ sudo /etc/mysql/
  1436. conf.d/ debian-start mariadb.conf.d/
  1437. debian@paracambi:/$ sudo /etc/mysql/conf.d/
  1438. sudo: /etc/mysql/conf.d/: comando não encontrado
  1439. debian@paracambi:/$ ls
  1440. bin dev home initrd.img.old lib64 media opt root sbin sys usr vmlinuz
  1441. boot etc initrd.img lib lost+found mnt proc run srv tmp var vmlinuz.old
  1442. debian@paracambi:/$ cd /etc/mysql/conf.d/
  1443. debian@paracambi:/etc/mysql/conf.d$ ls
  1444. mysql.cnf mysqldump.cnf
  1445. debian@paracambi:/etc/mysql/conf.d$ sudo nano mysql
  1446. debian@paracambi:/etc/mysql/conf.d$ sudo nano mysql.cnf
  1447. debian@paracambi:/etc/mysql/conf.d$ sudo mysql_secure_installation
  1448.  
  1449. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  1450. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  1451.  
  1452. In order to log into MariaDB to secure it, we'll need the current
  1453. password for the root user. If you've just installed MariaDB, and
  1454. you haven't set the root password yet, the password will be blank,
  1455. so you should just press enter here.
  1456.  
  1457. Enter current password for root (enter for none):
  1458. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  1459. Enter current password for root (enter for none):
  1460. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  1461. Enter current password for root (enter for none):
  1462. Aborting!
  1463.  
  1464. Cleaning up...
  1465. debian@paracambi:/etc/mysql/conf.d$ ^C
  1466. debian@paracambi:/etc/mysql/conf.d$ ^C
  1467. debian@paracambi:/etc/mysql/conf.d$ sudo nano /etc/mysql/my.cnf
  1468. debian@paracambi:/etc/mysql/conf.d$ sudo nano /etc/mysql/my.cnf
  1469. debian@paracambi:/etc/mysql/conf.d$ sudo mysql_secure_installation
  1470.  
  1471. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  1472. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  1473.  
  1474. In order to log into MariaDB to secure it, we'll need the current
  1475. password for the root user. If you've just installed MariaDB, and
  1476. you haven't set the root password yet, the password will be blank,
  1477. so you should just press enter here.
  1478.  
  1479. Enter current password for root (enter for none):
  1480. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  1481. Enter current password for root (enter for none):
  1482. Aborting!
  1483.  
  1484. Cleaning up...
  1485. debian@paracambi:/etc/mysql/conf.d$ ^C
  1486. debian@paracambi:/etc/mysql/conf.d$ ^C
  1487. debian@paracambi:/etc/mysql/conf.d$ ^C
  1488. debian@paracambi:/etc/mysql/conf.d$ ^C
  1489. debian@paracambi:/etc/mysql/conf.d$ ^C
  1490. debian@paracambi:/etc/mysql/conf.d$ sudo apt-get update
  1491. Atingido:1 http://security.debian.org stretch/updates InRelease
  1492. Ign:2 http://deb.debian.org/debian stretch InRelease
  1493. Atingido:3 http://deb.debian.org/debian stretch-updates InRelease
  1494. Atingido:4 http://deb.debian.org/debian stretch Release
  1495. Lendo listas de pacotes... Pronto
  1496. debian@paracambi:/etc/mysql/conf.d$ sudo apt-get -y install mariadb-server mariadb-client
  1497. Lendo listas de pacotes... Pronto
  1498. Construindo árvore de dependências
  1499. Lendo informação de estado... Pronto
  1500. mariadb-server is already the newest version (10.1.26-0+deb9u1).
  1501. Os seguintes pacotes foram instalados automaticamente e já não são necessários:
  1502. expect libtcl8.6 libtk8.6 libxss1 tcl-expect tcl8.6 tk8.6
  1503. Utilize 'sudo apt autoremove' para os remover.
  1504. Os NOVOS pacotes a seguir serão instalados:
  1505. mariadb-client
  1506. 0 pacotes atualizados, 1 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
  1507. É preciso baixar 26,1 kB de arquivos.
  1508. Depois desta operação, 63,5 kB adicionais de espaço em disco serão usados.
  1509. Obter:1 http://deb.debian.org/debian stretch/main amd64 mariadb-client all 10.1.26-0+deb9u1 [26,1 kB]
  1510. Baixados 26,1 kB em 0s (419 kB/s)
  1511. A seleccionar pacote anteriormente não seleccionado mariadb-client.
  1512. (Lendo banco de dados ... 64999 ficheiros e directórios actualmente instalados.)
  1513. A preparar para desempacotar .../mariadb-client_10.1.26-0+deb9u1_all.deb ...
  1514. A descompactar mariadb-client (10.1.26-0+deb9u1) ...
  1515. Configurando mariadb-client (10.1.26-0+deb9u1) ...
  1516. debian@paracambi:/etc/mysql/conf.d$ sudo mysql_secure_installation
  1517.  
  1518. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  1519. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  1520.  
  1521. In order to log into MariaDB to secure it, we'll need the current
  1522. password for the root user. If you've just installed MariaDB, and
  1523. you haven't set the root password yet, the password will be blank,
  1524. so you should just press enter here.
  1525.  
  1526. Enter current password for root (enter for none):
  1527. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  1528. Enter current password for root (enter for none):
  1529. Aborting!
  1530.  
  1531. Cleaning up...
  1532. debian@paracambi:/etc/mysql/conf.d$ ^C
  1533. debian@paracambi:/etc/mysql/conf.d$ ^C
  1534. debian@paracambi:/etc/mysql/conf.d$ ^C
  1535. debian@paracambi:/etc/mysql/conf.d$ ^C
  1536. debian@paracambi:/etc/mysql/conf.d$ sudo service mysql stop
  1537. debian@paracambi:/etc/mysql/conf.d$ sudo apt-get --purge remove "mysql*
  1538. > ^C
  1539. debian@paracambi:/etc/mysql/conf.d$ ^C
  1540. debian@paracambi:/etc/mysql/conf.d$ ^C
  1541. debian@paracambi:/etc/mysql/conf.d$ ^C
  1542. debian@paracambi:/etc/mysql/conf.d$ ^C
  1543. debian@paracambi:/etc/mysql/conf.d$ ^C
  1544. debian@paracambi:/etc/mysql/conf.d$ sudo apt-get --purge remove "mysql*
  1545. > ^C
  1546. debian@paracambi:/etc/mysql/conf.d$ ^C
  1547. debian@paracambi:/etc/mysql/conf.d$ ^C
  1548. debian@paracambi:/etc/mysql/conf.d$ ^C
  1549. debian@paracambi:/etc/mysql/conf.d$ ^C
  1550. debian@paracambi:/etc/mysql/conf.d$ ^C
  1551. debian@paracambi:/etc/mysql/conf.d$ ^C
  1552. debian@paracambi:/etc/mysql/conf.d$ sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
  1553. Lendo listas de pacotes... Pronto
  1554. Construindo árvore de dependências
  1555. Lendo informação de estado... Pronto
  1556. Note, selecting 'mysql-server-core-5.5' for glob 'mysql-server-core-*'
  1557. Note, selecting 'mysql-server-core-5.6' for glob 'mysql-server-core-*'
  1558. Note, selecting 'mysql-server-core-5.7' for glob 'mysql-server-core-*'
  1559. O pacote 'mysql-server-core-5.5' não está instalado, por isso não será removido
  1560. O pacote 'mysql-server-core-5.6' não está instalado, por isso não será removido
  1561. O pacote 'mysql-server-core-5.7' não está instalado, por isso não será removido
  1562. Note, selecting 'mysql-client-core-5.5' for glob 'mysql-client-core-*'
  1563. Note, selecting 'mysql-client-core-5.6' for glob 'mysql-client-core-*'
  1564. Note, selecting 'mysql-client-core-5.7' for glob 'mysql-client-core-*'
  1565. O pacote 'mysql-client-core-5.5' não está instalado, por isso não será removido
  1566. O pacote 'mysql-client-core-5.6' não está instalado, por isso não será removido
  1567. O pacote 'mysql-client-core-5.7' não está instalado, por isso não será removido
  1568. O pacote 'mysql-client' não está instalado, por isso não será removido
  1569. O pacote 'mysql-server' não está instalado, por isso não será removido
  1570. Os seguintes pacotes foram instalados automaticamente e já não são necessários:
  1571. expect galera-3 libaio1 libdbi-perl libjemalloc1 libtcl8.6 libterm-readkey-perl libtk8.6 libxss1 socat tcl-expect tcl8.6
  1572. tk8.6
  1573. Utilize 'sudo apt autoremove' para os remover.
  1574. Os pacotes a seguir serão REMOVIDOS:
  1575. libdbd-mysql-perl* libmariadbclient18* mariadb-client* mariadb-client-10.1* mariadb-client-core-10.1* mariadb-common*
  1576. mariadb-server* mariadb-server-10.1* mariadb-server-core-10.1* mysql-common*
  1577. 0 pacotes atualizados, 0 pacotes novos instalados, 10 a serem removidos e 0 não atualizados.
  1578. Depois desta operação, 181 MB de espaço em disco serão liberados.
  1579. Você quer continuar? [S/n] S
  1580. (Lendo banco de dados ... 65002 ficheiros e directórios actualmente instalados.)
  1581. A remover libdbd-mysql-perl (4.041-2) ...
  1582. A remover libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  1583. A remover mariadb-client (10.1.26-0+deb9u1) ...
  1584. A remover mariadb-server (10.1.26-0+deb9u1) ...
  1585. A remover mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  1586. A remover mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  1587. A remover mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  1588. A remover mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  1589. A remover mariadb-common (10.1.26-0+deb9u1) ...
  1590. update-alternatives: a usar /etc/mysql/my.cnf.fallback para disponibilizar /etc/mysql/my.cnf (my.cnf) em modo auto
  1591. A remover mysql-common (5.8+1.0.2) ...
  1592. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  1593. A processar 'triggers' para man-db (2.7.6.1-2) ...
  1594. (Lendo banco de dados ... 64708 ficheiros e directórios actualmente instalados.)
  1595. A purgar os ficheiros de configuração para mariadb-common (10.1.26-0+deb9u1) ...
  1596. A purgar os ficheiros de configuração para mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  1597. A purgar os ficheiros de configuração para mysql-common (5.8+1.0.2) ...
  1598. A purgar os ficheiros de configuração para mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  1599. userdel: user mysql is currently used by process 26235
  1600. A processar 'triggers' para systemd (232-25+deb9u4) ...
  1601. debian@paracambi:/etc/mysql/conf.d$ sudo rm -rf /etc/mysql /var/lib/mysql
  1602. debian@paracambi:/etc/mysql/conf.d$ sudo apt-get autoremove
  1603. Lendo listas de pacotes... Pronto
  1604. Construindo árvore de dependências
  1605. Lendo informação de estado... Pronto
  1606. Os pacotes a seguir serão REMOVIDOS:
  1607. expect galera-3 libaio1 libdbi-perl libjemalloc1 libtcl8.6 libterm-readkey-perl libtk8.6 libxss1 socat tcl-expect tcl8.6
  1608. tk8.6
  1609. 0 pacotes atualizados, 0 pacotes novos instalados, 13 a serem removidos e 0 não atualizados.
  1610. Depois desta operação, 13,9 MB de espaço em disco serão liberados.
  1611. Você quer continuar? [S/n] S
  1612. sh: 0: getcwd() failed: No such file or directory
  1613. sh: 0: getcwd() failed: No such file or directory
  1614. (Lendo banco de dados ... 64686 ficheiros e directórios actualmente instalados.)
  1615. A remover expect (5.45-7+deb9u1) ...
  1616. A remover galera-3 (25.3.19-2) ...
  1617. A remover libaio1:amd64 (0.3.110-3) ...
  1618. A remover libdbi-perl (1.636-1+b1) ...
  1619. A remover libjemalloc1 (3.6.0-9.1) ...
  1620. A remover tk8.6 (8.6.6-1+b1) ...
  1621. A remover libtk8.6:amd64 (8.6.6-1+b1) ...
  1622. A remover libterm-readkey-perl (2.37-1) ...
  1623. A remover libxss1:amd64 (1:1.2.2-1) ...
  1624. A remover socat (1.7.3.1-2+deb9u1) ...
  1625. A remover tcl-expect:amd64 (5.45-7+deb9u1) ...
  1626. A remover tcl8.6 (8.6.6+dfsg-1+b1) ...
  1627. A remover libtcl8.6:amd64 (8.6.6+dfsg-1+b1) ...
  1628. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  1629. A processar 'triggers' para man-db (2.7.6.1-2) ...
  1630. debian@paracambi:/etc/mysql/conf.d$ sudo apt-get autoclean
  1631. Lendo listas de pacotes... Pronto
  1632. Construindo árvore de dependências
  1633. Lendo informação de estado... Pronto
  1634. Del libtxc-dxtn-s2tc0 0~git20131104-1.1 [51,6 kB]
  1635. Del libncurses5 6.0+20161126-1 [93,4 kB]
  1636. Del libdrm-nouveau2 2.4.58-2 [21,6 kB]
  1637. Del python2.7-minimal 2.7.9-2+deb8u1 [1.401 kB]
  1638. Del libgnutls-deb0-28 3.3.8-6+deb8u7 [696 kB]
  1639. Del iproute2 4.9.0-1 [634 kB]
  1640. Del sudo 1.8.10p3-1+deb8u4 [854 kB]
  1641. Del liblcms2-2 2.6-3+deb8u1 [141 kB]
  1642. Del perl-modules-5.24 5.24.1-3+deb9u1 [2.723 kB]
  1643. Del exim4-config 4.84.2-2+deb8u4 [502 kB]
  1644. Del bind9-host 1:9.9.5.dfsg-9+deb8u13 [68,1 kB]
  1645. Del dbus 1.10.18-1 [208 kB]
  1646. Del libfreetype6 2.5.2-3+deb8u2 [466 kB]
  1647. Del libfcgi-perl 0.77-1+deb8u1 [39,0 kB]
  1648. Del libnettle4 2.7.1-5+deb8u2 [176 kB]
  1649. Del systemd-sysv 215-17+deb8u7 [36,7 kB]
  1650. Del libisc-export95 1:9.9.5.dfsg-9+deb8u13 [141 kB]
  1651. Del libisccfg-export90 1:9.9.5.dfsg-9+deb8u13 [41,5 kB]
  1652. Del libncursesw5 6.0+20161126-1 [115 kB]
  1653. Del host 1:9.9.5.dfsg-9+deb8u13 [24,1 kB]
  1654. Del libcups2 2.2.1-8 [306 kB]
  1655. Del libisccfg140 1:9.10.3.dfsg.P4-12.3+deb9u2 [222 kB]
  1656. Del base-files 8+deb8u9 [78,2 kB]
  1657. Del tcl8.6 8.6.2+dfsg-2 [122 kB]
  1658. Del base-files 9.9+deb9u1 [67,2 kB]
  1659. Del apt-utils 1.4.7 [410 kB]
  1660. Del tzdata 2017b-1 [260 kB]
  1661. Del apt-utils 1.0.9.8.4 [368 kB]
  1662. Del gnupg2 2.1.18-6 [299 kB]
  1663. Del initramfs-tools 0.120+deb8u3 [96,7 kB]
  1664. Del libmysqlclient18 5.5.57-0+deb8u1 [680 kB]
  1665. Del libnettle6 3.3-1+b1 [191 kB]
  1666. Del libx11-xcb1 2:1.6.2-3 [163 kB]
  1667. Del python2.7 2.7.13-2 [285 kB]
  1668. Del gnupg-agent 2.1.18-6 [554 kB]
  1669. Del libxft2 2.3.2-1 [55,4 kB]
  1670. Del perl-base 5.24.1-3+deb9u1 [1.343 kB]
  1671. Del ncurses-term 6.0+20161126-1 [469 kB]
  1672. Del libssl1.0.0 1.0.1t-1+deb8u6 [1.047 kB]
  1673. Del ca-certificates 20141019+deb8u3 [207 kB]
  1674. Del libdns162 1:9.10.3.dfsg.P4-12.3+deb9u2 [1.077 kB]
  1675. Del exim4-base 4.84.2-2+deb8u4 [1.049 kB]
  1676. Del dnsutils 1:9.10.3.dfsg.P4-12.3+deb9u2 [283 kB]
  1677. Del libice6 2:1.0.9-1+b1 [58,8 kB]
  1678. Del file 1:5.22+15-2+deb8u3 [60,4 kB]
  1679. Del libhogweed2 2.7.1-5+deb8u2 [125 kB]
  1680. Del libkrb5-3 1.15-1 [311 kB]
  1681. Del gnupg-agent 2.0.26-6+deb8u1 [272 kB]
  1682. Del openssl 1.0.1t-1+deb8u6 [665 kB]
  1683. Del publicsuffix 20170424.0717-1 [98,2 kB]
  1684. Del python3-reportbug 7.1.7 [129 kB]
  1685. Del libisc-export160 1:9.10.3.dfsg.P4-12.3+deb9u2 [334 kB]
  1686. Del libgnutls30 3.5.8-5+deb9u2 [895 kB]
  1687. Del apt 1.0.9.8.4 [1.109 kB]
  1688. Del iproute 1:4.9.0-1 [16,3 kB]
  1689. Del libapt-inst1.5 1.0.9.8.4 [169 kB]
  1690. Del libsqlite3-0 3.16.2-5 [572 kB]
  1691. Del libevent-2.0-5 2.0.21-stable-2+deb8u1 [152 kB]
  1692. Del libpam-google-authenticator 20130529-2 [32,1 kB]
  1693. Del libxshmfence1 1.1-4 [6.736 B]
  1694. Del libldap-2.4-2 2.4.44+dfsg-5 [218 kB]
  1695. Del libmount1 2.29.2-1 [178 kB]
  1696. Del patch 2.7.5-1+b2 [112 kB]
  1697. Del libnet-ssleay-perl 1.65-1+deb8u1 [277 kB]
  1698. Del libtasn1-6 4.10-1.1 [50,4 kB]
  1699. Del procmail 3.22-25+b1 [142 kB]
  1700. Del vim-common 2:7.4.488-7+deb8u3 [185 kB]
  1701. Del debian-archive-keyring 2017.5~deb8u1 [56,7 kB]
  1702. Del libblkid1 2.29.2-1 [168 kB]
  1703. Del expect 5.45-7+b1 [165 kB]
  1704. Del python2.7-minimal 2.7.13-2 [1.383 kB]
  1705. Del exim4 4.89-2+deb9u1 [7.868 B]
  1706. Del util-linux-locales 2.29.2-1 [1.000 kB]
  1707. Del libgtk2.0-0 2.24.25-3+deb8u2 [2.302 kB]
  1708. Del vim-common 2:8.0.0197-4 [159 kB]
  1709. Del libtiff5 4.0.3-12.3+deb8u4 [221 kB]
  1710. Del libxpm4 1:3.5.12-0+deb8u1 [49,2 kB]
  1711. Del libtk8.6 8.6.2-1 [771 kB]
  1712. Del libdrm-radeon1 2.4.58-2 [31,1 kB]
  1713. Del libgcrypt20 1.7.6-2+deb9u1 [522 kB]
  1714. Del libsystemd0 215-17+deb8u7 [89,4 kB]
  1715. Del gnupg-l10n 2.1.18-6 [892 kB]
  1716. Del linux-image-4.9.0-8-amd64 4.9.110-3+deb9u5 [39,0 MB]
  1717. Del libcairo2 1.14.0-2.1+deb8u2 [742 kB]
  1718. Del libisccc140 1:9.10.3.dfsg.P4-12.3+deb9u2 [198 kB]
  1719. Del libbind9-90 1:9.9.5.dfsg-9+deb8u13 [43,9 kB]
  1720. Del libldap-2.4-2 2.4.40+dfsg-1+deb8u3 [218 kB]
  1721. Del xterm 312-2 [605 kB]
  1722. Del libudev1 232-25+deb9u1 [124 kB]
  1723. Del x11-utils 7.7+2 [191 kB]
  1724. Del libsmartcols1 2.29.2-1 [125 kB]
  1725. Del libgl1-mesa-dri 10.3.2-1+deb8u1 [3.384 kB]
  1726. Del gcc-6-base 6.3.0-18 [180 kB]
  1727. Del procps 2:3.3.12-3 [249 kB]
  1728. Del ntp 1:4.2.8p10+dfsg-3 [556 kB]
  1729. Del libgnutls-openssl27 3.3.8-6+deb8u7 [143 kB]
  1730. Del mysql-common 5.5.57-0+deb8u1 [84,2 kB]
  1731. Del w3m 0.5.3-19+deb8u2 [1.006 kB]
  1732. Del libxcb-sync1 1.10-3+b1 [14,4 kB]
  1733. Del reportbug 7.1.7 [128 kB]
  1734. Del vim-tiny 2:8.0.0197-4 [446 kB]
  1735. Del dbus 1.8.22-0+deb8u1 [292 kB]
  1736. Del libisccfg90 1:9.9.5.dfsg-9+deb8u13 [57,8 kB]
  1737. Del python2.7 2.7.9-2+deb8u1 [252 kB]
  1738. Del libtiff5 4.0.8-2+deb9u1 [237 kB]
  1739. Del libpam0g 1.1.8-3.1+deb8u2+b1 [126 kB]
  1740. Del libxml2 2.9.4+dfsg1-2.2 [919 kB]
  1741. Del e2fslibs 1.42.12-2+b1 [186 kB]
  1742. Del bsdutils 1:2.29.2-1 [112 kB]
  1743. Del ca-certificates 20161130+nmu1 [196 kB]
  1744. Del libdns100 1:9.9.5.dfsg-9+deb8u13 [681 kB]
  1745. Del libapt-pkg4.12 1.0.9.8.4 [792 kB]
  1746. Del krb5-locales 1.15-1 [93,5 kB]
  1747. Del ntp 1:4.2.6.p5+dfsg-7+deb8u2 [394 kB]
  1748. Del libss2 1.42.12-2+b1 [65,0 kB]
  1749. Del libutempter0 1.1.5-4 [8.020 B]
  1750. Del linux-image-3.16.0-4-amd64 3.16.43-2+deb8u2 [34,0 MB]
  1751. Del binutils 2.25-5+deb8u1 [3.496 kB]
  1752. Del tar 1.27.1-2+deb8u1 [676 kB]
  1753. Del mtr-tiny 0.85-3 [51,2 kB]
  1754. Del dpkg 1.18.24 [2.107 kB]
  1755. Del libhogweed4 3.3-1+b1 [136 kB]
  1756. Del libxmu6 2:1.1.2-1 [58,6 kB]
  1757. Del libgcrypt20 1.6.3-2+deb8u4 [392 kB]
  1758. Del libglapi-mesa 10.3.2-1+deb8u1 [53,3 kB]
  1759. Del binutils 2.25-5 [3.516 kB]
  1760. Del openssh-server 1:7.4p1-10+deb9u1 [332 kB]
  1761. Del libgdk-pixbuf2.0-common 2.36.5-2 [310 kB]
  1762. Del debconf 1.5.56+deb8u1 [167 kB]
  1763. Del libssl1.1 1.1.0f-3 [1.342 kB]
  1764. Del libxaw7 2:1.0.12-2+b1 [199 kB]
  1765. Del systemd 215-17+deb8u7 [2.545 kB]
  1766. Del libc6 2.19-18+deb8u10 [4.665 kB]
  1767. Del gpgv 1.4.18-7+deb8u3 [209 kB]
  1768. Del libicu52 52.1-8+deb8u5 [6.801 kB]
  1769. Del libxxf86dga1 2:1.1.4-1+b1 [22,3 kB]
  1770. Del libssl1.0.2 1.0.2l-2 [1.294 kB]
  1771. Del python-pil 2.6.1-2+deb8u3 [304 kB]
  1772. Del dnsutils 1:9.9.5.dfsg-9+deb8u13 [119 kB]
  1773. Del gnupg2 2.0.26-6+deb8u1 [1.397 kB]
  1774. Del openssh-client 1:7.4p1-10+deb9u1 [778 kB]
  1775. Del libelf1 0.159-4.2 [160 kB]
  1776. Del libtasn1-6 4.2-3+deb8u3 [49,2 kB]
  1777. Del libmysqlclient18 5.5.50-0+deb8u1 [675 kB]
  1778. Del liblwres141 1:9.10.3.dfsg.P4-12.3+deb9u2 [214 kB]
  1779. Del tk8.6 8.6.2-1 [71,1 kB]
  1780. Del libicu57 57.1-6 [7.701 kB]
  1781. Del rkhunter 1.4.2-0.4 [238 kB]
  1782. Del ossec-hids 2.8.3-4wheezy [1.950 kB]
  1783. Del libgssapi-krb5-2 1.15-1 [154 kB]
  1784. Del libxcb-glx0 1.10-3+b1 [27,4 kB]
  1785. Del libapparmor1 2.11.0-3 [78,7 kB]
  1786. Del debsecan 0.4.17 [36,2 kB]
  1787. Del gnupg 2.1.18-6 [1.126 kB]
  1788. Del libsm6 2:1.2.2-1+b1 [33,6 kB]
  1789. Del openssh-sftp-server 1:7.4p1-10+deb9u1 [39,5 kB]
  1790. Del libidn11 1.29-1+deb8u2 [136 kB]
  1791. Del libmagic1 1:5.22+15-2+deb8u3 [250 kB]
  1792. Del libpam-modules 1.1.8-3.1+deb8u2+b1 [307 kB]
  1793. Del bind9-host 1:9.10.3.dfsg.P4-12.3+deb9u2 [231 kB]
  1794. Del libgnutls-openssl27 3.5.8-5+deb9u2 [184 kB]
  1795. Del libfdisk1 2.29.2-1 [203 kB]
  1796. Del libdb5.3 5.3.28-12+b1 [680 kB]
  1797. Del x11-common 1:7.7+7 [287 kB]
  1798. Del libxml-libxml-perl 2.0128+dfsg-1+b1 [339 kB]
  1799. Del gpgv 2.1.18-6 [480 kB]
  1800. Del libisc95 1:9.9.5.dfsg-9+deb8u13 [169 kB]
  1801. Del rkhunter 1.4.2-0.4+deb8u1 [238 kB]
  1802. Del libgtk2.0-bin 2.24.25-3+deb8u2 [535 kB]
  1803. Del libgdk-pixbuf2.0-0 2.36.5-2 [169 kB]
  1804. Del libmagic1 1:5.30-1 [111 kB]
  1805. Del openssl 1.1.0f-3 [725 kB]
  1806. Del libk5crypto3 1.15-1 [119 kB]
  1807. Del libqrencode3 3.4.3-1 [33,8 kB]
  1808. Del xxd 2:8.0.0197-4 [131 kB]
  1809. Del libdns-export100 1:9.9.5.dfsg-9+deb8u13 [457 kB]
  1810. Del perl 5.24.1-3+deb9u1 [219 kB]
  1811. Del cron 3.0pl1-128+b1 [95,5 kB]
  1812. Del tcl-expect 5.45-7+b1 [131 kB]
  1813. Del xkb-data 2.19-1 [648 kB]
  1814. Del mount 2.29.2-1 [189 kB]
  1815. Del libpciaccess0 0.13.2-3+b1 [47,6 kB]
  1816. Del exim4-daemon-light 4.84.2-2+deb8u4 [632 kB]
  1817. Del libtcl8.6 8.6.2+dfsg-2 [978 kB]
  1818. Del libllvm3.5 1:3.5-10 [7.607 kB]
  1819. Del perl-base 5.20.2-3+deb8u8 [1.230 kB]
  1820. Del libpam-modules-bin 1.1.8-3.1+deb8u2+b1 [104 kB]
  1821. Del libpython2.7-stdlib 2.7.9-2+deb8u1 [1.847 kB]
  1822. Del bash 4.3-11+deb8u1 [1.172 kB]
  1823. Del tzdata 2017b-0+deb8u1 [232 kB]
  1824. Del mysql-common 5.5.50-0+deb8u1 [81,8 kB]
  1825. Del libldap-common 2.4.44+dfsg-5 [85,0 kB]
  1826. Del chkrootkit 0.50-3 [310 kB]
  1827. Del libpng12-0 1.2.50-2+deb8u3 [173 kB]
  1828. Del libxapian30 1.4.3-2 [1.067 kB]
  1829. Del libxv1 2:1.0.10-1+b1 [24,0 kB]
  1830. Del libbind9-140 1:9.10.3.dfsg.P4-12.3+deb9u2 [206 kB]
  1831. Del libxt6 1:1.1.4-1+b1 [186 kB]
  1832. Del systemd 232-25+deb9u1 [2.462 kB]
  1833. Del libdiscover2 2.1.2-7.1 [90,2 kB]
  1834. Del exim4-base 4.89-2+deb9u1 [1.093 kB]
  1835. Del libxpm4 1:3.5.11-1+b1 [48,1 kB]
  1836. Del sudo 1.8.10p3-1+deb8u3 [855 kB]
  1837. Del apt 1.4.7 [1.231 kB]
  1838. Del libdbus-1-3 1.8.22-0+deb8u1 [170 kB]
  1839. Del libkrb5support0 1.15-1 [61,7 kB]
  1840. Del os-prober 1.65+deb8u1 [28,2 kB]
  1841. Del libcurl3-gnutls 7.38.0-4+deb8u5 [252 kB]
  1842. Del libtinfo5 6.0+20161126-1 [299 kB]
  1843. Del libpython2.7-stdlib 2.7.13-2 [1.895 kB]
  1844. Del libgtk2.0-common 2.24.25-3+deb8u2 [3.137 kB]
  1845. Del whois 5.2.15 [76,3 kB]
  1846. Del libudev1 215-17+deb8u7 [57,8 kB]
  1847. Del login 1:4.2-3+deb8u4 [722 kB]
  1848. Del vim-tiny 2:7.4.488-7+deb8u3 [418 kB]
  1849. Del libpython2.7-minimal 2.7.13-2 [389 kB]
  1850. Del liblwres90 1:9.9.5.dfsg-9+deb8u13 [53,6 kB]
  1851. Del libio-socket-ssl-perl 2.002-2+deb8u2 [172 kB]
  1852. Del locales 2.19-18+deb8u10 [3.930 kB]
  1853. Del perl-modules 5.20.2-3+deb8u8 [2.547 kB]
  1854. Del libxxf86vm1 1:1.1.3-1+b1 [19,6 kB]
  1855. Del libpam-systemd 232-25+deb9u1 [187 kB]
  1856. Del librtmp1 2.4+20150115.gita107cef-1+deb8u1 [60,0 kB]
  1857. Del chkrootkit 0.50-3.2~deb8u1 [310 kB]
  1858. Del libpython2.7-minimal 2.7.9-2+deb8u1 [378 kB]
  1859. Del e2fsprogs 1.42.12-2+b1 [750 kB]
  1860. Del libdrm2 2.4.58-2 [29,9 kB]
  1861. Del libfontenc1 1:1.1.2-1+b2 [23,9 kB]
  1862. Del systemd-sysv 232-25+deb9u1 [80,7 kB]
  1863. Del libcomerr2 1.42.12-2+b1 [60,7 kB]
  1864. Del libxcb-present0 1.10-3+b1 [11,1 kB]
  1865. Del libselinux1 2.6-3+b1 [101 kB]
  1866. Del libsqlite3-0 3.8.7.1-1+deb8u2 [438 kB]
  1867. Del libirs-export91 1:9.9.5.dfsg-9+deb8u13 [39,0 kB]
  1868. Del host 1:9.10.3.dfsg.P4-12.3+deb9u2 [185 kB]
  1869. Del libxcb-shape0 1.10-3+b1 [11,6 kB]
  1870. Del gnupg 1.4.18-7+deb8u3 [1.149 kB]
  1871. Del isc-dhcp-client 4.3.5-3 [325 kB]
  1872. Del libopts25 1:5.18.4-3 [69,6 kB]
  1873. Del libdbus-1-3 1.10.18-1 [192 kB]
  1874. Del libxtst6 2:1.2.2-1+b1 [27,3 kB]
  1875. Del libffi6 3.1-2+deb8u1 [20,2 kB]
  1876. Del udev 232-25+deb9u1 [1.113 kB]
  1877. Del exim4-config 4.89-2+deb9u1 [377 kB]
  1878. Del libisccc90 1:9.9.5.dfsg-9+deb8u13 [37,2 kB]
  1879. Del libperl5.24 5.24.1-3+deb9u1 [3.524 kB]
  1880. Del libmagic-mgc 1:5.30-1 [222 kB]
  1881. Del libpam-runtime 1.1.8-3.1+deb8u2 [212 kB]
  1882. Del libcurl3-gnutls 7.52.1-5 [289 kB]
  1883. Del ncurses-base 6.0+20161126-1 [238 kB]
  1884. Del multiarch-support 2.19-18+deb8u10 [181 kB]
  1885. Del libdrm-intel1 2.4.58-2 [64,9 kB]
  1886. Del libc-bin 2.19-18+deb8u10 [1.281 kB]
  1887. Del libstdc++6 6.3.0-18 [396 kB]
  1888. Del isc-dhcp-common 4.3.5-3 [136 kB]
  1889. Del dirmngr 2.1.18-6 [595 kB]
  1890. Del udev 215-17+deb8u7 [876 kB]
  1891. Del linux-image-amd64 4.9+80+deb9u1 [6.902 B]
  1892. Del libxcb-dri3-0 1.10-3+b1 [11,1 kB]
  1893. Del libgl1-mesa-glx 10.3.2-1+deb8u1 [180 kB]
  1894. Del unhide 20121229-1+b1 [427 kB]
  1895. Del rpcbind 0.2.1-6+deb8u2 [41,6 kB]
  1896. Del iproute 1:3.16.0-2 [15,5 kB]
  1897. Del libprocps6 2:3.3.12-3 [58,1 kB]
  1898. Del libxcb-dri2-0 1.10-3+b1 [12,9 kB]
  1899. Del discover 2.1.2-7.1 [42,2 kB]
  1900. Del w3m 0.5.3-34 [1.030 kB]
  1901. Del debconf-i18n 1.5.56+deb8u1 [206 kB]
  1902. Del passwd 1:4.2-3+deb8u4 [971 kB]
  1903. Del libgcc1 1:6.3.0-18 [38,0 kB]
  1904. Del linux-image-4.9.0-3-amd64 4.9.30-2+deb9u2 [38,7 MB]
  1905. Del util-linux 2.29.2-1 [981 kB]
  1906. Del file 1:5.30-1 [63,9 kB]
  1907. Del libsystemd0 232-25+deb9u1 [280 kB]
  1908. Del exim4 4.84.2-2+deb8u4 [8.584 B]
  1909. Del libgraphite2-3 1.3.10-1~deb8u1 [85,4 kB]
  1910. Del libapt-pkg5.0 1.4.7 [916 kB]
  1911. Del libxcursor1 1:1.1.14-1+b4 [35,0 kB]
  1912. Del perl 5.20.2-3+deb8u8 [2.633 kB]
  1913. Del eject 2.1.5+deb1+cvs20081104-13.1+deb8u1 [51,1 kB]
  1914. Del exim4-daemon-light 4.89-2+deb9u1 [541 kB]
  1915. Del sed 4.2.2-4+deb8u1 [243 kB]
  1916. Del apticron 1.1.57 [20,0 kB]
  1917. Del tcl-expect 5.45-6 [131 kB]
  1918. Del htop 1.0.3-1 [75,3 kB]
  1919. Del shared-mime-info 1.8-1 [731 kB]
  1920. Del libtirpc1 0.2.5-1+deb8u1 [80,9 kB]
  1921. Del libexpat1 2.1.0-6+deb8u4 [80,2 kB]
  1922. Del libjasper1 1.900.1-debian1-2.4+deb8u3 [134 kB]
  1923. Del whowatch 1.8.5-1 [32,3 kB]
  1924. Del libapt-inst2.0 1.4.7 [192 kB]
  1925. Del libuuid1 2.29.2-1 [70,0 kB]
  1926. Del libisc160 1:9.10.3.dfsg.P4-12.3+deb9u2 [398 kB]
  1927. Del libdns-export162 1:9.10.3.dfsg.P4-12.3+deb9u2 [851 kB]
  1928. Del libxml2 2.9.1+dfsg1-5+deb8u4 [802 kB]
  1929. Del ncurses-bin 6.0+20161126-1 [365 kB]
  1930. Del libidn2-0 0.16-1 [60,6 kB]
  1931. Del expect 5.45-6 [165 kB]
  1932. debian@paracambi:/etc/mysql/conf.d$ apt-get update
  1933. Lendo listas de pacotes... Pronto
  1934. W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operação não permitida)
  1935. E: Não foi possível abrir arquivo de trava /var/lib/apt/lists/lock - open (13: Permissão negada)
  1936. E: Impossível criar acesso exclusivo ao directório /var/lib/apt/lists/
  1937. W: Problema ao remover o link do ficheiro /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permissão negada)
  1938. W: Problema ao remover o link do ficheiro /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permissão negada)
  1939. debian@paracambi:/etc/mysql/conf.d$ apt-get upgrade
  1940. E: Não foi possível abrir arquivo de trava /var/lib/dpkg/lock - open (13: Permissão negada)
  1941. E: Não foi possível criar acesso exclusivo ao directório de administração (/var/lib/dpkg/), é root?
  1942. debian@paracambi:/etc/mysql/conf.d$ sudo su
  1943. shell-init: erro ao obter o diretório atual: getcwd: impossível acessar os diretórios pais (anteriores): Arquivo ou diretório não encontrado
  1944. root@paracambi:.# apt-get update
  1945. job-working-directory: erro ao obter o diretório atual: getcwd: impossível acessar os diretórios pais (anteriores): Arquivo ou diretório não encontrado
  1946. Atingido:1 http://security.debian.org stretch/updates InRelease
  1947. Ign:2 http://deb.debian.org/debian stretch InRelease
  1948. Atingido:3 http://deb.debian.org/debian stretch-updates InRelease
  1949. Atingido:4 http://deb.debian.org/debian stretch Release
  1950. Lendo listas de pacotes... Pronto
  1951. root@paracambi:.#
  1952. root@paracambi:.#
  1953. root@paracambi:.#
  1954. root@paracambi:.#
  1955. root@paracambi:.#
  1956. root@paracambi:.#
  1957. root@paracambi:.#
  1958. root@paracambi:.# apt-get upgrade
  1959. job-working-directory: erro ao obter o diretório atual: getcwd: impossível acessar os diretórios pais (anteriores): Arquivo ou diretório não encontrado
  1960. Lendo listas de pacotes... Pronto
  1961. Construindo árvore de dependências
  1962. Lendo informação de estado... Pronto
  1963. Calculando atualização... Pronto
  1964. 0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
  1965. root@paracambi:.# apt-get install mariadb-server
  1966. job-working-directory: erro ao obter o diretório atual: getcwd: impossível acessar os diretórios pais (anteriores): Arquivo ou diretório não encontrado
  1967. Lendo listas de pacotes... Pronto
  1968. Construindo árvore de dependências
  1969. Lendo informação de estado... Pronto
  1970. The following additional packages will be installed:
  1971. galera-3 libaio1 libdbd-mysql-perl libdbi-perl libjemalloc1 libmariadbclient18 libterm-readkey-perl mariadb-client-10.1
  1972. mariadb-client-core-10.1 mariadb-common mariadb-server-10.1 mariadb-server-core-10.1 mysql-common socat
  1973. Pacotes sugeridos:
  1974. libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl mariadb-test netcat-openbsd tinyca
  1975. Os NOVOS pacotes a seguir serão instalados:
  1976. galera-3 libaio1 libdbd-mysql-perl libdbi-perl libjemalloc1 libmariadbclient18 libterm-readkey-perl mariadb-client-10.1
  1977. mariadb-client-core-10.1 mariadb-common mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 mysql-common socat
  1978. 0 pacotes atualizados, 15 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
  1979. É preciso baixar 0 B/24,5 MB de arquivos.
  1980. Depois desta operação, 188 MB adicionais de espaço em disco serão usados.
  1981. Você quer continuar? [S/n] S
  1982. sh: 0: getcwd() failed: No such file or directory
  1983. sh: 0: getcwd() failed: No such file or directory
  1984. sh: 0: getcwd() failed: No such file or directory
  1985. sh: 0: getcwd() failed: No such file or directory
  1986. Pré-configurando pacotes ...
  1987. Can't exec "/tmp/mariadb-server-10.1.config.OcKL56": Permissão negada at /usr/share/perl/5.24/IPC/Open3.pm line 178.
  1988. open2: exec of /tmp/mariadb-server-10.1.config.OcKL56 configure failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59.
  1989. A seleccionar pacote anteriormente não seleccionado mysql-common.
  1990. (Lendo banco de dados ... 64007 ficheiros e directórios actualmente instalados.)
  1991. A preparar para desempacotar .../0-mysql-common_5.8+1.0.2_all.deb ...
  1992. A descompactar mysql-common (5.8+1.0.2) ...
  1993. A seleccionar pacote anteriormente não seleccionado mariadb-common.
  1994. A preparar para desempacotar .../1-mariadb-common_10.1.26-0+deb9u1_all.deb ...
  1995. A descompactar mariadb-common (10.1.26-0+deb9u1) ...
  1996. A seleccionar pacote anteriormente não seleccionado galera-3.
  1997. A preparar para desempacotar .../2-galera-3_25.3.19-2_amd64.deb ...
  1998. A descompactar galera-3 (25.3.19-2) ...
  1999. A seleccionar pacote anteriormente não seleccionado libdbi-perl.
  2000. A preparar para desempacotar .../3-libdbi-perl_1.636-1+b1_amd64.deb ...
  2001. A descompactar libdbi-perl (1.636-1+b1) ...
  2002. A seleccionar pacote anteriormente não seleccionado libaio1:amd64.
  2003. A preparar para desempacotar .../4-libaio1_0.3.110-3_amd64.deb ...
  2004. A descompactar libaio1:amd64 (0.3.110-3) ...
  2005. A seleccionar pacote anteriormente não seleccionado mariadb-client-core-10.1.
  2006. A preparar para desempacotar .../5-mariadb-client-core-10.1_10.1.26-0+deb9u1_amd64.deb ...
  2007. A descompactar mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  2008. A seleccionar pacote anteriormente não seleccionado libjemalloc1.
  2009. A preparar para desempacotar .../6-libjemalloc1_3.6.0-9.1_amd64.deb ...
  2010. A descompactar libjemalloc1 (3.6.0-9.1) ...
  2011. A seleccionar pacote anteriormente não seleccionado mariadb-client-10.1.
  2012. A preparar para desempacotar .../7-mariadb-client-10.1_10.1.26-0+deb9u1_amd64.deb ...
  2013. A descompactar mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  2014. A seleccionar pacote anteriormente não seleccionado mariadb-server-core-10.1.
  2015. A preparar para desempacotar .../8-mariadb-server-core-10.1_10.1.26-0+deb9u1_amd64.deb ...
  2016. A descompactar mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  2017. A seleccionar pacote anteriormente não seleccionado socat.
  2018. A preparar para desempacotar .../9-socat_1.7.3.1-2+deb9u1_amd64.deb ...
  2019. A descompactar socat (1.7.3.1-2+deb9u1) ...
  2020. Configurando mysql-common (5.8+1.0.2) ...
  2021. update-alternatives: a usar /etc/mysql/my.cnf.fallback para disponibilizar /etc/mysql/my.cnf (my.cnf) em modo auto
  2022. Configurando mariadb-common (10.1.26-0+deb9u1) ...
  2023. update-alternatives: a usar /etc/mysql/mariadb.cnf para disponibilizar /etc/mysql/my.cnf (my.cnf) em modo auto
  2024. A seleccionar pacote anteriormente não seleccionado mariadb-server-10.1.
  2025. (Lendo banco de dados ... 64379 ficheiros e directórios actualmente instalados.)
  2026. A preparar para desempacotar .../mariadb-server-10.1_10.1.26-0+deb9u1_amd64.deb ...
  2027. A descompactar mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  2028. A seleccionar pacote anteriormente não seleccionado libmariadbclient18:amd64.
  2029. A preparar para desempacotar .../libmariadbclient18_10.1.26-0+deb9u1_amd64.deb ...
  2030. A descompactar libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  2031. A seleccionar pacote anteriormente não seleccionado libdbd-mysql-perl.
  2032. A preparar para desempacotar .../libdbd-mysql-perl_4.041-2_amd64.deb ...
  2033. A descompactar libdbd-mysql-perl (4.041-2) ...
  2034. A seleccionar pacote anteriormente não seleccionado libterm-readkey-perl.
  2035. A preparar para desempacotar .../libterm-readkey-perl_2.37-1_amd64.deb ...
  2036. A descompactar libterm-readkey-perl (2.37-1) ...
  2037. A seleccionar pacote anteriormente não seleccionado mariadb-server.
  2038. A preparar para desempacotar .../mariadb-server_10.1.26-0+deb9u1_all.deb ...
  2039. A descompactar mariadb-server (10.1.26-0+deb9u1) ...
  2040. Configurando libjemalloc1 (3.6.0-9.1) ...
  2041. Configurando socat (1.7.3.1-2+deb9u1) ...
  2042. Configurando libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  2043. Configurando libterm-readkey-perl (2.37-1) ...
  2044. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  2045. Configurando libaio1:amd64 (0.3.110-3) ...
  2046. Configurando galera-3 (25.3.19-2) ...
  2047. A processar 'triggers' para systemd (232-25+deb9u4) ...
  2048. A processar 'triggers' para man-db (2.7.6.1-2) ...
  2049. Configurando libdbi-perl (1.636-1+b1) ...
  2050. Configurando mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  2051. Configurando mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  2052. Configurando libdbd-mysql-perl (4.041-2) ...
  2053. Configurando mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  2054. Configurando mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  2055. Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
  2056. Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
  2057. Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
  2058. Job for mariadb.service failed because the control process exited with error code.
  2059. See "systemctl status mariadb.service" and "journalctl -xe" for details.
  2060. mariadb.service couldn't start.
  2061. Configurando mariadb-server (10.1.26-0+deb9u1) ...
  2062. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  2063. A processar 'triggers' para systemd (232-25+deb9u4) ...
  2064. root@paracambi:.# sudo mysql_secure_installation
  2065. job-working-directory: erro ao obter o diretório atual: getcwd: impossível acessar os diretórios pais (anteriores): Arquivo ou diretório não encontrado
  2066. sh: 0: getcwd() failed: No such file or directory
  2067. touch: não foi possível tocar '.my.cnf.31806': Arquivo ou diretório não encontrado
  2068. touch: não foi possível tocar '.mysql.31806': Arquivo ou diretório não encontrado
  2069. chmod: não foi possível acessar '.my.cnf.31806': Arquivo ou diretório não encontrado
  2070. chmod: não foi possível acessar '.mysql.31806': Arquivo ou diretório não encontrado
  2071.  
  2072. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  2073. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  2074.  
  2075. In order to log into MariaDB to secure it, we'll need the current
  2076. password for the root user. If you've just installed MariaDB, and
  2077. you haven't set the root password yet, the password will be blank,
  2078. so you should just press enter here.
  2079.  
  2080. Enter current password for root (enter for none):
  2081. /usr/bin/mysql_secure_installation: 248: /usr/bin/mysql_secure_installation: cannot create .my.cnf.31806: Directory nonexistent
  2082. /usr/bin/mysql_secure_installation: 249: /usr/bin/mysql_secure_installation: cannot create .my.cnf.31806: Directory nonexistent
  2083. /usr/bin/mysql_secure_installation: 250: /usr/bin/mysql_secure_installation: cannot create .my.cnf.31806: Directory nonexistent
  2084. /usr/bin/mysql_secure_installation: 252: /usr/bin/mysql_secure_installation: cannot create .my.cnf.31806: Directory nonexistent
  2085. /usr/bin/mysql_secure_installation: 217: /usr/bin/mysql_secure_installation: cannot create .mysql.31806: Directory nonexistent
  2086. /usr/bin/mysql_secure_installation: 219: /usr/bin/mysql_secure_installation: cannot open .mysql.31806: No such file
  2087. OK, successfully used password, moving on...
  2088.  
  2089. Setting the root password ensures that nobody can log into the MariaDB
  2090. root user without the proper authorisation.
  2091.  
  2092. Set root password? [Y/n] ^C
  2093. Aborting!
  2094.  
  2095. Cleaning up...
  2096. root@paracambi:.# ^C
  2097. root@paracambi:.# ^C
  2098. root@paracambi:.# ^C
  2099. root@paracambi:.# ^C
  2100. root@paracambi:.# ^C
  2101. root@paracambi:.# ^C
  2102. root@paracambi:.# cd /etc/myssymlink-hook: erro ao obter o diretório atual: getcwd: impossível acessar os diretórios pais (anteriores): Arquivo ou diretório não encontrado
  2103. symlink-hook: erro ao obter o diretório atual: getcwd: impossível acessar os diretórios pais (anteriores): Arquivo ou diretório não encontrado
  2104. sudo mysql_secure_service mysqld restart^C
  2105. root@paracambi:.# ^C
  2106. root@paracambi:.# ^C
  2107. root@paracambi:.# ^C
  2108. root@paracambi:.# ^C
  2109. root@paracambi:.# ^C
  2110. root@paracambi:.# cd /etc/mysql
  2111. chdir: erro ao obter o diretório atual: getcwd: impossível acessar os diretórios pais (anteriores): Arquivo ou diretório não encontrado
  2112. root@paracambi:/etc/mysql# ls
  2113. conf.d debian.cnf debian-start mariadb.cnf mariadb.conf.d my.cnf my.cnf.fallback
  2114. root@paracambi:/etc/mysql# ls -la
  2115. total 32
  2116. drwxr-xr-x 4 root root 4096 out 24 17:30 .
  2117. drwxr-xr-x 101 root root 4096 out 24 17:30 ..
  2118. drwxr-xr-x 2 root root 4096 out 24 17:30 conf.d
  2119. -rw------- 1 root root 277 out 24 17:30 debian.cnf
  2120. -rwxr-xr-x 1 root root 1509 ago 10 2017 debian-start
  2121. -rw-r--r-- 1 root root 869 ago 10 2017 mariadb.cnf
  2122. drwxr-xr-x 2 root root 4096 out 24 17:30 mariadb.conf.d
  2123. lrwxrwxrwx 1 root root 24 out 24 17:30 my.cnf -> /etc/alternatives/my.cnf
  2124. -rw-r--r-- 1 root root 839 jul 9 2016 my.cnf.fallback
  2125. root@paracambi:/etc/mysql# exit
  2126. exit
  2127. debian@paracambi:/etc/mysql/conf.d$ ls
  2128. debian@paracambi:/etc/mysql/conf.d$ ls
  2129. debian@paracambi:/etc/mysql/conf.d$ cd ..
  2130. debian@paracambi:/etc/mysql$ ls
  2131. conf.d debian.cnf debian-start mariadb.cnf mariadb.conf.d my.cnf my.cnf.fallback
  2132. debian@paracambi:/etc/mysql$ cd ..
  2133. debian@paracambi:/etc$ ls
  2134. acpi emacs libaudit.conf pam.conf sensors3.conf
  2135. adduser.conf email-addresses locale.alias pam.d sensors.d
  2136. adjtime environment locale.gen papersize services
  2137. aliases exim4 localtime passwd sgml
  2138. alternatives fonts logcheck passwd- shadow
  2139. apache2 fstab login.defs perl shadow-
  2140. apparmor gai.conf login.defs.dpkg-dist php shells
  2141. apparmor.d ghostscript logrotate.conf pm skel
  2142. apt groff logrotate.d postgresql ssh
  2143. apticron group lvm postgresql-common ssl
  2144. at.deny group- machine-id ppp staff-group-for-usr-local
  2145. bash.bashrc grub.d magic profile subgid
  2146. bash_completion gshadow magic.mime profile.d subgid-
  2147. bash_completion.d gshadow- mailcap protocols subuid
  2148. bindresvport.blacklist gss mailcap.order python subuid-
  2149. binfmt.d gtk-2.0 mailname python2.7 sudoers
  2150. ca-certificates host.conf mail.rc python3 sudoers.d
  2151. ca-certificates.conf hostname manpath.config python3.5 sysctl.conf
  2152. ca-certificates.conf.dpkg-old hosts mime.types rc0.d sysctl.d
  2153. calendar hosts.allow mke2fs.conf rc1.d sysstat
  2154. chkrootkit.conf hosts.deny modprobe.d rc2.d systemd
  2155. console-setup idmapd.conf modules rc3.d terminfo
  2156. cron.d init modules-load.d rc4.d texmf
  2157. cron.daily init.d motd rc5.d timezone
  2158. cron.hourly initramfs-tools mtab rc6.d tmpfiles.d
  2159. cron.monthly inputrc Muttrc rc.local ucf.conf
  2160. crontab insserv Muttrc.d rcS.d udev
  2161. cron.weekly insserv.conf mysql reportbug.conf ufw
  2162. dbus-1 insserv.conf.d nanorc request-key.conf updatedb.conf
  2163. debconf.conf iproute2 netconfig request-key.d update-motd.d
  2164. debian_version iscsi network resolv.conf vim
  2165. default issue NetworkManager rkhunter.conf vmware-caf
  2166. deluser.conf issue.net networks rmt vmware-tools
  2167. dhcp kernel newt rpc w3m
  2168. dictionaries-common kernel-img.conf nsswitch.conf rsyslog.conf wgetrc
  2169. discover.conf.d ldap ntp.conf rsyslog.d X11
  2170. discover-modprobe.conf ld.so.cache ntp.conf.dpkg-dist securetty xdg
  2171. dpkg ld.so.conf opt security xml
  2172. drirc ld.so.conf.d os-release selinux zabbix
  2173. debian@paracambi:/etc$ cd mysql
  2174. debian@paracambi:/etc/mysql$ ls
  2175. conf.d debian.cnf debian-start mariadb.cnf mariadb.conf.d my.cnf my.cnf.fallback
  2176. debian@paracambi:/etc/mysql$ cd ..
  2177. debian@paracambi:/etc$ ls -la
  2178. total 980
  2179. drwxr-xr-x 101 root root 4096 out 24 17:30 .
  2180. drwxr-xr-x 22 root root 4096 out 17 06:56 ..
  2181. drwxr-xr-x 3 root root 4096 ago 1 2017 acpi
  2182. -rw-r--r-- 1 root root 2981 ago 26 2016 adduser.conf
  2183. -rw-r--r-- 1 root root 44 ago 26 2016 adjtime
  2184. -rw-r--r-- 1 root root 196 ago 26 2016 aliases
  2185. drwxr-xr-x 2 root root 20480 out 24 17:30 alternatives
  2186. drwxr-xr-x 8 root root 4096 out 8 15:03 apache2
  2187. drwxr-xr-x 3 root root 4096 ago 1 2017 apparmor
  2188. drwxr-xr-x 4 root root 4096 out 24 17:30 apparmor.d
  2189. drwxr-xr-x 6 root root 4096 ago 1 2017 apt
  2190. drwxr-xr-x 2 root root 4096 ago 26 2016 apticron
  2191. -rw-r----- 1 root daemon 144 set 30 2014 at.deny
  2192. -rw-r--r-- 1 root root 1863 nov 12 2014 bash.bashrc
  2193. -rw-r--r-- 1 root root 45 mar 22 2014 bash_completion
  2194. drwxr-xr-x 2 root root 4096 out 6 06:25 bash_completion.d
  2195. -rw-r--r-- 1 root root 367 fev 15 2016 bindresvport.blacklist
  2196. drwxr-xr-x 2 root root 4096 mar 12 2016 binfmt.d
  2197. drwxr-xr-x 3 root root 4096 ago 26 2016 ca-certificates
  2198. -rw-r--r-- 1 root root 9187 out 4 13:59 ca-certificates.conf
  2199. -rw-r--r-- 1 root root 8234 ago 1 2017 ca-certificates.conf.dpkg-old
  2200. drwxr-xr-x 2 root root 4096 ago 1 2017 calendar
  2201. -rw-r--r-- 1 root root 56 ago 1 2017 chkrootkit.conf
  2202. drwxr-xr-x 2 root root 4096 ago 1 2017 console-setup
  2203. drwxr-xr-x 2 root root 4096 out 24 16:13 cron.d
  2204. drwxr-xr-x 2 root root 4096 out 24 11:33 cron.daily
  2205. drwxr-xr-x 2 root root 4096 out 4 13:59 cron.hourly
  2206. drwxr-xr-x 2 root root 4096 out 4 13:59 cron.monthly
  2207. -rw-r--r-- 1 root root 722 jun 11 2015 crontab
  2208. drwxr-xr-x 2 root root 4096 out 4 13:59 cron.weekly
  2209. drwxr-xr-x 4 root root 4096 out 4 14:00 dbus-1
  2210. -rw-r--r-- 1 root root 2969 mar 18 2015 debconf.conf
  2211. -rw-r--r-- 1 root root 4 jun 26 09:03 debian_version
  2212. drwxr-xr-x 2 root root 4096 out 24 17:30 default
  2213. -rw-r--r-- 1 root root 604 mai 15 2012 deluser.conf
  2214. drwxr-xr-x 4 root root 4096 out 4 14:00 dhcp
  2215. drwxr-xr-x 2 root root 4096 ago 1 2017 dictionaries-common
  2216. drwxr-xr-x 2 root root 4096 out 4 13:59 discover.conf.d
  2217. -rw-r--r-- 1 root root 346 set 1 2014 discover-modprobe.conf
  2218. drwxr-xr-x 4 root root 4096 out 5 11:06 dpkg
  2219. -rw-r--r-- 1 root root 4479 abr 25 2017 drirc
  2220. drwxr-xr-x 3 root root 4096 ago 26 2016 emacs
  2221. -rw-r--r-- 1 root root 312 jul 25 2016 email-addresses
  2222. -rw-r--r-- 1 root root 0 ago 26 2016 environment
  2223. drwxr-xr-x 3 root root 4096 out 4 13:59 exim4
  2224. drwxr-xr-x 4 root root 4096 ago 1 2017 fonts
  2225. -rw-r--r-- 1 root root 1006 jan 4 2017 fstab
  2226. -rw-r--r-- 1 root root 2584 fev 7 2014 gai.conf
  2227. drwxr-xr-x 4 root root 4096 out 5 11:07 ghostscript
  2228. drwxr-xr-x 2 root root 4096 ago 1 2017 groff
  2229. -rw-r--r-- 1 root root 913 out 24 17:18 group
  2230. -rw------- 1 root root 926 out 24 16:18 group-
  2231. drwxr-xr-x 2 root root 4096 ago 1 2017 grub.d
  2232. -rw-r----- 1 root shadow 764 out 24 17:18 gshadow
  2233. -rw------- 1 root root 774 out 24 16:18 gshadow-
  2234. drwxr-xr-x 3 root root 4096 ago 26 2016 gss
  2235. drwxr-xr-x 2 root root 4096 ago 1 2017 gtk-2.0
  2236. -rw-r--r-- 1 root root 9 ago 7 2006 host.conf
  2237. -rw-r--r-- 1 root root 10 out 4 15:17 hostname
  2238. -rw-r--r-- 1 root root 199 out 5 11:38 hosts
  2239. -rw-r--r-- 1 root root 411 ago 26 2016 hosts.allow
  2240. -rw-r--r-- 1 root root 711 ago 26 2016 hosts.deny
  2241. -rw-r--r-- 1 root root 206 dez 15 2016 idmapd.conf
  2242. drwxr-xr-x 2 root root 4096 out 4 14:00 init
  2243. drwxr-xr-x 2 root root 4096 out 24 17:30 init.d
  2244. drwxr-xr-x 5 root root 4096 ago 1 2017 initramfs-tools
  2245. -rw-r--r-- 1 root root 1748 ago 3 2014 inputrc
  2246. drwxr-xr-x 3 root root 4096 ago 26 2016 insserv
  2247. -rw-r--r-- 1 root root 859 nov 23 2012 insserv.conf
  2248. drwxr-xr-x 2 root root 4096 out 24 17:30 insserv.conf.d
  2249. drwxr-xr-x 3 root root 4096 out 4 13:59 iproute2
  2250. drwxr-xr-x 2 root root 4096 ago 26 2016 iscsi
  2251. -rw-r--r-- 1 root root 26 jul 13 2017 issue
  2252. -rw-r--r-- 1 root root 19 jul 13 2017 issue.net
  2253. drwxr-xr-x 5 root root 4096 ago 1 2017 kernel
  2254. -rw-r--r-- 1 root root 144 ago 26 2016 kernel-img.conf
  2255. drwxr-xr-x 2 root root 4096 out 4 13:59 ldap
  2256. -rw-r--r-- 1 root root 38512 out 24 17:30 ld.so.cache
  2257. -rw-r--r-- 1 root root 34 fev 15 2016 ld.so.conf
  2258. drwxr-xr-x 2 root root 4096 out 5 11:06 ld.so.conf.d
  2259. -rw-r--r-- 1 root root 191 set 7 2014 libaudit.conf
  2260. -rw-r--r-- 1 root root 2995 jun 15 2017 locale.alias
  2261. -rw-r--r-- 1 root root 9218 out 4 14:00 locale.gen
  2262. lrwxrwxrwx 1 root root 37 out 24 11:32 localtime -> /usr/share/zoneinfo/America/Sao_Paulo
  2263. drwxr-xr-x 5 root root 4096 out 24 17:30 logcheck
  2264. -rw-r--r-- 1 root root 10477 ago 26 2016 login.defs
  2265. -rw-r--r-- 1 root root 10477 mai 17 2017 login.defs.dpkg-dist
  2266. -rw-r--r-- 1 root root 599 fev 19 2009 logrotate.conf
  2267. drwxr-xr-x 2 root root 4096 out 24 17:30 logrotate.d
  2268. drwxr-xr-x 3 root root 4096 ago 1 2017 lvm
  2269. -r--r--r-- 1 root root 33 ago 26 2016 machine-id
  2270. -rw-r--r-- 1 root root 111 out 14 2015 magic
  2271. -rw-r--r-- 1 root root 111 out 14 2015 magic.mime
  2272. -rw-r--r-- 1 root root 4016 out 5 11:07 mailcap
  2273. -rw-r--r-- 1 root root 449 dez 28 2014 mailcap.order
  2274. -rw-r--r-- 1 root root 7 out 4 13:59 mailname
  2275. -rw-r--r-- 1 root root 125 mar 15 2015 mail.rc
  2276. -rw-r--r-- 1 root root 5174 dez 13 2016 manpath.config
  2277. -rw-r--r-- 1 root root 24301 mai 1 2016 mime.types
  2278. -rw-r--r-- 1 root root 973 jan 31 2017 mke2fs.conf
  2279. drwxr-xr-x 2 root root 4096 ago 1 2017 modprobe.d
  2280. -rw-r--r-- 1 root root 195 ago 26 2016 modules
  2281. drwxr-xr-x 2 root root 4096 out 4 13:58 modules-load.d
  2282. -rw-r--r-- 1 root root 286 mai 30 2016 motd
  2283. lrwxrwxrwx 1 root root 19 ago 1 2017 mtab -> ../proc/self/mounts
  2284. -rw-r--r-- 1 root root 4920 jan 20 2017 Muttrc
  2285. drwxr-xr-x 2 root root 4096 out 4 14:00 Muttrc.d
  2286. drwxr-xr-x 4 root root 4096 out 24 17:30 mysql
  2287. -rw-r--r-- 1 root root 8769 jan 11 2017 nanorc
  2288. -rw-r--r-- 1 root root 767 set 9 2014 netconfig
  2289. drwxr-xr-x 7 root root 4096 out 4 13:55 network
  2290. drwxr-xr-x 3 root root 4096 ago 1 2017 NetworkManager
  2291. -rw-r--r-- 1 root root 80 ago 26 2016 networks
  2292. drwxr-xr-x 2 root root 4096 ago 1 2017 newt
  2293. -rw-r--r-- 1 root root 497 jun 15 2017 nsswitch.conf
  2294. -rw-r--r-- 1 root root 2024 ago 26 2016 ntp.conf
  2295. -rw-r--r-- 1 root root 2069 mai 7 2017 ntp.conf.dpkg-dist
  2296. drwxr-xr-x 2 root root 4096 ago 26 2016 opt
  2297. lrwxrwxrwx 1 root root 21 jun 26 09:03 os-release -> ../usr/lib/os-release
  2298. -rw-r--r-- 1 root root 552 jan 6 2016 pam.conf
  2299. drwxr-xr-x 2 root root 4096 out 4 14:00 pam.d
  2300. -rw-r--r-- 1 root root 3 ago 26 2016 papersize
  2301. -rw-r--r-- 1 root root 1948 out 24 17:18 passwd
  2302. -rw------- 1 root root 1988 out 24 17:18 passwd-
  2303. drwxr-xr-x 5 root root 4096 out 4 13:59 perl
  2304. drwxr-xr-x 3 root root 4096 out 24 16:13 php
  2305. drwxr-xr-x 3 root root 4096 ago 1 2017 pm
  2306. drwxr-xr-x 3 root root 4096 out 24 11:33 postgresql
  2307. drwxr-xr-x 3 root root 4096 out 24 11:33 postgresql-common
  2308. drwxr-xr-x 3 root root 4096 ago 26 2016 ppp
  2309. -rw-r--r-- 1 root root 778 ago 26 2016 profile
  2310. drwxr-xr-x 2 root root 4096 out 24 15:16 profile.d
  2311. -rw-r--r-- 1 root root 2932 out 20 2014 protocols
  2312. -rw------- 1 root root 0 ago 26 2016 .pwd.lock
  2313. drwxr-xr-x 2 root root 4096 ago 26 2016 python
  2314. drwxr-xr-x 2 root root 4096 out 4 13:59 python2.7
  2315. drwxr-xr-x 2 root root 4096 ago 1 2017 python3
  2316. drwxr-xr-x 2 root root 4096 out 4 14:00 python3.5
  2317. drwxr-xr-x 2 root root 4096 out 24 17:30 rc0.d
  2318. drwxr-xr-x 2 root root 4096 out 24 17:30 rc1.d
  2319. drwxr-xr-x 2 root root 4096 out 24 17:30 rc2.d
  2320. drwxr-xr-x 2 root root 4096 out 24 17:30 rc3.d
  2321. drwxr-xr-x 2 root root 4096 out 24 17:30 rc4.d
  2322. drwxr-xr-x 2 root root 4096 out 24 17:30 rc5.d
  2323. drwxr-xr-x 2 root root 4096 out 24 17:30 rc6.d
  2324. -rwxr-xr-x 1 root root 306 ago 26 2016 rc.local
  2325. drwxr-xr-x 2 root root 4096 out 4 13:58 rcS.d
  2326. -rw-r--r-- 1 root root 3173 jan 4 2015 reportbug.conf
  2327. -rw-r--r-- 1 root root 1889 mai 1 2016 request-key.conf
  2328. drwxr-xr-x 2 root root 4096 ago 1 2017 request-key.d
  2329. -rw-r--r-- 1 root root 40 ago 26 2016 resolv.conf
  2330. -rw-r--r-- 1 root root 45377 jul 12 2017 rkhunter.conf
  2331. -rwxr-xr-x 1 root root 268 nov 8 2014 rmt
  2332. -rw-r--r-- 1 root root 887 out 20 2014 rpc
  2333. -rw-r--r-- 1 root root 1963 jan 18 2017 rsyslog.conf
  2334. drwxr-xr-x 2 root root 4096 dez 19 2015 rsyslog.d
  2335. -rw-r--r-- 1 root root 4179 mai 17 2017 securetty
  2336. drwxr-xr-x 4 root root 4096 ago 1 2017 security
  2337. drwxr-xr-x 2 root root 4096 ago 1 2017 selinux
  2338. -rw-r--r-- 1 root root 10368 abr 5 2017 sensors3.conf
  2339. drwxr-xr-x 2 root root 4096 ago 1 2017 sensors.d
  2340. -rw-r--r-- 1 root root 19183 dez 25 2016 services
  2341. drwxr-xr-x 2 root root 4096 ago 1 2017 sgml
  2342. -rw-r----- 1 root shadow 1538 out 24 17:18 shadow
  2343. -rw------- 1 root root 1565 out 24 17:18 shadow-
  2344. -rw-r--r-- 1 root root 73 ago 26 2016 shells
  2345. drwxr-xr-x 2 root root 4096 ago 1 2017 skel
  2346. drwxr-xr-x 2 root root 4096 out 4 14:00 ssh
  2347. drwxr-xr-x 4 root root 4096 out 4 13:59 ssl
  2348. -rw-r--r-- 1 root root 771 jun 9 2012 staff-group-for-usr-local
  2349. -rw-r--r-- 1 root root 337 out 24 17:18 subgid
  2350. -rw------- 1 root root 356 out 24 17:18 subgid-
  2351. -rw-r--r-- 1 root root 337 out 24 17:18 subuid
  2352. -rw------- 1 root root 356 out 24 17:18 subuid-
  2353. -r--r----- 1 root root 743 out 24 14:46 sudoers
  2354. drwxr-xr-x 2 root root 4096 ago 1 2017 sudoers.d
  2355. -rw-r--r-- 1 root root 2683 nov 22 2016 sysctl.conf
  2356. drwxr-xr-x 2 root root 4096 out 24 11:33 sysctl.d
  2357. drwxr-xr-x 2 root root 4096 out 24 11:33 sysstat
  2358. drwxr-xr-x 5 root root 4096 out 4 13:59 systemd
  2359. drwxr-xr-x 2 root root 4096 out 4 13:58 terminfo
  2360. drwxr-xr-x 5 root root 4096 ago 1 2017 texmf
  2361. -rw-r--r-- 1 root root 18 out 24 11:32 timezone
  2362. drwxr-xr-x 2 root root 4096 mar 12 2016 tmpfiles.d
  2363. -rw-r--r-- 1 root root 1260 mai 26 2014 ucf.conf
  2364. drwxr-xr-x 4 root root 4096 out 4 13:59 udev
  2365. drwxr-xr-x 3 root root 4096 ago 26 2016 ufw
  2366. -rw-r--r-- 1 root root 353 nov 13 2016 updatedb.conf
  2367. drwxr-xr-x 2 root root 4096 out 4 13:58 update-motd.d
  2368. drwxr-xr-x 2 root root 4096 out 4 14:00 vim
  2369. drwxr-xr-x 3 root root 4096 dez 14 2016 vmware-caf
  2370. drwxr-xr-x 6 root root 4096 dez 14 2016 vmware-tools
  2371. drwxr-xr-x 2 root root 4096 out 4 14:00 w3m
  2372. -rw-r--r-- 1 root root 4942 mai 6 16:08 wgetrc
  2373. drwxr-xr-x 7 root root 4096 ago 1 2017 X11
  2374. drwxr-xr-x 3 root root 4096 ago 1 2017 xdg
  2375. drwxr-xr-x 2 root root 4096 ago 1 2017 xml
  2376. drwxr-xr-x 3 root root 4096 out 16 11:44 zabbix
  2377. debian@paracambi:/etc$ sudo chown -R mysql debian:debian
  2378. chown: não foi possível acessar 'debian:debian': Arquivo ou diretório não encontrado
  2379. debian@paracambi:/etc$ sudo chown -R debian:debian mysql/
  2380. debian@paracambi:/etc$ sudo mysql_secure_installation
  2381.  
  2382. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  2383. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  2384.  
  2385. In order to log into MariaDB to secure it, we'll need the current
  2386. password for the root user. If you've just installed MariaDB, and
  2387. you haven't set the root password yet, the password will be blank,
  2388. so you should just press enter here.
  2389.  
  2390. Enter current password for root (enter for none):
  2391. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  2392. Enter current password for root (enter for none):
  2393. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  2394. Enter current password for root (enter for none):
  2395. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  2396. Enter current password for root (enter for none):
  2397. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  2398. Enter current password for root (enter for none):
  2399. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  2400. Enter current password for root (enter for none):
  2401. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  2402. Enter current password for root (enter for none):
  2403. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  2404. Enter current password for root (enter for none):
  2405. Aborting!
  2406.  
  2407. Cleaning up...
  2408. debian@paracambi:/etc$ ^C
  2409. debian@paracambi:/etc$ ^C
  2410. debian@paracambi:/etc$ ^C
  2411. debian@paracambi:/etc$ ^C
  2412. debian@paracambi:/etc$ sudo rm -rf /etc/mysql /var/lib/mysq
  2413. debian@paracambi:/etc$
  2414. debian@paracambi:/etc$
  2415. debian@paracambi:/etc$
  2416. debian@paracambi:/etc$
  2417. debian@paracambi:/etc$
  2418. debian@paracambi:/etc$
  2419. debian@paracambi:/etc$
  2420. debian@paracambi:/etc$
  2421. debian@paracambi:/etc$
  2422. debian@paracambi:/etc$ sudo nano /var/log/mysqld.log
  2423. debian@paracambi:/etc$ sudo nano /var/log/
  2424. alternatives.log daemon.log.2.gz kern.log.1 rkhunter.log.old user.log
  2425. apache2/ daemon.log.3.gz kern.log.2.gz sulog user.log.1
  2426. apt/ debug lastlog syslog user.log.2.gz
  2427. aptitude debug.1 messages syslog.1 vmware-caf/
  2428. auth.log dmesg messages.1 syslog.2.gz vmware-install.log
  2429. auth.log.1 dpkg.log messages.2.gz syslog.3.gz vmware-vmsvc.log
  2430. auth.log.2.gz exim4/ messages.3.gz syslog.4.gz wtmp
  2431. auth.log.3.gz faillog mysql/ syslog.5.gz zabbix-agent/
  2432. btmp fontconfig.log ntpstats/ syslog.6.gz
  2433. chkrootkit/ fsck/ postgresql/ syslog.7.gz
  2434. daemon.log installer/ rkhunter.log sysstat/
  2435. daemon.log.1 kern.log rkhunter.log.1 unattended-upgrades/
  2436. debian@paracambi:/etc$ sudo nano /var/log/
  2437. alternatives.log daemon.log.2.gz kern.log.1 rkhunter.log.old user.log
  2438. apache2/ daemon.log.3.gz kern.log.2.gz sulog user.log.1
  2439. apt/ debug lastlog syslog user.log.2.gz
  2440. aptitude debug.1 messages syslog.1 vmware-caf/
  2441. auth.log dmesg messages.1 syslog.2.gz vmware-install.log
  2442. auth.log.1 dpkg.log messages.2.gz syslog.3.gz vmware-vmsvc.log
  2443. auth.log.2.gz exim4/ messages.3.gz syslog.4.gz wtmp
  2444. auth.log.3.gz faillog mysql/ syslog.5.gz zabbix-agent/
  2445. btmp fontconfig.log ntpstats/ syslog.6.gz
  2446. chkrootkit/ fsck/ postgresql/ syslog.7.gz
  2447. daemon.log installer/ rkhunter.log sysstat/
  2448. daemon.log.1 kern.log rkhunter.log.1 unattended-upgrades/
  2449. debian@paracambi:/etc$ cd /var/log/mysql/
  2450. -bash: cd: /var/log/mysql/: Permissão negada
  2451. debian@paracambi:/etc$ ls
  2452. acpi emacs libaudit.conf pam.d sensors.d
  2453. adduser.conf email-addresses locale.alias papersize services
  2454. adjtime environment locale.gen passwd sgml
  2455. aliases exim4 localtime passwd- shadow
  2456. alternatives fonts logcheck perl shadow-
  2457. apache2 fstab login.defs php shells
  2458. apparmor gai.conf login.defs.dpkg-dist pm skel
  2459. apparmor.d ghostscript logrotate.conf postgresql ssh
  2460. apt groff logrotate.d postgresql-common ssl
  2461. apticron group lvm ppp staff-group-for-usr-local
  2462. at.deny group- machine-id profile subgid
  2463. bash.bashrc grub.d magic profile.d subgid-
  2464. bash_completion gshadow magic.mime protocols subuid
  2465. bash_completion.d gshadow- mailcap python subuid-
  2466. bindresvport.blacklist gss mailcap.order python2.7 sudoers
  2467. binfmt.d gtk-2.0 mailname python3 sudoers.d
  2468. ca-certificates host.conf mail.rc python3.5 sysctl.conf
  2469. ca-certificates.conf hostname manpath.config rc0.d sysctl.d
  2470. ca-certificates.conf.dpkg-old hosts mime.types rc1.d sysstat
  2471. calendar hosts.allow mke2fs.conf rc2.d systemd
  2472. chkrootkit.conf hosts.deny modprobe.d rc3.d terminfo
  2473. console-setup idmapd.conf modules rc4.d texmf
  2474. cron.d init modules-load.d rc5.d timezone
  2475. cron.daily init.d motd rc6.d tmpfiles.d
  2476. cron.hourly initramfs-tools mtab rc.local ucf.conf
  2477. cron.monthly inputrc Muttrc rcS.d udev
  2478. crontab insserv Muttrc.d reportbug.conf ufw
  2479. cron.weekly insserv.conf nanorc request-key.conf updatedb.conf
  2480. dbus-1 insserv.conf.d netconfig request-key.d update-motd.d
  2481. debconf.conf iproute2 network resolv.conf vim
  2482. debian_version iscsi NetworkManager rkhunter.conf vmware-caf
  2483. default issue networks rmt vmware-tools
  2484. deluser.conf issue.net newt rpc w3m
  2485. dhcp kernel nsswitch.conf rsyslog.conf wgetrc
  2486. dictionaries-common kernel-img.conf ntp.conf rsyslog.d X11
  2487. discover.conf.d ldap ntp.conf.dpkg-dist securetty xdg
  2488. discover-modprobe.conf ld.so.cache opt security xml
  2489. dpkg ld.so.conf os-release selinux zabbix
  2490. drirc ld.so.conf.d pam.conf sensors3.conf
  2491. debian@paracambi:/etc$ sudo cd /var/log/mysql/
  2492. sudo: cd: comando não encontrado
  2493. debian@paracambi:/etc$ sudo su
  2494. root@paracambi:/etc# cd /var/log/mysql/
  2495. root@paracambi:/var/log/mysql# ls
  2496. error.log
  2497. root@paracambi:/var/log/mysql# cat error.log
  2498. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
  2499.  
  2500. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  2501. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: The InnoDB memory heap is disabled
  2502. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  2503. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
  2504. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: Compressed tables use zlib 1.2.8
  2505. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: Using Linux native AIO
  2506. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: Using SSE crc32 instructions
  2507. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  2508. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: Completed initialization of buffer pool
  2509. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
  2510. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
  2511. 2018-10-24 17:30:04 139729567019584 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
  2512. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
  2513. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
  2514. 2018-10-24 17:30:05 139729567019584 [Warning] InnoDB: New log files created, LSN=45883
  2515. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: Doublewrite buffer not found: creating new
  2516. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: Doublewrite buffer created
  2517. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: 128 rollback segment(s) are active.
  2518. 2018-10-24 17:30:05 139729567019584 [Warning] InnoDB: Creating foreign key constraint system tables.
  2519. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: Foreign key constraint system tables created
  2520. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: Creating tablespace and datafile system tables.
  2521. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: Tablespace and datafile system tables created.
  2522. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: Waiting for purge to start
  2523. 2018-10-24 17:30:05 139729567019584 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-82.1 started; log sequence number 0
  2524. 2018-10-24 17:30:05 139728951142144 [Note] InnoDB: Dumping buffer pool(s) not yet started
  2525. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
  2526.  
  2527. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  2528. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: The InnoDB memory heap is disabled
  2529. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  2530. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
  2531. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Compressed tables use zlib 1.2.8
  2532. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Using Linux native AIO
  2533. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Using SSE crc32 instructions
  2534. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  2535. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Completed initialization of buffer pool
  2536. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Highest supported file format is Barracuda.
  2537. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: 128 rollback segment(s) are active.
  2538. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Waiting for purge to start
  2539. 2018-10-24 17:30:08 140141257527872 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-82.1 started; log sequence number 1616799
  2540. 2018-10-24 17:30:08 140140643051264 [Note] InnoDB: Dumping buffer pool(s) not yet started
  2541. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
  2542.  
  2543. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  2544. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: The InnoDB memory heap is disabled
  2545. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  2546. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
  2547. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Compressed tables use zlib 1.2.8
  2548. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Using Linux native AIO
  2549. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Using SSE crc32 instructions
  2550. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  2551. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Completed initialization of buffer pool
  2552. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Highest supported file format is Barracuda.
  2553. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: 128 rollback segment(s) are active.
  2554. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Waiting for purge to start
  2555. 2018-10-24 17:30:11 139662623511104 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-82.1 started; log sequence number 1616809
  2556. 2018-10-24 17:30:11 139662010050304 [Note] InnoDB: Dumping buffer pool(s) not yet started
  2557. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
  2558.  
  2559. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  2560. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: The InnoDB memory heap is disabled
  2561. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  2562. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
  2563. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Compressed tables use zlib 1.2.8
  2564. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Using Linux native AIO
  2565. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Using SSE crc32 instructions
  2566. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  2567. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Completed initialization of buffer pool
  2568. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Highest supported file format is Barracuda.
  2569. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: 128 rollback segment(s) are active.
  2570. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Waiting for purge to start
  2571. 2018-10-24 17:30:14 140249597588032 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-82.1 started; log sequence number 1616819
  2572. 2018-10-24 17:30:14 140249597588032 [Note] Plugin 'FEEDBACK' is disabled.
  2573. 2018-10-24 17:30:14 140248981923584 [Note] InnoDB: Dumping buffer pool(s) not yet started
  2574. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
  2575.  
  2576. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  2577. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: The InnoDB memory heap is disabled
  2578. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  2579. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
  2580. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Compressed tables use zlib 1.2.8
  2581. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Using Linux native AIO
  2582. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Using SSE crc32 instructions
  2583. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  2584. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Completed initialization of buffer pool
  2585. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Highest supported file format is Barracuda.
  2586. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: 128 rollback segment(s) are active.
  2587. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Waiting for purge to start
  2588. 2018-10-24 17:30:19 140046029140544 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-82.1 started; log sequence number 1616829
  2589. 2018-10-24 17:30:19 140046029140544 [Note] Plugin 'FEEDBACK' is disabled.
  2590. 2018-10-24 17:30:19 140045411378944 [Note] InnoDB: Dumping buffer pool(s) not yet started
  2591. 2018-10-24 17:30:19 140046029140544 [Note] Server socket created on IP: '127.0.0.1'.
  2592. 2018-10-24 17:30:19 140046029140544 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 98: Address already in use
  2593. 2018-10-24 17:30:19 140046029140544 [ERROR] Do you already have another mysqld server running on port: 3306 ?
  2594. 2018-10-24 17:30:19 140046029140544 [ERROR] Aborting
  2595.  
  2596. root@paracambi:/var/log/mysql# ^C
  2597. root@paracambi:/var/log/mysql# exit
  2598. exit
  2599. debian@paracambi:/etc$ sudo /usr/bin/mysql_secure_installation
  2600.  
  2601. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  2602. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  2603.  
  2604. In order to log into MariaDB to secure it, we'll need the current
  2605. password for the root user. If you've just installed MariaDB, and
  2606. you haven't set the root password yet, the password will be blank,
  2607. so you should just press enter here.
  2608.  
  2609. Enter current password for root (enter for none):
  2610. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  2611. Enter current password for root (enter for none):
  2612. Aborting!
  2613.  
  2614. Cleaning up...
  2615. debian@paracambi:/etc$ ^C
  2616. debian@paracambi:/etc$ ^C
  2617. debian@paracambi:/etc$ ^C
  2618. debian@paracambi:/etc$ ^C
  2619. debian@paracambi:/etc$ ^C
  2620. debian@paracambi:/etc$ ^C
  2621. debian@paracambi:/etc$ sudo su
  2622. root@paracambi:/etc# exit
  2623. exit
  2624. debian@paracambi:/etc$ history
  2625. 1 sudo su
  2626. 2 su
  2627. 3 su suez
  2628. 4 sudo su
  2629. 5 sudo ifconfig
  2630. 6 exit
  2631. 7 sudo apt install python2.7 python2.7-dev python-setuptools python-dev build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-dev
  2632. 8 sudo apt install python2.7 python2.7-dev python-setuptools python-dev build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-turbo-dev
  2633. 9 sudo apt install libreadline-dev wv poppler-utils
  2634. 10 sudo apt install git
  2635. 11 wget --no-check-certificate https://launchpad.net/plone/5.0/5.0.4/+download/Plone-5.0.4-UnifiedInstaller.tgz
  2636. 12 sudo apt install wget
  2637. 13 wget --no-check-certificate https://launchpad.net/plone/5.0/5.0.4/+download/Plone-5.0.4-UnifiedInstaller.tgz
  2638. 14 ls
  2639. 15 pwd
  2640. 16 cd /opt
  2641. 17 ls
  2642. 18 cd /home/debian/
  2643. 19 ls
  2644. 20 mv Plone-5.0.4-UnifiedInstaller.tgz /opt
  2645. 21 sudo mv Plone-5.0.4-UnifiedInstaller.tgz /opt
  2646. 22 sudo su
  2647. 23 cd /opt/
  2648. 24 ls
  2649. 25 tar -xf Plone-5.0.4-UnifiedInstaller.tgz
  2650. 26 sudo tar -xf Plone-5.0.4-UnifiedInstaller.tgz
  2651. 27 ls
  2652. 28 rm -rd Plone-5.0.4-UnifiedInstaller
  2653. 29 ls
  2654. 30 pwd
  2655. 31 ls -lha
  2656. 32 ls
  2657. 33 cd Plone-5.0.4-UnifiedInstaller/
  2658. 34 ls
  2659. 35 cd ..
  2660. 36 ls
  2661. 37 sudo rm -rf Plone-5.0.4-UnifiedInstaller
  2662. 38 ls
  2663. 39 sudo tar -xf Plone-5.0.4-UnifiedInstaller.tgz
  2664. 40 ls
  2665. 41 cd Plone-5.0.4-UnifiedInstaller/
  2666. 42 ls
  2667. 43 ./install.sh
  2668. 44 sudo ./install.sh
  2669. 45 sudo apt-get install zlibg-dev
  2670. 46 sudo apt-get install zlibg
  2671. 47 sudo apt-get install libz
  2672. 48 sudo apt-cache search libz
  2673. 49 sudo apt install zlib-devel
  2674. 50 sudo apt install zlibg-devel
  2675. 51 apt-get install zlib1g-dev
  2676. 52 sudo apt-get install zlib1g-dev
  2677. 53 sudo ./install.sh
  2678. 54 cd /opt
  2679. 55 ls
  2680. 56 cd plone/
  2681. 57 ls
  2682. 58 cd zinstance/
  2683. 59 bin/plonectl fg
  2684. 60 sudo bin/plonectl fg
  2685. 61 sudo bin/buildout -c develop.cfg
  2686. 62 sudo bin/plonectl fg
  2687. 63 sudo gedit /etc/hostname
  2688. 64 sudo nano /etc/hostname
  2689. 65 sudo nano /etc/hosts
  2690. 66 sudo bin/plonectl fg
  2691. 67 sudo bin/plonectl start
  2692. 68 sudo bin/plonectl stop
  2693. 69 ls
  2694. 70 cd plone/
  2695. 71 cd zinstance/
  2696. 72 ls
  2697. 73 bin/plonectl start
  2698. 74 sudo bin/plonectl start
  2699. 75 cd /opt/plone/zinstance/
  2700. 76 sudo bin/plonectl stop
  2701. 77 sudo bin/plonectl fg
  2702. 78 sudo bin/plonectl stop
  2703. 79 sudo bin/plonectl fg
  2704. 80 ls
  2705. 81 cat develop.cfg
  2706. 82 cat buildout.cfg
  2707. 83 sudo nano buildout.cfg
  2708. 84 sudo bin/plonectl start
  2709. 85 sudo cat buildout.cfg
  2710. 86 cat buildout.cfg
  2711. 87 sudo cat buildout.cfg
  2712. 88 ls
  2713. 89 cd ..
  2714. 90 l
  2715. 91 ls
  2716. 92 cd ..
  2717. 93 ls
  2718. 94 cd plone/
  2719. 95 ls
  2720. 96 cd zinstance/
  2721. 97 ls
  2722. 98 cd var
  2723. 99 cd develop-eggs/
  2724. 100 ls
  2725. 101 cd ..
  2726. 102 ls
  2727. 103 sudo bin/plonectl fg
  2728. 104 sudo bin/plonectl stop
  2729. 105 sudo bin/plonectl fg
  2730. 106 sudo plonectl fg
  2731. 107 sudo plonectl start
  2732. 108 cd /opt/
  2733. 109 ls
  2734. 110 sudo suy
  2735. 111 sudo su
  2736. 112 ls
  2737. 113 pwd
  2738. 114 sudo apt-get install apache2
  2739. 115 sudo a2enmod rewrite
  2740. 116 sudo a2enmod proxy
  2741. 117 sudo a2enmod proxy_http
  2742. 118 sudo a2enmod headers
  2743. 119 sudo /etc/init.d/apache2 restart
  2744. 120 sudo nano /etc/apache2/sites-enabled/yoursite.conf
  2745. 121 sudo apache2ctl restart
  2746. 122 exit
  2747. 123 cd /opt/plone
  2748. 124 ls
  2749. 125 cd zinstance/
  2750. 126 ls
  2751. 127 cd /opt/plone
  2752. 128 ls
  2753. 129 cd zinstance/
  2754. 130 ls
  2755. 131 cd ..
  2756. 132 ls
  2757. 133 cd Plone-docs
  2758. 134 ls
  2759. 135 cd ..
  2760. 136 ls
  2761. 137 cd buildout-cache/
  2762. 138 ls
  2763. 139 cd downloads/
  2764. 140 ls
  2765. 141 cd dist/
  2766. 142 ls
  2767. 143 cd~
  2768. 144 cd ~
  2769. 145 ls
  2770. 146 cd /opt/plone
  2771. 147 ls
  2772. 148 exit
  2773. 149 cd /opt/plone/zinstance/
  2774. 150 ls
  2775. 151 cat buildout.cfg
  2776. 152 sud cat buildout.cfg
  2777. 153 o
  2778. 154 sudo cat buildout.cfg
  2779. 155 sudo nano buildout.cfg
  2780. 156 ls
  2781. 157 cd /opt/plone
  2782. 158 ls
  2783. 159 cd zinstance/
  2784. 160 ls
  2785. 161 sudo nano buildout.cfg
  2786. 162 sudo vim buildout.cfg
  2787. 163 sudo apt-get install vim
  2788. 164 sudo vim buildout.cfg
  2789. 165 cd /opt/plone
  2790. 166 ls
  2791. 167 cd Plone-docs
  2792. 168 ls
  2793. 169 cd ..
  2794. 170 zinstance
  2795. 171 cd zinstance/
  2796. 172 ls
  2797. 173 cd src
  2798. 174 ls
  2799. 175 readme
  2800. 176 README.txt
  2801. 177 nano README.txt
  2802. 178 ls
  2803. 179 cd /opt/plone
  2804. 180 ls
  2805. 181 cd buildout-cache/
  2806. 182 ls
  2807. 183 cd downloads/
  2808. 184 ls
  2809. 185 cd dist/
  2810. 186 ls
  2811. 187 cd ~
  2812. 188 cd /opt/plone
  2813. 189 ls
  2814. 190 cd zinstance
  2815. 191 ls
  2816. 192 cd develop-eggs/
  2817. 193 ls
  2818. 194 cd ..
  2819. 195 cd src
  2820. 196 ls
  2821. 197 cd vat
  2822. 198 cd var
  2823. 199 cd ..
  2824. 200 ls
  2825. 201 cd vat
  2826. 202 cd var
  2827. 203 ls
  2828. 204 cd lib
  2829. 205 ls
  2830. 206 cd ..
  2831. 207 cd include
  2832. 208 ls
  2833. 209 cd ..
  2834. 210 vim base.cfg
  2835. 211 vim buildout.cfg
  2836. 212 sudo vim buildout.cfg
  2837. 213 sudo vim buildout.cfg
  2838. 214 cd /opt/plone
  2839. 215 ls
  2840. 216 cd /opt/
  2841. 217 ls
  2842. 218 cd Plone-5.0.4-UnifiedInstaller/
  2843. 219 ls
  2844. 220 cd buildout_templates
  2845. 221 ls
  2846. 222 nano buildout.cfg
  2847. 223 cd /opt/plone
  2848. 224 ls
  2849. 225 cd zinstance/
  2850. 226 ls
  2851. 227 cd products
  2852. 228 ls
  2853. 229 nano README.txt
  2854. 230 cd src
  2855. 231 ls
  2856. 232 cd ..
  2857. 233 cd src
  2858. 234 ls
  2859. 235 nano README.txt
  2860. 236 cd ..
  2861. 237 ls
  2862. 238 nano pip-selfcheck.json
  2863. 239 dc bin
  2864. 240 cd bin
  2865. 241 ls
  2866. 242 cd /opt/plone
  2867. 243 ls
  2868. 244 cd zinstance/
  2869. 245 ls
  2870. 246 cd products
  2871. 247 ls
  2872. 248 cd ..
  2873. 249 ls
  2874. 250 cd include
  2875. 251 ls
  2876. 252 cd /lib
  2877. 253 ls
  2878. 254 cd /bin
  2879. 255 ls
  2880. 256 cd less
  2881. 257 cd lessfile
  2882. 258 cd open
  2883. 259 su
  2884. 260 cd ..
  2885. 261 ls
  2886. 262 cd usr
  2887. 263 ls
  2888. 264 cd opt
  2889. 265 cd /opt
  2890. 266 ls
  2891. 267 cd lost+found/
  2892. 268 cd plone
  2893. 269 ls
  2894. 270 cd zinstance/
  2895. 271 ls
  2896. 272 cd local
  2897. 273 ls
  2898. 274 cd lib
  2899. 275 ls
  2900. 276 cd /include
  2901. 277 cd ..
  2902. 278 cd include
  2903. 279 ls
  2904. 280 cd ..
  2905. 281 cd bin
  2906. 282 ls
  2907. 283 ls
  2908. 284 cd /opt/plone
  2909. 285 ls
  2910. 286 cd zinstance/
  2911. 287 ls
  2912. 288 cd src
  2913. 289 ls
  2914. 290 cd ..
  2915. 291 ls
  2916. 292 cd parts
  2917. 293 ls
  2918. 294 cd instance
  2919. 295 ls
  2920. 296 cd bin
  2921. 297 ls
  2922. 298 cd in
  2923. 299 cd interpreter
  2924. 300 ls
  2925. 301 nano interpreter
  2926. 302 cd ..
  2927. 303 ls
  2928. 304 cd etc
  2929. 305 ls
  2930. 306 cd ..
  2931. 307 ls
  2932. 308 cd inituser
  2933. 309 nano inituser
  2934. 310 ls
  2935. 311 cd etc
  2936. 312 ls
  2937. 313 nano site.zcml
  2938. 314 cd /opt/
  2939. 315 ls
  2940. 316 cd plone/
  2941. 317 ls
  2942. 318 git init
  2943. 319 sudo git init
  2944. 320 git add .
  2945. 321 sudo git add .
  2946. 322 exit
  2947. 323 cd /opt/plone/
  2948. 324 exit
  2949. 325 ls
  2950. 326 cd /opt/
  2951. 327 l
  2952. 328 ls
  2953. 329 git clone git@github.com:plonegovbr/portal.buildout.git
  2954. 330 ls
  2955. 331 sudo git clone git@github.com:plonegovbr/portal.buildout.git
  2956. 332 git clone https://github.com/plonegovbr/portal.buildout.git
  2957. 333 sudo git clone https://github.com/plonegovbr/portal.buildout.git
  2958. 334 ls
  2959. 335 cd portal.buildout/
  2960. 336 ls
  2961. 337 virtualenv py27
  2962. 338 sudo apt update && sudo apt upgrade -y
  2963. 339 sudo apt install -y build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev zlib1g-dev python-setuptools python-dev python-virtualenv libjpeg62-turbo-dev libreadline-gplv2-dev python-imaging python-pip wv poppler-utils git
  2964. 340 virtualenv py27
  2965. 341 sudo virtualenv py27
  2966. 342 source py27/bin/activate
  2967. 343 sudo nano buildout.cfg
  2968. 344 pip install -U setuptools==36.6.1
  2969. 345 sudo su
  2970. 346 bin/buildout
  2971. 347 ls -la
  2972. 348 ls -lah
  2973. 349 CD ..
  2974. 350 ls
  2975. 351 cd ..
  2976. 352 ls
  2977. 353 ls -lah
  2978. 354 sudo chown -R debian:debian portal.buildout/
  2979. 355 ls -la
  2980. 356 cd portal.buildout/
  2981. 357 bin/buildout
  2982. 358 /opt/portal.buildout/
  2983. 359 çd /opt/portal.buildout/
  2984. 360 cd /opt/portal.buildout/
  2985. 361 bin/instance start
  2986. 362 bin/instance stop
  2987. 363 cd ..
  2988. 364 l
  2989. 365 ls
  2990. 366 cd plor
  2991. 367 cd plone
  2992. 368 cd zinstance/
  2993. 369 ls
  2994. 370 cd ..
  2995. 371 ls
  2996. 372 cd ..
  2997. 373 ls
  2998. 374 cd portal.buildout/
  2999. 375 sudo useradd --system --shell /bin/bash --comment 'Plone Administrator' --user-group -m --home-dir /opt/plone plone
  3000. 376 sudo passwd plone
  3001. 377 su - plone
  3002. 378 sudo nano /etc/sudoers
  3003. 379 su - plone
  3004. 380 cd /opt/
  3005. 381 s
  3006. 382 ls
  3007. 383 cd plone.old/ plone
  3008. 384 mv plone.old/ plone
  3009. 385 sudo mv plone.old/ plone
  3010. 386 ls
  3011. 387 exit
  3012. 388 ls
  3013. 389 pwd
  3014. 390 apache
  3015. 391 apache2
  3016. 392 apache3
  3017. 393 apt update
  3018. 394 sudo apt update
  3019. 395 sudo apt install apache2
  3020. 396 ls
  3021. 397 pwd
  3022. 398 git clone https://gitlab.ifg.edu.br/DTI/repositorio-digital.git
  3023. 399 ls
  3024. 400 cd repositorio-digital/
  3025. 401 ls
  3026. 402 cd dspace
  3027. 403 ls
  3028. 404 cd bin
  3029. 405 ks
  3030. 406 ls
  3031. 407 cd ds
  3032. 408 cat dspace
  3033. 409 cd ,,
  3034. 410 cd ..
  3035. 411 ls
  3036. 412 cd ..
  3037. 413 ls
  3038. 414 sh compilar_rodar.sh
  3039. 415 ls
  3040. 416 cd repositorio-digital/
  3041. 417 ls
  3042. 418 cat build.properties
  3043. 419 cd re
  3044. 420 cd repositorio-digital/
  3045. 421 ls
  3046. 422 cd repositorio-digital/
  3047. 423 ls
  3048. 424 addgroup dspace
  3049. 425 psql
  3050. 426 apt-cache search postgres
  3051. 427 sudo apt-get update
  3052. 428 apt-get upgrade
  3053. 429 sudo apt-get upgrade
  3054. 430 sudo apt-get install postgresql
  3055. 431 addgroup dspace
  3056. 432 psql
  3057. 433 psql -u postgres
  3058. 434 psql --help
  3059. 435 psql -U postgres
  3060. 436 psql -U postgres -W
  3061. 437 psql -U postgres
  3062. 438 psql -U postgres -w
  3063. 439 psql -U root
  3064. 440 psql -U root -w
  3065. 441 psql
  3066. 442 sudo su
  3067. 443 sudo -u postgres
  3068. 444 su postgres
  3069. 445 sudo -u postgres -i
  3070. 446 sudo su
  3071. 447 exit
  3072. 448 ls
  3073. 449 sudo mkdir /opt/jdk
  3074. 450 tar -zxf jdk-8u191-linux-x64.tar.gz -C /opt/jdk/
  3075. 451 sudo tar -zxf jdk-8u191-linux-x64.tar.gz -C /opt/jdk/
  3076. 452 update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_191/bin/java 100
  3077. 453 sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_191/bin/java 100
  3078. 454 sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_191/bin/javac 100
  3079. 455 sudo su
  3080. 456 ls
  3081. 457 cd repositorio-digital/
  3082. 458 ls
  3083. 459 cd ..
  3084. 460 ls
  3085. 461 cd /opt
  3086. 462 ls
  3087. 463 cd plone/
  3088. 464 ls
  3089. 465 cd zinstance/
  3090. 466 bin/plonectl stop
  3091. 467 sudp bin/plonectl stop
  3092. 468 sudo bin/plonectl stop
  3093. 469 sudo systemctl stop apache2
  3094. 470 ls
  3095. 471 cd repositorio-digital/
  3096. 472 ls
  3097. 473 nano build.properties
  3098. 474 exit
  3099. 475 cd /home/debian/
  3100. 476 ls
  3101. 477 sudo tar -vzxf apache-maven-3.5.4-bin.tar.gz
  3102. 478 cd repositorio-digital/
  3103. 479 ls
  3104. 480 cd dspace
  3105. 481 ls
  3106. 482 cd ..
  3107. 483 ls
  3108. 484 ls -la
  3109. 485 cd ..
  3110. 486 ls
  3111. 487 sudo chown -R dspace:dspace repositorio-digital/
  3112. 488 ls -la
  3113. 489 cd repositorio-digital/
  3114. 490 ls
  3115. 491 ls -la
  3116. 492 su dspace
  3117. 493 sudo su
  3118. 494 su dspace
  3119. 495 exit
  3120. 496 ls
  3121. 497 sudo apt-get update -y
  3122. 498 sudo apt-get upgrade -y
  3123. 499 sudo systemctl start apache2
  3124. 500 sudo systemctl enable apache2
  3125. 501 sudo apt-get install php7.0 php7.0-cli php7.0-mcrypt php7.0-intl php7.0-mysql php7.0-curl php7.0-gd php7.0-soap php7.0-xml php7.0-zip php7.0-readline php7.0-opcache php7.0-json php7.0-gd -y
  3126. 502 sudo nano /etc/php/7.0/apache2/php.ini
  3127. 503 sudo apt-get install mariadb-server -y
  3128. 504 sudo systemctl start mysql
  3129. 505 sudo systemctl enable mysql
  3130. 506 sudo mysql_secure_installation
  3131. 507 sudo systemctl start mysql
  3132. 508 sudo systemctl stop mysql
  3133. 509 sudo systemctl start mysql
  3134. 510 sudo systemctl enable mysql
  3135. 511 /lib/systemd/systemd-sysv-install enable mysql
  3136. 512 sudo /lib/systemd/systemd-sysv-install enable mysql
  3137. 513 sudo mysql_secure_installation
  3138. 514 mysql -u root -p
  3139. 515 sudo mysql_secure_installation
  3140. 516 mysql -u root -p
  3141. 517 sudo nano /etc/my.cnf
  3142. 518 cd /etc
  3143. 519 ls
  3144. 520 cd mysql/
  3145. 521 ls
  3146. 522 sudo nano my.cnf
  3147. 523 mysql -u root -p
  3148. 524 sudo nano my.cnf
  3149. 525 mysql -u root -p
  3150. 526 sudo nano my.cnf
  3151. 527 mysql -u localhost -u root -p mysql
  3152. 528 mysql -u root -p
  3153. 529 mysql -u root
  3154. 530*
  3155. 531 mysql -u root
  3156. 532* sudo /etc/init.d/mysql s
  3157. 533* sudo mysqld_safe --skip-grant-tables &mysql -u root -p
  3158. 534 mysql -uroot
  3159. 535 mysql -u root -p
  3160. 536 mysql -u root
  3161. 537 mysql -u root -p
  3162. 538 /etc/init.d/mysql stop
  3163. 539 sudo systemctl stop mysql
  3164. 540 /etc/init.d/mysql start
  3165. 541 mysql -u root -p
  3166. 542 /etc/init.d/mysql stop
  3167. 543 mysql -u root -p
  3168. 544 sudo systemctl stop mariadb.service
  3169. 545 sudo service mysql stop
  3170. 546 sudo mysqld_safe --skip-grant-tables --skip-networking &
  3171. 547 ps
  3172. 548 top
  3173. 549 ps
  3174. 550 top
  3175. 551 renice
  3176. 552 pstree
  3177. 553 ps
  3178. 554 PPID
  3179. 555 top
  3180. 556 ps aux | grep mysql
  3181. 557 sudo kill -9 23236
  3182. 558 sudo kill -9 26236
  3183. 559 ps aux | grep mysql
  3184. 560 sudo kill -9 26883
  3185. 561 sudo kill -9 181024
  3186. 562 mysql -u root
  3187. 563 sudo systemctl start mysql
  3188. 564 service mysql status
  3189. 565 sudo service mysql status
  3190. 566 cd /var/lib/mysql
  3191. 567 sudo su
  3192. 568 sudo service mysql status
  3193. 569*
  3194. 570 sudo nano /etc/mysql/my.cnf
  3195. 571 sudo mysql
  3196. 572 sudo mysql -e
  3197. 573 sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'"
  3198. 574 sudo systemctl stop mysql
  3199. 575 sudo mysqld_safe --skip-grant-tables --skip-networking &
  3200. 576 cd /
  3201. 577 sudo service mysql stop
  3202. 578 sudo apt-get --purge remove "mysql*"
  3203. 579 sudo rm -rf /etc/mysql/
  3204. 580 locate mysql
  3205. 581 sudo updatedb
  3206. 582 locate mysql
  3207. 583 sudo apt-get install mariadb-server -y
  3208. 584 sudo systemctl enable mysql
  3209. 585 /etc/systemd/system/mysqld.service
  3210. 586 ßudo /etc/systemd/system/mysqld.service
  3211. 587 sudo /etc/systemd/system/mysqld.service
  3212. 588 sudo /etc/mysql/conf.d/
  3213. 589 ls
  3214. 590 cd /etc/mysql/conf.d/
  3215. 591 ls
  3216. 592 sudo nano mysql
  3217. 593 sudo nano mysql.cnf
  3218. 594 sudo mysql_secure_installation
  3219. 595 sudo nano /etc/mysql/my.cnf
  3220. 596 sudo mysql_secure_installation
  3221. 597 sudo apt-get update
  3222. 598 sudo apt-get -y install mariadb-server mariadb-client
  3223. 599 sudo mysql_secure_installation
  3224. 600 sudo service mysql stop
  3225. 601* sudo apt-get --purge removesudo apt-get --purge remove "mysql*
  3226. 602 sudo apt-get --purge remove "mysql*
  3227. 603 sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
  3228. 604 sudo rm -rf /etc/mysql /var/lib/mysql
  3229. 605 sudo apt-get autoremove
  3230. 606 sudo apt-get autoclean
  3231. 607 apt-get update
  3232. 608 apt-get upgrade
  3233. 609 sudo su
  3234. 610 ls
  3235. 611 cd ..
  3236. 612 ls
  3237. 613 cd ..
  3238. 614 ls
  3239. 615 cd mysql
  3240. 616 ls
  3241. 617 cd ..
  3242. 618 ls -la
  3243. 619 sudo chown -R mysql debian:debian
  3244. 620 sudo chown -R debian:debian mysql/
  3245. 621 sudo mysql_secure_installation
  3246. 622 sudo rm -rf /etc/mysql /var/lib/mysq
  3247. 623 sudo nano /var/log/mysqld.log
  3248. 624 cd /var/log/mysql/
  3249. 625 ls
  3250. 626 sudo cd /var/log/mysql/
  3251. 627 sudo su
  3252. 628 sudo /usr/bin/mysql_secure_installation
  3253. 629 sudo su
  3254. 630 history
  3255. debian@paracambi:/etc$ ^C
  3256. debian@paracambi:/etc$ ^C
  3257. debian@paracambi:/etc$ ^C
  3258. debian@paracambi:/etc$ ^C
  3259. debian@paracambi:/etc$ sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
  3260. Lendo listas de pacotes... Pronto
  3261. Construindo árvore de dependências
  3262. Lendo informação de estado... Pronto
  3263. Note, selecting 'mysql-server-core-5.5' for glob 'mysql-server-core-*'
  3264. Note, selecting 'mysql-server-core-5.6' for glob 'mysql-server-core-*'
  3265. Note, selecting 'mysql-server-core-5.7' for glob 'mysql-server-core-*'
  3266. O pacote 'mysql-server-core-5.5' não está instalado, por isso não será removido
  3267. O pacote 'mysql-server-core-5.6' não está instalado, por isso não será removido
  3268. O pacote 'mysql-server-core-5.7' não está instalado, por isso não será removido
  3269. Note, selecting 'mysql-client-core-5.5' for glob 'mysql-client-core-*'
  3270. Note, selecting 'mysql-client-core-5.6' for glob 'mysql-client-core-*'
  3271. Note, selecting 'mysql-client-core-5.7' for glob 'mysql-client-core-*'
  3272. O pacote 'mysql-client-core-5.5' não está instalado, por isso não será removido
  3273. O pacote 'mysql-client-core-5.6' não está instalado, por isso não será removido
  3274. O pacote 'mysql-client-core-5.7' não está instalado, por isso não será removido
  3275. O pacote 'mysql-client' não está instalado, por isso não será removido
  3276. O pacote 'mysql-server' não está instalado, por isso não será removido
  3277. Os seguintes pacotes foram instalados automaticamente e já não são necessários:
  3278. galera-3 libaio1 libdbi-perl libjemalloc1 libterm-readkey-perl socat
  3279. Utilize 'sudo apt autoremove' para os remover.
  3280. Os pacotes a seguir serão REMOVIDOS:
  3281. libdbd-mysql-perl* libmariadbclient18* mariadb-client-10.1* mariadb-client-core-10.1* mariadb-common* mariadb-server*
  3282. mariadb-server-10.1* mariadb-server-core-10.1* mysql-common*
  3283. 0 pacotes atualizados, 0 pacotes novos instalados, 9 a serem removidos e 0 não atualizados.
  3284. Depois desta operação, 181 MB de espaço em disco serão liberados.
  3285. Você quer continuar? [S/n] S
  3286. (Lendo banco de dados ... 64549 ficheiros e directórios actualmente instalados.)
  3287. A remover libdbd-mysql-perl (4.041-2) ...
  3288. A remover libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  3289. A remover mariadb-server (10.1.26-0+deb9u1) ...
  3290. A remover mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  3291. A remover mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  3292. A remover mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  3293. A remover mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  3294. A remover mariadb-common (10.1.26-0+deb9u1) ...
  3295. update-alternatives: aviso: alternativa /etc/mysql/mariadb.cnf (parte do grupo de ligação my.cnf) não existe; a remover da lista de alternativas
  3296. update-alternatives: aviso: alternativa /etc/mysql/my.cnf.fallback (parte do grupo de ligação my.cnf) não existe; a remover da lista de alternativas
  3297. update-alternatives: aviso: /etc/alternatives/my.cnf em suspenso; será actualizado com a melhor escolha
  3298. A remover mysql-common (5.8+1.0.2) ...
  3299. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  3300. A processar 'triggers' para man-db (2.7.6.1-2) ...
  3301. (Lendo banco de dados ... 64255 ficheiros e directórios actualmente instalados.)
  3302. A purgar os ficheiros de configuração para mariadb-common (10.1.26-0+deb9u1) ...
  3303. A purgar os ficheiros de configuração para mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  3304. A purgar os ficheiros de configuração para mysql-common (5.8+1.0.2) ...
  3305. A purgar os ficheiros de configuração para mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  3306. userdel: user mysql is currently used by process 26235
  3307. A processar 'triggers' para systemd (232-25+deb9u4) ...
  3308. debian@paracambi:/etc$ history
  3309. 1 sudo su
  3310. 2 su
  3311. 3 su suez
  3312. 4 sudo su
  3313. 5 sudo ifconfig
  3314. 6 exit
  3315. 7 sudo apt install python2.7 python2.7-dev python-setuptools python-dev build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-dev
  3316. 8 sudo apt install python2.7 python2.7-dev python-setuptools python-dev build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-turbo-dev
  3317. 9 sudo apt install libreadline-dev wv poppler-utils
  3318. 10 sudo apt install git
  3319. 11 wget --no-check-certificate https://launchpad.net/plone/5.0/5.0.4/+download/Plone-5.0.4-UnifiedInstaller.tgz
  3320. 12 sudo apt install wget
  3321. 13 wget --no-check-certificate https://launchpad.net/plone/5.0/5.0.4/+download/Plone-5.0.4-UnifiedInstaller.tgz
  3322. 14 ls
  3323. 15 pwd
  3324. 16 cd /opt
  3325. 17 ls
  3326. 18 cd /home/debian/
  3327. 19 ls
  3328. 20 mv Plone-5.0.4-UnifiedInstaller.tgz /opt
  3329. 21 sudo mv Plone-5.0.4-UnifiedInstaller.tgz /opt
  3330. 22 sudo su
  3331. 23 cd /opt/
  3332. 24 ls
  3333. 25 tar -xf Plone-5.0.4-UnifiedInstaller.tgz
  3334. 26 sudo tar -xf Plone-5.0.4-UnifiedInstaller.tgz
  3335. 27 ls
  3336. 28 rm -rd Plone-5.0.4-UnifiedInstaller
  3337. 29 ls
  3338. 30 pwd
  3339. 31 ls -lha
  3340. 32 ls
  3341. 33 cd Plone-5.0.4-UnifiedInstaller/
  3342. 34 ls
  3343. 35 cd ..
  3344. 36 ls
  3345. 37 sudo rm -rf Plone-5.0.4-UnifiedInstaller
  3346. 38 ls
  3347. 39 sudo tar -xf Plone-5.0.4-UnifiedInstaller.tgz
  3348. 40 ls
  3349. 41 cd Plone-5.0.4-UnifiedInstaller/
  3350. 42 ls
  3351. 43 ./install.sh
  3352. 44 sudo ./install.sh
  3353. 45 sudo apt-get install zlibg-dev
  3354. 46 sudo apt-get install zlibg
  3355. 47 sudo apt-get install libz
  3356. 48 sudo apt-cache search libz
  3357. 49 sudo apt install zlib-devel
  3358. 50 sudo apt install zlibg-devel
  3359. 51 apt-get install zlib1g-dev
  3360. 52 sudo apt-get install zlib1g-dev
  3361. 53 sudo ./install.sh
  3362. 54 cd /opt
  3363. 55 ls
  3364. 56 cd plone/
  3365. 57 ls
  3366. 58 cd zinstance/
  3367. 59 bin/plonectl fg
  3368. 60 sudo bin/plonectl fg
  3369. 61 sudo bin/buildout -c develop.cfg
  3370. 62 sudo bin/plonectl fg
  3371. 63 sudo gedit /etc/hostname
  3372. 64 sudo nano /etc/hostname
  3373. 65 sudo nano /etc/hosts
  3374. 66 sudo bin/plonectl fg
  3375. 67 sudo bin/plonectl start
  3376. 68 sudo bin/plonectl stop
  3377. 69 ls
  3378. 70 cd plone/
  3379. 71 cd zinstance/
  3380. 72 ls
  3381. 73 bin/plonectl start
  3382. 74 sudo bin/plonectl start
  3383. 75 cd /opt/plone/zinstance/
  3384. 76 sudo bin/plonectl stop
  3385. 77 sudo bin/plonectl fg
  3386. 78 sudo bin/plonectl stop
  3387. 79 sudo bin/plonectl fg
  3388. 80 ls
  3389. 81 cat develop.cfg
  3390. 82 cat buildout.cfg
  3391. 83 sudo nano buildout.cfg
  3392. 84 sudo bin/plonectl start
  3393. 85 sudo cat buildout.cfg
  3394. 86 cat buildout.cfg
  3395. 87 sudo cat buildout.cfg
  3396. 88 ls
  3397. 89 cd ..
  3398. 90 l
  3399. 91 ls
  3400. 92 cd ..
  3401. 93 ls
  3402. 94 cd plone/
  3403. 95 ls
  3404. 96 cd zinstance/
  3405. 97 ls
  3406. 98 cd var
  3407. 99 cd develop-eggs/
  3408. 100 ls
  3409. 101 cd ..
  3410. 102 ls
  3411. 103 sudo bin/plonectl fg
  3412. 104 sudo bin/plonectl stop
  3413. 105 sudo bin/plonectl fg
  3414. 106 sudo plonectl fg
  3415. 107 sudo plonectl start
  3416. 108 cd /opt/
  3417. 109 ls
  3418. 110 sudo suy
  3419. 111 sudo su
  3420. 112 ls
  3421. 113 pwd
  3422. 114 sudo apt-get install apache2
  3423. 115 sudo a2enmod rewrite
  3424. 116 sudo a2enmod proxy
  3425. 117 sudo a2enmod proxy_http
  3426. 118 sudo a2enmod headers
  3427. 119 sudo /etc/init.d/apache2 restart
  3428. 120 sudo nano /etc/apache2/sites-enabled/yoursite.conf
  3429. 121 sudo apache2ctl restart
  3430. 122 exit
  3431. 123 cd /opt/plone
  3432. 124 ls
  3433. 125 cd zinstance/
  3434. 126 ls
  3435. 127 cd /opt/plone
  3436. 128 ls
  3437. 129 cd zinstance/
  3438. 130 ls
  3439. 131 cd ..
  3440. 132 ls
  3441. 133 cd Plone-docs
  3442. 134 ls
  3443. 135 cd ..
  3444. 136 ls
  3445. 137 cd buildout-cache/
  3446. 138 ls
  3447. 139 cd downloads/
  3448. 140 ls
  3449. 141 cd dist/
  3450. 142 ls
  3451. 143 cd~
  3452. 144 cd ~
  3453. 145 ls
  3454. 146 cd /opt/plone
  3455. 147 ls
  3456. 148 exit
  3457. 149 cd /opt/plone/zinstance/
  3458. 150 ls
  3459. 151 cat buildout.cfg
  3460. 152 sud cat buildout.cfg
  3461. 153 o
  3462. 154 sudo cat buildout.cfg
  3463. 155 sudo nano buildout.cfg
  3464. 156 ls
  3465. 157 cd /opt/plone
  3466. 158 ls
  3467. 159 cd zinstance/
  3468. 160 ls
  3469. 161 sudo nano buildout.cfg
  3470. 162 sudo vim buildout.cfg
  3471. 163 sudo apt-get install vim
  3472. 164 sudo vim buildout.cfg
  3473. 165 cd /opt/plone
  3474. 166 ls
  3475. 167 cd Plone-docs
  3476. 168 ls
  3477. 169 cd ..
  3478. 170 zinstance
  3479. 171 cd zinstance/
  3480. 172 ls
  3481. 173 cd src
  3482. 174 ls
  3483. 175 readme
  3484. 176 README.txt
  3485. 177 nano README.txt
  3486. 178 ls
  3487. 179 cd /opt/plone
  3488. 180 ls
  3489. 181 cd buildout-cache/
  3490. 182 ls
  3491. 183 cd downloads/
  3492. 184 ls
  3493. 185 cd dist/
  3494. 186 ls
  3495. 187 cd ~
  3496. 188 cd /opt/plone
  3497. 189 ls
  3498. 190 cd zinstance
  3499. 191 ls
  3500. 192 cd develop-eggs/
  3501. 193 ls
  3502. 194 cd ..
  3503. 195 cd src
  3504. 196 ls
  3505. 197 cd vat
  3506. 198 cd var
  3507. 199 cd ..
  3508. 200 ls
  3509. 201 cd vat
  3510. 202 cd var
  3511. 203 ls
  3512. 204 cd lib
  3513. 205 ls
  3514. 206 cd ..
  3515. 207 cd include
  3516. 208 ls
  3517. 209 cd ..
  3518. 210 vim base.cfg
  3519. 211 vim buildout.cfg
  3520. 212 sudo vim buildout.cfg
  3521. 213 sudo vim buildout.cfg
  3522. 214 cd /opt/plone
  3523. 215 ls
  3524. 216 cd /opt/
  3525. 217 ls
  3526. 218 cd Plone-5.0.4-UnifiedInstaller/
  3527. 219 ls
  3528. 220 cd buildout_templates
  3529. 221 ls
  3530. 222 nano buildout.cfg
  3531. 223 cd /opt/plone
  3532. 224 ls
  3533. 225 cd zinstance/
  3534. 226 ls
  3535. 227 cd products
  3536. 228 ls
  3537. 229 nano README.txt
  3538. 230 cd src
  3539. 231 ls
  3540. 232 cd ..
  3541. 233 cd src
  3542. 234 ls
  3543. 235 nano README.txt
  3544. 236 cd ..
  3545. 237 ls
  3546. 238 nano pip-selfcheck.json
  3547. 239 dc bin
  3548. 240 cd bin
  3549. 241 ls
  3550. 242 cd /opt/plone
  3551. 243 ls
  3552. 244 cd zinstance/
  3553. 245 ls
  3554. 246 cd products
  3555. 247 ls
  3556. 248 cd ..
  3557. 249 ls
  3558. 250 cd include
  3559. 251 ls
  3560. 252 cd /lib
  3561. 253 ls
  3562. 254 cd /bin
  3563. 255 ls
  3564. 256 cd less
  3565. 257 cd lessfile
  3566. 258 cd open
  3567. 259 su
  3568. 260 cd ..
  3569. 261 ls
  3570. 262 cd usr
  3571. 263 ls
  3572. 264 cd opt
  3573. 265 cd /opt
  3574. 266 ls
  3575. 267 cd lost+found/
  3576. 268 cd plone
  3577. 269 ls
  3578. 270 cd zinstance/
  3579. 271 ls
  3580. 272 cd local
  3581. 273 ls
  3582. 274 cd lib
  3583. 275 ls
  3584. 276 cd /include
  3585. 277 cd ..
  3586. 278 cd include
  3587. 279 ls
  3588. 280 cd ..
  3589. 281 cd bin
  3590. 282 ls
  3591. 283 ls
  3592. 284 cd /opt/plone
  3593. 285 ls
  3594. 286 cd zinstance/
  3595. 287 ls
  3596. 288 cd src
  3597. 289 ls
  3598. 290 cd ..
  3599. 291 ls
  3600. 292 cd parts
  3601. 293 ls
  3602. 294 cd instance
  3603. 295 ls
  3604. 296 cd bin
  3605. 297 ls
  3606. 298 cd in
  3607. 299 cd interpreter
  3608. 300 ls
  3609. 301 nano interpreter
  3610. 302 cd ..
  3611. 303 ls
  3612. 304 cd etc
  3613. 305 ls
  3614. 306 cd ..
  3615. 307 ls
  3616. 308 cd inituser
  3617. 309 nano inituser
  3618. 310 ls
  3619. 311 cd etc
  3620. 312 ls
  3621. 313 nano site.zcml
  3622. 314 cd /opt/
  3623. 315 ls
  3624. 316 cd plone/
  3625. 317 ls
  3626. 318 git init
  3627. 319 sudo git init
  3628. 320 git add .
  3629. 321 sudo git add .
  3630. 322 exit
  3631. 323 cd /opt/plone/
  3632. 324 exit
  3633. 325 ls
  3634. 326 cd /opt/
  3635. 327 l
  3636. 328 ls
  3637. 329 git clone git@github.com:plonegovbr/portal.buildout.git
  3638. 330 ls
  3639. 331 sudo git clone git@github.com:plonegovbr/portal.buildout.git
  3640. 332 git clone https://github.com/plonegovbr/portal.buildout.git
  3641. 333 sudo git clone https://github.com/plonegovbr/portal.buildout.git
  3642. 334 ls
  3643. 335 cd portal.buildout/
  3644. 336 ls
  3645. 337 virtualenv py27
  3646. 338 sudo apt update && sudo apt upgrade -y
  3647. 339 sudo apt install -y build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev zlib1g-dev python-setuptools python-dev python-virtualenv libjpeg62-turbo-dev libreadline-gplv2-dev python-imaging python-pip wv poppler-utils git
  3648. 340 virtualenv py27
  3649. 341 sudo virtualenv py27
  3650. 342 source py27/bin/activate
  3651. 343 sudo nano buildout.cfg
  3652. 344 pip install -U setuptools==36.6.1
  3653. 345 sudo su
  3654. 346 bin/buildout
  3655. 347 ls -la
  3656. 348 ls -lah
  3657. 349 CD ..
  3658. 350 ls
  3659. 351 cd ..
  3660. 352 ls
  3661. 353 ls -lah
  3662. 354 sudo chown -R debian:debian portal.buildout/
  3663. 355 ls -la
  3664. 356 cd portal.buildout/
  3665. 357 bin/buildout
  3666. 358 /opt/portal.buildout/
  3667. 359 çd /opt/portal.buildout/
  3668. 360 cd /opt/portal.buildout/
  3669. 361 bin/instance start
  3670. 362 bin/instance stop
  3671. 363 cd ..
  3672. 364 l
  3673. 365 ls
  3674. 366 cd plor
  3675. 367 cd plone
  3676. 368 cd zinstance/
  3677. 369 ls
  3678. 370 cd ..
  3679. 371 ls
  3680. 372 cd ..
  3681. 373 ls
  3682. 374 cd portal.buildout/
  3683. 375 sudo useradd --system --shell /bin/bash --comment 'Plone Administrator' --user-group -m --home-dir /opt/plone plone
  3684. 376 sudo passwd plone
  3685. 377 su - plone
  3686. 378 sudo nano /etc/sudoers
  3687. 379 su - plone
  3688. 380 cd /opt/
  3689. 381 s
  3690. 382 ls
  3691. 383 cd plone.old/ plone
  3692. 384 mv plone.old/ plone
  3693. 385 sudo mv plone.old/ plone
  3694. 386 ls
  3695. 387 exit
  3696. 388 ls
  3697. 389 pwd
  3698. 390 apache
  3699. 391 apache2
  3700. 392 apache3
  3701. 393 apt update
  3702. 394 sudo apt update
  3703. 395 sudo apt install apache2
  3704. 396 ls
  3705. 397 pwd
  3706. 398 git clone https://gitlab.ifg.edu.br/DTI/repositorio-digital.git
  3707. 399 ls
  3708. 400 cd repositorio-digital/
  3709. 401 ls
  3710. 402 cd dspace
  3711. 403 ls
  3712. 404 cd bin
  3713. 405 ks
  3714. 406 ls
  3715. 407 cd ds
  3716. 408 cat dspace
  3717. 409 cd ,,
  3718. 410 cd ..
  3719. 411 ls
  3720. 412 cd ..
  3721. 413 ls
  3722. 414 sh compilar_rodar.sh
  3723. 415 ls
  3724. 416 cd repositorio-digital/
  3725. 417 ls
  3726. 418 cat build.properties
  3727. 419 cd re
  3728. 420 cd repositorio-digital/
  3729. 421 ls
  3730. 422 cd repositorio-digital/
  3731. 423 ls
  3732. 424 addgroup dspace
  3733. 425 psql
  3734. 426 apt-cache search postgres
  3735. 427 sudo apt-get update
  3736. 428 apt-get upgrade
  3737. 429 sudo apt-get upgrade
  3738. 430 sudo apt-get install postgresql
  3739. 431 addgroup dspace
  3740. 432 psql
  3741. 433 psql -u postgres
  3742. 434 psql --help
  3743. 435 psql -U postgres
  3744. 436 psql -U postgres -W
  3745. 437 psql -U postgres
  3746. 438 psql -U postgres -w
  3747. 439 psql -U root
  3748. 440 psql -U root -w
  3749. 441 psql
  3750. 442 sudo su
  3751. 443 sudo -u postgres
  3752. 444 su postgres
  3753. 445 sudo -u postgres -i
  3754. 446 sudo su
  3755. 447 exit
  3756. 448 ls
  3757. 449 sudo mkdir /opt/jdk
  3758. 450 tar -zxf jdk-8u191-linux-x64.tar.gz -C /opt/jdk/
  3759. 451 sudo tar -zxf jdk-8u191-linux-x64.tar.gz -C /opt/jdk/
  3760. 452 update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_191/bin/java 100
  3761. 453 sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_191/bin/java 100
  3762. 454 sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_191/bin/javac 100
  3763. 455 sudo su
  3764. 456 ls
  3765. 457 cd repositorio-digital/
  3766. 458 ls
  3767. 459 cd ..
  3768. 460 ls
  3769. 461 cd /opt
  3770. 462 ls
  3771. 463 cd plone/
  3772. 464 ls
  3773. 465 cd zinstance/
  3774. 466 bin/plonectl stop
  3775. 467 sudp bin/plonectl stop
  3776. 468 sudo bin/plonectl stop
  3777. 469 sudo systemctl stop apache2
  3778. 470 ls
  3779. 471 cd repositorio-digital/
  3780. 472 ls
  3781. 473 nano build.properties
  3782. 474 exit
  3783. 475 cd /home/debian/
  3784. 476 ls
  3785. 477 sudo tar -vzxf apache-maven-3.5.4-bin.tar.gz
  3786. 478 cd repositorio-digital/
  3787. 479 ls
  3788. 480 cd dspace
  3789. 481 ls
  3790. 482 cd ..
  3791. 483 ls
  3792. 484 ls -la
  3793. 485 cd ..
  3794. 486 ls
  3795. 487 sudo chown -R dspace:dspace repositorio-digital/
  3796. 488 ls -la
  3797. 489 cd repositorio-digital/
  3798. 490 ls
  3799. 491 ls -la
  3800. 492 su dspace
  3801. 493 sudo su
  3802. 494 su dspace
  3803. 495 exit
  3804. 496 ls
  3805. 497 sudo apt-get update -y
  3806. 498 sudo apt-get upgrade -y
  3807. 499 sudo systemctl start apache2
  3808. 500 sudo systemctl enable apache2
  3809. 501 sudo apt-get install php7.0 php7.0-cli php7.0-mcrypt php7.0-intl php7.0-mysql php7.0-curl php7.0-gd php7.0-soap php7.0-xml php7.0-zip php7.0-readline php7.0-opcache php7.0-json php7.0-gd -y
  3810. 502 sudo nano /etc/php/7.0/apache2/php.ini
  3811. 503 sudo apt-get install mariadb-server -y
  3812. 504 sudo systemctl start mysql
  3813. 505 sudo systemctl enable mysql
  3814. 506 sudo mysql_secure_installation
  3815. 507 sudo systemctl start mysql
  3816. 508 sudo systemctl stop mysql
  3817. 509 sudo systemctl start mysql
  3818. 510 sudo systemctl enable mysql
  3819. 511 /lib/systemd/systemd-sysv-install enable mysql
  3820. 512 sudo /lib/systemd/systemd-sysv-install enable mysql
  3821. 513 sudo mysql_secure_installation
  3822. 514 mysql -u root -p
  3823. 515 sudo mysql_secure_installation
  3824. 516 mysql -u root -p
  3825. 517 sudo nano /etc/my.cnf
  3826. 518 cd /etc
  3827. 519 ls
  3828. 520 cd mysql/
  3829. 521 ls
  3830. 522 sudo nano my.cnf
  3831. 523 mysql -u root -p
  3832. 524 sudo nano my.cnf
  3833. 525 mysql -u root -p
  3834. 526 sudo nano my.cnf
  3835. 527 mysql -u localhost -u root -p mysql
  3836. 528 mysql -u root -p
  3837. 529 mysql -u root
  3838. 530*
  3839. 531 mysql -u root
  3840. 532* sudo /etc/init.d/mysql s
  3841. 533* sudo mysqld_safe --skip-grant-tables &mysql -u root -p
  3842. 534 mysql -uroot
  3843. 535 mysql -u root -p
  3844. 536 mysql -u root
  3845. 537 mysql -u root -p
  3846. 538 /etc/init.d/mysql stop
  3847. 539 sudo systemctl stop mysql
  3848. 540 /etc/init.d/mysql start
  3849. 541 mysql -u root -p
  3850. 542 /etc/init.d/mysql stop
  3851. 543 mysql -u root -p
  3852. 544 sudo systemctl stop mariadb.service
  3853. 545 sudo service mysql stop
  3854. 546 sudo mysqld_safe --skip-grant-tables --skip-networking &
  3855. 547 ps
  3856. 548 top
  3857. 549 ps
  3858. 550 top
  3859. 551 renice
  3860. 552 pstree
  3861. 553 ps
  3862. 554 PPID
  3863. 555 top
  3864. 556 ps aux | grep mysql
  3865. 557 sudo kill -9 23236
  3866. 558 sudo kill -9 26236
  3867. 559 ps aux | grep mysql
  3868. 560 sudo kill -9 26883
  3869. 561 sudo kill -9 181024
  3870. 562 mysql -u root
  3871. 563 sudo systemctl start mysql
  3872. 564 service mysql status
  3873. 565 sudo service mysql status
  3874. 566 cd /var/lib/mysql
  3875. 567 sudo su
  3876. 568 sudo service mysql status
  3877. 569*
  3878. 570 sudo nano /etc/mysql/my.cnf
  3879. 571 sudo mysql
  3880. 572 sudo mysql -e
  3881. 573 sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'"
  3882. 574 sudo systemctl stop mysql
  3883. 575 sudo mysqld_safe --skip-grant-tables --skip-networking &
  3884. 576 cd /
  3885. 577 sudo service mysql stop
  3886. 578 sudo apt-get --purge remove "mysql*"
  3887. 579 sudo rm -rf /etc/mysql/
  3888. 580 locate mysql
  3889. 581 sudo updatedb
  3890. 582 locate mysql
  3891. 583 sudo apt-get install mariadb-server -y
  3892. 584 sudo systemctl enable mysql
  3893. 585 /etc/systemd/system/mysqld.service
  3894. 586 ßudo /etc/systemd/system/mysqld.service
  3895. 587 sudo /etc/systemd/system/mysqld.service
  3896. 588 sudo /etc/mysql/conf.d/
  3897. 589 ls
  3898. 590 cd /etc/mysql/conf.d/
  3899. 591 ls
  3900. 592 sudo nano mysql
  3901. 593 sudo nano mysql.cnf
  3902. 594 sudo mysql_secure_installation
  3903. 595 sudo nano /etc/mysql/my.cnf
  3904. 596 sudo mysql_secure_installation
  3905. 597 sudo apt-get update
  3906. 598 sudo apt-get -y install mariadb-server mariadb-client
  3907. 599 sudo mysql_secure_installation
  3908. 600 sudo service mysql stop
  3909. 601* sudo apt-get --purge removesudo apt-get --purge remove "mysql*
  3910. 602 sudo apt-get --purge remove "mysql*
  3911. 603 sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
  3912. 604 sudo rm -rf /etc/mysql /var/lib/mysql
  3913. 605 sudo apt-get autoremove
  3914. 606 sudo apt-get autoclean
  3915. 607 apt-get update
  3916. 608 apt-get upgrade
  3917. 609 sudo su
  3918. 610 ls
  3919. 611 cd ..
  3920. 612 ls
  3921. 613 cd ..
  3922. 614 ls
  3923. 615 cd mysql
  3924. 616 ls
  3925. 617 cd ..
  3926. 618 ls -la
  3927. 619 sudo chown -R mysql debian:debian
  3928. 620 sudo chown -R debian:debian mysql/
  3929. 621 sudo mysql_secure_installation
  3930. 622 sudo rm -rf /etc/mysql /var/lib/mysq
  3931. 623 sudo nano /var/log/mysqld.log
  3932. 624 cd /var/log/mysql/
  3933. 625 ls
  3934. 626 sudo cd /var/log/mysql/
  3935. 627 sudo su
  3936. 628 sudo /usr/bin/mysql_secure_installation
  3937. 629 sudo su
  3938. 630 history
  3939. 631 sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
  3940. 632 history
  3941. debian@paracambi:/etc$ ^C
  3942. debian@paracambi:/etc$ ^C
  3943. debian@paracambi:/etc$ ^C
  3944. debian@paracambi:/etc$ ^C
  3945. debian@paracambi:/etc$ sudo rm -rf /etc/mysql /var/lib/mysql
  3946. debian@paracambi:/etc$ sudo apt-get autoremove
  3947. Lendo listas de pacotes... Pronto
  3948. Construindo árvore de dependências
  3949. Lendo informação de estado... Pronto
  3950. Os pacotes a seguir serão REMOVIDOS:
  3951. galera-3 libaio1 libdbi-perl libjemalloc1 libterm-readkey-perl socat
  3952. 0 pacotes atualizados, 0 pacotes novos instalados, 6 a serem removidos e 0 não atualizados.
  3953. Depois desta operação, 6.508 kB de espaço em disco serão liberados.
  3954. Você quer continuar? [S/n] S
  3955. (Lendo banco de dados ... 64236 ficheiros e directórios actualmente instalados.)
  3956. A remover galera-3 (25.3.19-2) ...
  3957. A remover libaio1:amd64 (0.3.110-3) ...
  3958. A remover libdbi-perl (1.636-1+b1) ...
  3959. A remover libjemalloc1 (3.6.0-9.1) ...
  3960. A remover libterm-readkey-perl (2.37-1) ...
  3961. A remover socat (1.7.3.1-2+deb9u1) ...
  3962. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  3963. A processar 'triggers' para man-db (2.7.6.1-2) ...
  3964. debian@paracambi:/etc$ sudo apt-get autoclean
  3965. Lendo listas de pacotes... Pronto
  3966. Construindo árvore de dependências
  3967. Lendo informação de estado... Pronto
  3968. debian@paracambi:/etc$ sudo apt-get update
  3969. Ign:1 http://deb.debian.org/debian stretch InRelease
  3970. Obter:2 http://security.debian.org stretch/updates InRelease [94,3 kB]
  3971. Atingido:3 http://deb.debian.org/debian stretch-updates InRelease
  3972. Atingido:4 http://deb.debian.org/debian stretch Release
  3973. Obter:6 http://security.debian.org stretch/updates/main Sources [181 kB]
  3974. Obter:7 http://security.debian.org stretch/updates/main amd64 Packages [452 kB]
  3975. Baixados 728 kB em 1s (610 kB/s)
  3976. Lendo listas de pacotes... Pronto
  3977. debian@paracambi:/etc$ sudo apt-get upgrade
  3978. Lendo listas de pacotes... Pronto
  3979. Construindo árvore de dependências
  3980. Lendo informação de estado... Pronto
  3981. Calculando atualização... Pronto
  3982. 0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
  3983. debian@paracambi:/etc$ sudo apt-get install mariadb-server -y
  3984. Lendo listas de pacotes... Pronto
  3985. Construindo árvore de dependências
  3986. Lendo informação de estado... Pronto
  3987. The following additional packages will be installed:
  3988. galera-3 libaio1 libdbd-mysql-perl libdbi-perl libjemalloc1 libmariadbclient18 libterm-readkey-perl mariadb-client-10.1
  3989. mariadb-client-core-10.1 mariadb-common mariadb-server-10.1 mariadb-server-core-10.1 mysql-common socat
  3990. Pacotes sugeridos:
  3991. libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl mariadb-test netcat-openbsd tinyca
  3992. Os NOVOS pacotes a seguir serão instalados:
  3993. galera-3 libaio1 libdbd-mysql-perl libdbi-perl libjemalloc1 libmariadbclient18 libterm-readkey-perl mariadb-client-10.1
  3994. mariadb-client-core-10.1 mariadb-common mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 mysql-common socat
  3995. 0 pacotes atualizados, 15 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
  3996. É preciso baixar 0 B/24,5 MB de arquivos.
  3997. Depois desta operação, 188 MB adicionais de espaço em disco serão usados.
  3998. Pré-configurando pacotes ...
  3999. Can't exec "/tmp/mariadb-server-10.1.config.QdVWgK": Permissão negada at /usr/share/perl/5.24/IPC/Open3.pm line 178.
  4000. open2: exec of /tmp/mariadb-server-10.1.config.QdVWgK configure failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59.
  4001. A seleccionar pacote anteriormente não seleccionado mysql-common.
  4002. (Lendo banco de dados ... 64007 ficheiros e directórios actualmente instalados.)
  4003. A preparar para desempacotar .../0-mysql-common_5.8+1.0.2_all.deb ...
  4004. A descompactar mysql-common (5.8+1.0.2) ...
  4005. A seleccionar pacote anteriormente não seleccionado mariadb-common.
  4006. A preparar para desempacotar .../1-mariadb-common_10.1.26-0+deb9u1_all.deb ...
  4007. A descompactar mariadb-common (10.1.26-0+deb9u1) ...
  4008. A seleccionar pacote anteriormente não seleccionado galera-3.
  4009. A preparar para desempacotar .../2-galera-3_25.3.19-2_amd64.deb ...
  4010. A descompactar galera-3 (25.3.19-2) ...
  4011. A seleccionar pacote anteriormente não seleccionado libdbi-perl.
  4012. A preparar para desempacotar .../3-libdbi-perl_1.636-1+b1_amd64.deb ...
  4013. A descompactar libdbi-perl (1.636-1+b1) ...
  4014. A seleccionar pacote anteriormente não seleccionado libaio1:amd64.
  4015. A preparar para desempacotar .../4-libaio1_0.3.110-3_amd64.deb ...
  4016. A descompactar libaio1:amd64 (0.3.110-3) ...
  4017. A seleccionar pacote anteriormente não seleccionado mariadb-client-core-10.1.
  4018. A preparar para desempacotar .../5-mariadb-client-core-10.1_10.1.26-0+deb9u1_amd64.deb ...
  4019. A descompactar mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  4020. A seleccionar pacote anteriormente não seleccionado libjemalloc1.
  4021. A preparar para desempacotar .../6-libjemalloc1_3.6.0-9.1_amd64.deb ...
  4022. A descompactar libjemalloc1 (3.6.0-9.1) ...
  4023. A seleccionar pacote anteriormente não seleccionado mariadb-client-10.1.
  4024. A preparar para desempacotar .../7-mariadb-client-10.1_10.1.26-0+deb9u1_amd64.deb ...
  4025. A descompactar mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  4026. A seleccionar pacote anteriormente não seleccionado mariadb-server-core-10.1.
  4027. A preparar para desempacotar .../8-mariadb-server-core-10.1_10.1.26-0+deb9u1_amd64.deb ...
  4028. A descompactar mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  4029. A seleccionar pacote anteriormente não seleccionado socat.
  4030. A preparar para desempacotar .../9-socat_1.7.3.1-2+deb9u1_amd64.deb ...
  4031. A descompactar socat (1.7.3.1-2+deb9u1) ...
  4032. Configurando mysql-common (5.8+1.0.2) ...
  4033. update-alternatives: a usar /etc/mysql/my.cnf.fallback para disponibilizar /etc/mysql/my.cnf (my.cnf) em modo auto
  4034. Configurando mariadb-common (10.1.26-0+deb9u1) ...
  4035. update-alternatives: a usar /etc/mysql/mariadb.cnf para disponibilizar /etc/mysql/my.cnf (my.cnf) em modo auto
  4036. A seleccionar pacote anteriormente não seleccionado mariadb-server-10.1.
  4037. (Lendo banco de dados ... 64379 ficheiros e directórios actualmente instalados.)
  4038. A preparar para desempacotar .../mariadb-server-10.1_10.1.26-0+deb9u1_amd64.deb ...
  4039. A descompactar mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  4040. A seleccionar pacote anteriormente não seleccionado libmariadbclient18:amd64.
  4041. A preparar para desempacotar .../libmariadbclient18_10.1.26-0+deb9u1_amd64.deb ...
  4042. A descompactar libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  4043. A seleccionar pacote anteriormente não seleccionado libdbd-mysql-perl.
  4044. A preparar para desempacotar .../libdbd-mysql-perl_4.041-2_amd64.deb ...
  4045. A descompactar libdbd-mysql-perl (4.041-2) ...
  4046. A seleccionar pacote anteriormente não seleccionado libterm-readkey-perl.
  4047. A preparar para desempacotar .../libterm-readkey-perl_2.37-1_amd64.deb ...
  4048. A descompactar libterm-readkey-perl (2.37-1) ...
  4049. A seleccionar pacote anteriormente não seleccionado mariadb-server.
  4050. A preparar para desempacotar .../mariadb-server_10.1.26-0+deb9u1_all.deb ...
  4051. A descompactar mariadb-server (10.1.26-0+deb9u1) ...
  4052. Configurando libjemalloc1 (3.6.0-9.1) ...
  4053. Configurando socat (1.7.3.1-2+deb9u1) ...
  4054. Configurando libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
  4055. Configurando libterm-readkey-perl (2.37-1) ...
  4056. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  4057. Configurando libaio1:amd64 (0.3.110-3) ...
  4058. Configurando galera-3 (25.3.19-2) ...
  4059. A processar 'triggers' para systemd (232-25+deb9u4) ...
  4060. A processar 'triggers' para man-db (2.7.6.1-2) ...
  4061. Configurando libdbi-perl (1.636-1+b1) ...
  4062. Configurando mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...
  4063. Configurando mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...
  4064. Configurando libdbd-mysql-perl (4.041-2) ...
  4065. Configurando mariadb-client-10.1 (10.1.26-0+deb9u1) ...
  4066. Configurando mariadb-server-10.1 (10.1.26-0+deb9u1) ...
  4067. Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
  4068. Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
  4069. Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
  4070. Job for mariadb.service failed because the control process exited with error code.
  4071. See "systemctl status mariadb.service" and "journalctl -xe" for details.
  4072. mariadb.service couldn't start.
  4073. Configurando mariadb-server (10.1.26-0+deb9u1) ...
  4074. A processar 'triggers' para libc-bin (2.24-11+deb9u3) ...
  4075. A processar 'triggers' para systemd (232-25+deb9u4) ...
  4076. debian@paracambi:/etc$ sudo mysql_secure_installation
  4077.  
  4078. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  4079. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  4080.  
  4081. In order to log into MariaDB to secure it, we'll need the current
  4082. password for the root user. If you've just installed MariaDB, and
  4083. you haven't set the root password yet, the password will be blank,
  4084. so you should just press enter here.
  4085.  
  4086. Enter current password for root (enter for none):
  4087. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4088. Enter current password for root (enter for none):
  4089. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4090. Enter current password for root (enter for none):
  4091. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4092. Enter current password for root (enter for none):
  4093. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4094. Enter current password for root (enter for none):
  4095. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4096. Enter current password for root (enter for none):
  4097. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4098. Enter current password for root (enter for none):
  4099. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4100. Enter current password for root (enter for none):
  4101. Aborting!
  4102.  
  4103. Cleaning up...
  4104. debian@paracambi:/etc$ mysql_secure_installation
  4105. touch: não foi possível tocar '.my.cnf.1360': Permissão negada
  4106. touch: não foi possível tocar '.mysql.1360': Permissão negada
  4107. chmod: não foi possível acessar '.my.cnf.1360': Arquivo ou diretório não encontrado
  4108. chmod: não foi possível acessar '.mysql.1360': Arquivo ou diretório não encontrado
  4109.  
  4110. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  4111. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  4112.  
  4113. In order to log into MariaDB to secure it, we'll need the current
  4114. password for the root user. If you've just installed MariaDB, and
  4115. you haven't set the root password yet, the password will be blank,
  4116. so you should just press enter here.
  4117.  
  4118. Enter current password for root (enter for none):
  4119. /usr/bin/mysql_secure_installation: 248: /usr/bin/mysql_secure_installation: cannot create .my.cnf.1360: Permission denied
  4120. /usr/bin/mysql_secure_installation: 249: /usr/bin/mysql_secure_installation: cannot create .my.cnf.1360: Permission denied
  4121. /usr/bin/mysql_secure_installation: 250: /usr/bin/mysql_secure_installation: cannot create .my.cnf.1360: Permission denied
  4122. /usr/bin/mysql_secure_installation: 252: /usr/bin/mysql_secure_installation: cannot create .my.cnf.1360: Permission denied
  4123. /usr/bin/mysql_secure_installation: 217: /usr/bin/mysql_secure_installation: cannot create .mysql.1360: Permission denied
  4124. /usr/bin/mysql_secure_installation: 219: /usr/bin/mysql_secure_installation: cannot open .mysql.1360: No such file
  4125. OK, successfully used password, moving on...
  4126.  
  4127. Setting the root password ensures that nobody can log into the MariaDB
  4128. root user without the proper authorisation.
  4129.  
  4130. Set root password? [Y/n] ^C
  4131. Aborting!
  4132.  
  4133. Cleaning up...
  4134. debian@paracambi:/etc$ ^C
  4135. debian@paracambi:/etc$ ^C
  4136. debian@paracambi:/etc$ ^C
  4137. debian@paracambi:/etc$ cd /etc/mysql/
  4138. debian@paracambi:/etc/mysql$ ls
  4139. conf.d debian.cnf debian-start mariadb.cnf mariadb.conf.d my.cnf my.cnf.fallback
  4140. debian@paracambi:/etc/mysql$ ls -la
  4141. total 32
  4142. drwxr-xr-x 4 root root 4096 out 24 17:43 .
  4143. drwxr-xr-x 101 root root 4096 out 24 17:44 ..
  4144. drwxr-xr-x 2 root root 4096 out 24 17:43 conf.d
  4145. -rw------- 1 root root 277 out 24 17:43 debian.cnf
  4146. -rwxr-xr-x 1 root root 1509 ago 10 2017 debian-start
  4147. -rw-r--r-- 1 root root 869 ago 10 2017 mariadb.cnf
  4148. drwxr-xr-x 2 root root 4096 out 24 17:43 mariadb.conf.d
  4149. lrwxrwxrwx 1 root root 24 out 24 17:43 my.cnf -> /etc/alternatives/my.cnf
  4150. -rw-r--r-- 1 root root 839 jul 9 2016 my.cnf.fallback
  4151. debian@paracambi:/etc/mysql$ ls
  4152. conf.d debian.cnf debian-start mariadb.cnf mariadb.conf.d my.cnf my.cnf.fallback
  4153. debian@paracambi:/etc/mysql$ sudo chown debian:debian .
  4154. debian@paracambi:/etc/mysql$ ls -la
  4155. total 32
  4156. drwxr-xr-x 4 debian debian 4096 out 24 17:43 .
  4157. drwxr-xr-x 101 root root 4096 out 24 17:44 ..
  4158. drwxr-xr-x 2 root root 4096 out 24 17:43 conf.d
  4159. -rw------- 1 root root 277 out 24 17:43 debian.cnf
  4160. -rwxr-xr-x 1 root root 1509 ago 10 2017 debian-start
  4161. -rw-r--r-- 1 root root 869 ago 10 2017 mariadb.cnf
  4162. drwxr-xr-x 2 root root 4096 out 24 17:43 mariadb.conf.d
  4163. lrwxrwxrwx 1 root root 24 out 24 17:43 my.cnf -> /etc/alternatives/my.cnf
  4164. -rw-r--r-- 1 root root 839 jul 9 2016 my.cnf.fallback
  4165. debian@paracambi:/etc/mysql$ sudo chown debian:debian my.cnf
  4166. debian@paracambi:/etc/mysql$ ls -la
  4167. total 32
  4168. drwxr-xr-x 4 debian debian 4096 out 24 17:43 .
  4169. drwxr-xr-x 101 root root 4096 out 24 17:44 ..
  4170. drwxr-xr-x 2 root root 4096 out 24 17:43 conf.d
  4171. -rw------- 1 root root 277 out 24 17:43 debian.cnf
  4172. -rwxr-xr-x 1 root root 1509 ago 10 2017 debian-start
  4173. -rw-r--r-- 1 debian debian 869 ago 10 2017 mariadb.cnf
  4174. drwxr-xr-x 2 root root 4096 out 24 17:43 mariadb.conf.d
  4175. lrwxrwxrwx 1 root root 24 out 24 17:43 my.cnf -> /etc/alternatives/my.cnf
  4176. -rw-r--r-- 1 root root 839 jul 9 2016 my.cnf.fallback
  4177. debian@paracambi:/etc/mysql$ cd /etc/alternatives/
  4178. debian@paracambi:/etc/alternatives$ l
  4179. -bash: l: comando não encontrado
  4180. debian@paracambi:/etc/alternatives$ ls
  4181. ABORT.7.gz DROP_DOMAIN.7.gz pg_dump.1.gz
  4182. ALTER_AGGREGATE.7.gz DROP_EVENT_TRIGGER.7.gz pg_dumpall.1.gz
  4183. ALTER_COLLATION.7.gz DROP_EXTENSION.7.gz pg_isready.1.gz
  4184. ALTER_CONVERSION.7.gz DROP_FOREIGN_DATA_WRAPPER.7.gz pg_receivexlog.1.gz
  4185. ALTER_DATABASE.7.gz DROP_FOREIGN_TABLE.7.gz pg_recvlogical.1.gz
  4186. ALTER_DEFAULT_PRIVILEGES.7.gz DROP_FUNCTION.7.gz pg_resetxlog.1.gz
  4187. ALTER_DOMAIN.7.gz DROP_GROUP.7.gz pg_restore.1.gz
  4188. ALTER_EVENT_TRIGGER.7.gz DROP_INDEX.7.gz pg_rewind.1.gz
  4189. ALTER_EXTENSION.7.gz droplang.1.gz pg_standby.1.gz
  4190. ALTER_FOREIGN_DATA_WRAPPER.7.gz DROP_LANGUAGE.7.gz pg_test_fsync.1.gz
  4191. ALTER_FOREIGN_TABLE.7.gz DROP_MATERIALIZED_VIEW.7.gz pg_test_timing.1.gz
  4192. ALTER_FUNCTION.7.gz DROP_OPERATOR.7.gz pg_upgrade.1.gz
  4193. ALTER_GROUP.7.gz DROP_OPERATOR_CLASS.7.gz pg_xlogdump.1.gz
  4194. ALTER_INDEX.7.gz DROP_OPERATOR_FAMILY.7.gz phar
  4195. ALTER_LANGUAGE.7.gz DROP_OWNED.7.gz phar.1.gz
  4196. ALTER_LARGE_OBJECT.7.gz DROP_POLICY.7.gz phar.phar
  4197. ALTER_MATERIALIZED_VIEW.7.gz DROP_ROLE.7.gz phar.phar.1.gz
  4198. ALTER_OPERATOR.7.gz DROP_RULE.7.gz php
  4199. ALTER_OPERATOR_CLASS.7.gz DROP_SCHEMA.7.gz php.1.gz
  4200. ALTER_OPERATOR_FAMILY.7.gz DROP_SEQUENCE.7.gz pico
  4201. ALTER_POLICY.7.gz DROP_SERVER.7.gz pico.1.gz
  4202. ALTER_ROLE.7.gz DROP_TABLE.7.gz pinentry
  4203. ALTER_RULE.7.gz DROP_TABLESPACE.7.gz pinentry.1.gz
  4204. ALTER_SCHEMA.7.gz DROP_TEXT_SEARCH_CONFIGURATION.7.gz pinentry-x11
  4205. ALTER_SEQUENCE.7.gz DROP_TEXT_SEARCH_DICTIONARY.7.gz pinentry-x11.1.gz
  4206. ALTER_SERVER.7.gz DROP_TEXT_SEARCH_PARSER.7.gz postgres.1.gz
  4207. ALTER_SYSTEM.7.gz DROP_TEXT_SEARCH_TEMPLATE.7.gz postmaster.1.gz
  4208. ALTER_TABLE.7.gz DROP_TRANSFORM.7.gz PREPARE.7.gz
  4209. ALTER_TABLESPACE.7.gz DROP_TRIGGER.7.gz PREPARE_TRANSACTION.7.gz
  4210. ALTER_TEXT_SEARCH_CONFIGURATION.7.gz DROP_TYPE.7.gz psql.1.gz
  4211. ALTER_TEXT_SEARCH_DICTIONARY.7.gz dropuser.1.gz rcp
  4212. ALTER_TEXT_SEARCH_PARSER.7.gz DROP_USER.7.gz rcp.1.gz
  4213. ALTER_TEXT_SEARCH_TEMPLATE.7.gz DROP_USER_MAPPING.7.gz README
  4214. ALTER_TRIGGER.7.gz DROP_VIEW.7.gz REASSIGN_OWNED.7.gz
  4215. ALTER_TYPE.7.gz editor REFRESH_MATERIALIZED_VIEW.7.gz
  4216. ALTER_USER.7.gz editor.1.gz REINDEX.7.gz
  4217. ALTER_USER_MAPPING.7.gz END.7.gz reindexdb.1.gz
  4218. ALTER_VIEW.7.gz ex RELEASE_SAVEPOINT.7.gz
  4219. ANALYZE.7.gz ex.1.gz rename
  4220. aptitude EXECUTE.7.gz rename.1.gz
  4221. aptitude.8.gz ex.fr.1.gz RESET.7.gz
  4222. aptitude.cs.8.gz ex.it.1.gz REVOKE.7.gz
  4223. aptitude.de.8.gz ex.ja.1.gz rlogin
  4224. aptitude.es.8.gz ex.pl.1.gz rlogin.1.gz
  4225. aptitude.fi.8.gz EXPLAIN.7.gz rmt
  4226. aptitude.fr.8.gz ex.ru.1.gz rmt.8.gz
  4227. aptitude.gl.8.gz faked.1.gz ROLLBACK.7.gz
  4228. aptitude.it.8.gz faked.es.1.gz ROLLBACK_PREPARED.7.gz
  4229. aptitude.ja.8.gz faked.fr.1.gz ROLLBACK_TO_SAVEPOINT.7.gz
  4230. aptitude.pl.8.gz faked.sv.1.gz rsh
  4231. awk fakeroot rsh.1.gz
  4232. awk.1.gz fakeroot.1.gz rview
  4233. BEGIN.7.gz fakeroot.es.1.gz rvim
  4234. builtins.7.gz fakeroot.fr.1.gz sar
  4235. c++ fakeroot.sv.1.gz sar.1.gz
  4236. c89 FETCH.7.gz SAVEPOINT.7.gz
  4237. c89.1.gz from SECURITY_LABEL.7.gz
  4238. c99 from.1.gz SELECT.7.gz
  4239. c99.1.gz ftp SELECT_INTO.7.gz
  4240. cc ftp.1.gz SET.7.gz
  4241. CHECKPOINT.7.gz GRANT.7.gz SET_CONSTRAINTS.7.gz
  4242. CLOSE.7.gz IMPORT_FOREIGN_SCHEMA.7.gz SET_ROLE.7.gz
  4243. CLUSTER.7.gz infobrowser SET_SESSION_AUTHORIZATION.7.gz
  4244. clusterdb.1.gz infobrowser.1.gz SET_TRANSACTION.7.gz
  4245. COMMENT.7.gz initdb.1.gz SHOW.7.gz
  4246. COMMIT.7.gz INSERT.7.gz start-here-16.png
  4247. COMMIT_PREPARED.7.gz java start-here-22.png
  4248. COPY.7.gz javac start-here-24.png
  4249. cpp lft start-here-256.png
  4250. CREATE_ACCESS_METHOD.7.gz lft.1.gz start-here-32.png
  4251. CREATE_AGGREGATE.7.gz libtxc-dxtn-x86_64-linux-gnu start-here-48.png
  4252. CREATE_CAST.7.gz LISTEN.7.gz start-here.svg
  4253. CREATE_COLLATION.7.gz LOAD.7.gz START_TRANSACTION.7.gz
  4254. CREATE_CONVERSION.7.gz locate TABLE.7.gz
  4255. CREATE_DATABASE.7.gz locate.1.gz tcptraceroute
  4256. createdb.1.gz LOCK.7.gz tcptraceroute.8.gz
  4257. CREATE_DOMAIN.7.gz lzcat telnet
  4258. CREATE_EVENT_TRIGGER.7.gz lzcat.1.gz telnet.1.gz
  4259. CREATE_EXTENSION.7.gz lzcmp traceproto
  4260. CREATE_FOREIGN_DATA_WRAPPER.7.gz lzcmp.1.gz traceproto.1.gz
  4261. CREATE_FOREIGN_TABLE.7.gz lzdiff traceroute
  4262. CREATE_FUNCTION.7.gz lzdiff.1.gz traceroute.1.gz
  4263. CREATE_GROUP.7.gz lzegrep traceroute6
  4264. CREATE_INDEX.7.gz lzegrep.1.gz traceroute6.1.gz
  4265. createlang.1.gz lzfgrep traceroute.sbin
  4266. CREATE_LANGUAGE.7.gz lzfgrep.1.gz TRUNCATE.7.gz
  4267. CREATE_MATERIALIZED_VIEW.7.gz lzgrep UNLISTEN.7.gz
  4268. CREATE_OPERATOR.7.gz lzgrep.1.gz unlzma
  4269. CREATE_OPERATOR_CLASS.7.gz lzless unlzma.1.gz
  4270. CREATE_OPERATOR_FAMILY.7.gz lzless.1.gz UPDATE.7.gz
  4271. CREATE_POLICY.7.gz lzma updatedb
  4272. CREATE_ROLE.7.gz lzma.1.gz updatedb.8.gz
  4273. CREATE_RULE.7.gz lzmore VACUUM.7.gz
  4274. CREATE_SCHEMA.7.gz lzmore.1.gz vacuumdb.1.gz
  4275. CREATE_SEQUENCE.7.gz mail vacuumlo.1.gz
  4276. CREATE_SERVER.7.gz Mail VALUES.7.gz
  4277. CREATE_TABLE.7.gz mail.1.gz vi
  4278. CREATE_TABLE_AS.7.gz Mail.1.gz vi.1.gz
  4279. CREATE_TABLESPACE.7.gz mailx view
  4280. CREATE_TEXT_SEARCH_CONFIGURATION.7.gz mailx.1.gz view.1.gz
  4281. CREATE_TEXT_SEARCH_DICTIONARY.7.gz MOVE.7.gz view.fr.1.gz
  4282. CREATE_TEXT_SEARCH_PARSER.7.gz mt view.it.1.gz
  4283. CREATE_TEXT_SEARCH_TEMPLATE.7.gz mt.1.gz view.ja.1.gz
  4284. CREATE_TRANSFORM.7.gz my.cnf view.pl.1.gz
  4285. CREATE_TRIGGER.7.gz nawk view.ru.1.gz
  4286. CREATE_TYPE.7.gz nawk.1.gz vi.fr.1.gz
  4287. createuser.1.gz nc vi.it.1.gz
  4288. CREATE_USER.7.gz nc.1.gz vi.ja.1.gz
  4289. CREATE_USER_MAPPING.7.gz netcat vim
  4290. CREATE_VIEW.7.gz netcat.1.gz vimdiff
  4291. DEALLOCATE.7.gz netrc.5.gz vi.pl.1.gz
  4292. DECLARE.7.gz NOTIFY.7.gz vi.ru.1.gz
  4293. DELETE.7.gz oid2name.1.gz w
  4294. DISCARD.7.gz pager w.1.gz
  4295. DO.7.gz pager.1.gz WITH.7.gz
  4296. DROP_ACCESS_METHOD.7.gz pftp write
  4297. DROP_AGGREGATE.7.gz pftp.1.gz write.1.gz
  4298. DROP_CAST.7.gz pg_archivecleanup.1.gz www-browser
  4299. DROP_COLLATION.7.gz pg_basebackup.1.gz www-browser.1.gz
  4300. DROP_CONVERSION.7.gz pgbench.1.gz x-terminal-emulator
  4301. DROP_DATABASE.7.gz pg_controldata.1.gz x-terminal-emulator.1.gz
  4302. dropdb.1.gz pg_ctl.1.gz
  4303. debian@paracambi:/etc/alternatives$ ls l-a
  4304. ls: não foi possível acessar 'l-a': Arquivo ou diretório não encontrado
  4305. debian@paracambi:/etc/alternatives$ ls -la
  4306. total 152
  4307. drwxr-xr-x 2 root root 20480 out 24 17:43 .
  4308. drwxr-xr-x 101 root root 4096 out 24 17:44 ..
  4309. lrwxrwxrwx 1 root root 45 out 24 11:33 ABORT.7.gz -> /usr/share/postgresql/9.6/man/man7/ABORT.7.gz
  4310. lrwxrwxrwx 1 root root 55 out 24 11:33 ALTER_AGGREGATE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_AGGREGATE.7.gz
  4311. lrwxrwxrwx 1 root root 55 out 24 11:33 ALTER_COLLATION.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_COLLATION.7.gz
  4312. lrwxrwxrwx 1 root root 56 out 24 11:33 ALTER_CONVERSION.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_CONVERSION.7.gz
  4313. lrwxrwxrwx 1 root root 54 out 24 11:33 ALTER_DATABASE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_DATABASE.7.gz
  4314. lrwxrwxrwx 1 root root 64 out 24 11:33 ALTER_DEFAULT_PRIVILEGES.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_DEFAULT_PRIVILEGES.7.gz
  4315. lrwxrwxrwx 1 root root 52 out 24 11:33 ALTER_DOMAIN.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_DOMAIN.7.gz
  4316. lrwxrwxrwx 1 root root 59 out 24 11:33 ALTER_EVENT_TRIGGER.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_EVENT_TRIGGER.7.gz
  4317. lrwxrwxrwx 1 root root 55 out 24 11:33 ALTER_EXTENSION.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_EXTENSION.7.gz
  4318. lrwxrwxrwx 1 root root 66 out 24 11:33 ALTER_FOREIGN_DATA_WRAPPER.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_FOREIGN_DATA_WRAPPER.7.gz
  4319. lrwxrwxrwx 1 root root 59 out 24 11:33 ALTER_FOREIGN_TABLE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_FOREIGN_TABLE.7.gz
  4320. lrwxrwxrwx 1 root root 54 out 24 11:33 ALTER_FUNCTION.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_FUNCTION.7.gz
  4321. lrwxrwxrwx 1 root root 51 out 24 11:33 ALTER_GROUP.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_GROUP.7.gz
  4322. lrwxrwxrwx 1 root root 51 out 24 11:33 ALTER_INDEX.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_INDEX.7.gz
  4323. lrwxrwxrwx 1 root root 54 out 24 11:33 ALTER_LANGUAGE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_LANGUAGE.7.gz
  4324. lrwxrwxrwx 1 root root 58 out 24 11:33 ALTER_LARGE_OBJECT.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_LARGE_OBJECT.7.gz
  4325. lrwxrwxrwx 1 root root 63 out 24 11:33 ALTER_MATERIALIZED_VIEW.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_MATERIALIZED_VIEW.7.gz
  4326. lrwxrwxrwx 1 root root 54 out 24 11:33 ALTER_OPERATOR.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_OPERATOR.7.gz
  4327. lrwxrwxrwx 1 root root 60 out 24 11:33 ALTER_OPERATOR_CLASS.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_OPERATOR_CLASS.7.gz
  4328. lrwxrwxrwx 1 root root 61 out 24 11:33 ALTER_OPERATOR_FAMILY.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_OPERATOR_FAMILY.7.gz
  4329. lrwxrwxrwx 1 root root 52 out 24 11:33 ALTER_POLICY.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_POLICY.7.gz
  4330. lrwxrwxrwx 1 root root 50 out 24 11:33 ALTER_ROLE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_ROLE.7.gz
  4331. lrwxrwxrwx 1 root root 50 out 24 11:33 ALTER_RULE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_RULE.7.gz
  4332. lrwxrwxrwx 1 root root 52 out 24 11:33 ALTER_SCHEMA.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_SCHEMA.7.gz
  4333. lrwxrwxrwx 1 root root 54 out 24 11:33 ALTER_SEQUENCE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_SEQUENCE.7.gz
  4334. lrwxrwxrwx 1 root root 52 out 24 11:33 ALTER_SERVER.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_SERVER.7.gz
  4335. lrwxrwxrwx 1 root root 52 out 24 11:33 ALTER_SYSTEM.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_SYSTEM.7.gz
  4336. lrwxrwxrwx 1 root root 51 out 24 11:33 ALTER_TABLE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_TABLE.7.gz
  4337. lrwxrwxrwx 1 root root 56 out 24 11:33 ALTER_TABLESPACE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_TABLESPACE.7.gz
  4338. lrwxrwxrwx 1 root root 71 out 24 11:33 ALTER_TEXT_SEARCH_CONFIGURATION.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_TEXT_SEARCH_CONFIGURATION.7.gz
  4339. lrwxrwxrwx 1 root root 68 out 24 11:33 ALTER_TEXT_SEARCH_DICTIONARY.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_TEXT_SEARCH_DICTIONARY.7.gz
  4340. lrwxrwxrwx 1 root root 64 out 24 11:33 ALTER_TEXT_SEARCH_PARSER.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_TEXT_SEARCH_PARSER.7.gz
  4341. lrwxrwxrwx 1 root root 66 out 24 11:33 ALTER_TEXT_SEARCH_TEMPLATE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_TEXT_SEARCH_TEMPLATE.7.gz
  4342. lrwxrwxrwx 1 root root 53 out 24 11:33 ALTER_TRIGGER.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_TRIGGER.7.gz
  4343. lrwxrwxrwx 1 root root 50 out 24 11:33 ALTER_TYPE.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_TYPE.7.gz
  4344. lrwxrwxrwx 1 root root 50 out 24 11:33 ALTER_USER.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_USER.7.gz
  4345. lrwxrwxrwx 1 root root 58 out 24 11:33 ALTER_USER_MAPPING.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_USER_MAPPING.7.gz
  4346. lrwxrwxrwx 1 root root 50 out 24 11:33 ALTER_VIEW.7.gz -> /usr/share/postgresql/9.6/man/man7/ALTER_VIEW.7.gz
  4347. lrwxrwxrwx 1 root root 47 out 24 11:33 ANALYZE.7.gz -> /usr/share/postgresql/9.6/man/man7/ANALYZE.7.gz
  4348. lrwxrwxrwx 1 root root 24 ago 26 2016 aptitude -> /usr/bin/aptitude-curses
  4349. lrwxrwxrwx 1 root root 40 ago 26 2016 aptitude.8.gz -> /usr/share/man/man8/aptitude-curses.8.gz
  4350. lrwxrwxrwx 1 root root 43 ago 26 2016 aptitude.cs.8.gz -> /usr/share/man/cs/man8/aptitude-curses.8.gz
  4351. lrwxrwxrwx 1 root root 43 ago 26 2016 aptitude.de.8.gz -> /usr/share/man/de/man8/aptitude-curses.8.gz
  4352. lrwxrwxrwx 1 root root 43 ago 26 2016 aptitude.es.8.gz -> /usr/share/man/es/man8/aptitude-curses.8.gz
  4353. lrwxrwxrwx 1 root root 43 ago 26 2016 aptitude.fi.8.gz -> /usr/share/man/fi/man8/aptitude-curses.8.gz
  4354. lrwxrwxrwx 1 root root 43 ago 26 2016 aptitude.fr.8.gz -> /usr/share/man/fr/man8/aptitude-curses.8.gz
  4355. lrwxrwxrwx 1 root root 43 ago 26 2016 aptitude.gl.8.gz -> /usr/share/man/gl/man8/aptitude-curses.8.gz
  4356. lrwxrwxrwx 1 root root 43 ago 26 2016 aptitude.it.8.gz -> /usr/share/man/it/man8/aptitude-curses.8.gz
  4357. lrwxrwxrwx 1 root root 43 ago 26 2016 aptitude.ja.8.gz -> /usr/share/man/ja/man8/aptitude-curses.8.gz
  4358. lrwxrwxrwx 1 root root 43 ago 26 2016 aptitude.pl.8.gz -> /usr/share/man/pl/man8/aptitude-curses.8.gz
  4359. lrwxrwxrwx 1 root root 13 out 24 16:18 awk -> /usr/bin/gawk
  4360. lrwxrwxrwx 1 root root 29 out 24 16:18 awk.1.gz -> /usr/share/man/man1/gawk.1.gz
  4361. lrwxrwxrwx 1 root root 45 out 24 11:33 BEGIN.7.gz -> /usr/share/postgresql/9.6/man/man7/BEGIN.7.gz
  4362. lrwxrwxrwx 1 root root 38 ago 1 2017 builtins.7.gz -> /usr/share/man/man7/bash-builtins.7.gz
  4363. lrwxrwxrwx 1 root root 12 out 5 11:07 c++ -> /usr/bin/g++
  4364. lrwxrwxrwx 1 root root 16 out 5 11:06 c89 -> /usr/bin/c89-gcc
  4365. lrwxrwxrwx 1 root root 32 out 5 11:06 c89.1.gz -> /usr/share/man/man1/c89-gcc.1.gz
  4366. lrwxrwxrwx 1 root root 16 out 5 11:06 c99 -> /usr/bin/c99-gcc
  4367. lrwxrwxrwx 1 root root 32 out 5 11:06 c99.1.gz -> /usr/share/man/man1/c99-gcc.1.gz
  4368. lrwxrwxrwx 1 root root 12 out 5 11:06 cc -> /usr/bin/gcc
  4369. lrwxrwxrwx 1 root root 50 out 24 11:33 CHECKPOINT.7.gz -> /usr/share/postgresql/9.6/man/man7/CHECKPOINT.7.gz
  4370. lrwxrwxrwx 1 root root 45 out 24 11:33 CLOSE.7.gz -> /usr/share/postgresql/9.6/man/man7/CLOSE.7.gz
  4371. lrwxrwxrwx 1 root root 47 out 24 11:33 CLUSTER.7.gz -> /usr/share/postgresql/9.6/man/man7/CLUSTER.7.gz
  4372. lrwxrwxrwx 1 root root 49 out 24 11:33 clusterdb.1.gz -> /usr/share/postgresql/9.6/man/man1/clusterdb.1.gz
  4373. lrwxrwxrwx 1 root root 47 out 24 11:33 COMMENT.7.gz -> /usr/share/postgresql/9.6/man/man7/COMMENT.7.gz
  4374. lrwxrwxrwx 1 root root 46 out 24 11:33 COMMIT.7.gz -> /usr/share/postgresql/9.6/man/man7/COMMIT.7.gz
  4375. lrwxrwxrwx 1 root root 55 out 24 11:33 COMMIT_PREPARED.7.gz -> /usr/share/postgresql/9.6/man/man7/COMMIT_PREPARED.7.gz
  4376. lrwxrwxrwx 1 root root 44 out 24 11:33 COPY.7.gz -> /usr/share/postgresql/9.6/man/man7/COPY.7.gz
  4377. lrwxrwxrwx 1 root root 12 out 5 11:06 cpp -> /usr/bin/cpp
  4378. lrwxrwxrwx 1 root root 60 out 24 11:33 CREATE_ACCESS_METHOD.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_ACCESS_METHOD.7.gz
  4379. lrwxrwxrwx 1 root root 56 out 24 11:33 CREATE_AGGREGATE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_AGGREGATE.7.gz
  4380. lrwxrwxrwx 1 root root 51 out 24 11:33 CREATE_CAST.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_CAST.7.gz
  4381. lrwxrwxrwx 1 root root 56 out 24 11:33 CREATE_COLLATION.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_COLLATION.7.gz
  4382. lrwxrwxrwx 1 root root 57 out 24 11:33 CREATE_CONVERSION.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_CONVERSION.7.gz
  4383. lrwxrwxrwx 1 root root 55 out 24 11:33 CREATE_DATABASE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_DATABASE.7.gz
  4384. lrwxrwxrwx 1 root root 48 out 24 11:33 createdb.1.gz -> /usr/share/postgresql/9.6/man/man1/createdb.1.gz
  4385. lrwxrwxrwx 1 root root 53 out 24 11:33 CREATE_DOMAIN.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_DOMAIN.7.gz
  4386. lrwxrwxrwx 1 root root 60 out 24 11:33 CREATE_EVENT_TRIGGER.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_EVENT_TRIGGER.7.gz
  4387. lrwxrwxrwx 1 root root 56 out 24 11:33 CREATE_EXTENSION.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_EXTENSION.7.gz
  4388. lrwxrwxrwx 1 root root 67 out 24 11:33 CREATE_FOREIGN_DATA_WRAPPER.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_FOREIGN_DATA_WRAPPER.7.gz
  4389. lrwxrwxrwx 1 root root 60 out 24 11:33 CREATE_FOREIGN_TABLE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_FOREIGN_TABLE.7.gz
  4390. lrwxrwxrwx 1 root root 55 out 24 11:33 CREATE_FUNCTION.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_FUNCTION.7.gz
  4391. lrwxrwxrwx 1 root root 52 out 24 11:33 CREATE_GROUP.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_GROUP.7.gz
  4392. lrwxrwxrwx 1 root root 52 out 24 11:33 CREATE_INDEX.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_INDEX.7.gz
  4393. lrwxrwxrwx 1 root root 50 out 24 11:33 createlang.1.gz -> /usr/share/postgresql/9.6/man/man1/createlang.1.gz
  4394. lrwxrwxrwx 1 root root 55 out 24 11:33 CREATE_LANGUAGE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_LANGUAGE.7.gz
  4395. lrwxrwxrwx 1 root root 64 out 24 11:33 CREATE_MATERIALIZED_VIEW.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_MATERIALIZED_VIEW.7.gz
  4396. lrwxrwxrwx 1 root root 55 out 24 11:33 CREATE_OPERATOR.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_OPERATOR.7.gz
  4397. lrwxrwxrwx 1 root root 61 out 24 11:33 CREATE_OPERATOR_CLASS.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_OPERATOR_CLASS.7.gz
  4398. lrwxrwxrwx 1 root root 62 out 24 11:33 CREATE_OPERATOR_FAMILY.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_OPERATOR_FAMILY.7.gz
  4399. lrwxrwxrwx 1 root root 53 out 24 11:33 CREATE_POLICY.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_POLICY.7.gz
  4400. lrwxrwxrwx 1 root root 51 out 24 11:33 CREATE_ROLE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_ROLE.7.gz
  4401. lrwxrwxrwx 1 root root 51 out 24 11:33 CREATE_RULE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_RULE.7.gz
  4402. lrwxrwxrwx 1 root root 53 out 24 11:33 CREATE_SCHEMA.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_SCHEMA.7.gz
  4403. lrwxrwxrwx 1 root root 55 out 24 11:33 CREATE_SEQUENCE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_SEQUENCE.7.gz
  4404. lrwxrwxrwx 1 root root 53 out 24 11:33 CREATE_SERVER.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_SERVER.7.gz
  4405. lrwxrwxrwx 1 root root 52 out 24 11:33 CREATE_TABLE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TABLE.7.gz
  4406. lrwxrwxrwx 1 root root 55 out 24 11:33 CREATE_TABLE_AS.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TABLE_AS.7.gz
  4407. lrwxrwxrwx 1 root root 57 out 24 11:33 CREATE_TABLESPACE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TABLESPACE.7.gz
  4408. lrwxrwxrwx 1 root root 72 out 24 11:33 CREATE_TEXT_SEARCH_CONFIGURATION.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TEXT_SEARCH_CONFIGURATION.7.gz
  4409. lrwxrwxrwx 1 root root 69 out 24 11:33 CREATE_TEXT_SEARCH_DICTIONARY.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TEXT_SEARCH_DICTIONARY.7.gz
  4410. lrwxrwxrwx 1 root root 65 out 24 11:33 CREATE_TEXT_SEARCH_PARSER.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TEXT_SEARCH_PARSER.7.gz
  4411. lrwxrwxrwx 1 root root 67 out 24 11:33 CREATE_TEXT_SEARCH_TEMPLATE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TEXT_SEARCH_TEMPLATE.7.gz
  4412. lrwxrwxrwx 1 root root 56 out 24 11:33 CREATE_TRANSFORM.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TRANSFORM.7.gz
  4413. lrwxrwxrwx 1 root root 54 out 24 11:33 CREATE_TRIGGER.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TRIGGER.7.gz
  4414. lrwxrwxrwx 1 root root 51 out 24 11:33 CREATE_TYPE.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_TYPE.7.gz
  4415. lrwxrwxrwx 1 root root 50 out 24 11:33 createuser.1.gz -> /usr/share/postgresql/9.6/man/man1/createuser.1.gz
  4416. lrwxrwxrwx 1 root root 51 out 24 11:33 CREATE_USER.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_USER.7.gz
  4417. lrwxrwxrwx 1 root root 59 out 24 11:33 CREATE_USER_MAPPING.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_USER_MAPPING.7.gz
  4418. lrwxrwxrwx 1 root root 51 out 24 11:33 CREATE_VIEW.7.gz -> /usr/share/postgresql/9.6/man/man7/CREATE_VIEW.7.gz
  4419. lrwxrwxrwx 1 root root 50 out 24 11:33 DEALLOCATE.7.gz -> /usr/share/postgresql/9.6/man/man7/DEALLOCATE.7.gz
  4420. lrwxrwxrwx 1 root root 47 out 24 11:33 DECLARE.7.gz -> /usr/share/postgresql/9.6/man/man7/DECLARE.7.gz
  4421. lrwxrwxrwx 1 root root 46 out 24 11:33 DELETE.7.gz -> /usr/share/postgresql/9.6/man/man7/DELETE.7.gz
  4422. lrwxrwxrwx 1 root root 47 out 24 11:33 DISCARD.7.gz -> /usr/share/postgresql/9.6/man/man7/DISCARD.7.gz
  4423. lrwxrwxrwx 1 root root 42 out 24 11:33 DO.7.gz -> /usr/share/postgresql/9.6/man/man7/DO.7.gz
  4424. lrwxrwxrwx 1 root root 58 out 24 11:33 DROP_ACCESS_METHOD.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_ACCESS_METHOD.7.gz
  4425. lrwxrwxrwx 1 root root 54 out 24 11:33 DROP_AGGREGATE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_AGGREGATE.7.gz
  4426. lrwxrwxrwx 1 root root 49 out 24 11:33 DROP_CAST.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_CAST.7.gz
  4427. lrwxrwxrwx 1 root root 54 out 24 11:33 DROP_COLLATION.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_COLLATION.7.gz
  4428. lrwxrwxrwx 1 root root 55 out 24 11:33 DROP_CONVERSION.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_CONVERSION.7.gz
  4429. lrwxrwxrwx 1 root root 53 out 24 11:33 DROP_DATABASE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_DATABASE.7.gz
  4430. lrwxrwxrwx 1 root root 46 out 24 11:33 dropdb.1.gz -> /usr/share/postgresql/9.6/man/man1/dropdb.1.gz
  4431. lrwxrwxrwx 1 root root 51 out 24 11:33 DROP_DOMAIN.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_DOMAIN.7.gz
  4432. lrwxrwxrwx 1 root root 58 out 24 11:33 DROP_EVENT_TRIGGER.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_EVENT_TRIGGER.7.gz
  4433. lrwxrwxrwx 1 root root 54 out 24 11:33 DROP_EXTENSION.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_EXTENSION.7.gz
  4434. lrwxrwxrwx 1 root root 65 out 24 11:33 DROP_FOREIGN_DATA_WRAPPER.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_FOREIGN_DATA_WRAPPER.7.gz
  4435. lrwxrwxrwx 1 root root 58 out 24 11:33 DROP_FOREIGN_TABLE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_FOREIGN_TABLE.7.gz
  4436. lrwxrwxrwx 1 root root 53 out 24 11:33 DROP_FUNCTION.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_FUNCTION.7.gz
  4437. lrwxrwxrwx 1 root root 50 out 24 11:33 DROP_GROUP.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_GROUP.7.gz
  4438. lrwxrwxrwx 1 root root 50 out 24 11:33 DROP_INDEX.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_INDEX.7.gz
  4439. lrwxrwxrwx 1 root root 48 out 24 11:33 droplang.1.gz -> /usr/share/postgresql/9.6/man/man1/droplang.1.gz
  4440. lrwxrwxrwx 1 root root 53 out 24 11:33 DROP_LANGUAGE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_LANGUAGE.7.gz
  4441. lrwxrwxrwx 1 root root 62 out 24 11:33 DROP_MATERIALIZED_VIEW.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_MATERIALIZED_VIEW.7.gz
  4442. lrwxrwxrwx 1 root root 53 out 24 11:33 DROP_OPERATOR.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_OPERATOR.7.gz
  4443. lrwxrwxrwx 1 root root 59 out 24 11:33 DROP_OPERATOR_CLASS.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_OPERATOR_CLASS.7.gz
  4444. lrwxrwxrwx 1 root root 60 out 24 11:33 DROP_OPERATOR_FAMILY.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_OPERATOR_FAMILY.7.gz
  4445. lrwxrwxrwx 1 root root 50 out 24 11:33 DROP_OWNED.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_OWNED.7.gz
  4446. lrwxrwxrwx 1 root root 51 out 24 11:33 DROP_POLICY.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_POLICY.7.gz
  4447. lrwxrwxrwx 1 root root 49 out 24 11:33 DROP_ROLE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_ROLE.7.gz
  4448. lrwxrwxrwx 1 root root 49 out 24 11:33 DROP_RULE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_RULE.7.gz
  4449. lrwxrwxrwx 1 root root 51 out 24 11:33 DROP_SCHEMA.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_SCHEMA.7.gz
  4450. lrwxrwxrwx 1 root root 53 out 24 11:33 DROP_SEQUENCE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_SEQUENCE.7.gz
  4451. lrwxrwxrwx 1 root root 51 out 24 11:33 DROP_SERVER.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_SERVER.7.gz
  4452. lrwxrwxrwx 1 root root 50 out 24 11:33 DROP_TABLE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_TABLE.7.gz
  4453. lrwxrwxrwx 1 root root 55 out 24 11:33 DROP_TABLESPACE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_TABLESPACE.7.gz
  4454. lrwxrwxrwx 1 root root 70 out 24 11:33 DROP_TEXT_SEARCH_CONFIGURATION.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_TEXT_SEARCH_CONFIGURATION.7.gz
  4455. lrwxrwxrwx 1 root root 67 out 24 11:33 DROP_TEXT_SEARCH_DICTIONARY.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_TEXT_SEARCH_DICTIONARY.7.gz
  4456. lrwxrwxrwx 1 root root 63 out 24 11:33 DROP_TEXT_SEARCH_PARSER.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_TEXT_SEARCH_PARSER.7.gz
  4457. lrwxrwxrwx 1 root root 65 out 24 11:33 DROP_TEXT_SEARCH_TEMPLATE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_TEXT_SEARCH_TEMPLATE.7.gz
  4458. lrwxrwxrwx 1 root root 54 out 24 11:33 DROP_TRANSFORM.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_TRANSFORM.7.gz
  4459. lrwxrwxrwx 1 root root 52 out 24 11:33 DROP_TRIGGER.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_TRIGGER.7.gz
  4460. lrwxrwxrwx 1 root root 49 out 24 11:33 DROP_TYPE.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_TYPE.7.gz
  4461. lrwxrwxrwx 1 root root 48 out 24 11:33 dropuser.1.gz -> /usr/share/postgresql/9.6/man/man1/dropuser.1.gz
  4462. lrwxrwxrwx 1 root root 49 out 24 11:33 DROP_USER.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_USER.7.gz
  4463. lrwxrwxrwx 1 root root 57 out 24 11:33 DROP_USER_MAPPING.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_USER_MAPPING.7.gz
  4464. lrwxrwxrwx 1 root root 49 out 24 11:33 DROP_VIEW.7.gz -> /usr/share/postgresql/9.6/man/man7/DROP_VIEW.7.gz
  4465. lrwxrwxrwx 1 root root 9 ago 26 2016 editor -> /bin/nano
  4466. lrwxrwxrwx 1 root root 29 ago 26 2016 editor.1.gz -> /usr/share/man/man1/nano.1.gz
  4467. lrwxrwxrwx 1 root root 43 out 24 11:33 END.7.gz -> /usr/share/postgresql/9.6/man/man7/END.7.gz
  4468. lrwxrwxrwx 1 root root 18 out 11 11:02 ex -> /usr/bin/vim.basic
  4469. lrwxrwxrwx 1 root root 28 out 11 11:02 ex.1.gz -> /usr/share/man/man1/vim.1.gz
  4470. lrwxrwxrwx 1 root root 47 out 24 11:33 EXECUTE.7.gz -> /usr/share/postgresql/9.6/man/man7/EXECUTE.7.gz
  4471. lrwxrwxrwx 1 root root 31 out 11 11:02 ex.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz
  4472. lrwxrwxrwx 1 root root 31 out 11 11:02 ex.it.1.gz -> /usr/share/man/it/man1/vim.1.gz
  4473. lrwxrwxrwx 1 root root 31 out 11 11:02 ex.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz
  4474. lrwxrwxrwx 1 root root 31 out 11 11:02 ex.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz
  4475. lrwxrwxrwx 1 root root 47 out 24 11:33 EXPLAIN.7.gz -> /usr/share/postgresql/9.6/man/man7/EXPLAIN.7.gz
  4476. lrwxrwxrwx 1 root root 31 out 11 11:02 ex.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz
  4477. lrwxrwxrwx 1 root root 35 out 5 11:06 faked.1.gz -> /usr/share/man/man1/faked-sysv.1.gz
  4478. lrwxrwxrwx 1 root root 38 out 5 11:06 faked.es.1.gz -> /usr/share/man/es/man1/faked-sysv.1.gz
  4479. lrwxrwxrwx 1 root root 38 out 5 11:06 faked.fr.1.gz -> /usr/share/man/fr/man1/faked-sysv.1.gz
  4480. lrwxrwxrwx 1 root root 38 out 5 11:06 faked.sv.1.gz -> /usr/share/man/sv/man1/faked-sysv.1.gz
  4481. lrwxrwxrwx 1 root root 22 out 5 11:06 fakeroot -> /usr/bin/fakeroot-sysv
  4482. lrwxrwxrwx 1 root root 38 out 5 11:06 fakeroot.1.gz -> /usr/share/man/man1/fakeroot-sysv.1.gz
  4483. lrwxrwxrwx 1 root root 41 out 5 11:06 fakeroot.es.1.gz -> /usr/share/man/es/man1/fakeroot-sysv.1.gz
  4484. lrwxrwxrwx 1 root root 41 out 5 11:06 fakeroot.fr.1.gz -> /usr/share/man/fr/man1/fakeroot-sysv.1.gz
  4485. lrwxrwxrwx 1 root root 41 out 5 11:06 fakeroot.sv.1.gz -> /usr/share/man/sv/man1/fakeroot-sysv.1.gz
  4486. lrwxrwxrwx 1 root root 45 out 24 11:33 FETCH.7.gz -> /usr/share/postgresql/9.6/man/man7/FETCH.7.gz
  4487. lrwxrwxrwx 1 root root 17 ago 26 2016 from -> /usr/bin/bsd-from
  4488. lrwxrwxrwx 1 root root 33 ago 26 2016 from.1.gz -> /usr/share/man/man1/bsd-from.1.gz
  4489. lrwxrwxrwx 1 root root 19 ago 1 2017 ftp -> /usr/bin/netkit-ftp
  4490. lrwxrwxrwx 1 root root 35 ago 1 2017 ftp.1.gz -> /usr/share/man/man1/netkit-ftp.1.gz
  4491. lrwxrwxrwx 1 root root 45 out 24 11:33 GRANT.7.gz -> /usr/share/postgresql/9.6/man/man7/GRANT.7.gz
  4492. lrwxrwxrwx 1 root root 61 out 24 11:33 IMPORT_FOREIGN_SCHEMA.7.gz -> /usr/share/postgresql/9.6/man/man7/IMPORT_FOREIGN_SCHEMA.7.gz
  4493. lrwxrwxrwx 1 root root 13 ago 26 2016 infobrowser -> /usr/bin/info
  4494. lrwxrwxrwx 1 root root 29 ago 26 2016 infobrowser.1.gz -> /usr/share/man/man1/info.1.gz
  4495. lrwxrwxrwx 1 root root 46 out 24 11:33 initdb.1.gz -> /usr/share/postgresql/9.6/man/man1/initdb.1.gz
  4496. lrwxrwxrwx 1 root root 46 out 24 11:33 INSERT.7.gz -> /usr/share/postgresql/9.6/man/man7/INSERT.7.gz
  4497. lrwxrwxrwx 1 root root 30 out 24 12:02 java -> /opt/jdk/jdk1.8.0_191/bin/java
  4498. lrwxrwxrwx 1 root root 31 out 24 12:03 javac -> /opt/jdk/jdk1.8.0_191/bin/javac
  4499. lrwxrwxrwx 1 root root 15 ago 1 2017 lft -> /usr/bin/lft.db
  4500. lrwxrwxrwx 1 root root 31 ago 1 2017 lft.1.gz -> /usr/share/man/man1/lft.db.1.gz
  4501. lrwxrwxrwx 1 root root 47 ago 26 2016 libtxc-dxtn-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0
  4502. lrwxrwxrwx 1 root root 46 out 24 11:33 LISTEN.7.gz -> /usr/share/postgresql/9.6/man/man7/LISTEN.7.gz
  4503. lrwxrwxrwx 1 root root 44 out 24 11:33 LOAD.7.gz -> /usr/share/postgresql/9.6/man/man7/LOAD.7.gz
  4504. lrwxrwxrwx 1 root root 16 ago 1 2017 locate -> /usr/bin/mlocate
  4505. lrwxrwxrwx 1 root root 32 ago 1 2017 locate.1.gz -> /usr/share/man/man1/mlocate.1.gz
  4506. lrwxrwxrwx 1 root root 44 out 24 11:33 LOCK.7.gz -> /usr/share/postgresql/9.6/man/man7/LOCK.7.gz
  4507. lrwxrwxrwx 1 root root 14 ago 26 2016 lzcat -> /usr/bin/xzcat
  4508. lrwxrwxrwx 1 root root 30 ago 26 2016 lzcat.1.gz -> /usr/share/man/man1/xzcat.1.gz
  4509. lrwxrwxrwx 1 root root 14 ago 26 2016 lzcmp -> /usr/bin/xzcmp
  4510. lrwxrwxrwx 1 root root 30 ago 26 2016 lzcmp.1.gz -> /usr/share/man/man1/xzcmp.1.gz
  4511. lrwxrwxrwx 1 root root 15 ago 26 2016 lzdiff -> /usr/bin/xzdiff
  4512. lrwxrwxrwx 1 root root 31 ago 26 2016 lzdiff.1.gz -> /usr/share/man/man1/xzdiff.1.gz
  4513. lrwxrwxrwx 1 root root 16 ago 26 2016 lzegrep -> /usr/bin/xzegrep
  4514. lrwxrwxrwx 1 root root 32 ago 26 2016 lzegrep.1.gz -> /usr/share/man/man1/xzegrep.1.gz
  4515. lrwxrwxrwx 1 root root 16 ago 26 2016 lzfgrep -> /usr/bin/xzfgrep
  4516. lrwxrwxrwx 1 root root 32 ago 26 2016 lzfgrep.1.gz -> /usr/share/man/man1/xzfgrep.1.gz
  4517. lrwxrwxrwx 1 root root 15 ago 26 2016 lzgrep -> /usr/bin/xzgrep
  4518. lrwxrwxrwx 1 root root 31 ago 26 2016 lzgrep.1.gz -> /usr/share/man/man1/xzgrep.1.gz
  4519. lrwxrwxrwx 1 root root 15 ago 26 2016 lzless -> /usr/bin/xzless
  4520. lrwxrwxrwx 1 root root 31 ago 26 2016 lzless.1.gz -> /usr/share/man/man1/xzless.1.gz
  4521. lrwxrwxrwx 1 root root 11 ago 26 2016 lzma -> /usr/bin/xz
  4522. lrwxrwxrwx 1 root root 27 ago 26 2016 lzma.1.gz -> /usr/share/man/man1/xz.1.gz
  4523. lrwxrwxrwx 1 root root 15 ago 26 2016 lzmore -> /usr/bin/xzmore
  4524. lrwxrwxrwx 1 root root 31 ago 26 2016 lzmore.1.gz -> /usr/share/man/man1/xzmore.1.gz
  4525. lrwxrwxrwx 1 root root 18 ago 26 2016 mail -> /usr/bin/bsd-mailx
  4526. lrwxrwxrwx 1 root root 18 ago 26 2016 Mail -> /usr/bin/bsd-mailx
  4527. lrwxrwxrwx 1 root root 34 ago 26 2016 mail.1.gz -> /usr/share/man/man1/bsd-mailx.1.gz
  4528. lrwxrwxrwx 1 root root 34 ago 26 2016 Mail.1.gz -> /usr/share/man/man1/bsd-mailx.1.gz
  4529. lrwxrwxrwx 1 root root 18 ago 26 2016 mailx -> /usr/bin/bsd-mailx
  4530. lrwxrwxrwx 1 root root 34 ago 26 2016 mailx.1.gz -> /usr/share/man/man1/bsd-mailx.1.gz
  4531. lrwxrwxrwx 1 root root 44 out 24 11:33 MOVE.7.gz -> /usr/share/postgresql/9.6/man/man7/MOVE.7.gz
  4532. lrwxrwxrwx 1 root root 11 ago 26 2016 mt -> /bin/mt-gnu
  4533. lrwxrwxrwx 1 root root 31 ago 26 2016 mt.1.gz -> /usr/share/man/man1/mt-gnu.1.gz
  4534. lrwxrwxrwx 1 root root 22 out 24 17:43 my.cnf -> /etc/mysql/mariadb.cnf
  4535. lrwxrwxrwx 1 root root 13 out 24 16:18 nawk -> /usr/bin/gawk
  4536. lrwxrwxrwx 1 root root 29 out 24 16:18 nawk.1.gz -> /usr/share/man/man1/gawk.1.gz
  4537. lrwxrwxrwx 1 root root 19 ago 26 2016 nc -> /bin/nc.traditional
  4538. lrwxrwxrwx 1 root root 39 ago 26 2016 nc.1.gz -> /usr/share/man/man1/nc.traditional.1.gz
  4539. lrwxrwxrwx 1 root root 19 ago 26 2016 netcat -> /bin/nc.traditional
  4540. lrwxrwxrwx 1 root root 39 ago 26 2016 netcat.1.gz -> /usr/share/man/man1/nc.traditional.1.gz
  4541. lrwxrwxrwx 1 root root 37 ago 1 2017 netrc.5.gz -> /usr/share/man/man5/netkit-netrc.5.gz
  4542. lrwxrwxrwx 1 root root 46 out 24 11:33 NOTIFY.7.gz -> /usr/share/postgresql/9.6/man/man7/NOTIFY.7.gz
  4543. lrwxrwxrwx 1 root root 48 out 24 11:33 oid2name.1.gz -> /usr/share/postgresql/9.6/man/man1/oid2name.1.gz
  4544. lrwxrwxrwx 1 root root 9 ago 26 2016 pager -> /bin/less
  4545. lrwxrwxrwx 1 root root 29 ago 26 2016 pager.1.gz -> /usr/share/man/man1/less.1.gz
  4546. lrwxrwxrwx 1 root root 19 ago 1 2017 pftp -> /usr/bin/netkit-ftp
  4547. lrwxrwxrwx 1 root root 35 ago 1 2017 pftp.1.gz -> /usr/share/man/man1/netkit-ftp.1.gz
  4548. lrwxrwxrwx 1 root root 57 out 24 11:33 pg_archivecleanup.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_archivecleanup.1.gz
  4549. lrwxrwxrwx 1 root root 53 out 24 11:33 pg_basebackup.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_basebackup.1.gz
  4550. lrwxrwxrwx 1 root root 47 out 24 11:33 pgbench.1.gz -> /usr/share/postgresql/9.6/man/man1/pgbench.1.gz
  4551. lrwxrwxrwx 1 root root 54 out 24 11:33 pg_controldata.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_controldata.1.gz
  4552. lrwxrwxrwx 1 root root 46 out 24 11:33 pg_ctl.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_ctl.1.gz
  4553. lrwxrwxrwx 1 root root 47 out 24 11:33 pg_dump.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_dump.1.gz
  4554. lrwxrwxrwx 1 root root 50 out 24 11:33 pg_dumpall.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_dumpall.1.gz
  4555. lrwxrwxrwx 1 root root 50 out 24 11:33 pg_isready.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_isready.1.gz
  4556. lrwxrwxrwx 1 root root 54 out 24 11:33 pg_receivexlog.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_receivexlog.1.gz
  4557. lrwxrwxrwx 1 root root 54 out 24 11:33 pg_recvlogical.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_recvlogical.1.gz
  4558. lrwxrwxrwx 1 root root 52 out 24 11:33 pg_resetxlog.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_resetxlog.1.gz
  4559. lrwxrwxrwx 1 root root 50 out 24 11:33 pg_restore.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_restore.1.gz
  4560. lrwxrwxrwx 1 root root 49 out 24 11:33 pg_rewind.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_rewind.1.gz
  4561. lrwxrwxrwx 1 root root 50 out 24 11:33 pg_standby.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_standby.1.gz
  4562. lrwxrwxrwx 1 root root 53 out 24 11:33 pg_test_fsync.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_test_fsync.1.gz
  4563. lrwxrwxrwx 1 root root 54 out 24 11:33 pg_test_timing.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_test_timing.1.gz
  4564. lrwxrwxrwx 1 root root 50 out 24 11:33 pg_upgrade.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_upgrade.1.gz
  4565. lrwxrwxrwx 1 root root 51 out 24 11:33 pg_xlogdump.1.gz -> /usr/share/postgresql/9.6/man/man1/pg_xlogdump.1.gz
  4566. lrwxrwxrwx 1 root root 16 out 24 16:14 phar -> /usr/bin/phar7.0
  4567. lrwxrwxrwx 1 root root 32 out 24 16:14 phar.1.gz -> /usr/share/man/man1/phar7.0.1.gz
  4568. lrwxrwxrwx 1 root root 21 out 24 16:14 phar.phar -> /usr/bin/phar.phar7.0
  4569. lrwxrwxrwx 1 root root 37 out 24 16:14 phar.phar.1.gz -> /usr/share/man/man1/phar.phar7.0.1.gz
  4570. lrwxrwxrwx 1 root root 15 out 24 16:14 php -> /usr/bin/php7.0
  4571. lrwxrwxrwx 1 root root 31 out 24 16:14 php.1.gz -> /usr/share/man/man1/php7.0.1.gz
  4572. lrwxrwxrwx 1 root root 9 ago 26 2016 pico -> /bin/nano
  4573. lrwxrwxrwx 1 root root 29 ago 26 2016 pico.1.gz -> /usr/share/man/man1/nano.1.gz
  4574. lrwxrwxrwx 1 root root 23 ago 26 2016 pinentry -> /usr/bin/pinentry-gtk-2
  4575. lrwxrwxrwx 1 root root 39 ago 26 2016 pinentry.1.gz -> /usr/share/man/man1/pinentry-gtk-2.1.gz
  4576. lrwxrwxrwx 1 root root 23 ago 26 2016 pinentry-x11 -> /usr/bin/pinentry-gtk-2
  4577. lrwxrwxrwx 1 root root 39 ago 26 2016 pinentry-x11.1.gz -> /usr/share/man/man1/pinentry-gtk-2.1.gz
  4578. lrwxrwxrwx 1 root root 48 out 24 11:33 postgres.1.gz -> /usr/share/postgresql/9.6/man/man1/postgres.1.gz
  4579. lrwxrwxrwx 1 root root 50 out 24 11:33 postmaster.1.gz -> /usr/share/postgresql/9.6/man/man1/postmaster.1.gz
  4580. lrwxrwxrwx 1 root root 47 out 24 11:33 PREPARE.7.gz -> /usr/share/postgresql/9.6/man/man7/PREPARE.7.gz
  4581. lrwxrwxrwx 1 root root 59 out 24 11:33 PREPARE_TRANSACTION.7.gz -> /usr/share/postgresql/9.6/man/man7/PREPARE_TRANSACTION.7.gz
  4582. lrwxrwxrwx 1 root root 44 out 24 11:33 psql.1.gz -> /usr/share/postgresql/9.6/man/man1/psql.1.gz
  4583. lrwxrwxrwx 1 root root 12 ago 26 2016 rcp -> /usr/bin/scp
  4584. lrwxrwxrwx 1 root root 28 ago 26 2016 rcp.1.gz -> /usr/share/man/man1/scp.1.gz
  4585. -rw-r--r-- 1 root root 100 mai 2 2016 README
  4586. lrwxrwxrwx 1 root root 54 out 24 11:33 REASSIGN_OWNED.7.gz -> /usr/share/postgresql/9.6/man/man7/REASSIGN_OWNED.7.gz
  4587. lrwxrwxrwx 1 root root 65 out 24 11:33 REFRESH_MATERIALIZED_VIEW.7.gz -> /usr/share/postgresql/9.6/man/man7/REFRESH_MATERIALIZED_VIEW.7.gz
  4588. lrwxrwxrwx 1 root root 47 out 24 11:33 REINDEX.7.gz -> /usr/share/postgresql/9.6/man/man7/REINDEX.7.gz
  4589. lrwxrwxrwx 1 root root 49 out 24 11:33 reindexdb.1.gz -> /usr/share/postgresql/9.6/man/man1/reindexdb.1.gz
  4590. lrwxrwxrwx 1 root root 57 out 24 11:33 RELEASE_SAVEPOINT.7.gz -> /usr/share/postgresql/9.6/man/man7/RELEASE_SAVEPOINT.7.gz
  4591. lrwxrwxrwx 1 root root 20 ago 26 2016 rename -> /usr/bin/file-rename
  4592. lrwxrwxrwx 1 root root 37 ago 26 2016 rename.1.gz -> /usr/share/man/man1/file-rename.1p.gz
  4593. lrwxrwxrwx 1 root root 45 out 24 11:33 RESET.7.gz -> /usr/share/postgresql/9.6/man/man7/RESET.7.gz
  4594. lrwxrwxrwx 1 root root 46 out 24 11:33 REVOKE.7.gz -> /usr/share/postgresql/9.6/man/man7/REVOKE.7.gz
  4595. lrwxrwxrwx 1 root root 15 ago 26 2016 rlogin -> /usr/bin/slogin
  4596. lrwxrwxrwx 1 root root 31 ago 26 2016 rlogin.1.gz -> /usr/share/man/man1/slogin.1.gz
  4597. lrwxrwxrwx 1 root root 17 ago 26 2016 rmt -> /usr/sbin/rmt-tar
  4598. lrwxrwxrwx 1 root root 32 ago 26 2016 rmt.8.gz -> /usr/share/man/man8/rmt-tar.8.gz
  4599. lrwxrwxrwx 1 root root 48 out 24 11:33 ROLLBACK.7.gz -> /usr/share/postgresql/9.6/man/man7/ROLLBACK.7.gz
  4600. lrwxrwxrwx 1 root root 57 out 24 11:33 ROLLBACK_PREPARED.7.gz -> /usr/share/postgresql/9.6/man/man7/ROLLBACK_PREPARED.7.gz
  4601. lrwxrwxrwx 1 root root 61 out 24 11:33 ROLLBACK_TO_SAVEPOINT.7.gz -> /usr/share/postgresql/9.6/man/man7/ROLLBACK_TO_SAVEPOINT.7.gz
  4602. lrwxrwxrwx 1 root root 12 ago 26 2016 rsh -> /usr/bin/ssh
  4603. lrwxrwxrwx 1 root root 28 ago 26 2016 rsh.1.gz -> /usr/share/man/man1/ssh.1.gz
  4604. lrwxrwxrwx 1 root root 18 out 11 11:02 rview -> /usr/bin/vim.basic
  4605. lrwxrwxrwx 1 root root 18 out 11 11:02 rvim -> /usr/bin/vim.basic
  4606. lrwxrwxrwx 1 root root 20 out 24 11:33 sar -> /usr/bin/sar.sysstat
  4607. lrwxrwxrwx 1 root root 36 out 24 11:33 sar.1.gz -> /usr/share/man/man1/sar.sysstat.1.gz
  4608. lrwxrwxrwx 1 root root 49 out 24 11:33 SAVEPOINT.7.gz -> /usr/share/postgresql/9.6/man/man7/SAVEPOINT.7.gz
  4609. lrwxrwxrwx 1 root root 54 out 24 11:33 SECURITY_LABEL.7.gz -> /usr/share/postgresql/9.6/man/man7/SECURITY_LABEL.7.gz
  4610. lrwxrwxrwx 1 root root 46 out 24 11:33 SELECT.7.gz -> /usr/share/postgresql/9.6/man/man7/SELECT.7.gz
  4611. lrwxrwxrwx 1 root root 51 out 24 11:33 SELECT_INTO.7.gz -> /usr/share/postgresql/9.6/man/man7/SELECT_INTO.7.gz
  4612. lrwxrwxrwx 1 root root 43 out 24 11:33 SET.7.gz -> /usr/share/postgresql/9.6/man/man7/SET.7.gz
  4613. lrwxrwxrwx 1 root root 55 out 24 11:33 SET_CONSTRAINTS.7.gz -> /usr/share/postgresql/9.6/man/man7/SET_CONSTRAINTS.7.gz
  4614. lrwxrwxrwx 1 root root 48 out 24 11:33 SET_ROLE.7.gz -> /usr/share/postgresql/9.6/man/man7/SET_ROLE.7.gz
  4615. lrwxrwxrwx 1 root root 65 out 24 11:33 SET_SESSION_AUTHORIZATION.7.gz -> /usr/share/postgresql/9.6/man/man7/SET_SESSION_AUTHORIZATION.7.gz
  4616. lrwxrwxrwx 1 root root 55 out 24 11:33 SET_TRANSACTION.7.gz -> /usr/share/postgresql/9.6/man/man7/SET_TRANSACTION.7.gz
  4617. lrwxrwxrwx 1 root root 44 out 24 11:33 SHOW.7.gz -> /usr/share/postgresql/9.6/man/man7/SHOW.7.gz
  4618. lrwxrwxrwx 1 root root 52 ago 1 2017 start-here-16.png -> /usr/share/icons/gnome/16x16/places/debian-swirl.png
  4619. lrwxrwxrwx 1 root root 52 ago 1 2017 start-here-22.png -> /usr/share/icons/gnome/22x22/places/debian-swirl.png
  4620. lrwxrwxrwx 1 root root 52 ago 1 2017 start-here-24.png -> /usr/share/icons/gnome/24x24/places/debian-swirl.png
  4621. lrwxrwxrwx 1 root root 54 ago 1 2017 start-here-256.png -> /usr/share/icons/gnome/256x256/places/debian-swirl.png
  4622. lrwxrwxrwx 1 root root 52 ago 1 2017 start-here-32.png -> /usr/share/icons/gnome/32x32/places/debian-swirl.png
  4623. lrwxrwxrwx 1 root root 52 ago 1 2017 start-here-48.png -> /usr/share/icons/gnome/48x48/places/debian-swirl.png
  4624. lrwxrwxrwx 1 root root 55 ago 1 2017 start-here.svg -> /usr/share/icons/gnome/scalable/places/debian-swirl.svg
  4625. lrwxrwxrwx 1 root root 57 out 24 11:33 START_TRANSACTION.7.gz -> /usr/share/postgresql/9.6/man/man7/START_TRANSACTION.7.gz
  4626. lrwxrwxrwx 1 root root 45 out 24 11:33 TABLE.7.gz -> /usr/share/postgresql/9.6/man/man7/TABLE.7.gz
  4627. lrwxrwxrwx 1 root root 26 ago 1 2017 tcptraceroute -> /usr/sbin/tcptraceroute.db
  4628. lrwxrwxrwx 1 root root 41 ago 1 2017 tcptraceroute.8.gz -> /usr/share/man/man8/tcptraceroute.db.8.gz
  4629. lrwxrwxrwx 1 root root 22 ago 26 2016 telnet -> /usr/bin/telnet.netkit
  4630. lrwxrwxrwx 1 root root 38 ago 26 2016 telnet.1.gz -> /usr/share/man/man1/telnet.netkit.1.gz
  4631. lrwxrwxrwx 1 root root 22 ago 1 2017 traceproto -> /usr/bin/traceproto.db
  4632. lrwxrwxrwx 1 root root 38 ago 1 2017 traceproto.1.gz -> /usr/share/man/man1/traceproto.db.1.gz
  4633. lrwxrwxrwx 1 root root 22 ago 1 2017 traceroute -> /usr/bin/traceroute.db
  4634. lrwxrwxrwx 1 root root 38 ago 1 2017 traceroute.1.gz -> /usr/share/man/man1/traceroute.db.1.gz
  4635. lrwxrwxrwx 1 root root 23 ago 1 2017 traceroute6 -> /usr/bin/traceroute6.db
  4636. lrwxrwxrwx 1 root root 39 ago 1 2017 traceroute6.1.gz -> /usr/share/man/man1/traceroute6.db.1.gz
  4637. lrwxrwxrwx 1 root root 22 ago 1 2017 traceroute.sbin -> /usr/bin/traceroute.db
  4638. lrwxrwxrwx 1 root root 48 out 24 11:33 TRUNCATE.7.gz -> /usr/share/postgresql/9.6/man/man7/TRUNCATE.7.gz
  4639. lrwxrwxrwx 1 root root 48 out 24 11:33 UNLISTEN.7.gz -> /usr/share/postgresql/9.6/man/man7/UNLISTEN.7.gz
  4640. lrwxrwxrwx 1 root root 13 ago 26 2016 unlzma -> /usr/bin/unxz
  4641. lrwxrwxrwx 1 root root 29 ago 26 2016 unlzma.1.gz -> /usr/share/man/man1/unxz.1.gz
  4642. lrwxrwxrwx 1 root root 46 out 24 11:33 UPDATE.7.gz -> /usr/share/postgresql/9.6/man/man7/UPDATE.7.gz
  4643. lrwxrwxrwx 1 root root 25 ago 1 2017 updatedb -> /usr/bin/updatedb.mlocate
  4644. lrwxrwxrwx 1 root root 41 ago 1 2017 updatedb.8.gz -> /usr/share/man/man8/updatedb.mlocate.8.gz
  4645. lrwxrwxrwx 1 root root 46 out 24 11:33 VACUUM.7.gz -> /usr/share/postgresql/9.6/man/man7/VACUUM.7.gz
  4646. lrwxrwxrwx 1 root root 48 out 24 11:33 vacuumdb.1.gz -> /usr/share/postgresql/9.6/man/man1/vacuumdb.1.gz
  4647. lrwxrwxrwx 1 root root 48 out 24 11:33 vacuumlo.1.gz -> /usr/share/postgresql/9.6/man/man1/vacuumlo.1.gz
  4648. lrwxrwxrwx 1 root root 46 out 24 11:33 VALUES.7.gz -> /usr/share/postgresql/9.6/man/man7/VALUES.7.gz
  4649. lrwxrwxrwx 1 root root 18 out 11 11:02 vi -> /usr/bin/vim.basic
  4650. lrwxrwxrwx 1 root root 28 out 11 11:02 vi.1.gz -> /usr/share/man/man1/vim.1.gz
  4651. lrwxrwxrwx 1 root root 18 out 11 11:02 view -> /usr/bin/vim.basic
  4652. lrwxrwxrwx 1 root root 28 out 11 11:02 view.1.gz -> /usr/share/man/man1/vim.1.gz
  4653. lrwxrwxrwx 1 root root 31 out 11 11:02 view.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz
  4654. lrwxrwxrwx 1 root root 31 out 11 11:02 view.it.1.gz -> /usr/share/man/it/man1/vim.1.gz
  4655. lrwxrwxrwx 1 root root 31 out 11 11:02 view.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz
  4656. lrwxrwxrwx 1 root root 31 out 11 11:02 view.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz
  4657. lrwxrwxrwx 1 root root 31 out 11 11:02 view.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz
  4658. lrwxrwxrwx 1 root root 31 out 11 11:02 vi.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz
  4659. lrwxrwxrwx 1 root root 31 out 11 11:02 vi.it.1.gz -> /usr/share/man/it/man1/vim.1.gz
  4660. lrwxrwxrwx 1 root root 31 out 11 11:02 vi.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz
  4661. lrwxrwxrwx 1 root root 18 out 11 11:02 vim -> /usr/bin/vim.basic
  4662. lrwxrwxrwx 1 root root 18 out 11 11:02 vimdiff -> /usr/bin/vim.basic
  4663. lrwxrwxrwx 1 root root 31 out 11 11:02 vi.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz
  4664. lrwxrwxrwx 1 root root 31 out 11 11:02 vi.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz
  4665. lrwxrwxrwx 1 root root 17 ago 26 2016 w -> /usr/bin/w.procps
  4666. lrwxrwxrwx 1 root root 33 ago 26 2016 w.1.gz -> /usr/share/man/man1/w.procps.1.gz
  4667. lrwxrwxrwx 1 root root 44 out 24 11:33 WITH.7.gz -> /usr/share/postgresql/9.6/man/man7/WITH.7.gz
  4668. lrwxrwxrwx 1 root root 18 ago 26 2016 write -> /usr/bin/bsd-write
  4669. lrwxrwxrwx 1 root root 34 ago 26 2016 write.1.gz -> /usr/share/man/man1/bsd-write.1.gz
  4670. lrwxrwxrwx 1 root root 12 ago 26 2016 www-browser -> /usr/bin/w3m
  4671. lrwxrwxrwx 1 root root 28 ago 26 2016 www-browser.1.gz -> /usr/share/man/man1/w3m.1.gz
  4672. lrwxrwxrwx 1 root root 15 ago 26 2016 x-terminal-emulator -> /usr/bin/lxterm
  4673. lrwxrwxrwx 1 root root 31 ago 26 2016 x-terminal-emulator.1.gz -> /usr/share/man/man1/lxterm.1.gz
  4674. debian@paracambi:/etc/alternatives$ cd /etc/mysql/
  4675. debian@paracambi:/etc/mysql$ cd mariadb.conf.d/
  4676. debian@paracambi:/etc/mysql/mariadb.conf.d$ ls -la
  4677. total 24
  4678. drwxr-xr-x 2 root root 4096 out 24 17:43 .
  4679. drwxr-xr-x 4 debian debian 4096 out 24 17:43 ..
  4680. -rw-r--r-- 1 root root 677 ago 10 2017 50-client.cnf
  4681. -rw-r--r-- 1 root root 336 ago 10 2017 50-mysql-clients.cnf
  4682. -rw-r--r-- 1 root root 1032 ago 10 2017 50-mysqld_safe.cnf
  4683. -rw-r--r-- 1 root root 3719 ago 10 2017 50-server.cnf
  4684. debian@paracambi:/etc/mysql/mariadb.conf.d$ cd ..
  4685. debian@paracambi:/etc/mysql$ ls
  4686. conf.d debian.cnf debian-start mariadb.cnf mariadb.conf.d my.cnf my.cnf.fallback
  4687. debian@paracambi:/etc/mysql$ ls -la
  4688. total 32
  4689. drwxr-xr-x 4 debian debian 4096 out 24 17:43 .
  4690. drwxr-xr-x 101 root root 4096 out 24 17:44 ..
  4691. drwxr-xr-x 2 root root 4096 out 24 17:43 conf.d
  4692. -rw------- 1 root root 277 out 24 17:43 debian.cnf
  4693. -rwxr-xr-x 1 root root 1509 ago 10 2017 debian-start
  4694. -rw-r--r-- 1 debian debian 869 ago 10 2017 mariadb.cnf
  4695. drwxr-xr-x 2 root root 4096 out 24 17:43 mariadb.conf.d
  4696. lrwxrwxrwx 1 root root 24 out 24 17:43 my.cnf -> /etc/alternatives/my.cnf
  4697. -rw-r--r-- 1 root root 839 jul 9 2016 my.cnf.fallback
  4698. debian@paracambi:/etc/mysql$ chmod 777 mariadb.cnf
  4699. debian@paracambi:/etc/mysql$ ls -la
  4700. total 32
  4701. drwxr-xr-x 4 debian debian 4096 out 24 17:43 .
  4702. drwxr-xr-x 101 root root 4096 out 24 17:44 ..
  4703. drwxr-xr-x 2 root root 4096 out 24 17:43 conf.d
  4704. -rw------- 1 root root 277 out 24 17:43 debian.cnf
  4705. -rwxr-xr-x 1 root root 1509 ago 10 2017 debian-start
  4706. -rwxrwxrwx 1 debian debian 869 ago 10 2017 mariadb.cnf
  4707. drwxr-xr-x 2 root root 4096 out 24 17:43 mariadb.conf.d
  4708. lrwxrwxrwx 1 root root 24 out 24 17:43 my.cnf -> /etc/alternatives/my.cnf
  4709. -rw-r--r-- 1 root root 839 jul 9 2016 my.cnf.fallback
  4710. debian@paracambi:/etc/mysql$ mysql_secure_installation
  4711. Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
  4712.  
  4713. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  4714. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  4715.  
  4716. In order to log into MariaDB to secure it, we'll need the current
  4717. password for the root user. If you've just installed MariaDB, and
  4718. you haven't set the root password yet, the password will be blank,
  4719. so you should just press enter here.
  4720.  
  4721. Enter current password for root (enter for none):
  4722. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4723. Enter current password for root (enter for none):
  4724. Aborting!
  4725.  
  4726. Cleaning up...
  4727. debian@paracambi:/etc/mysql$ ^C
  4728. debian@paracambi:/etc/mysql$ ^C
  4729. debian@paracambi:/etc/mysql$ ^C
  4730. debian@paracambi:/etc/mysql$ ^C
  4731. debian@paracambi:/etc/mysql$ top
  4732.  
  4733. top - 17:49:04 up 20 days, 2:31, 1 user, load average: 0,01, 0,03, 0,00
  4734. Tasks: 140 total, 1 running, 139 sleeping, 0 stopped, 0 zombie
  4735. %Cpu(s): 0,3 us, 0,1 sy, 0,0 ni, 99,6 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
  4736. KiB Mem : 1020384 total, 128120 free, 261272 used, 630992 buff/cache
  4737. KiB Swap: 1949692 total, 1937032 free, 12660 used. 559048 avail Mem
  4738.  
  4739. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
  4740. 1560 debian 20 0 44920 3736 3096 R 6,2 0,4 0:00.02 top
  4741. 1 root 20 0 204864 6004 4336 S 0,0 0,6 0:20.86 systemd
  4742. 2 root 20 0 0 0 0 S 0,0 0,0 0:00.24 kthreadd
  4743. 3 root 20 0 0 0 0 S 0,0 0,0 0:18.17 ksoftirqd/0
  4744. 5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
  4745. 7 root 20 0 0 0 0 S 0,0 0,0 2:43.10 rcu_sched
  4746. 8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh
  4747. 9 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/0
  4748. 10 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 lru-add-drain
  4749. 11 root rt 0 0 0 0 S 0,0 0,0 0:03.98 watchdog/0
  4750. 12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0
  4751. 13 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs
  4752. 14 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns
  4753. 15 root 20 0 0 0 0 S 0,0 0,0 0:01.28 khungtaskd
  4754. 16 root 20 0 0 0 0 S 0,0 0,0 0:00.00 oom_reaper
  4755. 17 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 writeback
  4756. 18 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kcompactd0
  4757. 19 root 25 5 0 0 0 S 0,0 0,0 0:00.00 ksmd
  4758. 21 root 39 19 0 0 0 S 0,0 0,0 0:00.10 khugepaged
  4759. 22 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 crypto
  4760. 23 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kintegrityd
  4761. 24 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset
  4762. 25 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kblockd
  4763. 26 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 devfreq_wq
  4764. 27 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 watchdogd
  4765. 28 root 20 0 0 0 0 S 0,0 0,0 0:03.97 kswapd0
  4766. 29 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 vmstat
  4767. 41 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kthrotld
  4768. 42 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 ipv6_addrconf
  4769. debian@paracambi:/etc/mysql$ ^C
  4770. debian@paracambi:/etc/mysql$ ^C
  4771. debian@paracambi:/etc/mysql$ ^C
  4772. debian@paracambi:/etc/mysql$ ps -aux | grep mysql
  4773. debian 1567 0.0 0.0 12784 960 pts/0 S+ 17:49 0:00 grep mysql
  4774. root 26087 0.0 0.3 49328 3692 pts/0 S 16:58 0:00 sudo mysqld_safe --skip-grant-tables
  4775. root 26088 0.0 0.3 11456 3108 pts/0 S 16:58 0:00 /bin/bash /usr/bin/mysqld_safe --skip-grant-tables
  4776. mysql 26235 0.0 7.3 649424 75472 pts/0 Sl 16:58 0:01 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/x86_64-linux-gnu/mariadb18/plugin --user=mysql --skip-grant-tables --skip-log-error --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
  4777. debian@paracambi:/etc/mysql$ sudo kill -9 26087
  4778. [1]+ Morto sudo mysqld_safe --skip-grant-tables (wd: ~)
  4779. (wd agora: /etc/mysql)
  4780. debian@paracambi:/etc/mysql$ sudo kill -9 26088
  4781. debian@paracambi:/etc/mysql$ sudo kill -9 26235
  4782. debian@paracambi:/etc/mysql$ ps -aux | grep mysql
  4783. debian 1600 0.0 0.0 12784 924 pts/0 S+ 17:49 0:00 grep mysql
  4784. debian@paracambi:/etc/mysql$ mysql_secure_installation
  4785. Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
  4786.  
  4787. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  4788. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  4789.  
  4790. In order to log into MariaDB to secure it, we'll need the current
  4791. password for the root user. If you've just installed MariaDB, and
  4792. you haven't set the root password yet, the password will be blank,
  4793. so you should just press enter here.
  4794.  
  4795. Enter current password for root (enter for none):
  4796. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4797. Enter current password for root (enter for none):
  4798. Aborting!
  4799.  
  4800. Cleaning up...
  4801. debian@paracambi:/etc/mysql$ ^C
  4802. debian@paracambi:/etc/mysql$ ^C
  4803. debian@paracambi:/etc/mysql$ ^C
  4804. debian@paracambi:/etc/mysql$ ^C
  4805. debian@paracambi:/etc/mysql$ cd /var/run/mysqld/
  4806. debian@paracambi:/var/run/mysqld$ ls
  4807. debian@paracambi:/var/run/mysqld$ ls -la
  4808. total 0
  4809. drwxr-xr-x 2 mysql root 40 out 24 17:43 .
  4810. drwxr-xr-x 26 root root 960 out 24 17:43 ..
  4811. debian@paracambi:/var/run/mysqld$ ls -la
  4812. total 0
  4813. drwxr-xr-x 2 mysql root 40 out 24 17:43 .
  4814. drwxr-xr-x 26 root root 960 out 24 17:43 ..
  4815. debian@paracambi:/var/run/mysqld$ cd ..
  4816. debian@paracambi:/var/run$ ls -la
  4817. total 44
  4818. drwxr-xr-x 26 root root 960 out 24 17:43 .
  4819. drwxr-xr-x 22 root root 4096 out 17 06:56 ..
  4820. -rw-r--r-- 1 root root 4 out 4 15:18 acpid.pid
  4821. srw-rw-rw- 1 root root 0 out 4 15:18 acpid.socket
  4822. -rw------- 1 root root 0 out 4 15:18 agetty.reload
  4823. drwxr-xr-x 2 root root 60 out 24 16:14 apache2
  4824. -rw-r--r-- 1 root root 4 out 4 15:18 atd.pid
  4825. drwxr-xr-x 2 root root 60 out 17 06:56 blkid
  4826. drwxr-xr-x 2 root root 80 out 4 15:18 console-setup
  4827. -rw-r--r-- 1 root root 4 out 4 15:18 crond.pid
  4828. ---------- 1 root root 0 out 4 15:18 crond.reboot
  4829. drwxr-xr-x 2 root root 60 out 4 15:18 dbus
  4830. prw------- 1 root root 0 out 4 15:18 dmeventd-client
  4831. prw------- 1 root root 0 out 4 15:18 dmeventd-server
  4832. drwxr-x--- 2 Debian-exim Debian-exim 60 out 4 15:18 exim4
  4833. drwxr-xr-x 2 root root 140 out 4 15:18 fsck
  4834. lrwxrwxrwx 1 root root 25 out 4 15:18 initctl -> /run/systemd/initctl/fifo
  4835. drwxr-xr-x 2 root root 100 out 4 15:18 initramfs
  4836. drwxrwxrwt 5 root root 120 out 8 15:03 lock
  4837. drwxr-xr-x 3 root root 60 out 4 15:18 log
  4838. drwx------ 2 root root 80 out 4 15:18 lvm
  4839. -rw-r--r-- 1 root root 4 out 4 15:18 lvmetad.pid
  4840. -rw-r--r-- 1 root root 0 out 5 06:25 mlocate.daily.lock
  4841. -rw-r--r-- 1 root root 81 out 24 16:57 motd.dynamic
  4842. drwxr-xr-x 2 root root 60 out 4 15:18 mount
  4843. drwxr-xr-x 2 mysql root 40 out 24 17:43 mysqld
  4844. drwxr-xr-x 2 root root 120 out 4 15:18 network
  4845. -rw-r--r-- 1 root root 3 out 4 15:18 ntpd.pid
  4846. drwxrwsr-x 3 postgres postgres 120 out 24 11:33 postgresql
  4847. -rw-r--r-- 1 root root 0 out 17 06:56 reboot-required
  4848. drwxr-xr-x 2 root root 40 out 4 15:18 rpcbind
  4849. -r--r--r-- 1 root root 0 out 4 15:18 rpcbind.lock
  4850. srw-rw-rw- 1 root root 0 out 4 15:18 rpcbind.sock
  4851. dr-xr-xr-x 11 root root 0 out 4 15:18 rpc_pipefs
  4852. -rw-r--r-- 1 root root 3 out 4 15:18 rsyslogd.pid
  4853. drwxr-xr-x 2 root root 40 out 4 15:18 sendsigs.omit.d
  4854. lrwxrwxrwx 1 root root 8 out 4 15:18 shm -> /dev/shm
  4855. drwxr-xr-x 2 root root 40 out 4 15:18 sshd
  4856. -rw-r--r-- 1 root root 4 out 4 15:18 sshd.pid
  4857. drwxr-xr-x 2 root root 60 out 4 15:18 sysconfig
  4858. drwxr-xr-x 17 root root 420 out 24 17:43 systemd
  4859. drwxr-xr-x 2 root root 60 out 4 15:18 tmpfiles.d
  4860. drwxr-xr-x 7 root root 200 out 17 06:56 udev
  4861. -rw-r----- 1 root root 0 out 6 06:24 unattended-upgrades.lock
  4862. -rw-r--r-- 1 root root 48 out 17 06:56 unattended-upgrades.progress
  4863. drwxr-xr-x 4 root root 80 out 24 16:57 user
  4864. -rw-rw-r-- 1 root utmp 1920 out 24 16:57 utmp
  4865. drwxr-xr-x 2 zabbix zabbix 60 out 21 06:25 zabbix
  4866. debian@paracambi:/var/run$ cd /var/run/mysqld/
  4867. debian@paracambi:/var/run/mysqld$ ls -lah
  4868. total 0
  4869. drwxr-xr-x 2 mysql root 40 out 24 17:43 .
  4870. drwxr-xr-x 26 root root 960 out 24 17:43 ..
  4871. debian@paracambi:/var/run/mysqld$ sudo su
  4872. root@paracambi:/run/mysqld# mvn -version^C
  4873. root@paracambi:/run/mysqld# exit
  4874. exit
  4875. debian@paracambi:/var/run/mysqld$ sudo su
  4876. root@paracambi:/run/mysqld# mysql_secure_installation
  4877. Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
  4878.  
  4879. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  4880. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  4881.  
  4882. In order to log into MariaDB to secure it, we'll need the current
  4883. password for the root user. If you've just installed MariaDB, and
  4884. you haven't set the root password yet, the password will be blank,
  4885. so you should just press enter here.
  4886.  
  4887. Enter current password for root (enter for none):
  4888. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4889. Enter current password for root (enter for none):
  4890. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4891. Enter current password for root (enter for none):
  4892. Aborting!
  4893.  
  4894. Cleaning up...
  4895. root@paracambi:/run/mysqld# ^C
  4896. root@paracambi:/run/mysqld# ^C
  4897. root@paracambi:/run/mysqld# ^C
  4898. root@paracambi:/run/mysqld# ^C
  4899. root@paracambi:/run/mysqld# ^C
  4900. root@paracambi:/run/mysqld# ^C
  4901. root@paracambi:/run/mysqld# mysql -u root
  4902. Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
  4903. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  4904. root@paracambi:/run/mysqld# systemctl status
  4905. ● paracambi
  4906. State: degraded
  4907. Jobs: 0 queued
  4908. Failed: 1 units
  4909. Since: Thu 2018-10-04 15:18:08 -03; 2 weeks 6 days ago
  4910. CGroup: /
  4911. ├─user.slice
  4912. │ ├─user-1004.slice
  4913. │ │ ├─session-1546.scope
  4914. │ │ │ └─7072 /usr/bin/java -Djava.util.logging.config.file=/home/dspace/apache-tomcat-9.0.12/conf/logging.propertie
  4915. │ │ └─user@1004.service
  4916. │ │ └─init.scope
  4917. │ │ ├─6603 /lib/systemd/systemd --user
  4918. │ │ └─6604 (sd-pam)
  4919. │ └─user-1001.slice
  4920. │ ├─session-1570.scope
  4921. │ │ ├─ 1727 sudo su
  4922. │ │ ├─ 1728 su
  4923. │ │ ├─ 1729 bash
  4924. │ │ ├─ 1784 systemctl status
  4925. │ │ ├─25966 sshd: debian [priv]
  4926. │ │ ├─25975 sshd: debian@pts/0
  4927. │ │ └─25976 -bash
  4928. │ └─user@1001.service
  4929. │ └─init.scope
  4930. │ ├─25968 /lib/systemd/systemd --user
  4931. │ └─25969 (sd-pam)
  4932. ├─init.scope
  4933. │ └─1 /sbin/init
  4934. └─system.slice
  4935. ├─lvm2-lvmetad.service
  4936. │ └─313 /sbin/lvmetad -f
  4937. ├─dbus.service
  4938. │ └─536 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  4939. ├─system-postgresql.slice
  4940.  
  4941. root@paracambi:/run/mysqld# ^C
  4942. root@paracambi:/run/mysqld# ^C
  4943. root@paracambi:/run/mysqld# ^C
  4944. root@paracambi:/run/mysqld# systemctl mysql status
  4945. Unknown operation mysql.
  4946. root@paracambi:/run/mysqld# systemctl status mysql
  4947. ● mariadb.service - MariaDB database server
  4948. Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
  4949. Active: failed (Result: exit-code) since Wed 2018-10-24 17:43:53 -03; 10min ago
  4950. Main PID: 1214 (code=exited, status=1/FAILURE)
  4951. Status: "MariaDB server is down"
  4952.  
  4953. out 24 17:43:50 paracambi systemd[1]: Starting MariaDB database server...
  4954. out 24 17:43:51 paracambi mysqld[1214]: 2018-10-24 17:43:51 140344999359040 [Note] /usr/sbin/mysqld (mysqld 10.1.26-MariaDB-0+
  4955. out 24 17:43:53 paracambi systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
  4956. out 24 17:43:53 paracambi systemd[1]: Failed to start MariaDB database server.
  4957. out 24 17:43:53 paracambi systemd[1]: mariadb.service: Unit entered failed state.
  4958. out 24 17:43:53 paracambi systemd[1]: mariadb.service: Failed with result 'exit-code'.
  4959. lines 1-12/12 (END)
  4960. root@paracambi:/run/mysqld# ^C
  4961. root@paracambi:/run/mysqld# ^C
  4962. root@paracambi:/run/mysqld# ^C
  4963. root@paracambi:/run/mysqld# systemctl start mysql
  4964. root@paracambi:/run/mysqld# systemctl status
  4965. ● paracambi
  4966. State: running
  4967. Jobs: 0 queued
  4968. Failed: 0 units
  4969. Since: Thu 2018-10-04 15:18:08 -03; 2 weeks 6 days ago
  4970. CGroup: /
  4971. ├─user.slice
  4972. │ ├─user-1004.slice
  4973. │ │ ├─session-1546.scope
  4974. │ │ │ └─7072 /usr/bin/java -Djava.util.logging.config.file=/home/dspace/apache-tomcat-9.0.12/conf/logging.propertie
  4975. │ │ └─user@1004.service
  4976. │ │ └─init.scope
  4977. │ │ ├─6603 /lib/systemd/systemd --user
  4978. │ │ └─6604 (sd-pam)
  4979. │ └─user-1001.slice
  4980. │ ├─session-1570.scope
  4981. │ │ ├─ 1727 sudo su
  4982. │ │ ├─ 1728 su
  4983. │ │ ├─ 1729 bash
  4984. │ │ ├─ 1860 systemctl status
  4985. │ │ ├─ 1861 pager
  4986. │ │ ├─25966 sshd: debian [priv]
  4987. │ │ ├─25975 sshd: debian@pts/0
  4988. │ │ └─25976 -bash
  4989. │ └─user@1001.service
  4990. │ └─init.scope
  4991. │ ├─25968 /lib/systemd/systemd --user
  4992. │ └─25969 (sd-pam)
  4993. ├─init.scope
  4994. │ └─1 /sbin/init
  4995. └─system.slice
  4996. ├─lvm2-lvmetad.service
  4997. │ └─313 /sbin/lvmetad -f
  4998. ├─dbus.service
  4999. │ └─536 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  5000. ├─system-postgresql.slice
  5001.  
  5002. root@paracambi:/run/mysqld# ^C
  5003. root@paracambi:/run/mysqld# ^C
  5004. root@paracambi:/run/mysqld# ^C
  5005. root@paracambi:/run/mysqld# systemctl start mysql
  5006. root@paracambi:/run/mysqld# systemctl status msyql
  5007. Unit msyql.service could not be found.
  5008. root@paracambi:/run/mysqld# systemctl status mysql
  5009. ● mariadb.service - MariaDB database server
  5010. Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
  5011. Active: active (running) since Wed 2018-10-24 17:54:42 -03; 14s ago
  5012. Process: 1852 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  5013. Process: 1850 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
  5014. Process: 1812 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -e
  5015. Process: 1808 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  5016. Process: 1804 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
  5017. Main PID: 1823 (mysqld)
  5018. Status: "Taking your SQL requests now..."
  5019. Tasks: 26 (limit: 4915)
  5020. CGroup: /system.slice/mariadb.service
  5021. └─1823 /usr/sbin/mysqld
  5022.  
  5023. out 24 17:54:41 paracambi mysqld[1823]: 2018-10-24 17:54:41 140719269810752 [Note] InnoDB: Highest supported file format is Ba
  5024. out 24 17:54:41 paracambi mysqld[1823]: 2018-10-24 17:54:41 140719269810752 [Note] InnoDB: 128 rollback segment(s) are active.
  5025. out 24 17:54:41 paracambi mysqld[1823]: 2018-10-24 17:54:41 140719269810752 [Note] InnoDB: Waiting for purge to start
  5026. out 24 17:54:41 paracambi mysqld[1823]: 2018-10-24 17:54:41 140719269810752 [Note] InnoDB: Percona XtraDB (http://www.percona
  5027. out 24 17:54:41 paracambi mysqld[1823]: 2018-10-24 17:54:41 140719269810752 [Note] Plugin 'FEEDBACK' is disabled.
  5028. out 24 17:54:41 paracambi mysqld[1823]: 2018-10-24 17:54:41 140718559422208 [Note] InnoDB: Dumping buffer pool(s) not yet star
  5029. out 24 17:54:41 paracambi mysqld[1823]: 2018-10-24 17:54:41 140719269810752 [Note] Server socket created on IP: '::'.
  5030. out 24 17:54:42 paracambi mysqld[1823]: 2018-10-24 17:54:42 140719269810752 [Note] /usr/sbin/mysqld: ready for connections.
  5031. out 24 17:54:42 paracambi mysqld[1823]: Version: '10.1.26-MariaDB-0+deb9u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306
  5032. out 24 17:54:42 paracambi systemd[1]: Started MariaDB database server.
  5033.  
  5034. root@paracambi:/run/mysqld# ^C
  5035. root@paracambi:/run/mysqld# ^C
  5036. root@paracambi:/run/mysqld# ^C
  5037. root@paracambi:/run/mysqld# ^C
  5038. root@paracambi:/run/mysqld# mysql -u root
  5039. Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
  5040. Welcome to the MariaDB monitor. Commands end with ; or \g.
  5041. Your MariaDB connection id is 2
  5042. Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1
  5043.  
  5044. Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
  5045.  
  5046. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  5047.  
  5048. MariaDB [(none)]> Bye
  5049. root@paracambi:/run/mysqld# mysql_secure_installation
  5050. Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
  5051.  
  5052. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  5053. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  5054.  
  5055. In order to log into MariaDB to secure it, we'll need the current
  5056. password for the root user. If you've just installed MariaDB, and
  5057. you haven't set the root password yet, the password will be blank,
  5058. so you should just press enter here.
  5059.  
  5060. Enter current password for root (enter for none):
  5061. OK, successfully used password, moving on...
  5062.  
  5063. Setting the root password ensures that nobody can log into the MariaDB
  5064. root user without the proper authorisation.
  5065.  
  5066. Set root password? [Y/n] n
  5067. ... skipping.
  5068.  
  5069. By default, a MariaDB installation has an anonymous user, allowing anyone
  5070. to log into MariaDB without having to have a user account created for
  5071. them. This is intended only for testing, and to make the installation
  5072. go a bit smoother. You should remove them before moving into a
  5073. production environment.
  5074.  
  5075. Remove anonymous users? [Y/n] n
  5076. ... skipping.
  5077.  
  5078. Normally, root should only be allowed to connect from 'localhost'. This
  5079. ensures that someone cannot guess at the root password from the network.
  5080.  
  5081. Disallow root login remotely? [Y/n] n
  5082. ... skipping.
  5083.  
  5084. By default, MariaDB comes with a database named 'test' that anyone can
  5085. access. This is also intended only for testing, and should be removed
  5086. before moving into a production environment.
  5087.  
  5088. Remove test database and access to it? [Y/n] n
  5089. ... skipping.
  5090.  
  5091. Reloading the privilege tables will ensure that all changes made so far
  5092. will take effect immediately.
  5093.  
  5094. Reload privilege tables now? [Y/n] n
  5095. ... skipping.
  5096.  
  5097. Cleaning up...
  5098.  
  5099. All done! If you've completed all of the above steps, your MariaDB
  5100. installation should now be secure.
  5101.  
  5102. Thanks for using MariaDB!
  5103. root@paracambi:/run/mysqld# n
  5104. bash: n: comando não encontrado
  5105. root@paracambi:/run/mysqld#
  5106. root@paracambi:/run/mysqld#
  5107. root@paracambi:/run/mysqld#
  5108. root@paracambi:/run/mysqld#
  5109. root@paracambi:/run/mysqld#
  5110. root@paracambi:/run/mysqld# mysql -u root -p
  5111. Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
  5112. Enter password:
  5113. Welcome to the MariaDB monitor. Commands end with ; or \g.
  5114. Your MariaDB connection id is 4
  5115. Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1
  5116.  
  5117. Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
  5118.  
  5119. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  5120.  
  5121. MariaDB [(none)]> CREATE DATABASE joomla_db;
  5122. Query OK, 1 row affected (0.00 sec)
  5123.  
  5124. MariaDB [(none)]> CREATE USER joomla@localhost;
  5125. Query OK, 0 rows affected (0.00 sec)
  5126.  
  5127. MariaDB [(none)]> SET PASSWORD FOR 'joomla'@'localhost' = PASSWORD("123456");
  5128. Query OK, 0 rows affected (0.00 sec)
  5129.  
  5130. MariaDB [(none)]> GRANT ALL PRIVILEGES ON joomla_db.* TO 'joomla'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
  5131. Query OK, 0 rows affected (0.00 sec)
  5132.  
  5133. MariaDB [(none)]> FLUSH PRIVILEGES;
  5134. Query OK, 0 rows affected (0.00 sec)
  5135.  
  5136. MariaDB [(none)]> exit
  5137. Bye
  5138. root@paracambi:/run/mysqld#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement