-
-
Notifications
You must be signed in to change notification settings - Fork 823
Instalación
Leifer Mendez edited this page Feb 26, 2022
·
13 revisions
Actualizar Server
sudo apt-get update
sudo apt-get upgrade
Instalar NodeJS
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install -y nodejs
Instalar paquetes Puppeter en Ubuntu
sudo apt-get install -y libgbm-dev
sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
Clonar repositorio de Bot
git clone https://github.com/leifermendez/bot-whatsapp
cd bot-whatsapp
sudo npm install --unsafe-perm=true --allow-root
sudo npm install puppeteer --unsafe-perm=true --allow-root
chmod -R 777 chats
Instalar MySQL y PhpMyadmin
sudo apt install apache2
sudo apt install mysql-server
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl
sudo phpenmod mbstring
sudo systemctl restart apache2
Error de conexion MySQL
sudo mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'TU_CLAVE_DE_MYSQL';