<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Databases Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/databases/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 10 Oct 2021 20:33:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install MongoDB on Debian 11</title>
		<link>https://www.osradar.com/how-to-install-mongodb-on-debian-11/</link>
					<comments>https://www.osradar.com/how-to-install-mongodb-on-debian-11/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 13 Oct 2021 23:31:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32619</guid>

					<description><![CDATA[<p>Hello, friends. Throughout this post, we will take you to learn how to install MongoDB on Debian 11. MongoDB is the most representative of the databases known as NoSQL, an acronym for Not only SQL. It is document-oriented and multi-platform, which means that we can use it on many different systems. In Mongo DB there [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-on-debian-11/">How to install MongoDB on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Throughout this post, we will take you to learn how to install MongoDB on Debian 11.</p>



<p><strong>MongoDB is the most representative of the databases known as NoSQL</strong>, an acronym for Not only SQL. It is document-oriented and multi-platform, which means that we can use it on many different systems.</p>



<p>In Mongo DB there are no predefined schemas, the keys and values of a document are of fixed types or sizes, in a document with a fixed schema the tasks to add or delete fields become easier and with great performance.</p>



<p>Data in Mongo DB is stored using BSON format structures, which is a specification similar to JSON so any modern text editor can edit it without any problems.</p>



<p>So MongoDB has positioned itself as one of the most solid alternatives to database managers like <a href="https://www.osradar.com/install-sqlite-database-debian/" target="_blank" rel="noreferrer noopener">SQLite </a>or <a href="https://www.osradar.com/install-mariadb-database-debian/" target="_blank" rel="noreferrer noopener">MariaDB</a>. So, let’s go for it.</p>



<h2 id="install-mongodb-on-debian-11">Install MongoDB on Debian 11</h2>



<p>For this post, we will use the MongoDB repository for Debian 10 which also works for this new Debian version. However, we are still waiting for the MongoDB developers to include Debian 11 in their repositories.</p>



<p>So, open a terminal and update the operating system completely.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Before adding the MongoDB repository to the system, it is necessary to install a package called <code>gnupg2</code>.</p>



<pre class="wp-block-preformatted">sudo apt install gnupg2</pre>



<p>After that, add the GPG key of the repository as follows</p>



<pre class="wp-block-preformatted">wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -</pre>



<p>Now add the MongoDB repository to your system by running</p>



<pre class="wp-block-preformatted">echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list</pre>



<p>Refresh APT to accept the new changes</p>



<pre class="wp-block-preformatted">sudo apt update</pre>



<p>Next, install MongoDB on Debian 11 by running</p>



<pre class="wp-block-preformatted">sudo apt install mongodb-org
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  mongodb-database-tools mongodb-mongosh mongodb-org-database mongodb-org-database-tools-extra mongodb-org-mongos mongodb-org-server mongodb-org-shell
  mongodb-org-tools
The following NEW packages will be installed:
  mongodb-database-tools mongodb-mongosh mongodb-org mongodb-org-database mongodb-org-database-tools-extra mongodb-org-mongos mongodb-org-server mongodb-org-shell
  mongodb-org-tools
0 upgraded, 9 newly installed, 0 to remove and 25 not upgraded.
Need to get 147 MB of archives.
After this operation, 464 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>After that, you can check the installed version using this command</p>



<pre class="wp-block-preformatted">mongod --version</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">db version v5.0.3
Build Info: {
    "version": "5.0.3",
    "gitVersion": "657fea5a61a74d7a79df7aff8e4bcf0bc742b748",
    "openSSLVersion": "OpenSSL 1.1.1k  25 Mar 2021",
    "modules": [],
    "allocator": "tcmalloc",
    "environment": {
        "distmod": "debian10",
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}</pre>



<h3 id="managing-the-mongodb-service">Managing the MongoDB service</h3>



<p>Once it is installed, you can manage its service just like any other service on the system.</p>



<p>To start MongoDB you have to run</p>



<pre class="wp-block-preformatted">sudo systemctl start mongod</pre>



<p>It is usually a good idea to make it start with the system so that it is immediately available.</p>



<pre class="wp-block-preformatted">sudo systemctl enable --now mongod
Created symlink /etc/systemd/system/multi-user.target.wants/mongod.service → /lib/systemd/system/mongod.service.</pre>



<p>If you make changes to the MongoDB configuration then you will have to restart it to apply the changes.</p>



<pre class="wp-block-preformatted">sudo systemctl restart mongod</pre>



<p>Finally, it is advisable to check the status of the service to see if everything is OK.</p>



<pre class="wp-block-preformatted">sudo systemctl status mongod
● mongod.service - MongoDB Database Server
     Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-10-09 18:51:39 CEST; 25s ago
       Docs: https://docs.mongodb.org/manual
   Main PID: 13759 (mongod)
     Memory: 67.3M
        CPU: 1.561s
     CGroup: /system.slice/mongod.service
             └─13759 /usr/bin/mongod --config /etc/mongod.conf

Oct 09 18:51:39 osradar systemd[1]: Started MongoDB Database Server.</pre>



<h3 id="creating-a-new-user-for-mongodb">Creating a new user for MongoDB</h3>



<p>To access the MongoDB shell just run the command command</p>



<pre class="wp-block-preformatted">mongo</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="466" src="https://www.osradar.com/wp-content/uploads/2021/10/1-4-1024x466.png" alt="1.- MongoDB on Debian 11" class="wp-image-32632" srcset="https://www.osradar.com/wp-content/uploads/2021/10/1-4-1024x466.png 1024w, https://www.osradar.com/wp-content/uploads/2021/10/1-4-300x136.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/1-4-768x349.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/1-4-696x316.png 696w, https://www.osradar.com/wp-content/uploads/2021/10/1-4-1068x486.png 1068w, https://www.osradar.com/wp-content/uploads/2021/10/1-4.png 1357w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- MongoDB on Debian 11</figcaption></figure>



<p>And once inside, it is recommended to create a new user different from the root.</p>



<pre class="wp-block-preformatted">use admin
db.createUser(
{
user: "osradar",
pwd: passwordPrompt(),
roles: [ { role: "userAdminAnyDatabase", db: "admin" }, "readWriteAnyDatabase" ]
}
)</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="741" height="360" src="https://www.osradar.com/wp-content/uploads/2021/10/2-4.png" alt="2.- Creating a new user for MongoDB" class="wp-image-32633" srcset="https://www.osradar.com/wp-content/uploads/2021/10/2-4.png 741w, https://www.osradar.com/wp-content/uploads/2021/10/2-4-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/2-4-696x338.png 696w" sizes="(max-width: 741px) 100vw, 741px" /><figcaption>2.- Creating a new user for MongoDB</figcaption></figure>



<p>Copy and paste the following but change <code>osradar</code> to the name of the user you want.</p>



<p>Then you will have to define a password that has to be secure.</p>



<h2 id="conclusion">Conclusion</h2>



<p>MongoDB is a tool to take into account if we want to develop applications that do not require a SQL database handler. Being open-source we can use it in many different situations with guaranteed performance and efficiency.</p>



<p><a href="https://www.mongodb.com/" target="_blank" rel="noreferrer noopener">MongoDB website</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-on-debian-11/">How to install MongoDB on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-mongodb-on-debian-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install MariaDB on Debian 11</title>
		<link>https://www.osradar.com/install-mariadb-database-debian/</link>
					<comments>https://www.osradar.com/install-mariadb-database-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 18 Aug 2021 22:14:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31730</guid>

					<description><![CDATA[<p>Hello, friends. It is not yet known for sure which is the most used database driver, but MariaDB has to be in the first place. So, in this post, you will learn how to install MariaDB on Debian 11. This step is essential if you want to have applications running on your system. MariaDB is [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mariadb-database-debian/">Install MariaDB on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. It is not yet known for sure which is the most used database driver, but MariaDB has to be in the first place. So, in this post, you will learn how to install MariaDB on Debian 11. This step is essential if you want to have applications running on your system.</p>



<p class="has-line-data"><a href="http://mariadb.com/" target="_blank" rel="noreferrer noopener">MariaDB </a>is a well-known archi Database Relationships Management System that is a MySQL fork. This is due to the purchase of Sun Mycrosystem by Oracle. It is perfectly compatible with MySQL and is available in most Linux distributions.</p>



<p class="has-line-data">Therefore, it is quite popular and many developers use it for their applications or even to manage the most sensitive data you can imagine.</p>



<p class="has-line-data">So, let’s go for it.</p>



<h2 class="code-line"><a id="Install_MariaDB_on_Debian_11_8"></a>Install MariaDB on Debian 11</h2>



<p class="has-line-data">As it usually happens, MariaDB is available from the official Debian 11 repositories. If you want to check it out, then, just run the following command</p>



<pre class="wp-block-preformatted">apt search mariadb</pre>



<p class="has-line-data">There you will see many packages related to MariaDB such as the server and the client.</p>



<p class="has-line-data">So, to install the server that concerns us today, then you can run the following command</p>



<pre class="wp-block-preformatted">apt install mariadb-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  galera-4 gawk libconfig-inifiles-perl libdbi-perl libmariadb3 libmpfr6 libsigsegv2 libsnappy1v5 mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common
  mariadb-server-10.5 mariadb-server-core-10.5 mysql-common socat
Suggested packages:
  gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl mailx mariadb-test netcat-openbsd
Recommended packages:
  libdbd-mariadb-perl | libdbd-mysql-perl libterm-readkey-perl libhtml-template-perl
The following NEW packages will be installed:
  galera-4 gawk libconfig-inifiles-perl libdbi-perl libmariadb3 libmpfr6 libsigsegv2 libsnappy1v5 mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common
  mariadb-server mariadb-server-10.5 mariadb-server-core-10.5 mysql-common socat
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.0 MB of archives.
After this operation, 157 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">There is a package that refers to the MariaDB client which is <code>mariadb-client</code> that you can install at your convenience.</p>



<p class="has-line-data">To check the version of MariaDB installed, you can run the following command</p>



<pre class="wp-block-preformatted">mariadb --version
mariadb Ver 15.1 Distrib 10.5.11-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper</pre>



<p class="has-line-data">As with other system services, when MariaDB is installed, it will be started and enabled so that it can start with the system.</p>



<p class="has-line-data">You can stop the service by running</p>



<pre class="wp-block-preformatted">systemctl stop mariadb</pre>



<p class="has-line-data">If you want to start it again, then run</p>



<pre class="wp-block-preformatted">systemctl start mariadb</pre>



<p class="has-line-data">Finally, you can check the status of the service by running this command</p>



<pre class="wp-block-preformatted">systemctl status mariadb
● mariadb.service - MariaDB 10.5.11 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-08-17 23:38:11 CEST; 21min ago
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 9881 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
    Process: 9882 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
    Process: 9884 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] &amp;&amp; VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]   &amp;&amp; systemctl se>
   Process: 9946 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
    Process: 9948 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
   Main PID: 9932 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 9 (limit: 2277)
     Memory: 89.9M
        CPU: 1.187s
     CGroup: /system.slice/mariadb.service
             └─9932 /usr/sbin/mariadbd

Aug 17 23:38:11 osradar mariadbd[9932]: 2021-08-17 23:38:11 0 [Note] InnoDB: 10.5.11 started; log sequence number 45130; transaction id 20
Aug 17 23:38:11 osradar mariadbd[9932]: 2021-08-17 23:38:11 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Aug 17 23:38:11 osradar mariadbd[9932]: 2021-08-17 23:38:11 0 [Note] InnoDB: Buffer pool(s) load completed at 210817 23:38:11
Aug 17 23:38:11 osradar mariadbd[9932]: 2021-08-17 23:38:11 0 [Note] Plugin 'FEEDBACK' is disabled.
Aug 17 23:38:11 osradar mariadbd[9932]: 2021-08-17 23:38:11 0 [Note] Server socket created on IP: '127.0.0.1'.
Aug 17 23:38:11 osradar mariadbd[9932]: 2021-08-17 23:38:11 0 [Note] Reading of all Master_info entries succeeded
Aug 17 23:38:11 osradar mariadbd[9932]: 2021-08-17 23:38:11 0 [Note] Added new Master_info '' to hash table
Aug 17 23:38:11 osradar mariadbd[9932]: 2021-08-17 23:38:11 0 [Note] /usr/sbin/mariadbd: ready for connections.
Aug 17 23:38:11 osradar mariadbd[9932]: Version: '10.5.11-MariaDB-1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Debian 11
Aug 17 23:38:11 osradar systemd[1]: Started MariaDB 10.5.11 database server.</pre>



<h2 class="code-line"><a id="Preparing_MariaDB_for_use_41"></a>Preparing MariaDB for use</h2>



<p class="has-line-data">When MariaDB is installed, it does not include a password for the root user, so it is immediately necessary to set one. For this, we have the <code>mysql_secure_installation</code> script to help us with this.</p>



<pre class="wp-block-preformatted">mysql_secure_installation</pre>



<p class="has-line-data">When prompted for the root user password, just press ENTER:</p>



<pre class="wp-block-preformatted">Enter current password for root (enter for none):</pre>



<p class="has-line-data">Now you can define the MariaDB authentication protocol.</p>



<pre class="wp-block-preformatted">If You already have your root account protected, so you can safely answer 'n'.
Switch to unix_socket authentication [Y/n]</pre>



<p class="has-line-data">And now yes, you can change the root password by answering Y to the question</p>



<pre class="wp-block-preformatted">Change the root password? [Y/n]
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables...
... Success!</pre>



<p class="has-line-data">Then, there follows a series of questions that have to do with MariaDB configuration and security. You can answer each one AND</p>



<pre class="wp-block-preformatted">Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y</pre>



<p class="has-line-data">And then the script will finish executing.</p>



<p class="has-line-data">With this, MariaDB will be ready for you to use and access the shell.</p>



<pre class="wp-block-preformatted">mysql -u root -p

Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 54
Server version: 10.5.11-MariaDB-1 Debian 11
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab, and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]></pre>



<p class="has-line-data">So, enjoy it</p>



<h2 class="code-line"><a id="Conclusion_88"></a>Conclusion</h2>



<p class="has-line-data">MariaDB is a database driver widely used by many programming enthusiasts. Learning how to install it can pave the way to getting the most out of it in this area.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mariadb-database-debian/">Install MariaDB on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-mariadb-database-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install OmniDB Server on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-omnidb-server-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-omnidb-server-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 11 Aug 2021 00:22:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[OmniDB]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31580</guid>

					<description><![CDATA[<p>Hello, friends. There are database management tools created with web technology such as PHPMyAdmin but there are also others that emerge as alternatives. So, in this post, you will learn how to deploy the OmniDB server on Ubuntu 20.04. OmniDB is a client for managing MySQL, MariaDB, PostgreSQL, and SQLite databases. It has two versions, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-omnidb-server-ubuntu-20-04/">Install OmniDB Server on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. There are database management tools created with web technology such as PHPMyAdmin but there are also others that emerge as alternatives. So, in this post, you will learn how to deploy the OmniDB server on Ubuntu 20.04.</p>



<p class="has-line-data"><a href="https://omnidb.org/">O</a><a href="https://omnidb.org/" target="_blank" rel="noreferrer noopener">m</a><a href="https://omnidb.org/">niDB</a> is a client for managing MySQL, MariaDB, PostgreSQL, and SQLite databases. It has two versions, a desktop version which we told you about some time ago and a self-hosted version. We will talk about the latter.</p>



<p class="has-line-data">This client allows us to install it on our server and access it from anywhere. Or even use it in an internal network for the same purposes. With OmniDB we will be able to do what it is expected to do, query, modify and manage databases; besides this, it includes SQL Editors with autocomplete and others.</p>



<p class="has-line-data">On the other hand, work unification is the order of the day thanks to Tab System with multiple contexts.</p>



<p class="has-line-data">So, let’s get started.</p>



<h2 class="code-line"><a id="Install_OmniDB_on_Ubuntu_2004_10"></a>Install OmniDB Server on Ubuntu 20.04</h2>



<p class="has-line-data">The process is quite simple thanks to the DEB package that the developers leave us. So, connect to your server and update it.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">Now, download OmniDB DEB package</p>



<pre class="wp-block-preformatted">cd /tmp/
wget https://github.com/OmniDB/OmniDB/releases/download/3.0.3b/omnidb-server_3.0.3b_linux_x86_64.deb
--2021-08-04 15:08:35--  https://github.com/OmniDB/OmniDB/releases/download/3.0.3b/omnidb-server_3.0.3b_linux_x86_64.deb
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/56064194/13663400-3ff3-11eb-8d0c-7de42ff344c5?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210804%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20210804T130835Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=b329de2c87863f6cbe238e861488be0337ed0570899b2395511ceac88222ab8f&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;key_id=0&amp;repo_id=56064194&amp;response-content-disposition=attachment%3B%20filename%3Domnidb-server_3.0.3b_linux_x86_64.deb&amp;response-content-type=application%2Foctet-stream [following]
--2021-08-04 15:08:35--  https://github-releases.githubusercontent.com/56064194/13663400-3ff3-11eb-8d0c-7de42ff344c5?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210804%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20210804T130835Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=b329de2c87863f6cbe238e861488be0337ed0570899b2395511ceac88222ab8f&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;key_id=0&amp;repo_id=56064194&amp;response-content-disposition=attachment%3B%20filename%3Domnidb-server_3.0.3b_linux_x86_64.deb&amp;response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.110.154, 185.199.111.154, 185.199.108.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.110.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51477258 (49M) [application/octet-stream]
Saving to: ‘omnidb-server_3.0.3b_linux_x86_64.deb’

omnidb-server_3.0.3b_linux_x86_64.deb     100%[=====================================================================================>]  49.09M  52.5MB/s    in 0.9s

2021-08-04 15:08:36 (52.5 MB/s) - ‘omnidb-server_3.0.3b_linux_x86_64.deb’ saved [51477258/51477258]</pre>



<p class="has-line-data">At the time of writing this post, the latest stable version is <code>3.0.3b</code> so you should check the project website before doing anything.</p>



<p class="has-line-data">Then, install it like any other package</p>



<pre class="wp-block-preformatted">sudo apt install ./omnidb-server_3.0.3b_linux_x86_64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'omnidb-server' instead of './omnidb-server_3.0.3b_linux_x86_64.deb'
The following NEW packages will be installed:
  omnidb-server
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/51.5 MB of archives.
After this operation, 53.0 MB of additional disk space will be used.
Get:1 /tmp/omnidb-server_3.0.3b_linux_x86_64.deb omnidb-server amd64 3.0.3 [51.5 MB]
Selecting previously unselected package omnidb-server.
(Reading database ... 28542 files and directories currently installed.)
Preparing to unpack .../omnidb-server_3.0.3b_linux_x86_64.deb ...
Unpacking omnidb-server (3.0.3) ...
Setting up omnidb-server (3.0.3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/omnidb.service → /etc/systemd/system/omnidb.service</pre>



<p class="has-line-data">When the process is finished, OmniDB will be ready to use.</p>



<h3 class="code-line"><a id="Configuring_OmniDB_30"></a>Configuring OmniDB Server</h3>



<p class="has-line-data">The OmniDB installation includes a Systemd service to manage the program.</p>



<p class="has-line-data">The first thing to do is to check the status of this service.</p>



<pre class="wp-block-preformatted">sudo systemctl status omnidb.service
● omnidb.service - OmniDB server daemon
     Loaded: loaded (/etc/systemd/system/omnidb.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2021-08-04 15:09:06 CEST; 1min 31s ago
    Process: 1466 ExecStart=/bin/bash -c /opt/omnidb-server/omnidb-server &amp; (code=exited, status=0/SUCCESS)
   Main PID: 1467 (omnidb-server)
      Tasks: 14 (limit: 4566)
     Memory: 266.9M
     CGroup: /system.slice/omnidb.service
             ├─1467 /opt/omnidb-server/omnidb-server
             └─1498 /opt/omnidb-server/omnidb-server

Aug 04 15:09:10 osradar bash[1498]:   Applying social_django.0008_partial_timestamp... OK
Aug 04 15:09:10 osradar bash[1498]:   Applying social_django.0009_auto_20191118_0520... OK
Aug 04 15:09:10 osradar bash[1498]:   Applying social_django.0010_uid_db_index... OK
Aug 04 15:09:10 osradar bash[1498]: Attempting to migrate users, connections and monitoring units and snippets from OmniDB 2 to 3...
Aug 04 15:09:10 osradar bash[1498]: Source database file does not contain the required tables, skipping...
Aug 04 15:09:10 osradar bash[1498]: Starting OmniDB server...
Aug 04 15:09:10 osradar bash[1498]: Checking port availability...
Aug 04 15:09:10 osradar bash[1498]: Starting server OmniDB 3.0.3b at 127.0.0.1:8000.
Aug 04 15:09:10 osradar bash[1498]: Open OmniDB in your favorite browser
Aug 04 15:09:10 osradar bash[1498]: Press Ctrl+C to exit</pre>



<p class="has-line-data">As you can see, it is running on <code>http://127.0.0.1:8000</code> but since we are installing it on a server, this is not useful.</p>



<p class="has-line-data">So, stop the service.</p>



<pre class="wp-block-preformatted">sudo systemctl stop omnidb.service</pre>



<p class="has-line-data">Now, initialize but with the <code>-p</code> options to define a port and <code>-H</code> to define the host.</p>



<pre class="wp-block-preformatted">omnidb-server -p 8080 -H 0.0.0.0.0
Attempting to migrate users, connections and monitoring units and snippets from OmniDB 2 to 3...
Source database file does not contain the required tables, skipping...
Starting OmniDB server...
Checking port availability...
Starting server OmniDB 3.0.3b at 0.0.0.0:8080.
Open OmniDB in your favorite browser
Press Ctrl+C to exit</pre>



<p class="has-line-data">Now yes. When you open the web browser and visit <code>http://ipserver:8080</code> you can see the login screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="511" src="https://www.osradar.com/wp-content/uploads/2021/08/1-2-1024x511.png" alt="1.- OmniDB login screen" class="wp-image-31589" srcset="https://www.osradar.com/wp-content/uploads/2021/08/1-2-1024x511.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/1-2-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/1-2-768x383.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/1-2-696x347.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/1-2-1068x533.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/1-2.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- OmniDB login screen</figcaption></figure>



<p class="has-line-data">Press <code>CTRL + C</code> to finish running OmniDB because we need to create a new user.</p>



<p class="has-line-data">This can be done as follows:</p>



<pre class="wp-block-preformatted">omnidb-server -u angelo 123456</pre>



<p class="has-line-data">Replace <code>angelo</code> with your username and <code>123456</code> with a more appropriate password.</p>



<p class="has-line-data">Now run it again and you will be able to log in. You will see the login screen and then the welcome screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="511" src="https://www.osradar.com/wp-content/uploads/2021/08/2-1-1024x511.png" alt="2.- OmniDB server on Ubuntu 20.04" class="wp-image-31590" srcset="https://www.osradar.com/wp-content/uploads/2021/08/2-1-1024x511.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/2-1-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/2-1-768x383.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/2-1-696x347.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/2-1-1068x533.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/2-1.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- OmniDB server on Ubuntu 20.04</figcaption></figure>



<p class="has-line-data">And you will be able to edit a connection.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="511" src="https://www.osradar.com/wp-content/uploads/2021/08/3-1024x511.png" alt="3.- Set a new Connection" class="wp-image-31591" srcset="https://www.osradar.com/wp-content/uploads/2021/08/3-1024x511.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/3-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/3-768x383.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/3-696x347.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/3-1068x533.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Set a new Connection</figcaption></figure>



<h2 class="code-line"><a id="Optional_Using_Nginx_as_a_reverse_proxy_62"></a>Optional: Using Nginx as a reverse proxy</h2>



<p class="has-line-data">The default is that we have to use a reverse proxy like Nginx and from there manage the connection to OmniDB. This is very well detailed in the official documentation.</p>



<p class="has-line-data">So, if OmniDB is running, stop it. Either using the service or manually.</p>



<p class="has-line-data">Install Nginx</p>



<pre class="wp-block-preformatted">sudo apt install nginx</pre>



<p class="has-line-data">And create a new configuration file for Nginx</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/sites-available/omnidb</pre>



<p class="has-line-data">Now add the following</p>



<pre class="wp-block-preformatted">server {
    listen 443 ssl;
    listen [::]:443 ssl;
    include snippets/ssl-domain.conf;
    include snippets/ssl-params.conf;
    server_name domain.org;
    client_max_body_size 75M;

    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Ssl https;
        proxy_set_header   X-Forwarded-Proto https;
        proxy_set_header   X-Forwarded-Port 443;
        proxy_set_header   Host $host;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}</pre>



<p class="has-line-data">Remember to replace <code>server_name</code> with your domain.</p>



<p class="has-line-data">Save the changes and close the editor.</p>



<p class="has-line-data">Check the Nginx syntax for an error.</p>



<pre class="wp-block-preformatted">sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful</pre>



<p class="has-line-data">For all this to work, it is necessary to edit the default OmniDB configuration file.</p>



<pre class="wp-block-preformatted">sudo nano ~/.omnidb/omnidb-server/config.py</pre>



<p class="has-line-data">And make sure to leave these values as follows</p>



<pre class="wp-block-preformatted">LISTENING_ADDRESS = '127.0.0.1'
LISTENING_PORT = 8000IS_SSL = False
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True</pre>



<p class="has-line-data">Save the changes and close the editor.</p>



<p class="has-line-data">The next step is to create an SSL certificate with Let’s Encrypt. So, install certbot and the Nginx plugin.</p>



<pre class="wp-block-preformatted">sudo apt install certbot python3-certbot-nginx</pre>



<p class="has-line-data">And generate the certificate</p>



<pre class="wp-block-preformatted">sudo certbot --nginx -d [domain]</pre>



<p class="has-line-data">Put your domain and accept the license terms and you are done.</p>



<p class="has-line-data">Finish the process by starting the OmniDB service and restarting Nginx.</p>



<pre class="wp-block-preformatted">sudo systemctl start omnidb
sudo systemctl restart nginx</pre>



<p class="has-line-data">Now login from your browser in a secure way.</p>



<h2 class="code-line"><a id="Conclusion_120"></a>Conclusion</h2>



<p class="has-line-data">Tools like OmniDB are very welcome because they allow us to have flexibility in accessing our databases. With this tool, you can set up a web interface that you can access from anywhere to manage a database anywhere. So, enjoy it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-omnidb-server-ubuntu-20-04/">Install OmniDB Server on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-omnidb-server-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</title>
		<link>https://www.osradar.com/install-postgresql-13-centos-8/</link>
					<comments>https://www.osradar.com/install-postgresql-13-centos-8/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 18 Jun 2021 23:25:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13249</guid>

					<description><![CDATA[<p>PostgreSQL is one of the most popular database management systems in the world. Its robustness, high availability, and ease of installation make it perhaps the most advanced in the world. Despite easy installation, not always many users do. So, in this post, I will show you how to install PostgreSQL 13 on CentOS 8 / [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-13-centos-8/">How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PostgreSQL is one of the most popular database management systems in the world. Its robustness, high availability, and ease of installation make it perhaps the most advanced in the world. Despite easy installation, not always many users do. So, in this post, I will show you how to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8. In addition, we&#8217;ll show you the most basic configurations. At the end of the post, you will have a PostgreSQL installation ready to start working.</p>
<h2>Install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>Both RHEL 8 and its derivatives include <a href="https://www.osradar.com/tag/postgresql/">PostgreSQL</a> 10 in their repositories. However, we already have available version 13. And it is recommended to install it because thanks to it, we can enjoy interesting news and improvements in the performance of the application. Important, if we are going to store large quantities of records.</p>
<p>So first, open a terminal session. Or if you are using a server connect to it using ssh.</p>
<pre>:~$ ssh [your-user]@[your-host]</pre>
<p>Then log in as the root user.</p>
<pre>:~$ su
:~#</pre>
<p>The best way to install PostgreSQL 13 on CentOS 8, RHEL 8 and Oracle Linux 8 is to add the official PostgreSQL refill. Not only is it easy, but also safe and the possibility to be always up to date.</p>
<p>To do this, run the following command:</p>
<pre>:~# dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm</pre>
<p><figure id="attachment_13268" aria-describedby="caption-attachment-13268" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13268" src="https://www.osradar.com/wp-content/uploads/2019/08/1-23.jpeg" alt="1.- Add the PostgreSQL repository" width="1366" height="355" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-23.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-300x78.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-768x200.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-1024x266.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-696x181.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-1068x278.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13268" class="wp-caption-text">1.- Add the PostgreSQL repository</figcaption></figure></p>
<p>Then, disable the PostgreSQL module on CentOS 8.</p>
<pre>:~# dnf module disable postgresql</pre>
<p>Now, install PostgreSQL 13 on CentOS 8.</p>
<pre>:~# dnf install postgresql13-server postgresql13</pre>
<p><figure id="attachment_30666" aria-describedby="caption-attachment-30666" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30666 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/2-23.png" alt="2.- Install PostgreSQL 13 8 on AlmaLinux OS 8 / CentOS 8" width="1364" height="435" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-23.png 1364w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-300x96.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-1024x327.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-768x245.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-696x222.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-1068x341.png 1068w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-30666" class="wp-caption-text">2.- Install PostgreSQL 13 8 on AlmaLinux OS 8 / CentOS 8</figcaption></figure></p>
<p>After that, let us configure it.</p>
<h2>Configure PostgreSQL on CentOS / RHEL 8 / Oracle Linux 8</h2>
<h3>Initialize PostgreSQL database and start the service</h3>
<p>After installing it, the first thing to do is to initialize the database. To achieve this, it is necessary to execute the following command:</p>
<pre>:~# /usr/pgsql-13/bin/postgresql-13-setup initdb
Initializing database ... OK</pre>
<p>With this, we will have already started the initial database. At this point, the PostgreSQL service is not enable, so you can&#8217;t use it yet. Then you have to do it.</p>
<pre>:~# systemctl enable postgresql-13</pre>
<p>Then, if you want PostgreSQL to start along with the system run this command:</p>
<pre>:~# systemctl start postgresql-13</pre>
<p>To check that everything is going well, check the status of the service:</p>
<pre>:~# systemctl status postgresql-13</pre>
<p><figure id="attachment_30667" aria-describedby="caption-attachment-30667" style="width: 1167px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30667 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/3-22.png" alt="3.- PostgreSQL status" width="1167" height="481" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-22.png 1167w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-300x124.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-1024x422.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-768x317.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-696x287.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-1068x440.png 1068w" sizes="(max-width: 1167px) 100vw, 1167px" /><figcaption id="caption-attachment-30667" class="wp-caption-text">3.- PostgreSQL status</figcaption></figure></p>
<p>As you can see, everything&#8217;s fine.</p>
<h3>Change the password to the &#8220;postgres&#8221; user and allow the remote connections</h3>
<p>During the installation of PostgreSQL, a new user called postgres is created. The problem is that you do not define a password, so it makes you vulnerable. To avoid problems, it is convenient to create a password.</p>
<p>To do this, just use the Unix passwd command.</p>
<pre>:~# passwd postgres</pre>
<p>There you will have to enter the password twice. If both are effective, the final change will be made.</p>
<p>Now, we have to allow access to remote connections. The client must be installed on each of the systems that will access PostgreSQL. It will depend on each operating system.</p>
<p>Then, a good security measure is to specify the hosts that can access it. Of course, if the data will be served on the Internet, then it is necessary to allow all the accesses.</p>
<pre>:~# nano /var/lib/pgsql/13/data/postgresql.conf
</pre>
<p>then searches for the listen_addresses line and places the hosts that can access it. If you allow any access, type &#8216;*&#8217;.</p>
<pre>listen_addresses = '[host/IP_adress]'
or
listen_addresses = '*'</pre>
<p><figure id="attachment_13272" aria-describedby="caption-attachment-13272" style="width: 766px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13272" src="https://www.osradar.com/wp-content/uploads/2019/08/5-10.jpeg" alt="5.- Allow the remote connections" width="766" height="352" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-10.jpeg 766w, https://www.osradar.com/wp-content/uploads/2019/08/5-10-300x138.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-10-696x320.jpeg 696w" sizes="(max-width: 766px) 100vw, 766px" /><figcaption id="caption-attachment-13272" class="wp-caption-text">5.- Allow the remote connections</figcaption></figure></p>
<p>Then, restart PostgreSQL.</p>
<pre>:~# systemctl restart postgresql-13</pre>
<p>Finally, you have to open the port 5432 on the firewall to allow the connections.</p>
<pre>:~# firewall-cmd --add-port=5432/tcp --permanent
success
:~# firewall-cmd --reload
success</pre>
<p>Now, you can access to the PostgreSQL shell.</p>
<pre>:~# su - postgres
:~# psql</pre>
<p>Now, you can start to work.</p>
<h2>Conclusion</h2>
<p>PostgreSQL is one of the best there is for databases. Thanks to its community spirit, it is possible to find a lot of documentation about it. On the other hand, installing version 13 on CentOS 8, RHEL 8 and Oracle Linux 8 is quite simple as you have seen in this post.</p>
<p>Also, you can read <a href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu18-04/" rel="noopener noreferrer">how to install Postgresql on Ubuntu 18.04?</a></p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-13-centos-8/">How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-postgresql-13-centos-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PostgreSQL 13 on Debian 10?</title>
		<link>https://www.osradar.com/how-to-install-postgresql-13-debian-10/</link>
					<comments>https://www.osradar.com/how-to-install-postgresql-13-debian-10/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 17 Jun 2021 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18461</guid>

					<description><![CDATA[<p>Hi, friends, in this post, I&#8217;ll show you how to install PostgreSQL 13 on Debian 10. PostgreSQL 13 is the latest stable version of what is perhaps the most advanced open-source relational database manager. So many sysadmin need to have it on the different servers. If you want to know all the news or at [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-postgresql-13-debian-10/">How to install PostgreSQL 13 on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Hi, friends, in this post, I&#8217;ll show you how to install PostgreSQL 13 on Debian 10.</strong></p>
<p>PostgreSQL 13 is the latest stable version of what is perhaps the most advanced open-source relational database manager. So many sysadmin need to have it on the different servers.</p>
<p>If you want to know all the news or at least the most important ones, you can read this post</p>
<p><a href="https://www.postgresql.org/about/news/postgresql-13-released-2077/" target="_blank" rel="noopener noreferrer">PostgreSQL 13 is available</a></p>
<p>Well, PostgreSQL 13 comes with many important improvements and it&#8217;s a good time to install it. That&#8217;s what this post is about.</p>
<p>So let&#8217;s go for it.</p>
<h2>Install PostgreSQL 13 on Debian</h2>
<p>PostgreSQL is included in the official Debian repositories, but not in version 13 but in version 11.</p>
<p>The installation of PostgreSQL 13 is possible thanks to the repository it has for APT package managers that is used by Debian, Ubuntu, Linux Mint and derivatives.</p>
<p>So let&#8217;s start.</p>
<p>First, open a terminal session or connect to your server using SSH. Then, install some necessary packages:</p>
<pre>:~$ sudo apt install gnupg gnupg2</pre>
<p>At the end, the PostgreSQL 13 repository should be added to the list of Debian software sources. To do this, create the following file:</p>
<pre>:~$ sudo nano /etc/apt/sources.list.d/pgdg.list</pre>
<p>And in it he adds the following:</p>
<pre>deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main</pre>
<p><figure id="attachment_18614" aria-describedby="caption-attachment-18614" style="width: 910px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18614" src="https://www.osradar.com/wp-content/uploads/2020/02/1-18.png" alt="1.- Adding the postgresql repository" width="910" height="109" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-18.png 910w, https://www.osradar.com/wp-content/uploads/2020/02/1-18-300x36.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-18-768x92.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-18-696x83.png 696w" sizes="(max-width: 910px) 100vw, 910px" /><figcaption id="caption-attachment-18614" class="wp-caption-text">1.- Adding the postgresql repository</figcaption></figure></p>
<p>Then save the changes by pressing CTRL + O and close the file by pressing CTRL + X.</p>
<p>For the repository to be accepted by the system, you need to add the gpg key to it. To do this, use the following command:</p>
<pre>:~$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
OK</pre>
<p><figure id="attachment_18615" aria-describedby="caption-attachment-18615" style="width: 991px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18615" src="https://www.osradar.com/wp-content/uploads/2020/02/2-17.png" alt="2.- Adding the GPG key for the repository" width="991" height="129" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-17.png 991w, https://www.osradar.com/wp-content/uploads/2020/02/2-17-300x39.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-17-768x100.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-17-696x91.png 696w" sizes="(max-width: 991px) 100vw, 991px" /><figcaption id="caption-attachment-18615" class="wp-caption-text">2.- Adding the GPG key for the repository</figcaption></figure></p>
<p>Once the process has been completed, simply update the APT cache.</p>
<pre>:~$ sudo apt update</pre>
<p>You can now view all the packages related to PostgreSQL 13 by typing</p>
<pre>:~$ sudo apt install postgresql-13</pre>
<p>But don&#8217;t press enter, just press the TAB key and you&#8217;ll see the following:</p>
<p><figure id="attachment_30630" aria-describedby="caption-attachment-30630" style="width: 1279px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30630 size-full" src="https://www.osradar.com/wp-content/uploads/2020/03/3-27.png" alt="3.- All postgresql 13 packages" width="1279" height="713" srcset="https://www.osradar.com/wp-content/uploads/2020/03/3-27.png 1279w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-1024x571.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-768x428.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-696x388.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-1068x595.png 1068w" sizes="(max-width: 1279px) 100vw, 1279px" /><figcaption id="caption-attachment-30630" class="wp-caption-text">3.- All postgresql 13 packages</figcaption></figure></p>
<p>As you can see in the image, we have PostgreSQL 13 available. So to install it run the following command:</p>
<pre>:~$ sudo apt install postgresql-13
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following additional packages will be installed:
libgdbm-compat4 libjson-perl libllvm7 libperl5.28 libpq5 libxslt1.1 perl pgdg-keyring postgresql-client-13 postgresql-client-common postgresql-common ssl-cert
Suggested packages:
perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl postgresql-doc-13 openssl-blacklist
Recommended packages:
libjson-xs-perl sysstat
The following NEW packages will be installed:
libgdbm-compat4 libjson-perl libllvm7 libperl5.28 libpq5 libxslt1.1 perl pgdg-keyring postgresql-13 postgresql-client-13 postgresql-client-common postgresql-common
ssl-cert
0 upgraded, 13 newly installed, 0 to remove and 10 not upgraded.
Need to get 34.5 MB of archives.
After this operation, 145 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>
<p><figure id="attachment_30631" aria-describedby="caption-attachment-30631" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30631 size-full" src="https://www.osradar.com/wp-content/uploads/2020/03/4-22.png" alt="4.- Install PostgreSQL 13 on Debian 10" width="1365" height="307" srcset="https://www.osradar.com/wp-content/uploads/2020/03/4-22.png 1365w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-1024x230.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-768x173.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-696x157.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-1068x240.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-30631" class="wp-caption-text">4.- Install PostgreSQL 13 on Debian 10</figcaption></figure></p>
<p>Now we&#8217;ll see if everything went well.</p>
<h2>Testing the installation</h2>
<p>By default, Debian when installing PostgreSQL starts and enables the service. Therefore, it is ready to be tested. However, if you want to stop the service, you can use this command:</p>
<pre>:~$ sudo systemctl stop postgresql</pre>
<p>On the other hand, the best way to know if PostgreSQL is ready for work is to execute some command from the console. So we&#8217;ll access it first:</p>
<pre>:~$ sudo -i -u postgres</pre>
<p>Remember that the PostgreSQL console is accessed through the postgres user.</p>
<p>And finally, we access with this command:</p>
<pre>:~# psql</pre>
<p>Once inside, we can, for example, display all the databases in the system:</p>
<pre>:~# \l</pre>
<p><figure id="attachment_18618" aria-describedby="caption-attachment-18618" style="width: 885px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18618" src="https://www.osradar.com/wp-content/uploads/2020/02/5-12.png" alt="5.- All postgresql databases" width="885" height="317" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-12.png 885w, https://www.osradar.com/wp-content/uploads/2020/02/5-12-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/5-12-768x275.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/5-12-696x249.png 696w" sizes="(max-width: 885px) 100vw, 885px" /><figcaption id="caption-attachment-18618" class="wp-caption-text">5.- All postgresql databases</figcaption></figure></p>
<p>And so we can work without problems with PostgreSQL.</p>
<h2>Conclusion</h2>
<p>PostgreSQL 13 is a powerful database manager that is used in many projects worldwide. This makes many people want to have the latest stable versions to take even more advantage of the tool.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-postgresql-13-debian-10/">How to install PostgreSQL 13 on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-postgresql-13-debian-10/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install MySQL on Fedora 34/33?</title>
		<link>https://www.osradar.com/install-mysql-fedora/</link>
					<comments>https://www.osradar.com/install-mysql-fedora/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 13 May 2021 06:25:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora 31]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15192</guid>

					<description><![CDATA[<p>Fedora is a great distribution. It is a very used distribution although not as much as Ubuntu or Linux Mint. However, it is still a reference for its bold innovations. Well, many developers choose it to carry out their projects or to incursionar in the programming. So, learning to install MySQL on Fedora 34/33 becomes [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mysql-fedora/">How to install MySQL on Fedora 34/33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.osradar.com/fedora-31-available/" target="_blank" rel="noopener noreferrer">Fedora</a> is a great distribution. It is a very used distribution although not as much as Ubuntu or Linux Mint. However, it is still a reference for its bold innovations. Well, many developers choose it to carry out their projects or to incursionar in the programming. So, learning to install MySQL on Fedora 34/33 becomes quite necessary for this purpose. So that&#8217;s what this article is all about.</p>
<p>As we already know since Oracle took over MySQL many Linux distributions, they took it out of their official repositories. This resulted in the incorporation of a fork called <a href="https://osradar.com/tag/mariadb/" target="_blank" rel="noopener noreferrer">MariaDB</a>. In terms of compatibility everything is guaranteed but it is true that many developers still prefer to use MySQL. So, <strong>you have to use another repository for it</strong>.</p>
<h2>Install MySQL on Fedora 34/33</h2>
<p><a href="https://www.oracle.com/" target="_blank" rel="noopener noreferrer">Oracle</a> provides us with a repository to install <a href="https://osradar.com/tag/mysql/" target="_blank" rel="noopener noreferrer">MySQL</a>. Specifically, version 8.0 is loaded with interesting new features. So, the first step is to open a terminal session and execute the following command to add the MySQL repository.</p>
<p>For Fedora 34</p>
<pre>:~$ sudo dnf install https://dev.mysql.com/get/mysql80-community-release-fc34-1.noarch.rpm</pre>
<p>For Fedora 33:</p>
<pre>:~$ sudo dnf install https://dev.mysql.com/get/mysql80-community-release-fc33-1.noarch.rpm</pre>
<figure id="attachment_29986" aria-describedby="caption-attachment-29986" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29986 size-full" src="https://www.osradar.com/wp-content/uploads/2021/03/111.png" alt="1.- Adding the MySQL repository to Fedora 34/33" width="1365" height="575" srcset="https://www.osradar.com/wp-content/uploads/2021/03/111.png 1365w, https://www.osradar.com/wp-content/uploads/2021/03/111-300x126.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/111-1024x431.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/111-768x324.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/111-696x293.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/111-1068x450.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-29986" class="wp-caption-text">1.- Adding the MySQL repository to Fedora 34/33</figcaption></figure>
<p>Then, once the repository is correctly added, we can install MySQL with the following command:</p>
<pre>:~$ sudo dnf install mysql-community-server</pre>
<p>And already, but before using it you have to make a few small configurations.</p>
<h2>Using MySQL</h2>
<p>MySQL is already installed, but you have to start the service to use it. So, run this command:</p>
<pre>:~$ sudo systemctl start mysqld</pre>
<p>If you want MySQL to start along with the system, use this other command as well:</p>
<pre>:~$ sudo systemctl enable mysqld</pre>
<p>For security reasons, MySQL generates a temporary root key. Please note that MySQL has even stricter security policies than MariaDB.</p>
<p>Then, you have to show which is the temporary password generated to be able to run the <code>mysql_secure_installation</code> script and be able to set a definite root key.</p>
<p>To do this, use the following command:</p>
<pre>:~$ sudo cat /var/log/mysqld.log</pre>
<figure id="attachment_29987" aria-describedby="caption-attachment-29987" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29987 size-full" src="https://www.osradar.com/wp-content/uploads/2021/03/222222.png" alt="2.- Configuring MySQL before the first use" width="1365" height="355" srcset="https://www.osradar.com/wp-content/uploads/2021/03/222222.png 1365w, https://www.osradar.com/wp-content/uploads/2021/03/222222-300x78.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/222222-1024x266.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/222222-768x200.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/222222-696x181.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/222222-1068x278.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-29987" class="wp-caption-text">2.- Configuring MySQL before the first use</figcaption></figure>
<p>In the image you can see, the generated key. Remember that in each case, it is different.</p>
<p>Then we can use the <code>mysql_secure_installation</code> script. In this script we will be able to set the definitive root password and make other security settings for the server.</p>
<pre>:~$ sudo mysql_secure_installation</pre>
<p>Enter the temporary key you previously obtained and you will immediately be able to establish yours.</p>
<p>MySQL has a plugin that does not allow weak passwords, so it establishes a strong one with numbers, signs and combinations of lower and uppercase letters.</p>
<p>Then, answer the security questions as you prefer. I said yes to all of them.</p>
<figure id="attachment_15253" aria-describedby="caption-attachment-15253" style="width: 1106px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-15253 size-full" src="https://www.osradar.com/wp-content/uploads/2019/11/4-e1620671953556.png" alt="3.- using the mysql_secure_installation script" width="1106" height="650" srcset="https://www.osradar.com/wp-content/uploads/2019/11/4-e1620671953556.png 1106w, https://www.osradar.com/wp-content/uploads/2019/11/4-e1620671953556-300x176.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/4-e1620671953556-768x451.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/4-e1620671953556-1024x602.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/4-e1620671953556-696x409.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/4-e1620671953556-1068x628.png 1068w" sizes="(max-width: 1106px) 100vw, 1106px" /><figcaption id="caption-attachment-15253" class="wp-caption-text">3.- using the mysql_secure_installation script</figcaption></figure>
<p>Now, you can use MySQL without problems. To do this, access the console with this command:</p>
<pre>:~$ sudo mysql -u root -p</pre>
<figure id="attachment_15252" aria-describedby="caption-attachment-15252" style="width: 890px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-15252 size-full" src="https://www.osradar.com/wp-content/uploads/2019/11/5-e1620672014231.png" alt="4.- MySQL on Fedora 34 / 33" width="890" height="293" srcset="https://www.osradar.com/wp-content/uploads/2019/11/5-e1620672014231.png 890w, https://www.osradar.com/wp-content/uploads/2019/11/5-e1620672014231-300x99.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/5-e1620672014231-768x253.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/5-e1620672014231-696x229.png 696w" sizes="(max-width: 890px) 100vw, 890px" /><figcaption id="caption-attachment-15252" class="wp-caption-text">4.- MySQL on Fedora 34 / 33</figcaption></figure>
<p>So, enjoy it.</p>
<h2>Conclusion</h2>
<p>MySQL continues to be the reference of the database relations handlers in Linux. However, as it is not present in the official repositories of Linux distributions, you have to take extra steps to install it.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mysql-fedora/">How to install MySQL on Fedora 34/33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-mysql-fedora/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install RavenDB on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-ravendb-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-ravendb-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 16 Feb 2021 00:54:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[ravendb]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28485</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install RavenDB on Ubuntu 20.04. If you are a developer or you are thinking to start in this world, you will find this post very interesting. RavenDB is a NoSQL database manager written in C#. With a RavenDB database, you can set up a NoSQL [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-ravendb-ubuntu-20-04/">How to install RavenDB on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install RavenDB on Ubuntu 20.04. If you are a developer or you are thinking to start in this world, you will find this post very interesting.</p>



<p><a href="https://ravendb.net/">RavenDB</a> is a NoSQL database manager written in C#. With a RavenDB database, you can set up a NoSQL data architecture or add a NoSQL layer to your current relational database.</p>



<p>Many companies rely on the potential of RavenDB, such as Toyota or Verizon, which gives us an idea of its data management capabilities.</p>



<p>With RavenDB you can handle data in the form of documents like others but with a lot of solvency and with an emphasis on performance. It can also be integrated with relational databases.</p>



<h2 id="install-ravendb-on-ubuntu-20.04"><a href="#install-ravendb-on-ubuntu-20.04" name="install-ravendb-on-ubuntu-20.04"></a>Install RavenDB on Ubuntu 20.04</h2>



<p>Thanks to the great support provided by RavenDB it is possible to install it without much hassle.</p>



<p>So, open a terminal and update APT.</p>



<pre class="wp-block-preformatted">sudo apt update</pre>



<p>Then install the <code>apt-transport-https</code> package that we will need later on.</p>



<pre class="wp-block-preformatted">sudo apt install apt-transport-https</pre>



<p>Next, download a Microsoft package to install .NET core.</p>



<pre class="wp-block-preformatted">wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb</pre>



<p>And proceed to install the downloaded package:</p>



<pre class="wp-block-preformatted">sudo apt install ./packages-microsoft-prod.deb</pre>



<p>Refresh APT again to apply the changes to the software sources</p>



<pre class="wp-block-preformatted">sudo apt update</pre>



<p>Now install .NET core:</p>



<pre class="wp-block-preformatted">sudo apt install aspnetcore-runtime-3.1</pre>



<p>After this, we can download RavenDB using <a href="https://www.osradar.com/the-wget-command/">the <code>wget</code> command</a></p>



<pre class="wp-block-preformatted">wget https://hibernatingrhinos.com/downloads/RavenDB%20for%20Linux%20x64/latest -O ravendb.tar.bz2
--2021-02-12 15:20:32--  https://hibernatingrhinos.com/downloads/RavenDB%20for%20Linux%20x64/latest
Resolving hibernatingrhinos.com (hibernatingrhinos.com)... 35.209.133.255
Connecting to hibernatingrhinos.com (hibernatingrhinos.com)|35.209.133.255|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://daily-builds.s3.amazonaws.com/RavenDB-5.1.4-linux-x64.tar.bz2 [following]
--2021-02-12 15:20:33--  https://daily-builds.s3.amazonaws.com/RavenDB-5.1.4-linux-x64.tar.bz2
Resolving daily-builds.s3.amazonaws.com (daily-builds.s3.amazonaws.com)... 52.217.91.84
Connecting to daily-builds.s3.amazonaws.com (daily-builds.s3.amazonaws.com)|52.217.91.84|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66149673 (63M) [application/octet-stream]
Saving to: ‘ravendb.tar.bz2’

ravendb.tar.bz2                            100%[=====================================================================================>]  63.08M  1.63MB/s    in 22s     

2021-02-12 15:20:56 (2.84 MB/s) - ‘ravendb.tar.bz2’ saved [66149673/66149673]</pre>



<p>Then, decompress it to a safe location. I will opt for the <code>home</code> directory</p>



<pre class="wp-block-preformatted">tar xvjf ravendb.tar.bz2</pre>



<p>And then assign the corresponding permission.</p>



<p>Inside the generated folder called <code>RavenDB</code> is a file called <code>run.sh</code> that when executed will start the program, but we will make some configurations before.</p>



<h2 id="configuring-ravendb-before-using-it"><a href="#configuring-ravendb-before-using-it" name="configuring-ravendb-before-using-it"></a>Configuring RavenDB before using it</h2>



<p>As I said, if you run that file already RavenDB will run without problems, but it is better to create a new <code>systemd</code> entry for the program.</p>



<p>The main advantage of this is that we will be able to manage RavenDB as a service of the system, so starting it, stopping it, checking its status becomes very easy.</p>



<p>So, let’s do it. Open a new configuration file</p>



<pre class="wp-block-preformatted">sudo nano /etc/systemd/system/ravendb.service</pre>



<p>And inside it, add the following :</p>



<pre class="wp-block-preformatted">[Unit]
Description=RavenDB v4.0
After=network.target

[Service]
LimitCORE=infinity
LimitNOFILE=65536
LimitRSS=infinity
LimitAS=infinity
User=angelo
Restart=on-failure
Type=simple
ExecStart=/home/angelo/RavenDB/run.sh<code data-origin="<pre&gt;<code&gt;[Unit]
Description=RavenDB v4.0
After=network.target

[Service]
LimitCORE=infinity
LimitNOFILE=65536
LimitRSS=infinity
LimitAS=infinity
User=angelo
Restart=on-failure
Type=simple
ExecStart=/home/angelo/RavenDB/run.sh

[Install]
WantedBy=multi-user.target
</code&gt;</pre&gt;
<p&gt;"></code>

<code data-origin="

<pre&gt;<code&gt;[Unit]
Description=RavenDB v4.0
After=network.target

[Service]
LimitCORE=infinity
LimitNOFILE=65536
LimitRSS=infinity
LimitAS=infinity
User=angelo
Restart=on-failure
Type=simple
ExecStart=/home/angelo/RavenDB/run.sh

[Install]
WantedBy=multi-user.target
</code&gt;</pre&gt;
<p&gt;">[Install]
WantedBy=multi-user.target
 </code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="876" height="320" src="https://www.osradar.com/wp-content/uploads/2021/02/1-4.png" alt="1.- Configuring the RavenDB service" class="wp-image-28490" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-4.png 876w, https://www.osradar.com/wp-content/uploads/2021/02/1-4-300x110.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-4-768x281.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-4-696x254.png 696w" sizes="(max-width: 876px) 100vw, 876px" /><figcaption>1.- Configuring the RavenDB service</figcaption></figure>



<p>Replace the username which in this case is <code>angelo</code>. Save the changes and close the editor.</p>



<p>To apply the changes you have to refresh the list of services.</p>



<pre class="wp-block-preformatted">sudo systemctl daemon-reload</pre>



<p>Before starting it we have to know the following, by default, <strong>RavenDB is prepared to run on localhost</strong>. So if you start it, to complete the installation you have to open a web browser and go to <code>http://localhost:41105</code> but there are cases where it is convenient to run RavenDB on a server. <strong>If this is your case, then you have to configure some more things.</strong></p>



<p>The RavenDB configuration file is very simple so open it but before modifying it <strong>create a backup</strong></p>



<pre class="wp-block-preformatted">cp ~/RavenDB/Server/settings.json ~/RavenDB/Server/settings.json.bak
sudo nano ~/RavenDB/Server/settings.json</pre>



<p>And add the following:</p>



<pre class="wp-block-preformatted">{
    "<span class="hljs-attribute">ServerUrl</span>": <span class="hljs-value"><span class="hljs-string">"http://159.69.48.203:8080"</span></span>,
    "<span class="hljs-attribute">Setup.Mode</span>": <span class="hljs-value"><span class="hljs-string">"Unsecured"</span></span>,
    "<span class="hljs-attribute">DataDir</span>": <span class="hljs-value"><span class="hljs-string">"RavenData"</span></span>,
    "<span class="hljs-attribute">Security.UnsecuredAccessAllowed</span>": <span class="hljs-value"><span class="hljs-string">"PublicNetwork"</span></span>,
    "<span class="hljs-attribute">ServerUrl.Tcp</span>": <span class="hljs-value"><span class="hljs-string">"tcp://159.69.48.203:38888"</span>
</span>}</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="973" height="246" src="https://www.osradar.com/wp-content/uploads/2021/02/2-2.png" alt="2.- Configuring RavenDB" class="wp-image-28491" srcset="https://www.osradar.com/wp-content/uploads/2021/02/2-2.png 973w, https://www.osradar.com/wp-content/uploads/2021/02/2-2-300x76.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/2-2-768x194.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/2-2-696x176.png 696w" sizes="(max-width: 973px) 100vw, 973px" /><figcaption>2.- Configuring RavenDB</figcaption></figure>



<p>Replace <code>127.0.0.1</code> with the IP address of your server.</p>



<p>Save the changes and close the editor. Now start RavenDB</p>



<pre class="wp-block-preformatted">sudo systemctl start ravendb
sudo systemctl enable ravendb</pre>



<p>And check the status of the service:</p>



<pre class="wp-block-preformatted">sudo systemctl status ravendb
● ravendb.service - RavenDB v4.0
     Loaded: loaded (/etc/systemd/system/ravendb.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-02-12 15:35:14 CET; 4s ago
   Main PID: 5839 (run.sh)
      Tasks: 24 (limit: 4567)
     Memory: 61.5M
     CGroup: /system.slice/ravendb.service
             ├─5839 /bin/bash /home/angelo/RavenDB/run.sh
             └─5876 ./Raven.Server --browser

Feb 12 15:35:16 osradar run.sh[5876]:       | |__) |__ ___   _____ _ __ | |  | | |_) |
Feb 12 15:35:16 osradar run.sh[5876]:       |  _  // _` \ \ / / _ \ '_ \| |  | |  _ &lt;
Feb 12 15:35:16 osradar run.sh[5876]:       | | \ \ (_| |\ V /  __/ | | | |__| | |_) |
Feb 12 15:35:16 osradar run.sh[5876]:       |_|  \_\__,_| \_/ \___|_| |_|_____/|____/
Feb 12 15:35:16 osradar run.sh[5876]:       Safe by default, optimized for efficiency
Feb 12 15:35:16 osradar run.sh[5876]:  Build 51016, Version 5.1, SemVer 5.1.4, Commit f8d499a
Feb 12 15:35:16 osradar run.sh[5876]:  PID 5876, 64 bits, 2 Cores, Phys Mem 3.75 GBytes, Arch: X64
Feb 12 15:35:16 osradar run.sh[5876]:  Source Code (git repo): https://github.com/ravendb/ravendb
Feb 12 15:35:16 osradar run.sh[5876]:  Built with love by Hibernating Rhinos and awesome contributors!
Feb 12 15:35:16 osradar run.sh[5876]: +---------------------------------------------------------------+
</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="937" height="392" src="https://www.osradar.com/wp-content/uploads/2021/02/3-1.png" alt="3.- Service status" class="wp-image-28492" srcset="https://www.osradar.com/wp-content/uploads/2021/02/3-1.png 937w, https://www.osradar.com/wp-content/uploads/2021/02/3-1-300x126.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/3-1-768x321.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/3-1-696x291.png 696w" sizes="(max-width: 937px) 100vw, 937px" /><figcaption>3.- Service status</figcaption></figure>



<p>So, let&#8217;s complete the installation.</p>



<h2 id="running-ravendb"><a href="#running-ravendb" name="running-ravendb"></a>Running RavenDB</h2>



<p>Now open a web browser and if you configured RavenDB to run on a server, go to <code>http://server-ip:8080/eula/index.html</code> you will see the following:</p>



<p>On this screen, you have to accept the license terms.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1360" height="669" src="https://www.osradar.com/wp-content/uploads/2021/02/4-1024x504.png" alt="4.- License Agreement" class="wp-image-28493" srcset="https://www.osradar.com/wp-content/uploads/2021/02/4-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/4-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/4-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/4-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/4-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/4.png 1360w" sizes="(max-width: 1360px) 100vw, 1360px" /><figcaption>4.- License Agreement</figcaption></figure>



<p>Then, as we have configured RavenDB from its configuration file we will be able to access the dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/02/5-1024x502.png" alt="5.- RavenDB main screen on Ubuntu 20.04" class="wp-image-28494" srcset="https://www.osradar.com/wp-content/uploads/2021/02/5-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/5-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/5-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/5-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/5-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/5.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- RavenDB main screen on Ubuntu 20.04</figcaption></figure>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>RavenDB is a professionally supported database manager that gives us the option to have an alternative to serious projects. That is why it is a good idea to know how to install it and from there to learn how to use it.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-ravendb-ubuntu-20-04/">How to install RavenDB on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-ravendb-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install DBeaver on Ubuntu 20.04/ 18.04?</title>
		<link>https://www.osradar.com/install-dbeaver-ubuntu-20-04-18-04/</link>
					<comments>https://www.osradar.com/install-dbeaver-ubuntu-20-04-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 15 Jan 2021 02:30:00 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8831</guid>

					<description><![CDATA[<p>If you are a developer you know that the database is an important element of the process. That&#8217;s why knowing the data and managing it quickly and comfortably becomes a priority. On the other hand, it is necessary to recognize that graphic clients are a great solution to this problem. With this in mind, this [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-dbeaver-ubuntu-20-04-18-04/">How to install DBeaver on Ubuntu 20.04/ 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you are a developer you know that the database is an important element of the process. That&#8217;s why knowing the data and managing it quickly and comfortably becomes a priority. On the other hand, it is necessary to recognize that graphic clients are a great solution to this problem. With this in mind, this post will teach you how to install DBeaver on <a href="https://www.osradar.com/ubuntu-18-10-cosmic-cuttlefish-available/" rel="noopener">Ubuntu</a> 20.4 / 18.04.</p>
<p><a href="https://dbeaver.com/" rel="noopener">DBeaver</a> is a client for database managers, which allows managing in a comfortable way the data and options of the database instance. It supports the main database applications, such as <a href="https://www.osradar.com/install-mysql-8-0-on-fedora-29-28-centos-rhel-7-6-6-10/" rel="noopener">MySQL</a>, <a href="https://www.osradar.com/how-to-create-a-cluster-with-mariadb-galera-on-ubuntu-18-04/" rel="noopener">MariaDB</a>, <a href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu18-04/" rel="noopener">PostgreSQL</a>, Microsoft SQLServer, IBM DB2 or Oracle.</p>
<p>But not only is limited to database relationships but supports the handling <a href="https://www.osradar.com/how-to-install-mongodb-on-fedora-29-fedora-28/" rel="noopener">MongoDB</a>, Cassandra, and Redis. In other words, NoSQL database.</p>
<p>So, let&#8217;s install DBeaver.</p>
<h1>1. Upgrade the system</h1>
<p>The first step, to install DBeaver properly is to upgrade the system. So, open a terminal and run.</p>
<pre class="">:~$ sudo apt update &amp;&amp; sudo apt upgrade</pre>
<p><figure id="attachment_8832" aria-describedby="caption-attachment-8832" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8832" src="https://www.osradar.com/wp-content/uploads/2019/01/1.png" alt="1.- Upgrade the system" width="1364" height="485" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1.png 1364w, https://www.osradar.com/wp-content/uploads/2019/01/1-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-768x273.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-1024x364.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/1-1068x380.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/1-1181x420.png 1181w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-8832" class="wp-caption-text">1.- Upgrade the system</figcaption></figure></p>
<p>The advantage of doing this is that you will have the security patches installed. With this, your system will be more stable.</p>
<h1>2. Install Java</h1>
<p>DBeaver requires java to work. Its latest stable version adds support for Java 11, so you can use the steps outlined in <a href="https://www.osradar.com/install-oracle-java-ubuntu/" rel="noopener">our tutorial</a>.</p>
<h1>3. Install DBeaver on Ubuntu 20.04 / 18.04</h1>
<p>To make it even easier to install DBeaver it&#8217;s a good idea to do it from your repository. With this also, it will be easier to have it updated.</p>
<p>First, add the GPG key.</p>
<pre class="">:~$ wget -O - https://dbeaver.io/debs/dbeaver.gpg.key | sudo apt-key add -</pre>
<p>Next, add the repository.</p>
<pre class="">:~$ echo "deb https://dbeaver.io/debs/dbeaver-ce /" | sudo tee /etc/apt/sources.list.d/dbeaver.list</pre>
<p><figure id="attachment_8833" aria-describedby="caption-attachment-8833" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8833" src="https://www.osradar.com/wp-content/uploads/2019/01/2.png" alt="2.- Add the DBeaver repository" width="1365" height="362" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/2-300x80.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-768x204.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-1024x272.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/2-1068x283.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-8833" class="wp-caption-text">2.- Add the DBeaver repository</figcaption></figure></p>
<p>Then, install DBeaver.</p>
<pre class="">:~$ sudo apt update &amp;&amp; sudo apt install dbeaver-ce</pre>
<p><figure id="attachment_8834" aria-describedby="caption-attachment-8834" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8834" src="https://www.osradar.com/wp-content/uploads/2019/01/3.png" alt="3. Install Dbeaver" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8834" class="wp-caption-text">3. Install Dbeaver</figcaption></figure></p>
<h1>4. Test DBeaver</h1>
<p>Now we have to try DBeaver. To do this, first install some of the database handlers supported by the application. I will install MariaDB.</p>
<pre class="">:~$ sudo apt install mariadb-server</pre>
<p><figure id="attachment_8836" aria-describedby="caption-attachment-8836" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8836" src="https://www.osradar.com/wp-content/uploads/2019/01/4.png" alt="4.- Install MariaDB" width="1365" height="407" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/4-300x89.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-768x229.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-1024x305.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/4-1068x318.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-8836" class="wp-caption-text">4.- Install MariaDB</figcaption></figure></p>
<p>Next, create a database and user for DBeaver.</p>
<pre class="">:~$ sudo mysql -u root -p
CREATE DATABASE dbeaver;
GRANT ALL PRIVILEGES ON dbeaver.* TO 'dbeaveruser'@'localhost' IDENTIFIED BY 'dbeaverpss';
FLUSH PRIVILEGES;
exit;</pre>
<p><figure id="attachment_8837" aria-describedby="caption-attachment-8837" style="width: 900px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8837" src="https://www.osradar.com/wp-content/uploads/2019/01/5.png" alt="5.- Creating the database" width="900" height="456" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5.png 900w, https://www.osradar.com/wp-content/uploads/2019/01/5-300x152.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-768x389.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-829x420.png 829w" sizes="(max-width: 900px) 100vw, 900px" /><figcaption id="caption-attachment-8837" class="wp-caption-text">5.- Creating the database</figcaption></figure></p>
<p>Next, launch it. Yo will see this.</p>
<p><figure id="attachment_8838" aria-describedby="caption-attachment-8838" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8838" src="https://www.osradar.com/wp-content/uploads/2019/01/6.png" alt="6.- DBeaver" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8838" class="wp-caption-text">6.- DBeaver</figcaption></figure></p>
<p>Now, Create a new database connection. Go to <em>File</em> -&gt; <em>New. </em>On <em>DBeaver</em> section, select <em>Database Connection. </em></p>
<p><figure id="attachment_8839" aria-describedby="caption-attachment-8839" style="width: 525px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8839" src="https://www.osradar.com/wp-content/uploads/2019/01/7.png" alt="7.- Making a new connection" width="525" height="623" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7.png 525w, https://www.osradar.com/wp-content/uploads/2019/01/7-253x300.png 253w, https://www.osradar.com/wp-content/uploads/2019/01/7-354x420.png 354w" sizes="(max-width: 525px) 100vw, 525px" /><figcaption id="caption-attachment-8839" class="wp-caption-text">7.- Making a new connection</figcaption></figure></p>
<p>Select MariaDB. Next, set the connection settings.</p>
<p><figure id="attachment_8840" aria-describedby="caption-attachment-8840" style="width: 525px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8840" src="https://www.osradar.com/wp-content/uploads/2019/01/8.png" alt="8.- Setting the new connections parameters" width="525" height="623" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8.png 525w, https://www.osradar.com/wp-content/uploads/2019/01/8-253x300.png 253w, https://www.osradar.com/wp-content/uploads/2019/01/8-354x420.png 354w" sizes="(max-width: 525px) 100vw, 525px" /><figcaption id="caption-attachment-8840" class="wp-caption-text">8.- Setting the parameters of the new connection</figcaption></figure></p>
<p>After defining the connection parameters, if there is no driver installed, DBeaver will download it and show you something like this.</p>
<p><figure id="attachment_8841" aria-describedby="caption-attachment-8841" style="width: 525px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8841" src="https://www.osradar.com/wp-content/uploads/2019/01/9.png" alt="9.- Downloading the driver for MariaDB" width="525" height="538" srcset="https://www.osradar.com/wp-content/uploads/2019/01/9.png 525w, https://www.osradar.com/wp-content/uploads/2019/01/9-293x300.png 293w, https://www.osradar.com/wp-content/uploads/2019/01/9-410x420.png 410w" sizes="(max-width: 525px) 100vw, 525px" /><figcaption id="caption-attachment-8841" class="wp-caption-text">9.- Downloading the driver for MariaDB</figcaption></figure></p>
<p>Finally, you will see all the information about the connection.</p>
<p><figure id="attachment_8842" aria-describedby="caption-attachment-8842" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8842" src="https://www.osradar.com/wp-content/uploads/2019/01/10.png" alt="10.- DBeaver working" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/10.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/10-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/10-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/10-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/10-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/10-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8842" class="wp-caption-text">10.- DBeaver working</figcaption></figure></p>
<p>Of course, having a large database, with lots of tables and data, you will understand the importance of DBeaver. For now, it won&#8217;t show any data.</p>
<h1>Conclusion</h1>
<p>Having a great tool to visualize the data and options of a database is very important if you are a developer. That&#8217;s why DBeaver is profiled as a pretty good tool focused on productivity. In addition, it has the advantage of being open source and supporting a large number of database handlers.</p>
<p>Please share this post with your friends. Happy new year.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-dbeaver-ubuntu-20-04-18-04/">How to install DBeaver on Ubuntu 20.04/ 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-dbeaver-ubuntu-20-04-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install MariaDB 10.5 on Debian 10?</title>
		<link>https://www.osradar.com/install-mariadb-10-5-debian-10/</link>
					<comments>https://www.osradar.com/install-mariadb-10-5-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 09 Jan 2021 00:52:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27407</guid>

					<description><![CDATA[<p>Debian is the most stable Linux distributions out there. This is because the packages that are part of the official repositories are frozen and tested many times by many people. However, this brings a consequence: that we will not be able to have the most recent versions of the programs. An example of this is [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mariadb-10-5-debian-10/">How to install MariaDB 10.5 on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Debian is the most stable Linux distributions out there. This is because the packages that are part of the official repositories are frozen and tested many times by many people. However, this brings a consequence: that we will not be able to have the most recent versions of the programs. An example of this is MariaDB which is a vital program for many people. <strong>So, today I will show you how to install MariaDB 10.5 on Debian 10.</strong></p>



<p><a href="https://www.osradar.com/tag/mariadb/" target="_blank" rel="noreferrer noopener">MariaDB</a>&nbsp;is a well-known archi Database Relationships Management System that is a&nbsp;<a href="https://www.osradar.com/tag/mysql/" target="_blank" rel="noreferrer noopener">MySQL</a>&nbsp;fork. This is due to the purchase of Sun Mycrosystem by Oracle. It is perfectly compatible with MySQL and is available in most Linux distributions.</p>



<p>In Debian 10 the version of MariaDB that is available in the official repositories is 10.3 but recently has seen the release of version 10.5 with some interesting new features.</p>



<p>So, if you want to take advantage of having a recent version of this database manager, then welcome.</p>



<h2>Install MariaDB 10.5 on Debian 10</h2>



<p>For recent versions of MariaDB on Debian 10, we can use the <a href="https://downloads.mariadb.org/mariadb/repositories/" target="_blank" rel="noreferrer noopener">repository provided by the developers.</a></p>



<p>These repositories have many mirrors around the world, I will use one that is in New York that should work well anywhere.</p>



<p>So, open a terminal and install the necessary packages to add the repository.</p>



<pre class="wp-block-preformatted">sudo apt-get install software-properties-common dirmngr</pre>



<p>After you have done this, add the GPG key to it</p>



<pre class="wp-block-preformatted">sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
Executing: /tmp/apt-key-gpghome.WyUWC7PYTX/gpg.1.sh --fetch-keys https://mariadb.org/mariadb_release_signing_key.asc
 gpg: requesting key from 'https://mariadb.org/mariadb_release_signing_key.asc'
 gpg: key F1656F24C74CD1D8: public key "MariaDB Signing Key <a href="mailto:signing-key@mariadb.org">signing-key@mariadb.org</a>" imported
 gpg: Total number processed: 1
 gpg:               imported: 1</pre>



<p>Now yes, add the repository in question.</p>



<pre class="wp-block-preformatted">sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.5/debian buster main'</pre>



<p>And refreshes <a href="https://www.osradar.com/apt-the-ubuntu-package-manager/" target="_blank" rel="noreferrer noopener">APT</a></p>



<pre class="wp-block-preformatted">sudo apt update</pre>



<p>And finally, it carries out the installation</p>



<pre class="wp-block-preformatted">sudo apt install mariadb-server
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following additional packages will be installed:
   galera-4 gawk libdbi-perl libgdbm-compat4 libmariadb3 libmpfr6 libperl5.28 libsigsegv2 mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common
   mariadb-server-10.5 mariadb-server-core-10.5 mysql-common perl psmisc socat
 Suggested packages:
   gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl mailx mariadb-test netcat-openbsd perl-doc libterm-readline-gnu-perl
   | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl
 Recommended packages:
   libdbd-mariadb-perl | libdbd-mysql-perl libterm-readkey-perl libhtml-template-perl
 The following NEW packages will be installed:
   galera-4 gawk libdbi-perl libgdbm-compat4 libmariadb3 libmpfr6 libperl5.28 libsigsegv2 mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common mariadb-server
   mariadb-server-10.5 mariadb-server-core-10.5 mysql-common perl psmisc socat
 0 upgraded, 18 newly installed, 0 to remove and 12 not upgraded.
 Need to get 32.9 MB of archives.
 After this operation, 248 MB of additional disk space will be used.
 Do you want to continue? [Y/n]</pre>



<p>After the installation is complete, check the installed version:</p>



<pre class="wp-block-preformatted">mysql --version
mysql  Ver 15.1 Distrib 10.5.8-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2</pre>



<p>And remember that you have to configure MariaDB before putting it into production.</p>



<pre class="wp-block-preformatted">sudo mysql_secure_installation</pre>



<pre class="wp-block-preformatted">Remove anonymous users? [Y/n]<br>Disallow root login remotely? [Y/n]<br>Remove test database and access to it? [Y/n]<br>Reload privilege tables now? [Y/n]</pre>



<p>And now it will be ready.</p>



<h2>Conclusion</h2>



<p>MariaDB 10.5 is a good improvement over previous versions. But it is not always available in the official repositories of other Linux distributions. Today you have learned how to install it in Debian 10.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mariadb-10-5-debian-10/">How to install MariaDB 10.5 on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-mariadb-10-5-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install the latest version of SQLite on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-the-latest-version-sqlite-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-the-latest-version-sqlite-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 06 Oct 2020 03:24:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLite]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=24264</guid>

					<description><![CDATA[<p>From the SQLite website, they boast that it is the most used database manager in the world. So in this post, you will learn how to install the latest version of SQLite on Ubuntu 20.04 According to the project’s website, “SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-latest-version-sqlite-ubuntu-20-04/">How to install the latest version of SQLite on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>From the SQLite website, they boast that it is the most used database manager in the world. So in this post, you will learn <strong>how to install the latest version of SQLite on Ubuntu 20.04</strong></p>



<p>According to the <a rel="noreferrer noopener" href="https://www.sqlite.org/index.html" target="_blank">project’s website</a>, “SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine.” Also, it is open-source.</p>



<p><strong>The great feature of SQLite is that it is easily implemented in mobile applications</strong>. That is to say since it is not managed as a service, it makes it possible for our applications to move along with the database.</p>



<p>On the other hand, SQLite boasts that it is the most used database manager in the world, and if we take into account the great number of mobile applications, we can believe it.</p>



<h2>Install the latest version of SQLite</h2>



<p>The first thing we must do is prepare the operating system with the necessary packages for the compilation and construction of packages from the source code.</p>



<p>So, open a terminal and run to install them</p>



<pre class="wp-block-preformatted">sudo apt-get install build-essential tar wget
Reading package lists… Done
Building dependency tree
Reading state information… Done
tar is already the newest version (1.30+dfsg-7).
tar set to manually installed.
wget is already the newest version (1.20.3-1ubuntu1).
wget set to manually installed.
The following packages were automatically installed and are no longer required:
linux-headers-5.4.0-26 linux-headers-5.4.0-26-generic linux-image-5.4.0-26-generic linux-modules-5.4.0-26-generic linux-modules-extra-5.4.0-26-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc gcc-9 gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libfakeroot
libfile-fcntllock-perl libgcc-9-dev libgomp1 libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev make manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-9-locales debian-keyring g++-multilib g++-9-multilib gcc-9-doc gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-9-multilib
glibc-doc bzr libstdc++-9-doc make-doc
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc gcc-9 gcc-9-base libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl
libfakeroot libfile-fcntllock-perl libgcc-9-dev libgomp1 libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev make
manpages-dev
0 upgraded, 41 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.0 MB of archives.
After this operation, 175 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="383" src="https://www.osradar.com/wp-content/uploads/2020/10/1-1-1024x383.png" alt="1.- Install building packages" class="wp-image-24286" srcset="https://www.osradar.com/wp-content/uploads/2020/10/1-1-1024x383.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/1-1-300x112.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/1-1-768x287.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/1-1-696x260.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/1-1-1068x399.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/1-1.png 1343w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Install building packages</figcaption></figure>



<p>Once the installation is finished, we have to download the SQLite source code.</p>



<p>At the time of writing this post, the latest stable version is <code>3.33.0</code>. To download it using <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener">wget</a>, run the following command:</p>



<pre class="wp-block-preformatted">wget -c https://www.sqlite.org/2020/sqlite-autoconf-3330000.tar.gz
--2020-10-03 16:55:39-- https://www.sqlite.org/2020/sqlite-autoconf-3330000.tar.gz
Resolving www.sqlite.org (www.sqlite.org)… 45.33.6.223, 2600:3c00::f03c:91ff:fe96:b959
Connecting to www.sqlite.org (www.sqlite.org)|45.33.6.223|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 2913759 (2.8M) [application/x-gzip]
Saving to: ‘sqlite-autoconf-3330000.tar.gz’
sqlite-autoconf-3330000.tar.gz 100%[=====================================================================================>] 2.78M 452KB/s in 10s
2020-10-03 16:55:51 (278 KB/s) - ‘sqlite-autoconf-3330000.tar.gz’ saved [2913759/2913759]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="218" src="https://www.osradar.com/wp-content/uploads/2020/10/2-2-1024x218.png" alt="2.- Downloading SQLite source code" class="wp-image-24287" srcset="https://www.osradar.com/wp-content/uploads/2020/10/2-2-1024x218.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/2-2-300x64.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/2-2-768x163.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/2-2-696x148.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/2-2-1068x227.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/2-2.png 1345w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Downloading SQLite source code</figcaption></figure>



<p>The command will vary by version, to make sure which one it is, you can visit the <a href="https://www.sqlite.org/download.html" target="_blank" rel="noreferrer noopener">SQLite website</a>.</p>



<p>We already have the SQLite source code downloaded. Create a folder for SQLite and access it.</p>



<pre class="wp-block-preformatted">mkdir sqlite3 &amp;&amp; cd sqlite3</pre>



<p>And then, unzip the file in this folder:</p>



<pre class="wp-block-preformatted">tar xvfz ../sqlite-autoconf-3330000.tar.gz</pre>



<p>Access the generated folder:</p>



<pre class="wp-block-preformatted">cd sqlite-autoconf-3330000/</pre>



<p>And configure the code to start the compilation:</p>



<pre class="wp-block-preformatted">./configure</pre>



<p>Compile SQLite with the make command:</p>



<pre class="wp-block-preformatted">make </pre>



<p>And finally, install it:</p>



<pre class="wp-block-preformatted">sudo make install</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="536" src="https://www.osradar.com/wp-content/uploads/2020/10/3-1-1024x536.png" alt="3.- Installing the latest version of SQLite on Ubuntu 20.04" class="wp-image-24288" srcset="https://www.osradar.com/wp-content/uploads/2020/10/3-1-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/3-1-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/3-1-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/3-1-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/3-1-1068x560.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/3-1.png 1340w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Installing the latest version of SQLite on Ubuntu 20.04</figcaption></figure>



<p>In the end, you can check the results by running the command sqlite3. For example, to show the installed version:</p>



<pre class="wp-block-preformatted">sqlite3 --version<br>3.33.0 2020-08-14 13:23:32 fca8dc8b578f215a969cd899336378966156154710873e68b3d9ac5881b0ff3f</pre>



<p>So, that way you can install the latest version of SQLite on Ubuntu 20.04 Enjoy it.</p>



<h2>Conclusion</h2>



<p>Many developers need the latest version of certain programs. One of them can be the package manager and take advantage of all the new features it can bring.</p>



<p>Now you know how to install the latest version of SQLite on Ubuntu 20.04</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram </a>channel and our <a href="https://facebook.com/osradar" target="_blank" rel="noreferrer noopener">Facebook Page</a>. Also, you can buy us a coffee.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-latest-version-sqlite-ubuntu-20-04/">How to install the latest version of SQLite on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-the-latest-version-sqlite-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
