RSS

Install Whatsapp API ubuntu server 20

1. Siapkan beberapa hal berikut: 

    NodeJS 18, Python 3, pip dan npm

2. Install NodeJS 18
    curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - 
    
3. Install Python dan library
    apt-get install python3-pip
    pip install mysql-connector-python
    pip install requests
    
    cd Whatsapp-WHMCS
    npm install
    npm update

4. Clone Git
    git clone https://github.com/Intprism-Technology/Whatsapp-WHMCS.git

5. Test QRscan 
    cd Whatsapp-WHMC 
    node index.js

    Jika error menjalankan index.js, jalankan berikut:
    apt install libxkbcommon0 libxshmfence1 ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0  libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 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 lsb-release wget xdg-utils

6. Test Kirim 
    cd whmcs
    pico send.py
    import requests
    url = 'http://127.0.0.1:8080/api/send'
   data = {'phone': '+6281xxxxxxxxx', 'message': 'Test kirim dari server WA'}

   ===> simpan dengan ctrl+x 

7. Jalankan file 
    python3 send.py
  

    

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Permission User

Add permission data
chown -R www-data:www-data /image

routing gateway proxmox
root@stompr:~# ip route show
192.168.10.0/24 dev vlan10 proto kernel scope link src 192.168.10.10

root@stompr:~# ip route add default via 192.168.10.1 dev vlan10
root@stompr:~# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=20.7 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=21.9 ms
^C
--- 1.1.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 3ms
rtt min/avg/max/mdev = 20.681/21.298/21.916/0.634 ms


To activate Windows 11 with CMD, follow these steps:

  • Open a CMD as administrator (Press Win+S to start searching, enter CMD, and run as administrator via the right button (see how it’s done).
  • slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX Copy and paste the command to install a new key. ( You can use this universal key, if this one is not suitable, then look at other Windows 11 activation keys for your edition on our website.) The result of the executed command should be a message about the successful installation of the product code.
  • slmgr /skms kms.digiboy.ir Copy and paste the following command to connect to the activation server. (You can also use kms.xspace.in or zh.us.to.
  • slmgr /ato Copy and paste the following command to activate Windows 11. (The result should be a successful activation message.)

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Config My.cnf Mysql 5.5


[client]

port = 3636
socket = /tmp/mysql.sock

[mysqld]
port = 3636
socket = /tmp/mysql.sock
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

#tambahan
skip-name-resolve
log_bin_trust_function_creators = 1

bind-address = xxx.xxx.xxx.xxx

log-bin=mysql-bin
binlog_format=mixed
server-id = 1

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

innodb_force_recovery = 1

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Install Mysql 5.5 ubuntu server 16

  1. Uninstall any existing version of MySQL
    sudo rm /var/lib/mysql/ -R
  2. Delete the MySQL profile
    sudo rm /etc/mysql/ -R
  3. Automatically uninstall mysql
    sudo apt-get autoremove mysql* --purge
    sudo apt-get remove apparmor
  4. Download version 5.5.51 from MySQL site
    wget https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz
  5. Add mysql user group
    sudo groupadd mysql
  6. Add mysql (not the current user) to mysql user group
    sudo useradd -g mysql mysql
  7. Extract  to /usr/local
    sudo tar -xvf mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz /usr/local/
  8. Create mysql folder in /usr/local by moving the untarred folder
    cd /usr/local
    sudo mv mysql-5.5.49-linux2.6-x86_64 mysql
  9. Set mysql directory owner and user group
    cd mysql
    sudo chown -R mysql:mysql *
  10. Install the required lib package (works with 5.6 as well)
    sudo apt-get install libaio1
  11. jika gagal : sudo apt-get install libncurses5
  12. Execute mysql installation script
    sudo scripts/mysql_install_db --user=mysql
  13. Set mysql directory owner from outside the mysql directory
    sudo chown -R root .
  14. Set data directory owner from inside mysql directory
    sudo chown -R mysql data
  15. Copy the mysql configuration file
    sudo cp support-files/my-medium.cnf /etc/my.cnf (mysql 5.5)
    sudo cp support-files/my-default.cnf /etc/my.cnf (mysl 5.6)
  16. Start mysql
    sudo bin/mysqld_safe --user=mysql &
    sudo cp support-files/mysql.server /etc/init.d/mysql.server
  17. Initialize root user password
    sudo bin/mysqladmin -u root password '[your new password]'
  18. Add mysql path to the system
    sudo ln -s /usr/local/mysql/bin/mysql /usr/local/bin/mysql
  19. Reboot!
  20. Start mysql server
    sudo /etc/init.d/mysql.server start
    
  21. Stop mysql server
    sudo /etc/init.d/mysql.server stop
  22. Check status of mysql
    sudo /etc/init.d/mysql.server status
  23. Enable myql on startup
    sudo update-rc.d -f mysql.server defaults

    Disable mysql on startup (Optional)

    sudo update-rc.d -f mysql.server remove
  24. REBOOT!
  25. Now directly use the command below to start mysql if it hasn’t
    sudo service start mysql -u root -p
  26. Tambahan config my.cnf
  27. bind-address = 11.11.100.5
    log_bin_trust_function_creators = 1
    event_scheduler = ON
  28. tambahan : 
    apt install php7.0-cli
    apt install php-mysqli
    apt install mysql-client 
    apt install curl 
    apt install php-curl 
    apt install htop
    apt install iftop
    apt install traceroute
  29. sudo timedatectl set-timezone Asia/Jakarta
  30. pico /etc/apache2/conf-enabled/security.conf
  31. deb http://old-releases.ubuntu.com/ubuntu yakkety main restricted universe multiverse
    deb http://old-releases.ubuntu.com/ubuntu yakkety-updates main restricted universe multiverse
    deb http://old-releases.ubuntu.com/ubuntu yakkety-security main restricted universe multiverse

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS