Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save cloudybdone/676c132eca46661a49fedbe9c0b69508 to your computer and use it in GitHub Desktop.

Select an option

Save cloudybdone/676c132eca46661a49fedbe9c0b69508 to your computer and use it in GitHub Desktop.
I Will Configure Jasmin SMS Gateway with SMPP on Linux
If you need any help related to Jasmin SMS Gateway with SMPP configuration service on Ubuntu contact with me:
Telegram: https://t.me/Cloudybdone
WhatsApp: https://wa.link/3j794g
Skype: https://join.skype.com/invite/vLFaKHxboQrc
Email: cloudybdone@gmail.com
Linkedin: https://www.linkedin.com/in/cloudybdone/
Facebook: https://www.facebook.com/cloudybdone/
About Me: https://about.me/cloudybdone
YouTube PlayList: https://www.youtube.com/watch?v=m_fV1mMaXTU&list=PLiveDaEySXe9qFbx18J4Qj_ufwhE-QnK3
sudo -i
apt update -y && apt-get upgrade -y
apt install build-essential checkinstall
apt install software-properties-common
apt install apt-show-versions
apt-show-versions | grep upgradeable
apt install git
git config --global user.name "name"
####### Enable SSH ########
apt-get install openssh..
nano /etc/ssh/
# Find (ctrl+w) this line and set
PermitRootLogin yes
PubkeyAuthentication yes
service ssh restart
locale-gen
apt -f install
apt -y clean
apt update -y && apt-get upgrade -y
reboot
# INSTALL NGINX:
apt update -y && apt-get upgrade -y
chown -R $USER:$USER.....
chmod -R 755 /var/....
nginx -t
ufw app list
systemctl start nginx
systemctl status nginx
# Install Python with pip and set default version
apt update -y && apt-get upgrade -y
apt install build-essential zlib1g-dev libncurses5.....
apt-get install libreadline-gplv2-dev libncursesw5-dev.....
sudo wget https://www.python.org/ftp/python....
ls -la
cd Python-3.9.9
sudo ./configure -....
sudo make altinstall
python3.8 -V
sudo nano ~/.bashrc
alias python=python3
alias pip=
alias python=python3
alias pip=
sudo apt update
sudo apt upgrade -y
python3 --version
python --version
pip3 --version
python3 --version
pip --version
python --version
# install jasmin-sms-gateway
apt-get install python3
pip install....
apt install pipx
curl -s https://packagecloud.io/install/repositories/ | sudo bash
apt-get install jasmin
apt update -y && apt-get upgrade -y
# Install postgresql
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt....
wget --quiet -O - https://www.postgresql.org/.....
apt update -y && apt-get upgrade -y
sudo apt install ....
pg_ctlcluster 13 main restart
pg_ctlcluster 13 main status
sudo -u postgres psql
ALTER USER postgres PASSWORD '123';
sudo nano /etc/postgresql....
local all postgres peer
sudo service postgresql restart
sudo service postgresql status
apt update -y && apt-get upgrade -y
# Install Jasmin
git clone https://github.com/101t/....
cd jasmin-web-panel/
git commit -m "first-pull"
apt-get install libpq....
pip install rabbitmq
pip install importlib-...
nano .env
apt update -y && apt-get upgrade -y
python3 deploy.py load_new
nano /etc/systemd/system/....
[Unit]
Description=Jasmin Web
After=network.target postgresql.service
[Service]
SyslogIdentifier=
PermissionsStartOnly=true
Environment="DJANGO_SETTINGS_MODULE=
WorkingDirectory=/opt/....
StandardOutput=file:/opt/jasmin-web-panel/logs/gunicorn.log
StandardError=file:/opt/jasmin-web-panel/logs/gunicorn.log
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl status jasmin-web.service
systemctl status jasmin-web.service
nano /etc/nginx/sites-available/...
# Update
upstream jasmin_web{
server 0.0.0.0:8000;
}
server {
charset utf-8;
client_header_timeout 500;
send_timeout 30;
error_log /var/log/nginx/jasmin_web_error.log;
location / {
proxy_http_version 1.1;
proxy_read_timeout 8640
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $server_name;
proxy_buffering off;
proxy_request_buffering on;
client_body_buffer_size 256K;
}
location ^~ /media/
}
location ^~ /static/ {
root /opt/jasmin-web-panel/public/;
add_header Pragma public;
expires 30d;
}
}
ln -s /etc/nginx/sites-available/jasmin_web.conf...
systemctl daemon-reload
systemctl restart nginx
systemctl reload nginx
systemctl status nginx
nginx -t
systemctl status jasmin-restapi.service
systemctl start jasmin-restapi.service jasmin-celery.service jasmin-dlrd.service jasmin..
apt install net-tools
netstat -tnpl
systemctl daemon-reload
systemctl restart nginx
systemctl reload nginx
pg_ctlcluster 13 main restart
sudo service postgresql restart
# visit localhost or 0.0.0.0 or Your_IP
@cloudybdone

Copy link
Copy Markdown
Author

Screenshot from 2022-02-09 23-44-17

@cloudybdone

Copy link
Copy Markdown
Author

Screenshot from 2022-02-09 23-51-52

@cloudybdone

Copy link
Copy Markdown
Author

Screenshot from 2022-02-09 23-06-54

@cloudybdone

Copy link
Copy Markdown
Author

Screenshot from 2022-02-09 23-31-51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment