Advertisement
Guest User

here

a guest
Oct 3rd, 2021
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 33.21 KB | None | 0 0
  1. pi@raspberrypi:~ $ sudo apt-get install ufw nginx mariadb-server -y
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following additional packages will be installed:
  6.   fontconfig-config fonts-dejavu-core galera-3 gawk libaio1 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl libdbd-mysql-perl
  7.   libdbi-perl libencode-locale-perl libfcgi-perl libfontconfig1 libgd3 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
  8.   libhttp-date-perl libhttp-message-perl libio-html-perl libjbig0 liblwp-mediatypes-perl libmariadb3 libnginx-mod-http-auth-pam
  9.   libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-subs-filter
  10.   libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libreadline5 libsigsegv2 libsnappy1v5
  11.   libterm-readkey-perl libtiff5 libtimedate-perl liburi-perl libwebp6 libxpm4 libxslt1.1 lsof mariadb-client-10.3 mariadb-client-core-10.3
  12.   mariadb-common mariadb-server-10.3 mariadb-server-core-10.3 mysql-common nginx-common nginx-full socat
  13. Suggested packages:
  14.   gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libgd-tools libdata-dump-perl libipc-sharedcache-perl
  15.   libwww-perl mailx mariadb-test tinyca fcgiwrap nginx-doc ssl-cert
  16. The following NEW packages will be installed:
  17.   fontconfig-config fonts-dejavu-core galera-3 gawk libaio1 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl libdbd-mysql-perl
  18.   libdbi-perl libencode-locale-perl libfcgi-perl libfontconfig1 libgd3 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
  19.   libhttp-date-perl libhttp-message-perl libio-html-perl libjbig0 liblwp-mediatypes-perl libmariadb3 libnginx-mod-http-auth-pam
  20.   libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-subs-filter
  21.   libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libreadline5 libsigsegv2 libsnappy1v5
  22.   libterm-readkey-perl libtiff5 libtimedate-perl liburi-perl libwebp6 libxpm4 libxslt1.1 lsof mariadb-client-10.3 mariadb-client-core-10.3
  23.   mariadb-common mariadb-server mariadb-server-10.3 mariadb-server-core-10.3 mysql-common nginx nginx-common nginx-full socat ufw
  24. 0 upgraded, 56 newly installed, 0 to remove and 0 not upgraded.
  25. Need to get 23.0 MB of archives.
  26. After this operation, 161 MB of additional disk space will be used.
  27. Get:2 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf gawk armhf 1:4.2.1+dfsg-1 [590 kB]
  28. Get:1 http://mirror.datamossa.io/raspbian buster/main armhf libsigsegv2 armhf 2.12-2 [32.3 kB]
  29. Get:3 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf mysql-common all 5.8+1.0.5 [7,324 B]                
  30. Get:4 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf mariadb-common all 1:10.3.29-0+deb10u1 [32.5 kB]
  31. Get:5 http://mirror.datamossa.io/raspbian buster/main armhf galera-3 armhf 25.3.25-2 [811 kB]
  32. Get:6 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libdbi-perl armhf 1.642-1+deb10u2 [767 kB]
  33. Get:7 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf lsof armhf 4.91+dfsg-1 [307 kB]
  34. Get:8 http://mirror.datamossa.io/raspbian buster/main armhf libconfig-inifiles-perl all 3.000001-1 [51.9 kB]
  35. Get:9 http://mirror.datamossa.io/raspbian buster/main armhf libaio1 armhf 0.3.112-3 [10.8 kB]                                                
  36. Get:10 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libreadline5 armhf 5.2+dfsg-3 [103 kB]                        
  37. Get:11 http://mirror.datamossa.io/raspbian buster/main armhf libsnappy1v5 armhf 1.1.7-1 [15.4 kB]                                            
  38. Get:12 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf mariadb-client-core-10.3 armhf 1:10.3.29-0+deb10u1 [4,725 kB]  
  39. Get:13 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf mariadb-client-10.3 armhf 1:10.3.29-0+deb10u1 [989 kB]        
  40. Get:14 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf mariadb-server-core-10.3 armhf 1:10.3.29-0+deb10u1 [5,224 kB]  
  41. Get:15 http://mirror.datamossa.io/raspbian buster/main armhf socat armhf 1.7.3.2-2 [324 kB]                                                  
  42. Get:16 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf mariadb-server-10.3 armhf 1:10.3.29-0+deb10u1 [3,559 kB]      
  43. Get:17 http://mirror.datamossa.io/raspbian buster/main armhf fonts-dejavu-core all 2.37-1 [1,068 kB]                                        
  44. Get:18 http://mirror.datamossa.io/raspbian buster/main armhf fontconfig-config all 2.13.1-2 [280 kB]                                        
  45. Get:19 http://mirror.datamossa.io/raspbian buster/main armhf libhtml-tagset-perl all 3.20-3 [12.7 kB]                                        
  46. Get:20 http://mirror.datamossa.io/raspbian buster/main armhf liburi-perl all 1.76-1 [89.9 kB]                                                
  47. Get:21 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libhtml-parser-perl armhf 3.72-3+b2 [101 kB]                  
  48. Get:22 http://mirror.datamossa.io/raspbian buster/main armhf libcgi-pm-perl all 4.40-1 [222 kB]                                              
  49. Get:23 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libfcgi-perl armhf 0.78-2+b2 [35.0 kB]                        
  50. Get:24 http://mirror.datamossa.io/raspbian buster/main armhf libcgi-fast-perl all 1:2.13-1 [11.4 kB]                                        
  51. Get:25 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libmariadb3 armhf 1:10.3.29-0+deb10u1 [159 kB]                
  52. Get:26 http://mirror.datamossa.io/raspbian buster/main armhf libdbd-mysql-perl armhf 4.050-2 [114 kB]                                        
  53. Get:27 http://mirror.datamossa.io/raspbian buster/main armhf libencode-locale-perl all 1.05-1 [13.7 kB]                                      
  54. Get:28 http://mirror.datamossa.io/raspbian buster/main armhf libfontconfig1 armhf 2.13.1-2 [327 kB]                                          
  55. Get:29 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libjbig0 armhf 2.1-3.1+b2 [27.6 kB]                            
  56. Get:30 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libwebp6 armhf 0.6.1-2+deb10u1 [227 kB]                        
  57. Get:31 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libtiff5 armhf 4.1.0+git191117-2~deb10u2 [250 kB]              
  58. Get:32 http://mirror.datamossa.io/raspbian buster/main armhf libxpm4 armhf 1:3.5.12-1 [43.6 kB]                                              
  59. Get:33 http://mirror.datamossa.io/raspbian buster/main armhf libgd3 armhf 2.2.5-5.2 [115 kB]                                                
  60. Get:34 http://mirror.datamossa.io/raspbian buster/main armhf libhtml-template-perl all 2.97-1 [66.0 kB]                                      
  61. Get:35 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libtimedate-perl all 2.3000-2+deb10u1 [38.1 kB]                
  62. Get:36 http://mirror.datamossa.io/raspbian buster/main armhf libhttp-date-perl all 6.02-1 [10.7 kB]                                          
  63. Get:37 http://mirror.datamossa.io/raspbian buster/main armhf libio-html-perl all 1.001-1 [17.6 kB]                                          
  64. Get:38 http://mirror.datamossa.io/raspbian buster/main armhf liblwp-mediatypes-perl all 6.02-1 [22.1 kB]                                    
  65. Get:39 http://mirror.datamossa.io/raspbian buster/main armhf libhttp-message-perl all 6.18-1 [77.8 kB]                                      
  66. Get:40 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf nginx-common all 1.14.2-2+deb10u4 [121 kB]                    
  67. Get:41 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-http-auth-pam armhf 1.14.2-2+deb10u4 [92.2 kB]    
  68. Get:42 http://mirror.datamossa.io/raspbian buster/main armhf libxslt1.1 armhf 1.1.32-2.2~deb10u1 [215 kB]                                    
  69. Get:43 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-http-dav-ext armhf 1.14.2-2+deb10u4 [98.9 kB]    
  70. Get:44 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-http-echo armhf 1.14.2-2+deb10u4 [102 kB]        
  71. Get:45 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-http-geoip armhf 1.14.2-2+deb10u4 [93.3 kB]      
  72. Get:46 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-http-image-filter armhf 1.14.2-2+deb10u4 [96.5 kB]
  73. Get:47 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-http-subs-filter armhf 1.14.2-2+deb10u4 [95.2 kB]
  74. Get:48 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-http-upstream-fair armhf 1.14.2-2+deb10u4 [95.4 kB]
  75. Get:49 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-http-xslt-filter armhf 1.14.2-2+deb10u4 [94.9 kB]
  76. Get:50 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-mail armhf 1.14.2-2+deb10u4 [120 kB]              
  77. Get:51 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf libnginx-mod-stream armhf 1.14.2-2+deb10u4 [138 kB]            
  78. Get:52 http://mirror.datamossa.io/raspbian buster/main armhf libterm-readkey-perl armhf 2.38-1 [26.3 kB]                                    
  79. Get:53 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf mariadb-server all 1:10.3.29-0+deb10u1 [31.4 kB]              
  80. Get:54 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf nginx-full armhf 1.14.2-2+deb10u4 [441 kB]                    
  81. Get:55 http://mirror.internode.on.net/pub/raspbian/raspbian buster/main armhf nginx all 1.14.2-2+deb10u4 [88.5 kB]                          
  82. Get:56 http://mirror.datamossa.io/raspbian buster/main armhf ufw all 0.36-1 [164 kB]                                                        
  83. Fetched 23.0 MB in 40s (570 kB/s)                                                                                                            
  84. Extracting templates from packages: 100%
  85. Preconfiguring packages ...
  86. Selecting previously unselected package libsigsegv2:armhf.
  87. (Reading database ... 40487 files and directories currently installed.)
  88. Preparing to unpack .../libsigsegv2_2.12-2_armhf.deb ...
  89. Unpacking libsigsegv2:armhf (2.12-2) ...
  90. Setting up libsigsegv2:armhf (2.12-2) ...
  91. Selecting previously unselected package gawk.
  92. (Reading database ... 40496 files and directories currently installed.)
  93. Preparing to unpack .../00-gawk_1%3a4.2.1+dfsg-1_armhf.deb ...
  94. Unpacking gawk (1:4.2.1+dfsg-1) ...
  95. Selecting previously unselected package mysql-common.
  96. Preparing to unpack .../01-mysql-common_5.8+1.0.5_all.deb ...
  97. Unpacking mysql-common (5.8+1.0.5) ...
  98. Selecting previously unselected package mariadb-common.
  99. Preparing to unpack .../02-mariadb-common_1%3a10.3.29-0+deb10u1_all.deb ...
  100. Unpacking mariadb-common (1:10.3.29-0+deb10u1) ...
  101. Selecting previously unselected package galera-3.
  102. Preparing to unpack .../03-galera-3_25.3.25-2_armhf.deb ...
  103. Unpacking galera-3 (25.3.25-2) ...
  104. Selecting previously unselected package libdbi-perl:armhf.
  105. Preparing to unpack .../04-libdbi-perl_1.642-1+deb10u2_armhf.deb ...
  106. Unpacking libdbi-perl:armhf (1.642-1+deb10u2) ...
  107. Selecting previously unselected package lsof.
  108. Preparing to unpack .../05-lsof_4.91+dfsg-1_armhf.deb ...
  109. Unpacking lsof (4.91+dfsg-1) ...
  110. Selecting previously unselected package libconfig-inifiles-perl.
  111. Preparing to unpack .../06-libconfig-inifiles-perl_3.000001-1_all.deb ...
  112. Unpacking libconfig-inifiles-perl (3.000001-1) ...
  113. Selecting previously unselected package libaio1:armhf.
  114. Preparing to unpack .../07-libaio1_0.3.112-3_armhf.deb ...
  115. Unpacking libaio1:armhf (0.3.112-3) ...
  116. Selecting previously unselected package libreadline5:armhf.
  117. Preparing to unpack .../08-libreadline5_5.2+dfsg-3_armhf.deb ...
  118. Unpacking libreadline5:armhf (5.2+dfsg-3) ...
  119. Selecting previously unselected package libsnappy1v5:armhf.
  120. Preparing to unpack .../09-libsnappy1v5_1.1.7-1_armhf.deb ...
  121. Unpacking libsnappy1v5:armhf (1.1.7-1) ...
  122. Selecting previously unselected package mariadb-client-core-10.3.
  123. Preparing to unpack .../10-mariadb-client-core-10.3_1%3a10.3.29-0+deb10u1_armhf.deb ...
  124. Unpacking mariadb-client-core-10.3 (1:10.3.29-0+deb10u1) ...
  125. Selecting previously unselected package mariadb-client-10.3.
  126. Preparing to unpack .../11-mariadb-client-10.3_1%3a10.3.29-0+deb10u1_armhf.deb ...
  127. Unpacking mariadb-client-10.3 (1:10.3.29-0+deb10u1) ...
  128. Selecting previously unselected package mariadb-server-core-10.3.
  129. Preparing to unpack .../12-mariadb-server-core-10.3_1%3a10.3.29-0+deb10u1_armhf.deb ...
  130. Unpacking mariadb-server-core-10.3 (1:10.3.29-0+deb10u1) ...
  131. Selecting previously unselected package socat.
  132. Preparing to unpack .../13-socat_1.7.3.2-2_armhf.deb ...
  133. Unpacking socat (1.7.3.2-2) ...
  134. Setting up mysql-common (5.8+1.0.5) ...
  135. update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
  136. Setting up mariadb-common (1:10.3.29-0+deb10u1) ...
  137. update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
  138. Selecting previously unselected package mariadb-server-10.3.
  139. (Reading database ... 41097 files and directories currently installed.)
  140. Preparing to unpack .../00-mariadb-server-10.3_1%3a10.3.29-0+deb10u1_armhf.deb ...
  141. Unpacking mariadb-server-10.3 (1:10.3.29-0+deb10u1) ...
  142. Selecting previously unselected package fonts-dejavu-core.
  143. Preparing to unpack .../01-fonts-dejavu-core_2.37-1_all.deb ...
  144. Unpacking fonts-dejavu-core (2.37-1) ...
  145. Selecting previously unselected package fontconfig-config.
  146. Preparing to unpack .../02-fontconfig-config_2.13.1-2_all.deb ...
  147. Unpacking fontconfig-config (2.13.1-2) ...
  148. Selecting previously unselected package libhtml-tagset-perl.
  149. Preparing to unpack .../03-libhtml-tagset-perl_3.20-3_all.deb ...
  150. Unpacking libhtml-tagset-perl (3.20-3) ...
  151. Selecting previously unselected package liburi-perl.
  152. Preparing to unpack .../04-liburi-perl_1.76-1_all.deb ...
  153. Unpacking liburi-perl (1.76-1) ...
  154. Selecting previously unselected package libhtml-parser-perl.
  155. Preparing to unpack .../05-libhtml-parser-perl_3.72-3+b2_armhf.deb ...
  156. Unpacking libhtml-parser-perl (3.72-3+b2) ...
  157. Selecting previously unselected package libcgi-pm-perl.
  158. Preparing to unpack .../06-libcgi-pm-perl_4.40-1_all.deb ...
  159. Unpacking libcgi-pm-perl (4.40-1) ...
  160. Selecting previously unselected package libfcgi-perl.
  161. Preparing to unpack .../07-libfcgi-perl_0.78-2+b2_armhf.deb ...
  162. Unpacking libfcgi-perl (0.78-2+b2) ...
  163. Selecting previously unselected package libcgi-fast-perl.
  164. Preparing to unpack .../08-libcgi-fast-perl_1%3a2.13-1_all.deb ...
  165. Unpacking libcgi-fast-perl (1:2.13-1) ...
  166. Selecting previously unselected package libmariadb3:armhf.
  167. Preparing to unpack .../09-libmariadb3_1%3a10.3.29-0+deb10u1_armhf.deb ...
  168. Unpacking libmariadb3:armhf (1:10.3.29-0+deb10u1) ...
  169. Selecting previously unselected package libdbd-mysql-perl:armhf.
  170. Preparing to unpack .../10-libdbd-mysql-perl_4.050-2_armhf.deb ...
  171. Unpacking libdbd-mysql-perl:armhf (4.050-2) ...
  172. Selecting previously unselected package libencode-locale-perl.
  173. Preparing to unpack .../11-libencode-locale-perl_1.05-1_all.deb ...
  174. Unpacking libencode-locale-perl (1.05-1) ...
  175. Selecting previously unselected package libfontconfig1:armhf.
  176. Preparing to unpack .../12-libfontconfig1_2.13.1-2_armhf.deb ...
  177. Unpacking libfontconfig1:armhf (2.13.1-2) ...
  178. Selecting previously unselected package libjbig0:armhf.
  179. Preparing to unpack .../13-libjbig0_2.1-3.1+b2_armhf.deb ...
  180. Unpacking libjbig0:armhf (2.1-3.1+b2) ...
  181. Selecting previously unselected package libwebp6:armhf.
  182. Preparing to unpack .../14-libwebp6_0.6.1-2+deb10u1_armhf.deb ...
  183. Unpacking libwebp6:armhf (0.6.1-2+deb10u1) ...
  184. Selecting previously unselected package libtiff5:armhf.
  185. Preparing to unpack .../15-libtiff5_4.1.0+git191117-2~deb10u2_armhf.deb ...
  186. Unpacking libtiff5:armhf (4.1.0+git191117-2~deb10u2) ...
  187. Selecting previously unselected package libxpm4:armhf.
  188. Preparing to unpack .../16-libxpm4_1%3a3.5.12-1_armhf.deb ...
  189. Unpacking libxpm4:armhf (1:3.5.12-1) ...
  190. Selecting previously unselected package libgd3:armhf.
  191. Preparing to unpack .../17-libgd3_2.2.5-5.2_armhf.deb ...
  192. Unpacking libgd3:armhf (2.2.5-5.2) ...
  193. Selecting previously unselected package libhtml-template-perl.
  194. Preparing to unpack .../18-libhtml-template-perl_2.97-1_all.deb ...
  195. Unpacking libhtml-template-perl (2.97-1) ...
  196. Selecting previously unselected package libtimedate-perl.
  197. Preparing to unpack .../19-libtimedate-perl_2.3000-2+deb10u1_all.deb ...
  198. Unpacking libtimedate-perl (2.3000-2+deb10u1) ...
  199. Selecting previously unselected package libhttp-date-perl.
  200. Preparing to unpack .../20-libhttp-date-perl_6.02-1_all.deb ...
  201. Unpacking libhttp-date-perl (6.02-1) ...
  202. Selecting previously unselected package libio-html-perl.
  203. Preparing to unpack .../21-libio-html-perl_1.001-1_all.deb ...
  204. Unpacking libio-html-perl (1.001-1) ...
  205. Selecting previously unselected package liblwp-mediatypes-perl.
  206. Preparing to unpack .../22-liblwp-mediatypes-perl_6.02-1_all.deb ...
  207. Unpacking liblwp-mediatypes-perl (6.02-1) ...
  208. Selecting previously unselected package libhttp-message-perl.
  209. Preparing to unpack .../23-libhttp-message-perl_6.18-1_all.deb ...
  210. Unpacking libhttp-message-perl (6.18-1) ...
  211. Selecting previously unselected package nginx-common.
  212. Preparing to unpack .../24-nginx-common_1.14.2-2+deb10u4_all.deb ...
  213. Unpacking nginx-common (1.14.2-2+deb10u4) ...
  214. Selecting previously unselected package libnginx-mod-http-auth-pam.
  215. Preparing to unpack .../25-libnginx-mod-http-auth-pam_1.14.2-2+deb10u4_armhf.deb ...
  216. Unpacking libnginx-mod-http-auth-pam (1.14.2-2+deb10u4) ...
  217. Selecting previously unselected package libxslt1.1:armhf.
  218. Preparing to unpack .../26-libxslt1.1_1.1.32-2.2~deb10u1_armhf.deb ...
  219. Unpacking libxslt1.1:armhf (1.1.32-2.2~deb10u1) ...
  220. Selecting previously unselected package libnginx-mod-http-dav-ext.
  221. Preparing to unpack .../27-libnginx-mod-http-dav-ext_1.14.2-2+deb10u4_armhf.deb ...
  222. Unpacking libnginx-mod-http-dav-ext (1.14.2-2+deb10u4) ...
  223. Selecting previously unselected package libnginx-mod-http-echo.
  224. Preparing to unpack .../28-libnginx-mod-http-echo_1.14.2-2+deb10u4_armhf.deb ...
  225. Unpacking libnginx-mod-http-echo (1.14.2-2+deb10u4) ...
  226. Selecting previously unselected package libnginx-mod-http-geoip.
  227. Preparing to unpack .../29-libnginx-mod-http-geoip_1.14.2-2+deb10u4_armhf.deb ...
  228. Unpacking libnginx-mod-http-geoip (1.14.2-2+deb10u4) ...
  229. Selecting previously unselected package libnginx-mod-http-image-filter.
  230. Preparing to unpack .../30-libnginx-mod-http-image-filter_1.14.2-2+deb10u4_armhf.deb ...
  231. Unpacking libnginx-mod-http-image-filter (1.14.2-2+deb10u4) ...
  232. Selecting previously unselected package libnginx-mod-http-subs-filter.
  233. Preparing to unpack .../31-libnginx-mod-http-subs-filter_1.14.2-2+deb10u4_armhf.deb ...
  234. Unpacking libnginx-mod-http-subs-filter (1.14.2-2+deb10u4) ...
  235. Selecting previously unselected package libnginx-mod-http-upstream-fair.
  236. Preparing to unpack .../32-libnginx-mod-http-upstream-fair_1.14.2-2+deb10u4_armhf.deb ...
  237. Unpacking libnginx-mod-http-upstream-fair (1.14.2-2+deb10u4) ...
  238. Selecting previously unselected package libnginx-mod-http-xslt-filter.
  239. Preparing to unpack .../33-libnginx-mod-http-xslt-filter_1.14.2-2+deb10u4_armhf.deb ...
  240. Unpacking libnginx-mod-http-xslt-filter (1.14.2-2+deb10u4) ...
  241. Selecting previously unselected package libnginx-mod-mail.
  242. Preparing to unpack .../34-libnginx-mod-mail_1.14.2-2+deb10u4_armhf.deb ...
  243. Unpacking libnginx-mod-mail (1.14.2-2+deb10u4) ...
  244. Selecting previously unselected package libnginx-mod-stream.
  245. Preparing to unpack .../35-libnginx-mod-stream_1.14.2-2+deb10u4_armhf.deb ...
  246. Unpacking libnginx-mod-stream (1.14.2-2+deb10u4) ...
  247. Selecting previously unselected package libterm-readkey-perl.
  248. Preparing to unpack .../36-libterm-readkey-perl_2.38-1_armhf.deb ...
  249. Unpacking libterm-readkey-perl (2.38-1) ...
  250. Selecting previously unselected package mariadb-server.
  251. Preparing to unpack .../37-mariadb-server_1%3a10.3.29-0+deb10u1_all.deb ...
  252. Unpacking mariadb-server (1:10.3.29-0+deb10u1) ...
  253. Selecting previously unselected package nginx-full.
  254. Preparing to unpack .../38-nginx-full_1.14.2-2+deb10u4_armhf.deb ...
  255. Unpacking nginx-full (1.14.2-2+deb10u4) ...
  256. Selecting previously unselected package nginx.
  257. Preparing to unpack .../39-nginx_1.14.2-2+deb10u4_all.deb ...
  258. Unpacking nginx (1.14.2-2+deb10u4) ...
  259. Selecting previously unselected package ufw.
  260. Preparing to unpack .../40-ufw_0.36-1_all.deb ...
  261. Unpacking ufw (0.36-1) ...
  262. Setting up libconfig-inifiles-perl (3.000001-1) ...
  263. Setting up libreadline5:armhf (5.2+dfsg-3) ...
  264. Setting up libxpm4:armhf (1:3.5.12-1) ...
  265. Setting up gawk (1:4.2.1+dfsg-1) ...
  266. Setting up libhtml-tagset-perl (3.20-3) ...
  267. Setting up liblwp-mediatypes-perl (6.02-1) ...
  268. Setting up nginx-common (1.14.2-2+deb10u4) ...
  269. Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
  270. Setting up libencode-locale-perl (1.05-1) ...
  271. Setting up ufw (0.36-1) ...
  272.  
  273. Creating config file /etc/ufw/before.rules with new version
  274.  
  275. Creating config file /etc/ufw/before6.rules with new version
  276.  
  277. Creating config file /etc/ufw/after.rules with new version
  278.  
  279. Creating config file /etc/ufw/after6.rules with new version
  280. Created symlink /etc/systemd/system/multi-user.target.wants/ufw.service → /lib/systemd/system/ufw.service.
  281. Setting up libjbig0:armhf (2.1-3.1+b2) ...
  282. Setting up libsnappy1v5:armhf (1.1.7-1) ...
  283. Setting up libnginx-mod-http-auth-pam (1.14.2-2+deb10u4) ...
  284. Setting up libnginx-mod-http-geoip (1.14.2-2+deb10u4) ...
  285. Setting up socat (1.7.3.2-2) ...
  286. Setting up libio-html-perl (1.001-1) ...
  287. Setting up libwebp6:armhf (0.6.1-2+deb10u1) ...
  288. Setting up libmariadb3:armhf (1:10.3.29-0+deb10u1) ...
  289. Setting up fonts-dejavu-core (2.37-1) ...
  290. Setting up lsof (4.91+dfsg-1) ...
  291. Setting up galera-3 (25.3.25-2) ...
  292. Setting up libtimedate-perl (2.3000-2+deb10u1) ...
  293. Setting up libnginx-mod-http-echo (1.14.2-2+deb10u4) ...
  294. Setting up libnginx-mod-http-subs-filter (1.14.2-2+deb10u4) ...
  295. Setting up libxslt1.1:armhf (1.1.32-2.2~deb10u1) ...
  296. Setting up libfcgi-perl (0.78-2+b2) ...
  297. Setting up libtiff5:armhf (4.1.0+git191117-2~deb10u2) ...
  298. Setting up libterm-readkey-perl (2.38-1) ...
  299. Setting up libaio1:armhf (0.3.112-3) ...
  300. Setting up liburi-perl (1.76-1) ...
  301. Setting up libdbi-perl:armhf (1.642-1+deb10u2) ...
  302. Setting up libnginx-mod-http-dav-ext (1.14.2-2+deb10u4) ...
  303. Setting up libnginx-mod-mail (1.14.2-2+deb10u4) ...
  304. Setting up libhttp-date-perl (6.02-1) ...
  305. Setting up fontconfig-config (2.13.1-2) ...
  306. Setting up libnginx-mod-stream (1.14.2-2+deb10u4) ...
  307. Setting up libnginx-mod-http-upstream-fair (1.14.2-2+deb10u4) ...
  308. Setting up libnginx-mod-http-xslt-filter (1.14.2-2+deb10u4) ...
  309. Setting up mariadb-server-core-10.3 (1:10.3.29-0+deb10u1) ...
  310. Setting up libdbd-mysql-perl:armhf (4.050-2) ...
  311. Setting up mariadb-client-core-10.3 (1:10.3.29-0+deb10u1) ...
  312. Setting up libhtml-parser-perl (3.72-3+b2) ...
  313. Setting up libfontconfig1:armhf (2.13.1-2) ...
  314. Setting up libhttp-message-perl (6.18-1) ...
  315. Setting up libcgi-pm-perl (4.40-1) ...
  316. Setting up libhtml-template-perl (2.97-1) ...
  317. Setting up libgd3:armhf (2.2.5-5.2) ...
  318. Setting up mariadb-client-10.3 (1:10.3.29-0+deb10u1) ...
  319. Setting up mariadb-server-10.3 (1:10.3.29-0+deb10u1) ...
  320. Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
  321. Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
  322. Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
  323. Setting up libcgi-fast-perl (1:2.13-1) ...
  324. Setting up libnginx-mod-http-image-filter (1.14.2-2+deb10u4) ...
  325. Setting up nginx-full (1.14.2-2+deb10u4) ...
  326. Setting up mariadb-server (1:10.3.29-0+deb10u1) ...
  327. Setting up nginx (1.14.2-2+deb10u4) ...
  328. Processing triggers for rsyslog (8.1901.0-1) ...
  329. Processing triggers for systemd (241-7~deb10u8+rpi1) ...
  330. Processing triggers for man-db (2.8.5-2) ...
  331. Processing triggers for libc-bin (2.28-10+rpt2+rpi1) ...
  332. pi@raspberrypi:~ $ sudo ufw allow ssh && sudo ufw allow http && sudo ufw allow https && sudo ufw allow 'Nginx Full'
  333. Rules updated
  334. Rules updated (v6)
  335. Rules updated
  336. Rules updated (v6)
  337. Rules updated
  338. Rules updated (v6)
  339. Rules updated
  340. Rules updated (v6)
  341. pi@raspberrypi:~ $ sudo ufw enable
  342. Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
  343. Firewall is active and enabled on system startup
  344. pi@raspberrypi:~ $ sudo mysql_secure_installation
  345.  
  346. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  347.       SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
  348.  
  349. In order to log into MariaDB to secure it, we'll need the current
  350. password for the root user.  If you've just installed MariaDB, and
  351. you haven't set the root password yet, the password will be blank,
  352. so you should just press enter here.
  353.  
  354. Enter current password for root (enter for none):
  355. OK, successfully used password, moving on...
  356.  
  357. Setting the root password ensures that nobody can log into the MariaDB
  358. root user without the proper authorisation.
  359.  
  360. Set root password? [Y/n] y
  361. New password:
  362. Re-enter new password:
  363. Password updated successfully!
  364. Reloading privilege tables..
  365. ... Success!
  366.  
  367.  
  368. By default, a MariaDB installation has an anonymous user, allowing anyone
  369. to log into MariaDB without having to have a user account created for
  370. them.  This is intended only for testing, and to make the installation
  371. go a bit smoother.  You should remove them before moving into a
  372. production environment.
  373.  
  374. Remove anonymous users? [Y/n] y
  375. ... Success!
  376.  
  377. Normally, root should only be allowed to connect from 'localhost'.  This
  378. ensures that someone cannot guess at the root password from the network.
  379.  
  380. Disallow root login remotely? [Y/n] n
  381. ... skipping.
  382.  
  383. By default, MariaDB comes with a database named 'test' that anyone can
  384. access.  This is also intended only for testing, and should be removed
  385. before moving into a production environment.
  386.  
  387. Remove test database and access to it? [Y/n] y
  388. - Dropping test database...
  389. ... Success!
  390. - Removing privileges on test database...
  391. ... Success!
  392.  
  393. Reloading the privilege tables will ensure that all changes made so far
  394. will take effect immediately.
  395.  
  396. Reload privilege tables now? [Y/n] y
  397. ... Success!
  398.  
  399. Cleaning up...
  400.  
  401. All done!  If you've completed all of the above steps, your MariaDB
  402. installation should now be secure.
  403.  
  404. Thanks for using MariaDB!
  405. pi@raspberrypi:~ $ sudo mysql -u root -p
  406. Enter password:
  407. Welcome to the MariaDB monitor.  Commands end with ; or \g.
  408. Your MariaDB connection id is 56
  409. Server version: 10.3.29-MariaDB-0+deb10u1 Raspbian 10
  410.  
  411. Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  412.  
  413. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  414.  
  415. MariaDB [(none)]> USE mysql;
  416. Reading table information for completion of table and column names
  417. You can turn off this feature to get a quicker startup with -A
  418.  
  419. Database changed
  420. MariaDB [mysql]> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
  421. Query OK, 1 row affected (0.001 sec)
  422. Rows matched: 1  Changed: 1  Warnings: 0
  423.  
  424. MariaDB [mysql]> FLUSH PRIVILEGES;
  425. Query OK, 0 rows affected (0.001 sec)
  426.  
  427. MariaDB [mysql]> exit;
  428. Bye
  429. pi@raspberrypi:~ $ sudo nano /etc/nginx/nginx.conf
  430. pi@raspberrypi:~ $ sudo nginx -t
  431. nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  432. nginx: configuration file /etc/nginx/nginx.conf test is successful
  433. pi@raspberrypi:~ $ sudo nano /etc/nginx/nginx.conf
  434. pi@raspberrypi:~ $ sudo systemctl restart nginx
  435. pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash
  436.  
  437. ## Installing the NodeSource Node.js 14.x repo...
  438.  
  439.  
  440. ## Populating apt-get cache...
  441.  
  442. + apt-get update
  443. Hit:1 http://archive.raspberrypi.org/debian buster InRelease                    
  444. Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease                  
  445. Reading package lists... Done
  446.  
  447. ## Confirming "buster" is supported...
  448.  
  449. + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/Release'
  450.  
  451. ## Adding the NodeSource signing key to your keyring...
  452.  
  453. + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
  454. gpg: WARNING: unsafe ownership on homedir '/home/pi/.gnupg'
  455.  
  456. ## Creating apt sources list file for the NodeSource Node.js 14.x repo...
  457.  
  458. + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list
  459. + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list.d/nodesource.list
  460.  
  461. ## Running `apt-get update` for you...
  462.  
  463. + apt-get update
  464. Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease    
  465. Hit:2 http://archive.raspberrypi.org/debian buster InRelease        
  466. Get:3 https://deb.nodesource.com/node_14.x buster InRelease [4,584 B]
  467. Get:4 https://deb.nodesource.com/node_14.x buster/main armhf Packages [780 B]
  468. Fetched 5,364 B in 2s (2,283 B/s)
  469. Reading package lists... Done
  470.  
  471. ## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm
  472. ## You may also need development tools to build native addons:
  473.      sudo apt-get install gcc g++ make
  474. ## To install the Yarn package manager, run:
  475.      curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
  476.      echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  477.      sudo apt-get update && sudo apt-get install yarn
  478.  
  479.  
  480. pi@raspberrypi:~ $ sudo apt-get install -y nodejs
  481. Reading package lists... Done
  482. Building dependency tree      
  483. Reading state information... Done
  484. The following NEW packages will be installed:
  485.   nodejs
  486. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  487. Need to get 23.0 MB of archives.
  488. After this operation, 116 MB of additional disk space will be used.
  489. Get:1 https://deb.nodesource.com/node_14.x buster/main armhf nodejs armhf 14.18.0-deb-1nodesource1 [23.0 MB]
  490. Fetched 23.0 MB in 2s (11.7 MB/s)  
  491. Selecting previously unselected package nodejs.
  492. (Reading database ... 41940 files and directories currently installed.)
  493. Preparing to unpack .../nodejs_14.18.0-deb-1nodesource1_armhf.deb ...
  494. Unpacking nodejs (14.18.0-deb-1nodesource1) ...
  495. Setting up nodejs (14.18.0-deb-1nodesource1) ...
  496. Processing triggers for man-db (2.8.5-2) ...
  497. pi@raspberrypi:~ $ sudo mkdir -p /var/www/ghost
  498. pi@raspberrypi:~ $ sudo chown pi:pi /var/www/ghost
  499. pi@raspberrypi:~ $ sudo npm i -g ghost-cli@latest
  500.  
  501. > yarn@1.22.10 preinstall /usr/lib/node_modules/ghost-cli/node_modules/yarn
  502. > :; (node ./preinstall.js > /dev/null 2>&1 || true)
  503.  
  504. /usr/bin/ghost -> /usr/lib/node_modules/ghost-cli/bin/ghost
  505. + ghost-cli@1.17.3
  506. added 417 packages from 207 contributors in 67.017s
  507. pi@raspberrypi:~ $ cd /var/www/ghost
  508. pi@raspberrypi:/var/www/ghost $ ghost install
  509. ✔ Checking system Node.js version - found v14.18.0
  510. ✔ Checking logged in user
  511. ✔ Checking current folder permissions
  512. System checks failed with message: 'Linux version is not Ubuntu 16, 18, or 20'
  513. Some features of Ghost-CLI may not work without additional configuration.
  514. For local installs we recommend using `ghost install local` instead.
  515. ? Continue anyway? Yes
  516. System stack check skipped
  517. ℹ Checking system compatibility [skipped]
  518. ✔ Checking for a MySQL installation
  519. ✔ Checking memory availability
  520. ✔ Checking free space
  521. ✔ Checking for latest Ghost version
  522. ✔ Setting up install directory
  523. ✔ Downloading and installing Ghost v4.17.0
  524. ✔ Finishing install process
  525. ? Enter your blog URL: http://localhost:2368
  526. ? Enter your MySQL hostname: localhost
  527. ? Enter your MySQL username: root
  528. ? Enter your MySQL password: [hidden]
  529. ? Enter your Ghost database name: ghost_prod
  530. ✔ Configuring Ghost
  531. ✔ Setting up instance
  532. + sudo useradd --system --user-group ghost
  533. + sudo chown -R ghost:ghost /var/www/ghost/content
  534. ✔ Setting up "ghost" system user
  535. ? Do you wish to set up "ghost" mysql user? Yes
  536. ✔ Setting up "ghost" mysql user
  537. Your url contains a port. Skipping Nginx setup.
  538. ℹ Setting up Nginx [skipped]
  539. Nginx setup task was skipped, skipping SSL setup
  540. ℹ Setting up SSL [skipped]
  541. ? Do you wish to set up Systemd? Yes
  542. + sudo mv /tmp/localhost/ghost_localhost.service /lib/systemd/system/ghost_localhost.service
  543. + sudo systemctl daemon-reload
  544. ✔ Setting up Systemd
  545. + sudo systemctl is-active ghost_localhost
  546. ? Do you want to start Ghost? Yes
  547. + sudo systemctl start ghost_localhost
  548. + sudo systemctl is-enabled ghost_localhost
  549. + sudo systemctl enable ghost_localhost --quiet
  550. ✔ Starting Ghost
  551.  
  552. Ghost uses direct mail by default. To set up an alternative email method read our docs at https://ghost.org/docs/config/#mail
  553.  
  554. ------------------------------------------------------------------------------
  555.  
  556. Ghost was installed successfully! To complete setup of your publication, visit:
  557.  
  558.     http://localhost:2368/ghost/
  559.  
  560. pi@raspberrypi:/var/www/ghost $ ghost config --url http://192.168.1.208
  561. pi@raspberrypi:/var/www/ghost $
  562.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement