Skip to main content

Posts

Showing posts from June, 2024

Build website with website translation functionality

 Build a website with website translation functionality If you want to translate web pages to Arabic or if you need to translate your entire website to any other language, then we offer building up a reactive dynamic website with functionality to translate into different languages. We are kobros-tech , a software entity for cloud services and solutions. We use the most powerful frontend framework which is OWL, and that framework is created by Odoo and it is so light and fast. With this, you have a reactive website, a mobile app, many language translations, and a connection with any system you have. We build our websites with Flask and Django depending on the type of business you have, but the most important thing that we care about is the speed of browsing.

build a website and convert into mobile app website

 Build a website and convert it into a mobile app website We are kobros-tech  a technology entity that provides web services & solutions. We have a smart and business professional idea, which is:  we can build a website, a dynamic reactive one! Then, our team who are specialized in website design & website development can optimize the website to be a mobile app,  Not only that but also we can make the app run even offline with the use of caches functionality which will make opening the app and using it very fast, and that will give your website visitor a comfortable experience. If you don't have a server yet, we can host your website on a secure cloud server and provide it with the business domain name and also the encrypted secure connection by gaining a SSL certificate for the website. for more information contact us: https://kobros-tech.com/contact

How to Open Port 80 & 443 in FirewallD

 How to Open Port 80 & 443 in FirewallD FirewallD is the frontend management solution of iptables for most of the Linux distributions. It provides an easy-to-use command line and GUI-based interface to manage iptable rules. This tutorial describes to you to open port 80 (HTTP) and port 443 (HTTPS) in FirewallD. Allow Port 80 & 443 in FirewallD Using firewalld, you can allow/deny any port temporarily or permanently. The temporary allow/deny rules will be removed after the system reboot. But the permanent rules will persist even after the system restart. The following commands allow incoming traffic on TCP ports 80 and 443 in firewalld. sudo firewall-cmd --zone=public --add-port=80/tcp  sudo firewall-cmd --zone=public --add-port=443/tcp  The --permanent option insures to remain firewall rules after system reboots. sudo firewall-cmd --permanent --zone=public --add-port=80/tcp  sudo firewall-cmd --permanent --zone=public --add-port=443/tcp  Next, apply the changes by reloading the

Allow access to port 80 in Oracle Cloud Server

 Allow access to port 80 in Oracle Cloud Server Looking at your instance info, find VNIC section, click "Public Subnet". Click on your security list. Add a new entry with the following options: "Stateless" = No, "Source" = 0.0.0.0/0, "IP Protocol" = TCP, "Source Port Range" = All, "Destination Port Range" = 80 Install firewall by running: apt install firewalld SSH to your instance. While SSH'ed in your instance, run command firewall-cmd --permanent --add-service=http. or sudo firewall-cmd --permanent --add-port=80/tcp While SSH'ed in your instance, run command firewall-cmd --reload. Now start Apache, NGINX, or whatever server you need to on port 80. You can now access from the internet.

Connect to Github through SSH in terminal

 Connect to Github through SSH in terminal Open a terminal window Execute ssh-keygen. When prompted to “save the key,” just hit Enter, without typing anything You’ll then be prompted for a “passphrase” Execute cat ~/.ssh/id_rsa.pub Visit https://github.com/settings/keys, logging in with your GitHub username and password as usual. Don’t use the passphrase you just created, if any Click New SSH Key Paste your public key into the text box under Key. Optionally input a title under Title Click Add SSH Key Execute ssh -T git@ssh.github.com -p 443 Enter “yes” and press enter Finally setup your .gitconfig git config --global user.name "foo"  foo is your github username git config --global user.email "foo@example.com" which is your github email address

Run Flask apps as services and manage them with NGINX

Run Flask apps as services and manage them with NGINX  sudo  apt install python3-pip sudo  apt install nginx sudo adduser --home=/opt/kobros --disabled-password --gecos "Kobros" kobros sudo su - kobros mkdir company_app cd  company_app python3 -m venv py-env source py-env/bin/activate pip3 install gunicorn flask nano app.py -------------------------- FILE -------------------------- from flask import Flask app = Flask(__name__) @app.route(‘/’) def hello_world():       return "<center>Hello World! Uooohh Mantaapp</center>"      if __name__ == ‘__main__’:       app.run(debug=True,host=’0.0.0.0') ------------------------------------------------------------ nano wsgi.py -------------------------- FILE -------------------------- from app import app if __name__ == “__main__”:       app.run() ------------------------------------------------------------ python3 app.py gunicorn --bind 0.0.0.0:5000 wsgi:app deactivate sudo nano /etc/systemd/system/company_app.s