Linux Resources
- Home
- Linux Resources
This article will guide you on the different methods to conveniently install and start the MariaDB service on a Debian 10 system. Also, we dealt with how to easily remove MariaDB from your Debian 10 system.
In MariaDB replication is faster whereas in MySQL replication is slower.
MariaDB is Open Source whereas MySQL uses some proprietary code in its Enterprise Edition.
MariaDB doesn't support Data Masking and Dynamic column while MySQL supports it. Comparatively MariaDB is faster than MySQL.
Since MariaDB is a fork of MySQL, the database structure and indexes of MariaDB are the same as #MySQL.
This allows you to switch from MySQL to MariaDB without having to alter your applications since the data and data structures will not need to change. Data and table definition files are compatible.
To install #MariaDB on #Debian , follow these steps:
1. First update the apt packages index by typing: sudo apt update.
2. Once the packages list is updated, install MariaDB by running the following command: sudo apt install mariadb-server.
3. The MariaDB service will start automatically.
This article will guide you on the different methods to modify the date, time, and Timezone of your #Ubuntu 20.04 system.
However, if you have attempted to change these entities just for the sake of demonstration, then it is highly recommended to activate the #NTP Service again once you are done so that your system can again synchronize itself with NIST atomic clock.
This can be done by running the “timedatectl set-ntp yes” command.
To change the time zone in Linux systems use the sudo timedatectl set-timezone command followed by the long name of the time zone you want to set.
To change the hostname in #Linux:
1. Type the following command to edit /etc/hostname using nano or vi text editor: sudo nano /etc/hostname. Delete the old name and setup new name.
2. Next Edit the /etc/hosts file: sudo nano /etc/hosts.
3. Reboot the system to changes take effect: sudo reboot.
#NTP server sync date and time in Linux by:
i. On the Linux machine, log in as root.
ii. Run the ntpdate -u <ntpserver> command to update the machine clock. For example, ntpdate -u ntp-time.
iii. Open the /etc/ntp. conf file and add the NTP servers used in your environment.
iv. Run the service ntpd start command to start the NTP service and implement you configuration changes.
This article will guide you on how to assign multiple IP addresses to a single NIC in Ubuntu OS. Now you can allocate multiple IP addresses to a single NIC.
To change your IP address on #Linux, use the "ifconfig" command followed by the name of your network interface and the new IP #address to be changed on your computer.
To assign the subnet mask, you can either add a "netmask" clause followed by the subnet mask or use the CIDR notation directly.
The ifconfig command can be used from the #command line either to assign an address to a #network interface or to configure or display the current network interface configuration information.
The ifconfig command must be used at system startup to define the network address of each interface present on a machine.
To determine my IP address in Linux :
1. ifconfig -a.
2. ip addr (ip a).
3. hostname -I | awk '{print $1}'.
4. ip route get 1.2.
5. nmcli -p device show.
To add secondary IP address permanently on Ubuntu system, just edit /etc/network/interfaces file and add the requires IP details.
Verify the newly added IP address. # ifconfig eth0
This article will guide you on the different methods to reboot a #CentOS system which includes the keyboard shortcut, command line, and GUI based methods.
There's nothing different in running sudo reboot in a instance versus on your own server. This action shouldn't cause any problems.
You can shutdown/start/reboot the instance and your data will persist.
When used with no arguments, the shutdown command will power off the machine. sudo shutdown.
The shutdown process starts after 1 minute, which is the default time interval.
It is recommended that you do a #reboot of your Server at least once per month.
The Dedicated Hosting Servers are just computers, you would not leave your computer on for months straight without a single reboot, so the same rules apply for servers.
To reboot your Linux Server via #SSH:
1. Open Command Prompt. If you have a graphical interface, open the terminal by right-clicking the Desktop > left-clicking Open in terminal.
2. Use SSH Connection Issue reboot Command. In a terminal window, type: ssh –t user@server.com 'sudo reboot'.
This article will guide you on the different methods to #install #VirtualBox on Ubuntu 20.04 system. Now, you can create your first guest Linux machine or Windows environment on your Ubuntu system.
#Xen is a popular, open-source virtual machine application that is officially supported by #Ubuntu.
It provides high performance, but only supports a small number of host and guest operating systems.
Ubuntu is supported as both a host and guest operating system, and Xen is available in the universe software channel.
If you want to explore more about the working of the Virtualbox then, you can visit the Official documentation of Virtualbox use from this page .
VirtualBox can be installed on #Windows, Linux, macOS, Solaris, and FreeBSD.
To find the #Linux version:
1. Open the terminal application (#bash shell).
2. For remote server login using the ssh: ssh user@server-name.
3. Type any one of the following command to find os name and version in Linux: cat /etc/os-release. lsb_release -a. hostnamectl.
4. Type the following command to find Linux kernel version: uname -r.
This article will guide you on how to configure the #NTP server on Ubuntu. You will learn how to configure the NTP client on another #Ubuntu machine and synchronize it with the NTP server. By means of this, you can easily synchronize all system clocks in a network.
The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks.
NTP is intended to synchronize all participating computers to within a few milliseconds of Coordinated Universal Time (UTC).
To Configure NTP server:
1. Install NTP Server. First, install NTP package on your server using the appropriate package management tool that is available on your Linux distro.
2. Setup Restrict values in ntp. conf.
3. Allow Only Specific Clients.
4. Add Local Clock as Backup.
5. Setup NTP Log Parameters.
6. Start the NTP Serrver.
To Configure NTP client:
1. To configure your Linux system as an NTP client, you will need to install the ntp daemon (ntpd).
2. The ntpd configuration file is located at /etc/ntp.conf.
3. This file contains the list of NTP servers that will be used for time synchronization.
4. Next, restart the NTP deamon with the sudo service ntp reload command