Logo
Back to home

Louis Sanchez

How to Setup DHCP Server in Ubuntu Server 20.04
Jul 24, 2021 15.3k 76 minutes ago

DHCP is a service used to automatically assign network configuration to client systems. DHCP can be used as a handy tool when you have a large pool of systems that needs to be configured for network settings. Plus, when you need to change the network configuration, say to update a DNS server, all you need to do is update the DHCP server and all the connected hosts will be reconfigured with new settings. Also, you get reliable IP address configuration that minimizes configuration errors and addre

How to set a static ip address in Ubuntu Server 20.04
Jul 24, 2021 35.0k 76 minutes ago

When you install Ubuntu server, its network setting defaults to dynamic IP addressing, that is, the network management daemon in Ubuntu searches for a DHCP server on the connected network and configures the network with the IP address assigned by DHCP. Even when you start an instance in the cloud, the network is configured with dynamic addressing using the DHCP server setup by the cloud service provider. In this chapter, you will learn how to configure the network interface with static IP assign

How To Install MySQL 8.0 on Ubuntu Server 20.04
Jul 27, 2021 8.4k 76 minutes ago

We will learn how to install and configure the MySQL database on an Ubuntu server. Follow these steps to install the MySQL 8.0 Step 1 : MySQL 8.0 is included in the default Ubuntu repository for 20.04. You can list each of the available MySQL 8.0 packages with the following command: apt-cache pkgnames | grep mysql-server step 1 : To install the MySQL server, use the following command: sudo apt-get update sudo apt-get install mysql-server-8.0 Step 2 : Once the installation process is c

How to Create MySQL Users Accounts and Grant Privileges in MySQL 8.0 On Ubuntu Server 20.04
Jul 27, 2021 11.8k 76 minutes ago

We will learn how to add new users to the MySQL database server. MySQL provides very flexible and granular user management options. Follow these steps to add users to MySQL database server and assign access rights: Step 1 : Open the MySQL shell with the following command. sudo mysql Step 2 : From the MySQL shell, use the following command to add a new user to MySQL: mysql> create user 'admin'@'localhost' identified by 'password'; Step 3 : You can check the user account with the foll

How to Change Hostname on Ubuntu 20.04
Jul 24, 2021 7.2k 76 minutes ago

How do you view your hostname? Step 1 : You need to use the hostname command or hostnamectl command hostname Step 2 : Output from the hostname command Setting the hostname Step 1 :Changing the hostname is fairly simple. To do this, we can use the hostnamectl command as root or with sudo. sudo hostnamectl set-hostname devtutorial.io Step 2 : Open the /etc/hosts file and change the old hostname to the new one. sudo nano /etc/hosts Step 3 : Verify the change hostname

How to install KVM on Ubuntu 20.04 LTS
Jul 28, 2021 7.9k 76 minutes ago

Step 1 : you can run the following command on the machine you intend to host KVM virtual machines on in order to find out whether your CPU supports virtualization extensions egrep -c '(vmx|svm)' /proc/cpuinfo A result of 1 or more means that your CPU does support virtualization extensions Step 2 : We'll also need to create a group named kvm as we're going to allow members of this group to manage virtual machines: sudo groupadd kvm Step 3 : Even though KVM is built into the Linux kernel, we'll s

How to Create a Virtual Machine in Ubuntu 20.04 with KVM
Jul 28, 2021 7.7k 76 minutes ago

Step 1 : In virt-manager, right-click your server connection and click on New to start the process of creating a new virtual machine Step 2 : The first screen while setting up a new VM Step 3 : The default selection will be on Local install media (ISO image or CDROM); leave this selection and click on Forward: Step 4 : On the next screen, click on Browse to open up another window where you can select an ISO image you've downloaded. If you click on your ISO storage pool, you should see a list

How to Setup bridged networking for KVM in Ubuntu 20.04
Jul 28, 2021 43.3k 76 minutes ago

