filsif

history freepbx install on debian 9

Apr 29th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.86 KB | None | 0 0
  1. login as: root
  2. [email protected]'s password:
  3. Linux debian 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64
  4.  
  5. The programs included with the Debian GNU/Linux system are free software;
  6. the exact distribution terms for each program are described in the
  7. individual files in /usr/share/doc/*/copyright.
  8.  
  9. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  10. permitted by applicable law.
  11. Last login: Tue Apr 28 18:52:43 2020 from 192.168.1.16
  12. root@debian:~# history
  13. 1 vi /etc/ssh/sshd_config
  14. 2 systemctl restart ssh
  15. 3 apt update
  16. 4 apt upgrade
  17. 5 apt install vim
  18. 6 apt install net-tools
  19. 7 apt-get install -y build-essential linux-headers-`uname -r` openssh-server apache2 mariadb-server mariadb-client bison flex php php-curl php-cli php-pdo php-mysql php-pear php-gd php-mbstring php-intl curl sox libncurses5-dev libssl-dev mpg123 libxml2-dev libnewt-dev sqlite3 libsqlite3-dev pkg-config automake libtool autoconf git unixodbc-dev uuid uuid-dev libasound2-dev libogg-dev libvorbis-dev libicu-dev libcurl4-openssl-dev libical-dev libneon27-dev libsrtp0-dev libspandsp-dev sudo subversion libtool-bin python-dev unixodbc dirmngr sendmail-bin sendmail
  20. 8 curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
  21. 9 apt install -y nodejs
  22. 10 reboot
  23. 11 cd /usr/src
  24. 12 wget https://wiki.freepbx.org/download/attachments/122487323/mariadb-connector-client-library_3.0.8-1_amd64.deb
  25. 13 wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
  26. 14 wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
  27. 15 wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz
  28. 16 wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-15.0-latest.tgz
  29. 17 halt
  30. 18 cd /usr/src
  31. 19 ls
  32. 20 dpkg -i mariadb-connector-client-library_3.0.8-1_amd64.deb
  33. 21 pear install Console_Getopt
  34. 22 halt
  35. 23 history
  36. 24 cd /usr
  37. 25 cd src
  38. 26 ls
  39. 27 tar xvzf dahdi-linux-complete-current.tar.gz
  40. 28 cd dahdi-linux-complete-3.1.0+3.1.0/
  41. 29 make all
  42. 30 make install
  43. 31 make config
  44. 32 cd ..
  45. 33 tar xvzf libpri-current.tar.gz
  46. 34 cd libpri-1.6.0/
  47. 35 make
  48. 36 make install
  49. 37 cd ..
  50. 38 tar xvzf asterisk-16-current.tar.gz
  51. 39 cd asterisk-16.9.0/
  52. 40 ./contrib/scripts/get_mp3_source.sh
  53. 41 ./contrib/scripts/install_prereq install
  54. 42 ./configure --with-pjproject-bundled --with-jansson-bundled
  55. 43 make menuselect.makeopts
  56. 44 menuselect/menuselect --enable app_macro --enable format_mp3 menuselect.makeopts
  57. 45 ./menuselect/menuselect --enable app_macro --enable format_mp3 menuselect.makeopts
  58. 46 ./menuselect/menuselect --enable app_macro --enable format_mp3 menuselect.makeopts
  59. 47 make
  60. 48 make install
  61. 49 make config
  62. 50 ldconfig
  63. 51 update-rc.d -f asterisk remove
  64. 52 useradd -m asterisk
  65. 53 chown asterisk. /var/run/asterisk/
  66. 54 chown -Rfc asterisk. /etc/asterisk/
  67. 55 chown -Rfc asterisk. /var/{lib,log,spool}/asterisk
  68. 56 chown -Rfc asterisk. /usr/lib/asterisk
  69. 57 rm -R /var/www/html
  70. 58 vi /etc/php/7.0/apache2/php.ini
  71. 59 cd /etc/apache2/
  72. 60 cp apache2.conf apache2.conf.orig
  73. 61 sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/apache2/apache2.conf
  74. 62 sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
  75. 63 a2enmod rewrite
  76. 64 systemctl restart apache2
  77. 65 asterisk-16.9.0#
  78. 66 root@debian:/usr/src/as
  79. 67 cat <<EOF > /etc/odbcinst.ini
  80. 68 [MySQL]
  81. 69 Description = ODBC for MySQL (MariaDB)
  82. 70 Driver = /usr/local/lib/libmaodbc.so
  83. 71 FileUsage = 1
  84. 72 EOF
  85. 73 cd /usr/src
  86. 74 ls
  87. 75 wget https://wiki.freepbx.org/download/attachments/122487323/mariadb-connector-odbc_3.0.7-1_amd64.deb
  88. 76 dpkg -i mariadb-connector-odbc_3.0.7-1_amd64.deb
  89. 77 dpkg --remove mariadb-connector-client-library
  90. 78 dpkg -i mariadb-connector-odbc_3.0.7-1_amd64.deb
  91. 79 ls /usr/local/lib/
  92. 80 cat <<EOF > /etc/odbc.ini
  93. 81 [MySQL-asteriskcdrdb]
  94. 82 Description = MySQL connection to 'asteriskcdrdb' database
  95. 83 Driver = MySQL
  96. 84 Server = localhost
  97. 85 Database = asteriskcdrdb
  98. 86 Port = 3306
  99. 87 Socket = /var/run/mysqld/mysqld.sock
  100. 88 Option = 3
  101. 89 EOF
  102. 90 tar xvzf freepbx-15.0-latest.tgz
  103. 91 touch /etc/asterisk/{modules,cdr}.conf
  104. 92 cd freepbx/
  105. 93 ./start_asterisk start
  106. 94 ./install -n
  107. 95 fwconsole ma disablerepo commercial
  108. 96 fwconsole ma installall
  109. 97 fwconsole ma delete firewall
  110. 98 fwconsole r
  111. 99 cd /lib/systemd/system
  112. 100 vi freepbx.service
  113. 101 systemctl enable freepbx.service
  114. 102 reboot
  115. 103 ifconfig
  116. 104 apt install tmux
  117. 105 apt install phpmyqdmin
  118. 106 apt install phpmyadmin
  119. 107 mysql
  120. 108 ps aux
  121. 109 ps aux
  122. 110 ps aux
  123. 111 ps aux
  124. 112 ps aux
  125. 113 ps aux
  126. 114 ps aux
  127. 115 ps aux
  128. 116 ps aux
  129. 117 ps aux
  130. 118 asterisk -rvvvvv
  131. 119 ps aux
  132. 120 ps aux
  133. 121 ps aux
  134. 122 ps aux
  135. 123 ps aux
  136. 124 ps aux
  137. 125 ps aux
  138. 126 reboot
  139. 127 asterisk -rvvvvv
  140. 128 cd /var
  141. 129 cd spool/
  142. 130 cd asterisk/
  143. 131 ls
  144. 132 cd voicemail/
  145. 133 ls
  146. 134 ls -l
  147. 135 cd de
  148. 136 cd default/
  149. 137 ls
  150. 138 cd 1001
  151. 139 cd INBOX/
  152. 140 ls
  153. 141 ls -l
  154. 142 halt
  155. 143 asterisk -rvvvvv
  156. 144 halt
  157. 145 ifconfig
  158. 146 netstat -a -n -p
  159. 147 netstat -a -n -p | grep asterisk
  160. 148 watch "netstat -a -n -p | grep asterisk"
  161. 149 watch "netstat -a -n -p | grep ESTA
  162. 150 netstat -a -n -p | grep ESTA
  163. 151 netstat -a -n -p | grep ESTA
  164. 152 netstat -a -n -p | grep ESTA
  165. 153 ifconfig
  166. 154 exit
  167. 155 asterisk -rvvvvv
  168. 156 asterisk -rvvvvv
  169. 157 exit
  170. 158 asterisk -rvvvvv
  171. 159 tmux
  172. 160 cd /etc
  173. 161 cd asterisk/
  174. 162 grep -r 00330972
  175. 163 grep -r 00330972 *
  176. 164 grep -r 0033972 *
  177. 165 asterisk -rvvvvv
  178. 166 grep -r 0033972 *
  179. 167 grep -r 0033972 *
  180. 168 grep -r 0033972 *
  181. 169 ps aux
  182. 170 grep -r 0033972 *
  183. 171 asterisk -rvvvvv
  184. 172 cd /etc
  185. 173 grep -r from-pstn *
  186. 174 grep -r from-pstn *
  187. 175 grep -r from-trunk *
  188. 176 from-trunk-pjsip-SIP_trunk_OVH]ping siptrunk.ovh.net
  189. 177 ping siptrunk.ovh.net
  190. 178 ping siptrunk.ovh.net
  191. 179 ping siptrunk.ovh.net
  192. 180 cd asterisk/
  193. 181 grep -r "No DID or CID Match" *
  194. 182 vi extensions_additional.conf
  195. 183 cd /var
  196. 184 cd spool/
  197. 185 cd asterisk/
  198. 186 ls
  199. 187 cd voicemail/
  200. 188 ls
  201. 189 cd default/
  202. 190 ls
  203. 191 cd 1000/INBOX/
  204. 192 ls -l
  205. 193 cd ..
  206. 194 cd ..
  207. 195 cd 1001
  208. 196 cd INBOX/
  209. 197 ls -l
  210. 198 cd ..
  211. 199 cd ..
  212. 200 cd 1002
  213. 201 cd INBOX/
  214. 202 ls
  215. 203 ls -l
  216. 204 halt
  217. 205 asterisk -rvvvvv
  218. 206 halt
  219. 207 asterisk -rvvvvv
  220. 208 vi /etc/apache2/apache2.conf
  221. 209 vi /etc/apache2/envvars
  222. 210 ps aux
  223. 211 apt install apache2-mpm-itk
  224. 212 apt search itk
  225. 213 apt search itk | grep apache
  226. 214 apt install libapache2-mpm-itk
  227. 215 a2enmod mpm_itk
  228. 216 a2dismod mpm_prefork
  229. 217 a2dismod mpm_itk
  230. 218 a2dismod mpm_prefork
  231. 219 a2enmod mpm_itk
  232. 220 vi /etc/apache2/
  233. 221 vi /etc/apache2/apache2.conf
  234. 222 vi /etc/apache2/apache2.conf.orig
  235. 223 vi /etc/apache2/apache2.conf
  236. 224 systemctl restart apache2
  237. 225 ps aux
  238. 226 vi /etc/apache2/sites-enabled/000-default.conf
  239. 227 systemctl restart apache2
  240. 228 ps aux
  241. 229 ps aux
  242. 230 ps aux
  243. 231 reboot
  244. 232 ps aux
  245. 233 ps aux | grep apache2
  246. 234 ps aux
  247. 235 ps aux
  248. 236 ps aux
  249. 237 ps aux
  250. 238 ps aux
  251. 239 ps aux
  252. 240 ps aux
  253. 241 history
  254. 242 halt
  255. 243 asterisk -rvvvvv
  256. 244 asterisk -rvvvvv
  257. 245 asterisk -rvvvvv
  258. 246 ifconfig
  259. 247 halt
  260. 248 history
  261. root@debian:~#
Advertisement
Add Comment
Please, Sign In to add comment