Posts

Showing posts with the label Ubuntu

Install Free SSL For Nginx Server with Ubuntu 20.X

Image
If you want to install free SSL for your domain then you are on right blog. In this blog I will explain you how you can configure free SSL certificate with Ubuntu Server. By Education Funda Step 1: Go and connect to your server with ROOT user either with SSH or Putty. Step 2: Now enter this command $ sudo apt-get update Step 3: Now enter this command $  sudo snap install core; sudo snap refresh core Step 4: Now enter this command $  sudo apt-get remove certbot Step 5: Now enter this command $  sudo snap install --classic certbot Step 6: Now enter this command $  sudo ln -s /snap/bin/certbot /usr/bin/certbot Step 7: Now enter this command $  sudo certbot --nginx Now in Step 7 after enter it will ask your domain name and email address please enter details carefully here then That's it, You have done it, Yeah 💪 It will be valid up-to 3 months. For any question or feedback please write into comments section, I hope this blog will be helpful for you if Yes t...

Run Node JS Project Without Port in URL

Image
We can remove PORT from URL in Node JS project from server configuration files So we have mainly two types of server base: Nginx Apache For both we generally have /etc/nginx/default OR /etc/apache2/default file . So you have to edit it manually which you can do via below steps: 1. Firstly go into nginx/apache2 directory  Then, Run command: ~ sudo nano default configuration file will open in edited mode from which you can edit now server { listen 80 default_server; listen [::]:80 default_server; location { proxy_pass http://yourdomain.com:3000;      #try_files comment this line manually via adding # } } Restart your server via nginx/apache2 ~ sudo service nginx restart ~ sudo service apache2 restart That's it now check http://yourdomain.com this will also work same. Happy Coding !!

Deploy NodeJS Project in Ubuntu Server

Image
Let's See The Standard Way To Deploy NodeJS  Project with Nginx  Firstly I assume you already connected to your Ubuntu server. Now first command which you need to run is ~ sudo apt-get update (This command will update all default packages of ubuntu server with latest versions) Now let's install Nginx server ~ sudo apt install nginx Now you have to install Node JS and NPM (Please read this article for it) Now you can check with ~ nginx -v ~ node -v ~ npm -v  NodeJS - Education Funda In each above commands version should be written if not it means it not installed properly in your server. now go to cd /var/www directory -> From here create directory sudo mkdir domain.xyz . -> cd domain.xyz . From here take clone from your GIT branch ( Reference Link ) Now go to ~ cd yourCloneDirectory . -> From this directory just run your project ~  node app.js/server.js (your root file of node js project) Now just call your IP or Domain in your browser your project should...

Installing Node.js in Ubuntu Server PPA

Image
Installing Node.js in Ubuntu Server with Apt Using a NodeSource PPA Node JS Installation - Education Funda To install a different version of Node.js, you can use a PPA (personal package archive) maintained by NodeSource. These PPAs have more versions of Node.js available than the official Ubuntu repositories. Node.js v14, v16, and v18 are available as of the time of writing. First, we will install the PPA in order to get access to its packages. From your home directory, use curl to retrieve the installation script for your preferred version, making sure to replace 18.x with your preferred version string (if different). curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh --------------------- You can inspect the contents of the downloaded script with nano (or your preferred text editor): nano nodesource_setup.sh ---------------------------- Running third party shell scripts is not always considered a best practice, but in this case, NodeSource implements their own logi...

Ubuntu Operation System Update Packages Manually With Commands

Image
Let's See How We Can Update Ubuntu Packages With Command Line Interface Step 1: Open a Terminal and Type below command to update the index packages list $ sudo apt update OR sudo apt-get update Step 2: This part isn't necessary to you, but if you had llike to see which packages are due for an update or check the list of packages which need to upgrade, so you can type this command $ sudo apt list --upgradable OR  apt list --upgradable Step 3: Now for update the packages we can use below command For individual package update: $ sudo apt install PACKAGE-NAME For update all the packages: $ sudo apt upgrade Step 4: Few packages are dependent upon third party sites or libraries as well so for update those you can run below command $ sudo apt dist-upgrade Step 5: As we are doing this process manually so finally we also need to remove previous versions of packages so we can do it via below command $ sudo apt autoremove I hope this blog will help you to upgrade your Ubuntu operating ...