Bridged networking allows your VMs to receive an IP address from the DHCP server on your network instead of its internal one, which will allow you to communicate with your VMs from any other machine on your network. Step 1 : To set up bridged networking, we'll need to create a new interface on our server. Open up the /etc/netplan/01-network-manager-all.yaml file in your text editor with sudo. cd /etc/netplan/ # make backup sudo cp 01-network-manager-all.yaml 01-network-manager-all.yaml.orig sudo

How to manage KVM virtual machines via the command line in Ubuntu 20.04
Jul 28, 2021 7.4k 76 minutes ago

In this post, I showed you how to manage virtual machines with virt-manager. This is great if you have a secondary machine with a graphical user interface running Linux as its operating system. But what do you do if such a machine isn't available, and you'd like to perform simple tasks such as rebooting a virtual machine or checking to see which virtual machines are running on the server? Step 1 : Showing running virtual machines with the virsh list command virsh list Step 2 : We can manage the

How to Install and Configure fail2ban on ubuntu 20.04
Nov 02, 2020 10.1k 75 minutes ago

Step 1 : How to Install and Configure fail2ban on ubuntu 20.04 apt-get install fail2ban After installation, the fail2ban daemon will start up and be configured to automatically start at boot-time. Configuring fail2ban is simply a matter of creating a configuration file. But, you shouldn't use its default config file (/etc/fail2ban/jail.conf). The problem with this file is that it can be overwritten when you install security updates, if those security updates ever include Fail2ban itself. To rem

How to Set Up a Firewall with UFW on ubuntu 20.04
Nov 05, 2020 9.5k 75 minutes ago

Uncomplicated firewall (UFW) provides easy-to-use interface for people unfamiliar with firewall concepts. It provides a framework for managing netfilter as well as the command-line interface to manipulate the firewall. With its small command set and plain English parameters, UFW makes it quick and easy to understand and set up firewall rules. At the same time, you can use UFW to configure most of the rules possible with iptables. UFW comes preinstalled with all Ubuntu installations after version

How to Secure Ubuntu server 20.04
Nov 05, 2020 23.4k 75 minutes ago

Linux is considered to be a well secured operating system. It is quite easy to maintain the security and protect our systems from unauthorized access by following a few simple norms or rules. You will need access to a root or account with sudo privileges. These steps are intended for a new server setup. You can apply them selectively for the servers already in productions. Step 1 : Install updates from the Ubuntu repository. You can install all the available updates or just select security updat

How to Install and Configure MongoDB on Ubuntu 20.04
Nov 10, 2020 7.3k 75 minutes ago

Use this tutorial to install and configure MongoDB, which is a not only SQL (NoSQL) document storage server. You will need access to a root account or an account with sudo privileges. To get the latest version of MongoDB, we need to add the MongoDB source to Ubuntu installation sources: Step 1 : First, import the MongoDB GPG public key wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - Step 2 : Create a list file and add an install source to it echo "deb [ arch=am

How to do CRUD operations in MongoDB (Ubuntu 20.04)
Nov 11, 2020 7.8k 75 minutes ago

CRUD operations create, read, update, and delete documents. Follow these steps to store and retrieve data with MongoDB Step 1 : Open a shell to interact with the Mongo server mongo Step 2 : To create and start using a new database, type use dbname. Since schemas in MongoDB are dynamic, you do not need to create a database before using it: use testdb Step 3 : Let’s insert our first document: db.users.insert({'name':'ubuntu','uid':1001}) Step 4 : To view the created database and collection, u

How To Install Python 3 on Ubuntu 20.04
Nov 12, 2020 9.1k 75 minutes ago

Step 1 : To see which version of Python 3 you have installed, open a command prompt and run python3 --version Step 2 : To use a more current Python, we recommend using the deadsnakes PPA to install Python 3.9 sudo apt-get install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa Step 3 : Enter the following command to run Update local repositories sudo apt-get update Step 4 : Install Python 3 sudo apt-get install python3.9 Step 5 : Open a terminal and verify that you can