Blog
- Home
- Blog
This article covers how to create a user with sudo privileges. You can now log in to your Debian server with this user account and use sudo to run administrative commands. Basically, In linux sudo is masterpiece to allow users to execute commands with another user's privileges, default is root user.
How to Create a new user account in Debian ?
Create a new user account using the adduser command. Don't forget to replace username with your desired user name:
$ adduser username
To Add the user to the sudo group
Use the usermod command:
$ usermod -aG sudo username
This article covers steps to install a LEMP stack on a Debian 10 server using MariaDB as the database management system. The LEMP software stack is a group of software that can be used to serve dynamic web pages and web applications. The name "LEMP" is an acronym that describes a Linux operating system, with an (E)Nginx web server. The backend data is stored in a MariaDB database and the dynamic processing is handled by PHP.
Although this software stack typically includes MySQL as the database management system, some Linux distributions — including Debian — use MariaDB as a drop-in replacement for MySQL.
To install Nginx Web Server.
1. Run the apt commands:
$ sudo apt update
$ sudo apt install nginx
On Debian 10, Nginx is configured to start running upon installation.
This article covers how to install LAMP on Debian server along with PHPMyAdmin to manage your database. LAMP stands for Linux OS, with Apache web server, Data store in a MySql or MariaDB database, and dynamic content is processed by PHP.
To install Apache on Debian:
1. Run the following command:
$ apt-get install apache2
2. To restart your web server by typing the following command:
$ service apache2 restart
This article covers how to Install a LEMP Stack on Ubuntu 20.04 LTS. LEMP stack is a group of open-source software that is typically installed together to enable a server to host dynamic websites and web apps. LEMP stands for Linux OS, with the Nginx (pronounced like "Engine-X") web server, Data store in a MySQL database, and dynamic content is processed by PHP.
To install Nginx Web Server:
1. Run the commands below to install Nginx.
$ sudo apt update
$ sudo apt install nginx
2. Allow traffic on port 80.
$ sudo ufw allow 'Nginx HTTP'
You can verify the change by running:
$ sudo ufw status
This article covers step by step process to install a LAMP stack on an Ubuntu 18.04 server. LAMP stack is a group of open-source software that is typically installed together to host dynamic websites. LAMP stands for Linux OS, with Apache web server, Data store in a MySQL database, and dynamic content is processed by PHP.
To Install Apache and Update the Firewall.
1. Install Apache using Ubuntu’s package manager, apt:
$ sudo apt update
$ sudo apt install apache2
2. Allow incoming HTTP and HTTPS traffic for this profile:
$ sudo ufw allow in "Apache Full"
This article covers method to set up a static IP address on Ubuntu 20.04. Basically, in most network configurations, the IP address is assigned dynamically by the router DHCP server.
The recommended way to assign a static IP address to a device on your LAN is to configure a Static DHCP on your router. Static DHCP or DHCP reservation is a feature found on most routers which makes the DHCP server to automatically assign the same IP address to a specific network device, each time the device requests an address from the DHCP server. This works by assigning a static IP to the device's unique MAC address.
To Get the name of network interface and the default gateway in Linux:
You can either use ip command or the network manager CLI like this:
$ nmcli d