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