<?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>debian Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/debian/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 Jitsi Meet desktop on Debian 11</title>
		<link>https://www.osradar.com/install-jitsi-meet-desktop-client/</link>
					<comments>https://www.osradar.com/install-jitsi-meet-desktop-client/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 10 Oct 2021 23:20:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dekstop]]></category>
		<category><![CDATA[jitsi]]></category>
		<category><![CDATA[video]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32584</guid>

					<description><![CDATA[<p>Hello, friends. We’ve talked a lot about Jitsi Meet and how great it is. But we’ve yet to talk about a desktop client for it. So, in this post, you’ll learn how to install Jitsi Meet Desktop on Debian 11 and we’ll describe some ways to do it. What is Jitsi Meet Jitsi Meet is [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-jitsi-meet-desktop-client/">Install Jitsi Meet desktop 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. <a href="https://www.osradar.com/video-conference-linux-jitsi-meet/" target="_blank" rel="noreferrer noopener">We’ve talked a lot about Jitsi Mee</a>t and how great it is. But we’ve yet to talk about a desktop client for it. So, in this post, you’ll learn how to install Jitsi Meet Desktop on Debian 11 and we’ll describe some ways to do it.</p>



<h2 id="what-is-jitsi-meet">What is Jitsi Meet</h2>



<p><a href="https://meet.jit.si/" target="_blank" rel="noreferrer noopener">Jitsi Meet</a> is a free tool for making group video calls with numerous participants and many options to perform. In Jitsi Meet there is no limit to the number of participants, although the server will set a limit.</p>



<p>One of the most important features of Jitsi Meet is that it is OpenSource so we can access the source code and we can implement it with <a href="https://www.osradar.com/deploy-jitsi-meet-server-with-docker/" target="_blank" rel="noreferrer noopener">tools such as Docker.</a></p>



<p>Now, the user community has created a Jitsi Meet Desktop client with which we can connect to an instance from the desktop.</p>



<h2 id="jisti-meet-desktop-client">Jisti Meet Desktop Client</h2>



<p>So we have a Desktop application for Jitsi Meet built with Electron. Like the Jitsi Meet technology, it is open source and has the following features.</p>



<ul><li>Works with any Jitsi deployment.</li><li>Unlimited users: There are no artificial restrictions on the number of users or conference participants. Server power and bandwidth are the only limiting factors.</li><li>No account is needed.</li><li>Lock-protected rooms: Control the access to your conferences with a password.</li><li>Encrypted by default.</li></ul>



<p>This way, you can integrate Jitsi Meet into the desktop of your favorite distribution.</p>



<h2 id="install-jitsi-meet-desktop-client-on-debian-11">Install Jitsi Meet Desktop Client on Debian 11</h2>



<p>The support of this application for Linux is very good and especially for Debian 11. So we have several installation methods.</p>



<h3 id="jitsi-meet-desktop-client-using-the-deb-package">Jitsi Meet Desktop Client using the DEB package</h3>



<p>In the Github profile of the application, we can download a DEB package that will be useful for our system.</p>



<p>To download it and install it, you can open the terminal and run</p>



<pre class="wp-block-preformatted">wget https://github.com/jitsi/jitsi-meet-electron/releases/latest/download/jitsi-meet-amd64.deb
sudo apt install ./jitsi-meet-amd64.deb</pre>



<p>At the end of the process, you will be able to run it from the main menu of the distribution.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="556" src="https://www.osradar.com/wp-content/uploads/2021/10/1-2-1024x556.png" alt="1.- Jitsi Meet Desktop Client on Debian 11" class="wp-image-32590" srcset="https://www.osradar.com/wp-content/uploads/2021/10/1-2-1024x556.png 1024w, https://www.osradar.com/wp-content/uploads/2021/10/1-2-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/1-2-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/1-2-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2021/10/1-2-1068x580.png 1068w, https://www.osradar.com/wp-content/uploads/2021/10/1-2.png 1368w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Jitsi Meet Desktop Client on Debian 11</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="556" src="https://www.osradar.com/wp-content/uploads/2021/10/2-2-1024x556.png" alt="2.- Using Jitsi Meet desktop client" class="wp-image-32591" srcset="https://www.osradar.com/wp-content/uploads/2021/10/2-2-1024x556.png 1024w, https://www.osradar.com/wp-content/uploads/2021/10/2-2-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/2-2-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/2-2-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2021/10/2-2-1068x580.png 1068w, https://www.osradar.com/wp-content/uploads/2021/10/2-2.png 1368w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Using Jitsi Meet desktop client</figcaption></figure>



<h3 id="getting-jitsi-meet-desktop-client-with-flatpak">Getting Jitsi Meet desktop client with Flatpak</h3>



<p>This method is a bit more cumbersome, but it guarantees integration with the system, and will not fail due to any dependencies. In short, we can install the application using Flatpak technology.</p>



<p>So, if you don’t have Flatpak you can install it by running</p>



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



<p>After that, you need to add the Flathub repository where the application is hosted.</p>



<pre class="wp-block-preformatted">sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo</pre>



<p>Then, you can install it as follows</p>



<pre class="wp-block-preformatted">sudo flatpak install flathub org.jitsi.jitsi-meet</pre>



<p>When the installation is finished you can run it from the main menu or by executing this command</p>



<pre class="wp-block-preformatted">flatpak run org.jitsi.jitsi-meet</pre>



<p>Then, you will see the main screen.</p>



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



<p>A desktop client is always good news to speed up the work from an operating system. That’s why we have to thank the work of community in creating these applications and making them work on almost all Linux operating systems.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-jitsi-meet-desktop-client/">Install Jitsi Meet desktop 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-jitsi-meet-desktop-client/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Laravel on Debian 11?</title>
		<link>https://www.osradar.com/how-to-install-laravel-debian-11/</link>
					<comments>https://www.osradar.com/how-to-install-laravel-debian-11/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 08 Oct 2021 23:51:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32502</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install Laravel on Debian 11. This powerful PHP framework is one of the most popular and innovative ones out there, that’s why you should know how to install it and get it ready for the start of your project. What is Laravel? Laravel is one [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laravel-debian-11/">How to install Laravel 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. In this post, you will learn how to install Laravel on Debian 11. This powerful PHP framework is one of the most popular and innovative ones out there, that’s why you should know how to install it and get it ready for the start of your project.</p>



<h2 id="what-is-laravel">What is Laravel?</h2>



<p><a href="https://laravel.com/" target="_blank" rel="noreferrer noopener">Laravel </a>is one of the easiest open-source frameworks for PHP to assimilate. One of its advantages is that it has a much easier learning curve than other web and application development tools. It was created in 2011 and is heavily influenced by frameworks such as Ruby on Rails, Sinatra, and ASP.NET MVC.</p>



<p>With Laravel, we will have available other tools that together make up the power of Laravel.</p>



<ul><li>Blade: A powerful template manager where we can manage PHP variables directly in the view.</li><li>Eloquent: Laravel’s database system, for writing and retrieving data. So we don’t have to work directly with SQL code.</li><li>Routing: LAravel has its own routing system that helps us to set up the routing of our pages with GET or POST methods.</li></ul>



<p>Besides this, Laravel is one of the best-documented frameworks that exist and with an active community willing to give support to the newbie.</p>



<p>So, let’s get started.</p>



<h2 id="install-laravel-on-debian-11">Install Laravel on Debian 11</h2>



<h3 id="installing-the-laravel-requisites">Installing the Laravel requisites</h3>



<p>First, you need to install PHP and some of its modules and the <code>unzip</code> package.</p>



<pre class="wp-block-code"><code>sudo apt install php php-bcmath php-json php-mbstring php-pdo php-tokenizer php-xml php-pear php-zip php-zip unzip
</code></pre>



<h3 id="install-php-composer-on-debian-11">Install PHP Composer on Debian 11</h3>



<p>The installation of laravel can be done without problems using PHP Composer. So we have to install it and keep it up to date.</p>



<p>For that, we invite you to read our post about it:</p>



<p><a href="https://www.osradar.com/install-php-composer-debian/" target="_blank" rel="noreferrer noopener">How to install PHP Composer on Debian 11?</a></p>



<p>Once it is installed and updated, we can follow the procedures.</p>



<h3 id="install-laravel-on-debian-11-1">Install Laravel on Debian 11</h3>



<p>Now with the help of Composer, we have to install Laravel. To do this, run the following command</p>



<pre class="wp-block-preformatted">composer create-project --prefer-dist laravel/laravel [project_name]</pre>



<p>Where the last value is where you have to specify the name of your project.</p>



<p>So, Composer will start with downloading and installing all Laravel dependencies. When finished, you will see an output screen like this</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="610" height="160" src="https://www.osradar.com/wp-content/uploads/2021/10/1-1.png" alt="1.- Installing Laravel on Debian 11" class="wp-image-32571" srcset="https://www.osradar.com/wp-content/uploads/2021/10/1-1.png 610w, https://www.osradar.com/wp-content/uploads/2021/10/1-1-300x79.png 300w" sizes="(max-width: 610px) 100vw, 610px" /><figcaption>1.- Installing Laravel on Debian 11</figcaption></figure>



<p>This will create a folder with the name of your project that we need to access.</p>



<pre class="wp-block-preformatted">cd example</pre>



<p>And there will be all our Laravel working and ready for us to start creating code.</p>



<p>If you want to check how the project is running and also if you want to verify the installation, you can run</p>



<pre class="wp-block-preformatted">php artisan serve</pre>



<p>Then open a web browser and go to <code>http://localhost:8000</code> and you’ll see an image like this</p>



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



<p>In case Laravel has been installed on a server or another computer over the network, you can specify that it is accessible from another computer.</p>



<pre class="wp-block-preformatted">php artisan serve --host=0.0.0.0.0 --port=1234</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="808" height="156" src="https://www.osradar.com/wp-content/uploads/2021/10/2-1.png" alt="2.- Serve the Laravel project" class="wp-image-32570" srcset="https://www.osradar.com/wp-content/uploads/2021/10/2-1.png 808w, https://www.osradar.com/wp-content/uploads/2021/10/2-1-300x58.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/2-1-768x148.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/2-1-696x134.png 696w" sizes="(max-width: 808px) 100vw, 808px" /><figcaption>2.- Serve the Laravel project</figcaption></figure>



<p>This way you can access the computer and with the <code>1234</code> port you can change these values to your liking.</p>



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



<p>During this post, you have learned how to install laravel on Debian 11 so you can start developing cool applications that you can take to production. So, this is a powerful framework that you need to take full advantage of.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laravel-debian-11/">How to install Laravel 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-laravel-debian-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install and use vnStat on Debian 11 / 10</title>
		<link>https://www.osradar.com/vnstat-debian-monitoring-tool/</link>
					<comments>https://www.osradar.com/vnstat-debian-monitoring-tool/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 06 Oct 2021 23:14:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29506</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install and use vnStat on Debian 11 / 10. With this tool, you will be able to monitor a network interface quickly. What is vnStat? The best definition of Vnstat can be found on the project’s own website: vnStat is a console-based network traffic monitor [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/vnstat-debian-monitoring-tool/">Install and use vnStat on Debian 11 / 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>Hello, friends. In this post, you will learn how to install and use vnStat on Debian 11 / 10. With this tool, you will be able to monitor a network interface quickly.</p>



<h2 id="what-is-vnstat?"><a href="#what-is-vnstat?" name="what-is-vnstat?"></a>What is vnStat?</h2>



<p>The best definition of <a href="https://humdi.net/vnstat/" target="_blank" rel="noreferrer noopener">Vnstat</a> can be found on the project’s own website:</p>



<blockquote class="wp-block-quote"><p>vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel as an information source. This means that vnStat won’t actually be sniffing any traffic and also ensures light use of system resources regardless of network traffic rate.</p></blockquote>



<p>Therefore this tool is quite well known within the community and among sysadmins. It is quite simple to use and as you will see below it is easy to install.</p>



<h2 id="install-vnstat-on-debian-10"><a name="install-vnstat-on-debian-10" href="#install-vnstat-on-debian-10"></a>Install vnStat on Debian 11 / 10</h2>



<p>One of the fastest and most immediate ways to install vnStat on Debian 11 / 10 is to install it from the official repositories.</p>



<p>Although this is not the only way to get the program, it is the easiest method for newbies.</p>



<p>So, open a terminal or from an <a href="https://www.osradar.com/manages-ssh-connections-from-windows-10-with-putty/" target="_blank" rel="noreferrer noopener">SSH session</a>, install the security patches in the distribution:</p>



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



<p>Next, you can install the <code>vnStat</code> package as follows:</p>



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



<p>After it is installed, start the application service.</p>



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



<p>This will complete the installation and you will be able to use it.</p>



<h2 id="install-the-latest-version-of-vnstat-on-debian-10"><a name="install-the-latest-version-of-vnstat-on-debian-10" href="#install-the-latest-version-of-vnstat-on-debian-10"></a>Install the latest version of vnStat on Debian 11 / 10</h2>



<p>The previous method has a big problem and it is that the version that appears in the official repositories of Debian 11 / 10, is very outdated. So it is advisable to always install the latest version following these steps that I will describe.</p>



<p>First, install the packages needed to do the compilation, as well as some dependencies:</p>



<pre class="wp-block-preformatted">sudo apt install build-essential gcc make libsqlite3-dev</pre>



<p>Then download the latest stable version, which at the time of writing this post, is <code>2.8</code>.</p>



<pre class="wp-block-preformatted">wget https://humdi.net/vnstat/vnstat-2.8.tar.gz</pre>



<p>Decompress the downloaded file</p>



<pre class="wp-block-preformatted">tar -xvzf vnstat-2.8.tar.gz</pre>



<p>As a result of executing the above command, a folder called <code>vnstat-2.8</code> will be generated which you will need to access and from there configure the package for compilation:</p>



<pre class="wp-block-preformatted">cd vnstat-2.8
./configure --prefix=/usr --sysconfdir=/etc</pre>



<p>Now, compile the package and install it with this pair of commands:</p>



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



<p>If everything went well, you will be able to run the <code>vnstat</code> command and display, for example, the installed version:</p>



<pre class="wp-block-preformatted">vnstat -v</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">vnStat 2.8 by Teemu Toivola &lt;tst at iki dot fi&gt;</pre>



<h2 id="using-the-vnstat-command"><a href="#using-the-vnstat-command" name="using-the-vnstat-command"></a>Using the vnStat command</h2>



<p>Before using the tool it is necessary to start the vnStat service. As we have installed it manually, there is no service installed so we have to create it.</p>



<p>Fortunately, to create it we will use the example file that comes with the code we have just compiled.</p>



<pre class="wp-block-preformatted">sudo cp -v examples/systemd/vnstat.service /etc/systemd/system/</pre>



<p>Refresh the list of services</p>



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



<p>And now yes, enable it so it can start with the system and start the service</p>



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



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



<pre class="wp-block-preformatted">sudo systemctl status vnstat
● vnstat.service - vnStat network traffic monitor
     Loaded: loaded (/etc/systemd/system/vnstat.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-10-02 18:24:27 CEST; 11s ago
       Docs: man:vnstatd(8)
             man:vnstat(1)
             man:vnstat.conf(5)
   Main PID: 5939 (vnstatd)
      Tasks: 1 (limit: 2276)
     Memory: 612.0K
        CPU: 20ms
     CGroup: /system.slice/vnstat.service
             └─5939 /usr/sbin/vnstatd -n

Oct 02 18:24:27 osradar systemd[1]: Started vnStat network traffic monitor.
Oct 02 18:24:27 osradar vnstatd[5939]: Info: vnStat daemon 2.8 started. (pid:5939 uid:0 gid:0 64-bit)
Oct 02 18:24:27 osradar vnstatd[5939]: Info: Monitoring (1): eth0 (1000 Mbit)</pre>



<p>After waiting a few minutes, you can start using it.</p>



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



<figure class="wp-block-image size-full"><img loading="lazy" width="868" height="341" src="https://www.osradar.com/wp-content/uploads/2021/04/1-7-e1633192273918.png" alt="1.- vnStat on Debian 11/ 10" class="wp-image-29537" srcset="https://www.osradar.com/wp-content/uploads/2021/04/1-7-e1633192273918.png 868w, https://www.osradar.com/wp-content/uploads/2021/04/1-7-e1633192273918-300x118.png 300w, https://www.osradar.com/wp-content/uploads/2021/04/1-7-e1633192273918-768x302.png 768w, https://www.osradar.com/wp-content/uploads/2021/04/1-7-e1633192273918-696x273.png 696w" sizes="(max-width: 868px) 100vw, 868px" /><figcaption>1.- vnStat on Debian 11/ 10</figcaption></figure>



<p>By default, it takes the active interface, but you can change it:</p>



<pre class="wp-block-preformatted">vnstat -i [interface]</pre>



<p>When an interface is monitored, a new database with logs is created. You can delete it and reset the statistics.</p>



<pre class="wp-block-preformatted">sudo vnstat -i [interface] --remove --force</pre>



<p>In this case, you have to specify the interface to monitor.</p>



<p>Enjoy it.</p>



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



<p>So now you know how to install and use vnStat on Debian 11 / 10 This command although simple allows you to find answers to the operation of a network interface and to know if the behavior is as expected…</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/vnstat-debian-monitoring-tool/">Install and use vnStat on Debian 11 / 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/vnstat-debian-monitoring-tool/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Django on Debian 11</title>
		<link>https://www.osradar.com/install-django-debian-11/</link>
					<comments>https://www.osradar.com/install-django-debian-11/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 23:08:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32490</guid>

					<description><![CDATA[<p>Hello friends. If you are fond of Python but also web development then you have to try Django. This powerful Python-based framework will allow you to develop robust web applications quickly and easily. So, in this post, you will learn how to install Django on Debian 11. Introducing to Django Django is an open-source framework [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-django-debian-11/">Install Django 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. If you are fond of Python but also web development then you have to try Django. This powerful Python-based framework will allow you to develop robust web applications quickly and easily. So, in this post, you will learn how to install Django on Debian 11.</p>



<h2 id="introducing-to-django">Introducing to Django</h2>



<p><a href="https://www.djangoproject.com/" target="_blank" rel="noreferrer noopener">Django </a>is an open-source framework written in Python and based on the MTV (Model Template View) design pattern for developing websites, applications, and APIs (with Django REST Framework).</p>



<p>Django was designed to help us develop applications from concept to completion as quickly as possible. It also takes security seriously and helps us avoid many common security bugs.</p>



<p>Moreover, Django’s ability to scale quickly and flexibly is one of its main advantages. So if you have a website such as a forum that you are going to add features to later, Django is a good alternative.</p>



<p>In addition, Django is incredibly versatile and can be used to build everything from content management systems to social networks and scientific computing platforms.</p>



<p>So, let’s get started.</p>



<h2 id="install-django-on-debian-11">Install Django on Debian 11</h2>



<p>Before getting started with Django, it’s necessary to update the distribution so that we can avoid problems.</p>



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



<p>Now we need to<a href="https://www.osradar.com/how-to-install-pip-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener"> install PIP</a>. This tool will help us with the installation of Django on our system.</p>



<pre class="wp-block-preformatted">sudo apt install python3-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python-pip-whl python3-wheel
Recommended packages:
  build-essential python3-dev
The following NEW packages will be installed:
  python-pip-whl python3-pip python3-wheel
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
Need to get 2,309 kB of archives.
After this operation, 3,671 kB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>Next, we have to update PIP to the latest stable version available.</p>



<pre class="wp-block-preformatted">pip3 install -U pip
Requirement already satisfied: pip in /usr/lib/python3/dist-packages (20.3.4)
Collecting pip
  Downloading pip-21.2.4-py3-none-any.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 7.6 MB/s
Installing collected packages: pip
Successfully installed pip-21.2.4</pre>



<p>Now check the installed version by running the following command</p>



<pre class="wp-block-preformatted">pip3 --version
pip 21.2.4 from /home/angelo/.local/lib/python3.9/site-packages/pip (python 3.9</pre>



<p>Now you can install Django on your system with the help of PIP.</p>



<pre class="wp-block-preformatted">sudo pip3 install Django
Installing collected packages: sqlparse, pytz, asgiref, Django
Successfully installed Django-3.2.7 asgiref-3.4.1 pytz-2021.3 sqlparse-0.4.2</pre>



<p>When you install Django, it will enable the <code>django-admin</code> command that we will use to administer Django. For now, check the installed version.</p>



<pre class="wp-block-preformatted">django-admin --version
3.2.7</pre>



<h3 id="testing-django-on-debian-11">Testing Django on Debian 11</h3>



<p>Now we need to test the installation of Django and for that, we’re going to create a new project</p>



<p>Create a new folder dedicated to the project and go to it</p>



<pre class="wp-block-preformatted">mkdir example
cd example</pre>



<p>You can replace <code>example</code> with any name you want. Now create the new project.</p>



<pre class="wp-block-preformatted">django-admin startproject project</pre>



<p>Replace <code>project</code> with the name you will give to your project.</p>



<p>This will create a folder with the same name that you need to access.</p>



<pre class="wp-block-preformatted">cd project</pre>



<p>Now you need to apply the default settings</p>



<pre class="wp-block-preformatted">python3 manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
.
.
.</pre>



<p>Next, it’s time to create an admin user for Django.</p>



<pre class="wp-block-preformatted">python3 manage.py createsuperuser
Username (leave blank to use 'angelo'):
Email address: angelo@osradar.com
Password:
Password (again):
Superuser created successfully.</pre>



<p>There you will be asked for a username and password to use.</p>



<p>Now you have to configure Django to allow remote access.</p>



<pre class="wp-block-preformatted">nano project/settings.py
ALLOWED_HOSTS = ['IP_PC']]</pre>



<p>Save your changes and close the editor.</p>



<pre class="wp-block-preformatted">python3 manage.py runserver 0.0.0.0.0:8080
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
October 02, 2021 - 14:45:55
Django version 3.2.7, using settings 'project.settings'
Starting development server at http://0.0.0.0:8080/
Quit the server with CONTROL-C.</pre>



<p>Now open your web browser and go to <code>http://your-pc:8080</code> and you will see the main Django screen.</p>



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



<p>Then, to access the admin panel, go to <code>http://your-pc:8080/admin</code>.</p>



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



<p>After logging in you will see the dashboard.</p>



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



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



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



<p>So, Installing Django on our system can help us if we are starting in this world of Python and the web. This process is made easy thanks to tools like PIP.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-django-debian-11/">Install Django 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-django-debian-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install PHP Composer on Debian 11</title>
		<link>https://www.osradar.com/install-php-composer-debian/</link>
					<comments>https://www.osradar.com/install-php-composer-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 01 Oct 2021 23:57:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32488</guid>

					<description><![CDATA[<p>Hello friends. For many PHP Composer developers is an essential tool in their daily work. So if you are a PHP developer or you are just starting with this, you should know how to install PHP Composer on Debian 11. The process is really simple but it’s never too much to have it at hand. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-php-composer-debian/">Install PHP Composer 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. For many PHP Composer developers is an essential tool in their daily work. So if you are a PHP developer or you are just starting with this, you should know how to install PHP Composer on Debian 11. The process is really simple but it’s never too much to have it at hand.</p>



<h2 class="code-line"><a id="What_is_Composer_2"></a>What is Composer?</h2>



<p class="has-line-data"><strong><a href="https://getcomposer.org/" target="_blank" rel="noreferrer noopener">Composer </a>is a project dependency manager for PHP programming.</strong> That means that it allows us to manage, i.e. specify, download, and keep up to date, the software packages or dependencies on which our PHP project is based.</p>



<p class="has-line-data">The reason for using it is that when you develop a PHP application it requires functionality that is not in the default PHP libraries. That is, you have to add others for your project to work or to be able to be carried out.</p>



<p class="has-line-data">So, when you start the project you have to go to the page of each of the software components that you want to use, download them, copy them to the folder of your project. This is a bit torturous because at some point these libraries will be updated and then you have to start this process all over again.</p>



<p class="has-line-data">Composer was born to avoid this. Because just by defining the right dependencies, <strong>Composer will download them and add them to your project in a matter of seconds</strong>. And if they are updated, it only takes a minimal effort or command to update them. All without wasting time and in an orderly fashion.</p>



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



<h2 class="code-line"><a id="Install_PHP_Composer_on_Debian_11_14"></a>Install PHP Composer on Debian 11</h2>



<p class="has-line-data">As we can guess, one of the main requirements is to have PHP installed on the system. This shouldn’t be a problem because PHP is present in the Debian 11 repositories and is quite lightweight.</p>



<p class="has-line-data">So, open a terminal and as usual update the distribution.</p>



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



<p class="has-line-data">Then, you can install PHP in case you don’t have it.</p>



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



<p class="has-line-data">Note: If you don’t have <code>sudo</code> available then you have to run these commands as root. Also, you can enable it by reading our post about it.</p>



<p class="has-line-data">Now to install Composer on the system, you have to run this single command</p>



<pre class="wp-block-preformatted">php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"</pre>



<p class="has-line-data">This command downloads and “compiles” the Composer installer for us.</p>



<p class="has-line-data">Then install it in a directory that is in our PATH so that we can use it throughout the system. Also, you have to give it run permissions.</p>



<pre class="wp-block-preformatted">sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
sudo chmod +x /usr/local/bin/composer</pre>



<p class="has-line-data">Then, verify the installed version by running</p>



<pre class="wp-block-preformatted">composer --version
composer version 2.1.8 2021-09-15 13:55:14</pre>



<h3 class="code-line"><a id="Using_PHP_Composer_on_Debian_11_45"></a>Using PHP Composer on Debian 11</h3>



<p class="has-line-data">Before using Composer it is always advisable to upgrade to the latest version. This process can be done by running</p>



<pre class="wp-block-preformatted">composer self-update</pre>



<p class="has-line-data">If you already have the latest stable version, you will get an output screen like this</p>



<pre class="wp-block-preformatted">You are already using the latest available Composer version 2.1.8 (stable channel)</pre>



<p class="has-line-data">Composer works with a file called <code>composer.json</code> which is where the project dependencies are stored. To add one you can visit <a href="https://packagist.org/" target="_blank" rel="noreferrer noopener">packagist </a>to find one you need.</p>



<p class="has-line-data">For example, I will add <code>sebastian/comparator</code> with the command</p>



<pre class="wp-block-preformatted">composer require sebastian/comparator</pre>



<p class="has-line-data">Just like that, Composer recognizes the dependency, downloads it along with its dependencies, and installs them for our project that we just need to use. And so on with each of the dependencies you need.</p>



<p class="has-line-data">To update the versions of the dependencies of your project run</p>



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



<p class="has-line-data">Or you can update a single one</p>



<pre class="wp-block-preformatted">composer update sebastian/comparator</pre>



<p class="has-line-data">Also, you can update several at once.</p>



<p class="has-line-data">To remove a dependency, just run</p>



<pre class="wp-block-preformatted">composer remove sebastian/comparator</pre>



<p class="has-line-data">So you can use Composer on Debian 11 in a basic but useful way.</p>



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



<p class="has-line-data">In this post, we have covered the installation of PHP Composer on Debian 11 and a small introduction to its particular usage. This tool has become indispensable for many developers so it is not surprising that it is popular.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-php-composer-debian/">Install PHP Composer 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-php-composer-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Docker on Debian 11</title>
		<link>https://www.osradar.com/install-docker-debian-server/</link>
					<comments>https://www.osradar.com/install-docker-debian-server/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 20 Sep 2021 05:47:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32142</guid>

					<description><![CDATA[<p>Hello, friends. With Debian 11 up and running, the upgrade work that many sysadmins do begins. Part of it involves installing Docker on Debian 11 so they can deploy their images again without problems on this new system. For those of you who don’t know, Docker is a not-so-old technology for creating and deploying applications [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-debian-server/">Install Docker 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. With Debian 11 up and running, the upgrade work that many sysadmins do begins. Part of it involves installing Docker on Debian 11 so they can deploy their images again without problems on this new system.</p>



<p class="has-line-data">For those of you who don’t know, <strong><a href="https://www.docker.com/" target="_blank" rel="noreferrer noopener">Docker </a>is a not-so-old technology for creating and deploying applications using containers</strong>. Containers allow you to package an application with all the parts you need, such as libraries and other dependencies and deploy it as a single package.</p>



<p class="has-line-data">One of the advantages of using containers is that <strong>we can be sure that our application will run the same on other computers and systems that support Docker</strong> regardless of any custom configuration the machine may have.</p>



<p class="has-line-data">So, as you can see, developers and sysadmin consider Docker essential to do most of the work they do.</p>



<p class="has-line-data">So, let’s install it on Debian 11.</p>



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



<p class="has-line-data">From the official Docker documentation, we are told that there are several methods of installation. One of them is to add the official Docker repository to the system to get the latest stable version available. This is the recommended method.</p>



<p class="has-line-data">So, connect via SSH to your server or open your terminal and make sure the system is up to date.</p>



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



<p class="has-line-data">In case you don’t have <code>sudo</code> access then you will have to run these commands as root.</p>



<p class="has-line-data">If you want to install Docker on your system, you probably don’t have it, but you want to make sure it is not installed. This is especially important in work environments where access is shared.</p>



<pre class="wp-block-preformatted">sudo apt remove docker docker-engine docker.io containerd runc</pre>



<p class="has-line-data">Next, install a few packages needed to complete the tutorial.</p>



<pre class="wp-block-preformatted">sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release</pre>



<p class="has-line-data">After this, add the GPG key from the repository.</p>



<pre class="wp-block-preformatted">curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg</pre>



<p class="has-line-data">And now yes, add the Docker repository for Debian 11</p>



<pre class="wp-block-preformatted">echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null</pre>



<p class="has-line-data">Refresh APT again and now install Docker on the system.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  aufs-tools cgroupfs-mount | cgroup-lite
Recommended packages:
  apparmor docker-ce-rootless-extras git libltdl7 pigz docker-scan-plugin
The following NEW packages will be installed:
  containerd.io docker-ce docker-ce-cli
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 84.7 MB of archives.</pre>



<p class="has-line-data">Now you can verify the installed version with the command</p>



<pre class="wp-block-preformatted">docker --version
Docker version 20.10.8, build 3967b7d</pre>



<p class="has-line-data">And also check the status of the service</p>



<pre class="wp-block-preformatted">sudo systemctl status docker
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-09-07 17:34:04 CEST; 2min 47s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 3127 (dockerd)
      Tasks: 8
     Memory: 38.1M
        CPU: 318ms
     CGroup: /system.slice/docker.service
             └─3127 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.207590098+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=gr&gt;Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.207613182+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/co&gt;Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.207627959+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.291431722+02:00" level=info msg="Loading containers: start."
Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.507218484+02:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16&gt;Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.586246350+02:00" level=info msg="Loading containers: done."
Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.607084077+02:00" level=info msg="Docker daemon" commit=75249d8 graphdriver(s)=overlay2 version=20.10.8 Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.607211307+02:00" level=info msg="Daemon has completed initialization"
Sep 07 17:34:04 osradar systemd[1]: Started Docker Application Container Engine.
Sep 07 17:34:04 osradar dockerd[3127]: time="2021-09-07T17:34:04.638456943+02:00" level=info msg="API listen on /run/docker.sock"</pre>



<h2 class="code-line"><a id="Configuring_Docker_before_using_it_50"></a>Configuring Docker before using it</h2>



<p class="has-line-data">By default, Docker is used with the root user. This can lead to security problems and you may not want to do it.</p>



<p class="has-line-data">So to be able to use Docker without being root, you need to create a group called <code>docker</code> and add your user to this group.</p>



<pre class="wp-block-preformatted">sudo groupadd docker
sudo usermod -aG docker $USER</pre>



<p class="has-line-data">Log out and log back in so that your group membership is re-evaluated.</p>



<p class="has-line-data">This is enough.</p>



<p class="has-line-data">Another thing you can do is to make Docker start with the system. To do this, run these commands.</p>



<pre class="wp-block-preformatted">sudo systemctl enable docker.service
sudo systemctl enable containerd.service</pre>



<p class="has-line-data">Now we can test the installation.</p>



<h2 class="code-line"><a id="Testing_Docker_on_Debian_11_70"></a>Testing Docker on Debian 11</h2>



<p class="has-line-data">To test Docker, just run the <code>hello-world</code> image that is included in the installation.</p>



<pre class="wp-block-preformatted">docker run hello-world</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="890" height="484" src="https://www.osradar.com/wp-content/uploads/2021/09/1-4.png" alt="1.- Docker running on Debian 11" class="wp-image-32152" srcset="https://www.osradar.com/wp-content/uploads/2021/09/1-4.png 890w, https://www.osradar.com/wp-content/uploads/2021/09/1-4-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2021/09/1-4-768x418.png 768w, https://www.osradar.com/wp-content/uploads/2021/09/1-4-696x378.png 696w" sizes="(max-width: 890px) 100vw, 890px" /><figcaption>1.- Docker running on Debian 11</figcaption></figure>



<p class="has-line-data">The image indicates that everything went well. Enjoy it.</p>



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



<p class="has-line-data">Docker is a fantastic tool that has revolutionized the way software is distributed. For this, it is necessary to install it on a robust system like Debian 11.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-debian-server/">Install Docker 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-docker-debian-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Vivaldi web browser on Debian 11</title>
		<link>https://www.osradar.com/install-vivaldi-debian-11/</link>
					<comments>https://www.osradar.com/install-vivaldi-debian-11/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 17 Sep 2021 23:36:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32174</guid>

					<description><![CDATA[<p>Hello, friends. In this post, we will show you how to install Vivaldi on Debian 11 This web browser is getting a lot of buzz in Linux because of its link with Manjaro. What is Vivaldi? When we talk about Vivaldi in Linux we don’t mean the great music composer but a modern and efficient [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-vivaldi-debian-11/">Install Vivaldi web browser 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. In this post, we will show you how to install Vivaldi on Debian 11 This web browser is getting a lot of buzz in Linux because of its link with Manjaro.</p>



<h2 class="code-line"><a id="What_is_Vivaldi_2"></a>What is Vivaldi?</h2>



<p class="has-line-data">When we talk about Vivaldi in Linux we don’t mean the great music composer but a modern and efficient web browser that was born some time ago.</p>



<p class="has-line-data"><strong><a href="https://vivaldi.com" target="_blank" rel="noreferrer noopener">Vivaldi </a>is one of the best web browsers in the world</strong>. With the permission of Firefox and Google Chrome, Vivaldi has many modern features that make it interesting.</p>



<p class="has-line-data">One of them is that it allows you to group tabs, it doesn’t track you by default, it includes an ad-blocker and it even integrates an email client.</p>



<p class="has-line-data">On top of that, it includes everything you would expect in a modern browser: <strong>data synchronization, GUI customization, support for Chrome plugins, so the options are many.</strong></p>



<p class="has-line-data">So Vivaldi is an excellent browser for everyday use and this is what<strong><a href="https://vivaldi.com/blog/vivaldi-is-the-default-browser-on-manjaro-linux/" target="_blank" rel="noreferrer noopener"> the Manjaro Cinnamon</a> developers thought because they decided to replace Firefox with Vivaldi</strong>. This is one of the most important pieces of news of the last days in Linux, but it gives us an idea that the browser is very good and efficient.</p>



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



<p class="has-line-data">One of the few bad things about Vivaldi is that it is not open source. Besides that, it is not included in the official Debian 11 repositories, but its installation is not complex thanks to the DEB package provided by the developers.</p>



<p class="has-line-data">To do so, go to the <a href="https://vivaldi.com/" target="_blank" rel="noreferrer noopener">Vivaldi website</a> and download the DEB package for Linux.</p>



<p class="has-line-data">After downloading the package, you can install it by double-clicking on it or running it in the terminal.</p>



<pre class="wp-block-preformatted">cd Downloads
sudo apt install ./vivaldi*.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'vivaldi-stable' instead of './vivaldi-stable_4.1.2369.21-1_amd64.deb'
The following additional packages will be installed:
  fonts-liberation libu2f-udev
Recommended packages:
  adobe-flashplugin
The following NEW packages will be installed:
  fonts-liberation libu2f-udev vivaldi-stable
0 upgraded, 3 newly installed, 0 to remove and 10 not upgraded.
Need to get 834 kB/86.0 MB of archives.
After this operation, 295 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">So when the process is finished, you can run it from the main menu.</p>



<h2 class="code-line"><a id="Uninstalling_Vivaldi_web_browser_on_Debian_11_27"></a>Uninstalling Vivaldi web browser on Debian 11</h2>



<p class="has-line-data">In case you want to uninstall Vivaldi from the system, you only have to run the following command</p>



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



<p class="has-line-data">This will permanently remove the package.</p>



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



<p class="has-line-data">With Vivaldi, we will be able to have everything we want a modern web browser to be. And with the certainty of being secure and private, it adds an extra. It’s not perfect, we miss the fact that it’s not open source, but it’s still a worthwhile application.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-vivaldi-debian-11/">Install Vivaldi web browser 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-vivaldi-debian-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Atom on Debian 11</title>
		<link>https://www.osradar.com/install-atom-text-editor-programming-debian/</link>
					<comments>https://www.osradar.com/install-atom-text-editor-programming-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 15 Sep 2021 23:16:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[IDE]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32149</guid>

					<description><![CDATA[<p>Untitled Document.md Hello, friends. Today we’re going to talk about how to install Atom on Debian 11. If there is one thing that makes Atom different from Sublime Text and Visual Studio Code is that it is open source. Because Atom is released under the MIT license. Why do I compare Atom with Sublime Text [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-atom-text-editor-programming-debian/">Install Atom 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><meta charset="utf-8"><title>Untitled Document.md</title></p>



<p class="has-line-data">Hello, friends. Today we’re going to talk about how to install Atom on Debian 11.</p>



<p class="has-line-data">If there is one thing that makes Atom different from Sublime Text and Visual Studio Code is that it is open source. Because Atom is released under the MIT license.</p>



<p class="has-line-data">Why do I compare <a href="https://atom.io/" target="_blank" rel="noreferrer noopener">Atom </a>with Sublime Text and Visual Studio Code? Because Atom is an advanced text editor that allows us to write code in many different languages very easily.</p>



<p class="has-line-data">As it is an open-source application we can examine its source code without problems. In fact, the developers encourage us to try it because it is “the hackable editor of the 21st century”.</p>



<p class="has-line-data">With Atom we can have everything that advanced text editor gives us, <strong>syntax autocompletion, syntax highlighting for many languages, GIT integration, theme support, debugging, and a lot of plugins that even increase its functionality.</strong></p>



<p class="has-line-data">It’s worth adding that Atom is free so we can use it in almost any environment or situation.</p>



<p class="has-line-data">The only downside I find is that it is an Electron application which makes it a bit more resource-consuming. Of course, this shouldn’t be a problem for modern computers.</p>



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



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



<p class="has-line-data">Atom provides good support for Linux. Especially for Debian because we can install it in several different ways.</p>



<h3 class="code-line"><a id="Install_Atom_on_Debian_using_the_DEB_package_20"></a>Install Atom on Debian using the DEB package</h3>



<p class="has-line-data">On the Atom website, you will find a DEB package that you can download without any problems. To do so, go to the Atom website or <a href="https://github.com/atom/atom/releases/tag/v1.58.0" target="_blank" rel="noreferrer noopener">their Github profile</a> and from there you can download the DEB package.</p>



<p class="has-line-data">Once downloaded you can install it by double-clicking on the DEB file or from the terminal using <a href="https://www.osradar.com/apt-the-ubuntu-package-manager/" target="_blank" rel="noreferrer noopener">APT which is the Debian package manager.</a></p>



<pre class="wp-block-preformatted">cd Downloads/
sudo apt install ./atom-amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'atom' instead of './atom-amd64.deb'
The following additional packages will be installed:
  git git-man liberror-perl patch
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-cvs git-mediawiki git-svn ed diffutils-doc
The following NEW packages will be installed:
  atom git git-man liberror-perl patch
0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
Need to get 7,514 kB/145 MB of archives.
After this operation, 707 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">If you want to download it via terminal, just run:</p>



<pre class="wp-block-preformatted">wget https://github.com/atom/atom/releases/download/v1.58.0/atom-amd64.deb</pre>



<p class="has-line-data">In any case, installation is easy.</p>



<p class="has-line-data">At the end of the process, you can open the application from the main menu and start working.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="https://www.osradar.com/wp-content/uploads/2021/09/1-5-1024x576.png" alt="Atom on Debian 11" class="wp-image-32171" srcset="https://www.osradar.com/wp-content/uploads/2021/09/1-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2021/09/1-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2021/09/1-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2021/09/1-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2021/09/1-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2021/09/1-5.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Atom on Debian 11</figcaption></figure>



<h3 class="code-line"><a id="Install_Atom_via_flatpak_37"></a>Install Atom via flatpak</h3>



<p class="has-line-data">Flatpak is a technology of packages isolated from the system and its libraries. This means that they can work universally on almost any system. Also, it adds an extra layer of security to the system because the program will not make use of the system libraries.</p>



<p class="has-line-data">In this chaos, we can install Atom via Flatpak and get the latest stable version of Atom.</p>



<p class="has-line-data">So, install Flatpak from a terminal</p>



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



<p class="has-line-data">Then add the Flathub repository where the Atom package is located.</p>



<pre class="wp-block-preformatted">sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo</pre>



<p class="has-line-data">Then proceed to install it by running this command.</p>



<pre class="wp-block-preformatted">sudo flatpak install flathub io.atom.Atom</pre>



<p class="has-line-data">At the end of the process, you will be able to run it from the main menu or by executing the command</p>



<pre class="wp-block-preformatted">flatpak run io.atom.Atom</pre>



<p class="has-line-data">This way you can install Atom.</p>



<h2 class="code-line"><a id="Removing_Atom_on_Debian_11_61"></a>Removing Atom on Debian 11</h2>



<p class="has-line-data">If you no longer want to have Atom on Debian 11 then the best thing to do is to remove it from the system. If you have installed Atom using the DEB package then you can remove it by running</p>



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



<p class="has-line-data">Or via Flatpak by executing the following command</p>



<pre class="wp-block-preformatted">sudo flatpak remove io.atom.Atom</pre>



<p class="has-line-data">This will leave no trace of the application on the system.</p>



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



<p class="has-line-data">Atom is an advanced and powerful text editor but with the incentive of being open source and that we can use it without any limitations. Moreover, we can customize it in almost any aspect.</p>



<p class="has-line-data">I will learn how to install it, although simple, it can help many novices to get started in programming.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-atom-text-editor-programming-debian/">Install Atom 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-atom-text-editor-programming-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PHPMyAdmin on Debian 11</title>
		<link>https://www.osradar.com/install-phpmyadmin-debian/</link>
					<comments>https://www.osradar.com/install-phpmyadmin-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 14 Sep 2021 04:01:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32138</guid>

					<description><![CDATA[<p>Hello, friends. In this post, we will help you to install the latest stable version of PHPMyAdmin on Debian 11. If there is a tool that has helped in the management of MySQL / MariaDB data is PHPMyAdmin both professionals and students or even enthusiasts. So, what is PHPMyAdmin? According to the project website, phpMyAdmin [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-phpmyadmin-debian/">How to install PHPMyAdmin 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. In this post, we will help you to install the latest stable version of PHPMyAdmin on Debian 11.</p>



<p class="has-line-data">If there is a tool that has helped in the management of MySQL / MariaDB data is PHPMyAdmin both professionals and students or even enthusiasts.</p>



<p class="has-line-data">So, what is PHPMyAdmin?</p>



<p class="has-line-data">According to the <a href="https://www.phpmyadmin.net/" target="_blank" rel="noreferrer noopener">project website</a>,</p>



<blockquote class="wp-block-quote"><p class="has-line-data" data-line-start="8" data-line-end="9">phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB. Frequently used operations (managing databases, tables, columns, columns, relations, indexes, users, permissions, etc) can be performed via the user interface, while you still can directly execute any SQL statement.</p></blockquote>



<p class="has-line-data">Therefore, with PHPMyAdmin we can quickly query our data and other options quickly and easily. In addition to this, we are talking about an open-source project with which we can examine its source code and even modify it.</p>



<p class="has-line-data">Another advantage of using PHPMyAdmin is that as it is a project created with PHP, the only thing we need is an operating system with a web server installed. From there, we can then access it with a web device such as a computer, tablet, or mobile phone.</p>



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



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



<p class="has-line-data">By default, it is included in the official Debian 11 repositories. So installing it is very easy to do. The problem is that the versions included in the repositories are not always the most up-to-date.</p>



<p class="has-line-data">So in this post, we’ll go through the whole process to get the latest stable version published on the PHPMyAdmin website.</p>



<h3 class="code-line"><a id="Install_LAMP_on_Debian_11_22"></a>Install LAMP on Debian 11</h3>



<p class="has-line-data">Since this is a web application, then it is necessary to have our computer working as a web server. So, we need to install LAMP on Debian 11</p>



<p class="has-line-data">For that, you have to install first<a href="https://www.osradar.com/install-apache-web-server-php-debian-linux/" target="_blank" rel="noreferrer noopener"> Apache on Debian 11</a> and then <a href="https://www.osradar.com/install-mariadb-database-debian/" target="_blank" rel="noreferrer noopener">MariaDB on Debian 11</a>. With our posts, you will have no problem doing that.</p>



<p class="has-line-data">Also, it is necessary to install some PHP modules such as</p>



<pre class="wp-block-preformatted">php libapache2-mod-php php-mysql php-mysql php-mbstring php-xml php-zip</pre>



<p class="has-line-data">Once we have LAMP fully installed, we can continue.</p>



<h3 class="code-line"><a id="Downloading_and_installing_the_latest_version_of_PHPMyAdmin_34"></a>Downloading and installing the latest version of PHPMyAdmin</h3>



<p class="has-line-data">At the time of writing this post, the latest stable version of PHPMyAdmin is <code>5.1.1</code> in the future this will change. So to keep it working, in the commands replace <code>5.1.1</code> with the updated version number.</p>



<p class="has-line-data">Now, from the <code>/tmp/</code> folder download PHPMyAdmin with the command <code>wget</code>.</p>



<pre class="wp-block-preformatted">cd /tmp/
wget https://files.phpmyadmin.net/phpMyAdmin/5.1.1/phpMyAdmin-5.1.1-all-languages.tar.gz</pre>



<p class="has-line-data">Then unzip it and move it to another location. In this case, I will move it to <code>/usr/share/phpmyadmin</code>.</p>



<pre class="wp-block-preformatted">sudo mv phpMyAdmin-5.1.1-all-languages /usr/share/phpmyadmin</pre>



<p class="has-line-data">Now create a <code>tmp</code> folder dedicated to PHPMyAdmin. Then make Apache the owner of it.</p>



<pre class="wp-block-preformatted">sudo mkdir -p /var/lib/phpmyadmin/tmp
sudo chown -R www-data:www-data /var/lib/phpmyadmin</pre>



<p class="has-line-data">Also, create a folder dedicated to the configuration:</p>



<pre class="wp-block-preformatted">sudo mkdir /etc/phpmyadmin/</pre>



<p class="has-line-data">Enable the PHPMyAdmin configuration by copying the sample with the configuration name that the program will recognize.</p>



<pre class="wp-block-preformatted">sudo cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php</pre>



<p class="has-line-data">This file needs to be edited to make two modifications.</p>



<pre class="wp-block-preformatted">sudo nano /usr/share/phpmyadmin/config.inc.php</pre>



<p class="has-line-data">The first is to define a passphrase that will help us to increase security.</p>



<pre class="wp-block-preformatted">$cfg['blowfish_secret'] = '[passphrase]'; </pre>



<p class="has-line-data">The second is to set the path to the temporary folder we created for PHPMyAdmin. You can add this line.</p>



<pre class="wp-block-preformatted">$cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';</pre>



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



<p class="has-line-data">Now you need to add a recommended Apache configuration for ideal access to PHPMyAdmin.</p>



<p class="has-line-data">So, Create the file</p>



<pre class="wp-block-preformatted">sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf</pre>



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



<pre class="wp-block-preformatted">Alias /phpmyadmin /usr/share/phpmyadmin
ServerName your-domain

&lt;Directory /usr/share/phpmyadmin>
    Options SymLinksIfOwnerMatch
    DirectoryIndex index.php

    &lt;IfModule mod_php5.c>
        &lt;IfModule mod_mime.c>
            AddType application/x-httpd-php .php
        &lt;/IfModule>
        &lt;FilesMatch ".+\.php$">
            SetHandler application/x-httpd-php
        &lt;/FilesMatch>

        php_value include_path .
        php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
        php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
        php_admin_value mbstring.func_overload 0
    &lt;/IfModule>
    &lt;IfModule mod_php.c>
        &lt;IfModule mod_mime.c>
            AddType application/x-httpd-php .php
        &lt;/IfModule>
        &lt;FilesMatch ".+\.php$">
            SetHandler application/x-httpd-php
        &lt;/FilesMatch>

        php_value include_path .
        php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
        php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
        php_admin_value mbstring.func_overload 0
    &lt;/IfModule>

&lt;/Directory>

&lt;Directory /usr/share/phpmyadmin/setup>
    &lt;IfModule mod_authz_core.c>
        &lt;IfModule mod_authn_file.c>
            AuthType Basic
            AuthName "phpMyAdmin Setup"
            AuthUserFile /etc/phpmyadmin/htpasswd.setup
        &lt;/IfModule>
        Require valid-user
    &lt;/IfModule>
&lt;/Directory></pre>



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



<p class="has-line-data">Now enable the <code>rewrite</code> module and check the service status for an error.</p>



<pre class="wp-block-preformatted">sudo a2enmod rewrite
sudo systemctl restart apache2
sudo systemctl status apache2</pre>



<p class="has-line-data">Optionally, but recommended, you can secure access to PHPMyAdmin by installing Let’s Encrypt certificates.</p>



<p class="has-line-data">So, install Certbot and the Apache plugin.</p>



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



<p class="has-line-data">And generate the certificates as follows</p>



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



<p class="has-line-data">Then, follow the interactive instructions of the tool. There you will have to define your email address and the installation will be done.</p>



<p class="has-line-data">Then, restart Apache.</p>



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



<p class="has-line-data">Now you can access using your favorite web browser at <code>https://your-server/phpmyadmin/</code> and you will 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/09/1-3-1024x511.png" alt="1.- PHPMyAdmin on Debian 11" class="wp-image-32143" srcset="https://www.osradar.com/wp-content/uploads/2021/09/1-3-1024x511.png 1024w, https://www.osradar.com/wp-content/uploads/2021/09/1-3-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2021/09/1-3-768x383.png 768w, https://www.osradar.com/wp-content/uploads/2021/09/1-3-696x347.png 696w, https://www.osradar.com/wp-content/uploads/2021/09/1-3-1068x533.png 1068w, https://www.osradar.com/wp-content/uploads/2021/09/1-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- PHPMyAdmin on Debian 11</figcaption></figure>



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



<h2>Conclusion</h2>



<p class="has-line-data">PHPMyAdmin is a sophisticated tool that allows us to manage a MariaDB instance without much trouble. It can be useful to save a lot of time in viewing the data and the many options we have to work with.</p>



<p class="has-line-data">With this post, you learned how to install the latest stable version without major problems having LAMP as a base.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-phpmyadmin-debian/">How to install PHPMyAdmin 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-phpmyadmin-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
