<?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>Tutorial Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 08 Oct 2021 21:15:52 +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 Google Cloud SDK on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-google-cloud-sdk-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-google-cloud-sdk-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 11 Oct 2021 23:13:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[Google Cloud SDK]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32568</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install the Google Cloud SDK on Ubuntu 20.04 following this guide you can achieve the goal quickly and easily. The Google Cloud Platform provides services for building IT infrastructure entirely in the cloud as well as for development, artificial intelligence, analytics, storage, databases, and security. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-google-cloud-sdk-ubuntu-20-04/">How to install Google Cloud SDK 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 the Google Cloud SDK on Ubuntu 20.04 following this guide you can achieve the goal quickly and easily.</p>



<p>The <a href="https://cloud.google.com/" target="_blank" rel="noreferrer noopener">Google Cloud Platform</a> provides services for building IT infrastructure entirely in the cloud as well as for development, artificial intelligence, analytics, storage, databases, and security. It can therefore be useful to deploy one in your network or learn how to work with it.</p>



<p>So, it is necessary to install the SDK so that we can learn how to work with this tool.</p>



<p>So, let’s go for it.</p>



<h2 id="install-google-cloud-sdk-on-ubuntu-20.04">Install Google Cloud SDK on Ubuntu 20.04</h2>



<p>The installation will be done using the terminal so it is recommended that you know how to work with it. So, open one and update the operating system.</p>



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



<p>Then download the SDK for Linux using the <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener"><code>wget</code> </a>command.</p>



<pre class="wp-block-preformatted">wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-307.0.0-linux-x86_64.tar.gz</pre>



<p>After that, you have to unzip the archive using the <code>tar</code> command.</p>



<pre class="wp-block-preformatted">tar -xvzf google-cloud-sdk-307.0.0-linux-x86_64.tar.gz</pre>



<p>This command will generate a folder called <code>google-cloud-sdk</code> that you will need to access</p>



<pre class="wp-block-preformatted">cd google-cloud-sdk</pre>



<p>In it, you will find the installer file that you will have to run.</p>



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



<p>During the execution of the script, you will see some messages. The first one asks you if you want to help Google Cloud development by sending statistics anonymously.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="851" height="288" src="https://www.osradar.com/wp-content/uploads/2021/10/1-3.png" alt="1.- Installing the Google Cloud SDK on Ubuntu 20.04" class="wp-image-32612" srcset="https://www.osradar.com/wp-content/uploads/2021/10/1-3.png 851w, https://www.osradar.com/wp-content/uploads/2021/10/1-3-300x102.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/1-3-768x260.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/1-3-696x236.png 696w" sizes="(max-width: 851px) 100vw, 851px" /><figcaption>1.- Installing the Google Cloud SDK on Ubuntu 20.04</figcaption></figure>



<p>Then, you will see an on-screen output indicating that the components have not been installed and you will be informed how to install them. You will also be asked to confirm the installation.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="600" src="https://www.osradar.com/wp-content/uploads/2021/10/2-3-1024x600.png" alt="2.- Confirm the installation" class="wp-image-32613" srcset="https://www.osradar.com/wp-content/uploads/2021/10/2-3-1024x600.png 1024w, https://www.osradar.com/wp-content/uploads/2021/10/2-3-300x176.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/2-3-768x450.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/2-3-696x408.png 696w, https://www.osradar.com/wp-content/uploads/2021/10/2-3-1068x626.png 1068w, https://www.osradar.com/wp-content/uploads/2021/10/2-3.png 1202w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Confirm the installation</figcaption></figure>



<p>If all has gone well, then you will see the following screen.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="777" height="265" src="https://www.osradar.com/wp-content/uploads/2021/10/3-2.png" alt="3.- Google Cloud SDK installed" class="wp-image-32614" srcset="https://www.osradar.com/wp-content/uploads/2021/10/3-2.png 777w, https://www.osradar.com/wp-content/uploads/2021/10/3-2-300x102.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/3-2-768x262.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/3-2-696x237.png 696w" sizes="(max-width: 777px) 100vw, 777px" /><figcaption>3.- Google Cloud SDK installed</figcaption></figure>



<p>This indicates that the process was OK.</p>



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



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



<p>In this post, you have learned how to install Google Cloud SDK on a system like Ubuntu 20.04. This will open the door to using the Google Cloud Platform that you can deploy for your business.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-google-cloud-sdk-ubuntu-20-04/">How to install Google Cloud SDK 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-google-cloud-sdk-ubuntu-20-04/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>Top 5 Java Errors with Solutions</title>
		<link>https://www.osradar.com/top-5-java-errors-with-solutions/</link>
					<comments>https://www.osradar.com/top-5-java-errors-with-solutions/#respond</comments>
		
		<dc:creator><![CDATA[Paul M]]></dc:creator>
		<pubDate>Thu, 23 Sep 2021 15:18:54 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Java Errors]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32408</guid>

					<description><![CDATA[<p>A beginner in any domain is prone to making mistakes, and a lot of mistakes. But if you’re gutsy enough to learn to program, then make these errors 10x than any other thing you’ve ever learned before. All experts were once beginners. And all beginners make mistakes, get stuck, frustrated, and exhausted meanwhile. But if [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/top-5-java-errors-with-solutions/">Top 5 Java Errors with Solutions</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 beginner in any domain is prone to making mistakes, and a lot of mistakes. But if you’re gutsy enough to learn to program, then make these errors 10x than any other thing you’ve ever learned before. All experts were once beginners. And all beginners make mistakes, get stuck, frustrated, and exhausted meanwhile. But if you’re serious about your development career, stick around till you’re comfortable with problem-solving, debugging, and exception handling. As a learner, we advise you to get in touch with any credible <a href="https://codegym.cc/groups/posts">java programming blog</a>. Going through quality subject matter will polish your programming skills in a rather seamless way.</p>



<p>Let’s look at some of the most recurring errors by freshmen.</p>



<h2><a></a><strong>Illegal Type Assignment</strong></h2>



<p>Java restricts its users to assign only the same type of variables. On a simpler note, you can not assign an “Integer” type value to a “Double” type variable.</p>



<h3><a></a>Example</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>public class IllegalTypeAssignment {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int first = 25;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Double second = first;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.print(&#8220;Is first equal to second? &#8220;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (first == second) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.print(true);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.print(false);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}</td></tr></tbody></table></figure>



<h3><a></a>Output</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Exception in thread &#8220;main&#8221; java.lang.Error: Unresolved compilation problem:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type mismatch: cannot convert from int to Double</td></tr></tbody></table></figure>



<h3><a></a>Solution</h3>



<p>Replace line 5 of the above program for casting in to double. Test the output in your IDE.</p>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Double second = (double)first;</td></tr></tbody></table></figure>



<h2><a></a><strong>Invalid Return Type</strong></h2>



<p>By the rules of the Java language, you can only return the type of variable specified as the return type. A void type method is not capable of returning a String if you try to do so. And hence, you will get a compile-time error.</p>



<h3><a></a>Example</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>public class InvalidReturnType {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void printName(String name) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(name);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return name;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String name = &#8220;Lubaina Khan&#8221;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printName(name);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}</td></tr></tbody></table></figure>



<h3><a></a>Output</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Exception in thread &#8220;main&#8221; java.lang.Error: Unresolved compilation problem:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Void methods cannot return a value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at InvalidReturnType.printName(InvalidReturnType.java:4)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at InvalidReturnType.main(InvalidReturnType.java:8)</td></tr></tbody></table></figure>



<h3><a></a>Solution</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Remove line 4 to run this void method properly.</td></tr></tbody></table></figure>



<h2><a></a><strong>Invalid Arguments Type</strong></h2>



<p>Let’s say you define a method passing two arguments. This method takes two integers to find their sum. Now if you try to pass two floating points in place of two integers, java will give you a compile-time error.</p>



<h3><a></a>Example</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>public class InvalidArgumentsType {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static Double sum(Double x, Double y) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return x + y;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float x = 5;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int y = 2;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&#8220;Sum of &#8221; + x + &#8221; and &#8221; + y + &#8221; = &#8221; + sum(x,y));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}</td></tr></tbody></table></figure>



<h3><a></a>Output</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Exception in thread &#8220;main&#8221; java.lang.Error: Unresolved compilation problem:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The method sum(Double, Double) in the type InvalidArgumentsType is not applicable for the arguments (float, int)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at InvalidArgumentsType.main(InvalidArgumentsType.java:8)</td></tr></tbody></table></figure>



<h3><a></a>Solution</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Either declare both variables of type &#8220;Double&#8221; or alter the method header to accept &#8220;float&#8221; and &#8220;int&#8221; type arguments</td></tr></tbody></table></figure>



<h2><a></a><strong>Null Pointer Exceptions</strong></h2>



<p>These are most redundant and tricky to handle as a novice. However, there’s no rocket science behind it if you take care of some fundamentals. A null pointer exception arises when you try to access a resource whose value is null and not initialized to a concrete value. Majorly, the null pointer is used to allocate a unique reference to a resource. If you do not have such a requirement then make sure all values are initialized properly before accessing them.</p>



<h3><a></a>Example 1</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>public class NullPtrException {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String name = null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&#8220;Length of name is &#8221; + name.length());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}</td></tr></tbody></table></figure>



<h3><a></a>Output 1</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Exception in thread &#8220;main&#8221; java.lang.NullPointerException<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at NullPtrException.main(NullPtrException.java:4)</td></tr></tbody></table></figure>



<h3><a></a>Solution 1</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Initialize &#8220;name&#8221; to a string literal say &#8220;Alexa&#8221; and test the output.</td></tr></tbody></table></figure>



<h3><a></a>Example 2</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>public class NullPtrException {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static int getEven(int num) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return num % 2;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int[] arr = { 2, 3, 5, (Integer) null};<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int i : arr) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.print(&#8220;Is &#8221; + i + &#8221; even? &#8220;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (getEven(i) != 1) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(true);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(false);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}</td></tr></tbody></table></figure>



<h3><a></a>Output 2</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Exception in thread &#8220;main&#8221; java.lang.NullPointerException<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at NullPtrException.main(NullPtrException.java:7)</td></tr></tbody></table></figure>



<h3><a></a>Solution 2</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Initialize the arr[3] to a valid integer.</td></tr></tbody></table></figure>



<p>Another advanced way to resolve un-checked exceptions like null pointer exceptions is the exception handling mechanism in Java. Feel free to check out <a href="https://codegym.cc/groups/posts/exceptions-in-java">java exceptions examples</a> for a more profound understanding.</p>



<h2><a></a><strong>Syntax Errors</strong></h2>



<p><em>Anything that does not comply with the Java language rules is categorized as a syntax error.<br></em>From beginners to experts, we all are guilty of it at some point. If you have just started working in Java, you must comprehend what I’m talking about. The analogy of syntax rules can be grammatical rules in the English language. The syntax is defined to maintain the standards across the board. Not following naming conventions, misplaced semicolons, un-balanced parenthesis, and misspelled method names, etc are some of the typical syntax errors.</p>



<h3><a></a>Example</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>public class SyntaxError {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int[] arr = { 2, 3, 5};<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int i ; arr) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(i);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}</td></tr></tbody></table></figure>



<h3><a></a>Output</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Exception in thread &#8220;main&#8221; java.lang.Error: Unresolved compilation problem:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Syntax error on token &#8220;;&#8221;, : expected<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at SyntaxError.main(SyntaxError.java:4)</td></tr></tbody></table></figure>



<h3><a></a>Solution</h3>



<figure class="wp-block-table"><table class="has-white-color has-black-background-color has-text-color has-background"><tbody><tr><td>Replace the semicolon after &#8220;i&#8221; with a colon (:) in line 4.<br>for (int i : arr)</td></tr></tbody></table></figure>



<h2><a></a><strong>&nbsp;</strong></h2>



<h2><a></a><strong>Conclusion</strong></h2>



<p>By this point, you must be aware of the most recurring java errors of beginners. It’s okay to have loads of errors when you start learning. The key is not to get afraid of them, and rather keep improving yourself. Till then, keep growing! 🙂 </p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/top-5-java-errors-with-solutions/">Top 5 Java Errors with Solutions</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/top-5-java-errors-with-solutions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Visual Studio Code on Debian 11</title>
		<link>https://www.osradar.com/install-visual-studio-code-text-editor-debian/</link>
					<comments>https://www.osradar.com/install-visual-studio-code-text-editor-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 13 Sep 2021 02:14:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[visual studio code]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32130</guid>

					<description><![CDATA[<p>Hello, friends. In this post in the form of a guide, you will learn how to install Microsoft Visual Studio Code on Debian 11. We already know that Debian 11 is a multipurpose operating system so it is not only used on servers but also on the desktop. Especially for users who need stability to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-visual-studio-code-text-editor-debian/">Install Visual Studio Code 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 in the form of a guide, you will learn how to install Microsoft Visual Studio Code on Debian 11.</p>



<p class="has-line-data">We already know that <strong>Debian 11 is a multipurpose operating system</strong> so it is not only used on servers but also on the desktop. Especially for users who need stability to develop their work on it. This is the case for <strong>many developers who see Debian as an ideal system with no surprises for their work.</strong></p>



<p class="has-line-data">So, on Linux, we are fortunate to have many different applications available. We can even install applications created by Microsoft (!) But we have to admit that Visual Studio Code is a great application and every day it is used by more and more developers.</p>



<p class="has-line-data">With this powerful text editor, <strong>you can create your code and it has features similar to an IDE</strong>. It includes debugging support, <strong>integrated Git control, syntax highlighting, smart code completion, code snippets, and code refactoring</strong>. In addition to this, the editor is customizable and users can change the appearance and global settings.</p>



<p class="has-line-data">But not only this, it supports a lot of extensions that make Visual Studio Code have incredible functionalities. Some of them add support for many other programming languages like C++ or YML.</p>



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



<h2 class="code-line"><a id="Install_Visual_Studio_Code_on_Debian_11_12"></a>Install Visual Studio Code on Debian 11</h2>



<p class="has-line-data">Although this is a quite popular application, it is not in the official Debian 11 repositories. But is not a problem to install it because Microsoft provides us with a special DEB package for Debian.</p>



<p class="has-line-data">So, you can download it either from the terminal or from the graphical interface.</p>



<p class="has-line-data">Open your favorite web browser, and go to the Visual Studio Code <a href="https://code.visualstudio.com/Download">download section</a>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="518" src="https://www.osradar.com/wp-content/uploads/2021/09/1-2-1024x518.png" alt="1.- Download Visual Studio Code on Debian 11" class="wp-image-32139" srcset="https://www.osradar.com/wp-content/uploads/2021/09/1-2-1024x518.png 1024w, https://www.osradar.com/wp-content/uploads/2021/09/1-2-300x152.png 300w, https://www.osradar.com/wp-content/uploads/2021/09/1-2-768x388.png 768w, https://www.osradar.com/wp-content/uploads/2021/09/1-2-696x352.png 696w, https://www.osradar.com/wp-content/uploads/2021/09/1-2-1068x540.png 1068w, https://www.osradar.com/wp-content/uploads/2021/09/1-2.png 1349w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Download Visual Studio Code on Debian 11</figcaption></figure>



<p class="has-line-data">Now download the Debian DEB package.</p>



<p class="has-line-data">Then, open your file browser and navigate to the download folder.</p>



<p class="has-line-data">Now double click on the package to install it.</p>



<p>Or, install it using the terminal</p>



<pre class="wp-block-preformatted">cd Downloads
sudo apt install ./code*.deb</pre>



<p class="has-line-data">Following whichever procedure you choose, now you just need to run it from the main menu.</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/2-2-1024x576.png" alt="2.- Visual Studio Code on Debian 11" class="wp-image-32145" srcset="https://www.osradar.com/wp-content/uploads/2021/09/2-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2021/09/2-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2021/09/2-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2021/09/2-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2021/09/2-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2021/09/2-2.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Visual Studio Code on Debian 11</figcaption></figure>



<p class="has-line-data">As a repository is also added, you can then keep the application up to date from the system update manager.</p>



<p class="has-line-data">Enjoy it.</p>



<h2 class="code-line"><a id="Remove_Visual_Studio_Code_40"></a>Remove Visual Studio Code</h2>



<p class="has-line-data">If you no longer wish to use the program then it is best to uninstall it. To do so, just run this command in the terminal</p>



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



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



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



<p class="has-line-data">Visual Studio Code is one of the best text editors out there. Widely used by many developers it has become indispensable for many of them. This is due to its ease of use and the features it offers that make coding easier. What’s more, there are plugins of many types to help with the process.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-visual-studio-code-text-editor-debian/">Install Visual Studio Code 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-visual-studio-code-text-editor-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Rust Programming Language on Debian 11</title>
		<link>https://www.osradar.com/install-rust-programming-language-debian/</link>
					<comments>https://www.osradar.com/install-rust-programming-language-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 08 Sep 2021 23:51:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[rust]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32110</guid>

					<description><![CDATA[<p>Hello, friends. Installing Rust on Debian 11 is an important issue for everyone who wants to learn how to program in this programming language. That’s why today in this post, you will learn how to install it quickly and easily. What is Rust? Rust is a programming language that was born to allow you to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-rust-programming-language-debian/">Install Rust Programming Language 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. Installing Rust on Debian 11 is an important issue for everyone who wants to learn how to program in this programming language. That’s why today in this post, you will learn how to install it quickly and easily.</p>



<h2 class="code-line"><a id="What_is_Rust_2"></a>What is Rust?</h2>



<p class="has-line-data"><a href="https://www.rust-lang.org" target="_blank" rel="noreferrer noopener">Rust </a>is a programming language that was born to allow you to write code as fast as C or C++, eliminating the drawbacks with the garbage collector to avoid the problems arising from memory management. This was all thanks to Mozilla, but it has worked so well that many people are using it for many programs.</p>



<p class="has-line-data">Currently, <strong>Rust is funded by large entities such as Amazon AWS, Microsoft Azure, Google Cloud, Facebook, and, since its inception, Mozilla Firefox</strong>. But it is also supported by a large community of users who share their experiences and help those new to the language.</p>



<p class="has-line-data">As we know, Rust is quite fast, supports object-oriented programming, and is multi-purpose. So all in all it is an important programming language in our time.</p>



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



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



<p class="has-line-data">From the Rust website, we are informed of a very simple installation procedure. This is due to the presence of an installation script that makes everything very easy.</p>



<p class="has-line-data">So to start the process, you have to upgrade the operating system completely.</p>



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



<p class="has-line-data">The download of this script will be done using <code>curl</code> so it has to be installed on the system.</p>



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



<p>If you do not have the <code>build-essential</code> package installed, you need to do so.</p>



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



<p class="has-line-data">Now all you have to do is run the following command:</p>



<pre class="wp-block-preformatted">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>



<p class="has-line-data">During the installation process, you will be asked how the installation will be performed. In this case, it is wise to choose option 1 which will install Rust with the default configuration.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="934" height="650" src="https://www.osradar.com/wp-content/uploads/2021/09/1.png" alt="1.- Installing Rust programming Language on Debian 11" class="wp-image-32124" srcset="https://www.osradar.com/wp-content/uploads/2021/09/1.png 934w, https://www.osradar.com/wp-content/uploads/2021/09/1-300x209.png 300w, https://www.osradar.com/wp-content/uploads/2021/09/1-768x534.png 768w, https://www.osradar.com/wp-content/uploads/2021/09/1-696x484.png 696w" sizes="(max-width: 934px) 100vw, 934px" /><figcaption>1.- Installing Rust programming Language on Debian 11</figcaption></figure>



<p class="has-line-data">When the process finishes, you will be prompted to run a command to update the system environment variables. This will allow us to use Rust commands from any location in the terminal.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="814" height="186" src="https://www.osradar.com/wp-content/uploads/2021/09/2.png" alt="2.- Rust installed on Debian 11" class="wp-image-32125" srcset="https://www.osradar.com/wp-content/uploads/2021/09/2.png 814w, https://www.osradar.com/wp-content/uploads/2021/09/2-300x69.png 300w, https://www.osradar.com/wp-content/uploads/2021/09/2-768x175.png 768w, https://www.osradar.com/wp-content/uploads/2021/09/2-696x159.png 696w" sizes="(max-width: 814px) 100vw, 814px" /><figcaption>2.- Rust installed on Debian 11</figcaption></figure>



<pre class="wp-block-preformatted">source $HOME/.cargo/env</pre>



<p class="has-line-data">And you can also check the compiler version.</p>



<pre class="wp-block-preformatted">rustc --version
rustc 1.54.0 (a178d0322 2021-07-26)</pre>



<h2 class="code-line"><a id="Testing_the_Rust_installation_39"></a>Testing the Rust installation</h2>



<p class="has-line-data">When we install Rust, we also install <code>cargo</code> which is the Rust package manager and provides us with the command line tools to create our project without any problems.</p>



<p class="has-line-data">So, we create our project by executing the following command</p>



<pre class="wp-block-preformatted">cargo new [project-name]</pre>



<p class="has-line-data">For example</p>



<pre class="wp-block-preformatted">cargo new osradar
     Created binary (application) `osradar` package</pre>



<p class="has-line-data">This will create a new folder called <code>osradar</code> which will have a file called <code>Cargo.toml</code> where you can specify your project dependencies and manifest. Also, there will be a folder called <code>src</code> where the source code for the application will be. This folder comes with a file called <code>main.rs</code> which is the main file where we will start our coding.</p>



<p class="has-line-data">Now access the folder and run the <code>Hello World</code> that comes with the <code>cargo new</code> command.</p>



<pre class="wp-block-preformatted">cd osradar
cargo run</pre>



<p class="has-line-data">Output:</p>



<pre class="wp-block-preformatted">    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
     Running `target/debug/osradar`
Hello, world!</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="686" height="118" src="https://www.osradar.com/wp-content/uploads/2021/09/3.png" alt="3.- Rust running properly" class="wp-image-32126" srcset="https://www.osradar.com/wp-content/uploads/2021/09/3.png 686w, https://www.osradar.com/wp-content/uploads/2021/09/3-300x52.png 300w" sizes="(max-width: 686px) 100vw, 686px" /><figcaption>3.- Rust running properly</figcaption></figure>



<p class="has-line-data">So, Rust is installed correctly.</p>



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



<p class="has-line-data">Rust is a modern programming language that presents an alternative to C++ and can be used in many places and for many things. Installing it on Debian 11 is something we can do without much difficulty as we have explained.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-rust-programming-language-debian/">Install Rust Programming Language 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-rust-programming-language-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Opera Web Browser on Debian 11</title>
		<link>https://www.osradar.com/opera-web-broweser-linux-debian/</link>
					<comments>https://www.osradar.com/opera-web-broweser-linux-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 06 Sep 2021 23:55: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[opera]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32054</guid>

					<description><![CDATA[<p>Hello dear friends. Firefox and Google Chrome are the main dominators of the web browser market, but this does not mean that there are no other alternatives out there. And I think one of the most solid is Opera. So, in this post, you will learn how to install Opera on Debian 11. The process [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/opera-web-broweser-linux-debian/">Install Opera 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 dear friends. Firefox and Google Chrome are the main dominators of the web browser market, but this does not mean that there are no other alternatives out there. And I think one of the most solid is Opera. So, in this post, you will learn how to install Opera on Debian 11. The process is very easy but it can be worth it.</p>



<h2 class="code-line"><a id="Introducing_to_Opera_Web_Browser_2"></a>Introducing to Opera Web Browser</h2>



<p class="has-line-data">What Opera always boasts about is being a modern web browser. This is because with Opera we can gain integration with social networks like <a href="https://www.osradar.com/install-goaccess-ubuntu-debian/">Facebook </a>and Instagram but also with Whatsapp.</p>



<p class="has-line-data">Some of the main features of Opera are:</p>



<ul><li class="has-line-data" data-line-start="10" data-line-end="11">Integrated AdBlocker so that pages can load better.</li><li class="has-line-data" data-line-start="11" data-line-end="12">Opera has a VPN that will help you to be anonymous on the Internet and improve your security.</li><li class="has-line-data" data-line-start="12" data-line-end="13">Chat and surf at the same time with built-in messengers on the side of your browser.</li><li class="has-line-data" data-line-start="13" data-line-end="15">The browser supports themes, keyboard shortcuts, and your favorite bookmarks from one place. Also, Opera features cross-device synchronization so you can use it from anywhere.</li></ul>



<p class="has-line-data">In addition to this, Opera is based on a browsing engine similar to Chrome, so the speed of loading websites is guaranteed.</p>



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



<h2 class="code-line"><a id="Install_Opera_Web_Browser_on_Debian_11_19"></a>Install Opera Web Browser on Debian 11</h2>



<p class="has-line-data">Opera is not available from the official Debian repositories as it is not open-source software. But it is possible to install it with the package provided from the project website.</p>



<p class="has-line-data">So, go to the <a href="http://opera.com/" target="_blank" rel="noreferrer noopener">Opera website</a>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="504" src="https://www.osradar.com/wp-content/uploads/2021/08/1-18-1024x504.jpg" alt="1.- Opera web browser" class="wp-image-32085" srcset="https://www.osradar.com/wp-content/uploads/2021/08/1-18-1024x504.jpg 1024w, https://www.osradar.com/wp-content/uploads/2021/08/1-18-300x148.jpg 300w, https://www.osradar.com/wp-content/uploads/2021/08/1-18-768x378.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/08/1-18-696x343.jpg 696w, https://www.osradar.com/wp-content/uploads/2021/08/1-18-1068x526.jpg 1068w, https://www.osradar.com/wp-content/uploads/2021/08/1-18.jpg 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Opera web browser</figcaption></figure>



<p class="has-line-data">Then, click on Download and it will automatically recognize the operating system and present the DEB package.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="504" src="https://www.osradar.com/wp-content/uploads/2021/08/2-11-1024x504.png" alt="2.- Downloading Opera on Debian 11" class="wp-image-32086" srcset="https://www.osradar.com/wp-content/uploads/2021/08/2-11-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/2-11-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/2-11-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/2-11-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/2-11-1068x526.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/2-11.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Downloading Opera on Debian 11</figcaption></figure>



<p class="has-line-data">Then, we can install it by opening the file browser and double-clicking on the downloaded file.</p>



<p class="has-line-data">Also, we can do the process via the terminal which is faster. Open a terminal and access the folder where Opera has been downloaded which is usually <code>Downloads</code>.</p>



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



<p class="has-line-data">Now install Opera</p>



<pre class="wp-block-preformatted">sudo apt install ./opera*</pre>



<p class="has-line-data">This way it will install without problems. Also during the installation, you will be asked if you want to receive Opera updates along with the system. That is, you are asked if you want to add the Opera repository to the system. Answer Y.</p>



<p class="has-line-data">Now run it from the main menu and it will start.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="https://www.osradar.com/wp-content/uploads/2021/08/3-6-1024x576.jpg" alt="3.- Opera Web Browser running" class="wp-image-32087" srcset="https://www.osradar.com/wp-content/uploads/2021/08/3-6-1024x576.jpg 1024w, https://www.osradar.com/wp-content/uploads/2021/08/3-6-300x169.jpg 300w, https://www.osradar.com/wp-content/uploads/2021/08/3-6-768x432.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/08/3-6-696x391.jpg 696w, https://www.osradar.com/wp-content/uploads/2021/08/3-6-1068x600.jpg 1068w, https://www.osradar.com/wp-content/uploads/2021/08/3-6.jpg 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Opera Web Browser running</figcaption></figure>



<p class="has-line-data">So, enjoy it</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/opera-web-broweser-linux-debian/">Install Opera 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/opera-web-broweser-linux-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Go Language on Debian 11 / 10?</title>
		<link>https://www.osradar.com/go-language-debian-programming/</link>
					<comments>https://www.osradar.com/go-language-debian-programming/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 31 Aug 2021 23:19:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[go language]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16279</guid>

					<description><![CDATA[<p>The world of software development is a complex world. Every day new and better features emerge that force developers to broaden their knowledge. However, not all these technologies are complex to assimilate, and for this purpose, I will teach you how to install GO language on Debian 11 / 10. Go is an open-source (BSD [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/go-language-debian-programming/">How to install Go Language 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>The world of software development is a complex world. Every day new and better features emerge that force developers to broaden their knowledge. However, not all these technologies are complex to assimilate, and for this purpose, I will teach you how to install GO  language on Debian 11 / 10.</p>



<p><a href="https://golang.org">Go</a> is an open-source (BSD license)  programming language that was born with the objective of allowing the creation of efficient and easily distributable applications. So, it has binaries for Windows, Mac OS and of course, for Linux.</p>



<p>So, in this post, I will install it and create a “Hello World” file for the test.</p>



<h2>Download and install Go Language on Debian 11 /10</h2>



<p>Go Language is cross-platform which makes it available for Linux. However, first you have to download the binaries from the project website. But we will use the terminal that is faster and more efficient.</p>



<p>First, make sure you have <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener" aria-label="wget (opens in a new tab)">wget</a> installed on your computer.</p>



<pre class="wp-block-preformatted">:~$ sudo apt install wget</pre>



<p>Then proceed to download Go Language. At the time of writing this post, the latest stable version is 1.17</p>



<pre class="wp-block-preformatted">:~$ wget -c https://golang.org/dl/go1.17.linux-amd64.tar.gz -O go.tar.gz</pre>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" src="https://www.osradar.com/wp-content/uploads/2019/12/1-20-1024x228.png" alt="1.- Download and install Go Language on Debian 11 / 10" class="wp-image-32017" width="946" height="210" srcset="https://www.osradar.com/wp-content/uploads/2019/12/1-20-1024x228.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/1-20-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/1-20-768x171.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/1-20-696x155.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/1-20-1068x238.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/1-20.png 1366w" sizes="(max-width: 946px) 100vw, 946px" /><figcaption>1.- Download and install Go Language on Debian 11 / 10</figcaption></figure>



<p>Then, decompress it.</p>



<pre class="wp-block-preformatted">:~$ tar xvf go.tar.gz</pre>



<p>Now you have to change the folder permissions. Besides moving it to another location like <code>/usr/local/</code>.</p>



<pre class="wp-block-preformatted">:~$ sudo chown -R root:root go
:~$ sudo mv go /usr/local</pre>



<p>Then, it is necessary to make some modifications to the user&#8217;s bash profile in order to use Go. Open the configuration file and add the following:</p>



<pre class="wp-block-preformatted">:~$ sudo nano ~/.profile</pre>



<pre class="wp-block-preformatted">export GOROOT=/usr/local/go    
export GOPATH=$HOME/work/
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="634" height="219" src="https://www.osradar.com/wp-content/uploads/2019/12/3-1.png" alt="3.- Edit the bash profile" class="wp-image-16282" srcset="https://www.osradar.com/wp-content/uploads/2019/12/3-1.png 634w, https://www.osradar.com/wp-content/uploads/2019/12/3-1-300x104.png 300w" sizes="(max-width: 634px) 100vw, 634px" /><figcaption>2.- Edit the bash profile</figcaption></figure>



<p>Save the changes (CTRL + O) and close the file (CTRL + X).</p>



<p>With this, Go is ready for work. You can check it by showing the version of the program.</p>



<pre class="wp-block-preformatted">:~$ go version</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="461" height="94" src="https://www.osradar.com/wp-content/uploads/2019/12/2-18.png" alt="3.- Go language version" class="wp-image-32018" srcset="https://www.osradar.com/wp-content/uploads/2019/12/2-18.png 461w, https://www.osradar.com/wp-content/uploads/2019/12/2-18-300x61.png 300w" sizes="(max-width: 461px) 100vw, 461px" /><figcaption>3.- Go language version</figcaption></figure>



<p>Now with a &#8220;hello world&#8221; we&#8217;ll see that everything works.</p>



<h2>Testing the installation</h2>



<p>As I said before, the best way to test the installation is to run a real code. For this, we will use the typical &#8220;Hello World&#8221;.</p>



<p>First, we&#8217;ll create the directory structure. In our Home, we will create a folder for the project called <code>work</code>. Inside a folder called <code>src</code> where the source code files will go. In it, a folder called <code>hello</code> and inside the file <code>hello.go</code>. Something like this is the directory structure. The folders work and hello can be called differently.</p>



<pre class="wp-block-preformatted">:~$ mkdir -p $HOME/work/src/hello</pre>



<p>Now, create the Go file and add the following:</p>



<pre class="wp-block-preformatted">:~$ nano ~/work/src/hello/hello.go</pre>



<pre class="wp-block-preformatted">package main 
 import "fmt"
 func main() {
 fmt.Printf("hello, world\n")
 }</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="888" height="198" src="https://www.osradar.com/wp-content/uploads/2019/12/5.png" alt="5.- Creating a go file" class="wp-image-16301" srcset="https://www.osradar.com/wp-content/uploads/2019/12/5.png 888w, https://www.osradar.com/wp-content/uploads/2019/12/5-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/5-768x171.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/5-696x155.png 696w" sizes="(max-width: 888px) 100vw, 888px" /><figcaption>5.- Creating a go file</figcaption></figure>



<p>Again, save the changes and close the file.</p>



<pre class="wp-block-preformatted">:~$ go build hello
:~$ go install hello
:~$ hello</pre>



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



<h2>Conclusion</h2>



<p>GO is a very popular language and every day it is more and more popular. It’s simple but very powerful, besides being open source. As you have seen, its installation is really simple.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/go-language-debian-programming/">How to install Go Language 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/go-language-debian-programming/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install GIT on Debian 11 / 10</title>
		<link>https://www.osradar.com/install-git-on-debian/</link>
					<comments>https://www.osradar.com/install-git-on-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 23 Aug 2021 23:14:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12871</guid>

					<description><![CDATA[<p>Software development is one of the activities that can best be done on a Linux system. In the first place, because it is stable and because the main tools for development are available with few commands. We are talking about both professional and community-level tools. They are all installable on Linux. One of these tools [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-on-debian/">Install GIT 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>Software development is one of the activities that can best be done on a Linux system. In the first place, because it is stable and because the main tools for development are available with few commands. We are talking about both professional and community-level tools. They are all installable on Linux. One of these tools is GIT which is used to control the versions of an application. So, in this post, you will learn how to install Git on Debian 11 / 10. We will even give you two options to realize the goal.</p>
<h2>So, Git?</h2>
<p>If you are starting to develop applications you may not know that <a href="https://git-scm.com" rel="noopener noreferrer">Git</a> is a free, open-source version control system and that it is perhaps the best. Many developers rely on it to control the versions of their applications. By versions, we mean those in development.</p>
<p>Using Git you can control and separate development in each of those development branches. So the changes of one do not affect the others.</p>
<p>Read <a href="https://www.osradar.com/introduction-to-the-git-branches/" rel="noopener noreferrer">Introduction to the Git branches</a>.</p>
<p>In this way, it is good practice to develop applications using a version control system as support.</p>
<h2>Install Git on Debian 11 / 10</h2>
<p>Debian 10 is one of the few distributions that have such complete package repositories. So, presumably, there is some Git in the official repositories.</p>
<p>However, it is also a good idea, to know how to install Git differently in case we need it. This way is compiling the source code of Git and get the latest stable version. In this tutorial, I will teach you how to do it both ways.</p>
<h3>1) Using the official repository on Debian 11 / 10</h3>
<p>Debian 11 / 10 include Git in the official repositories. Using this option, the installation is quite easy, and just open a terminal session and run the following command:</p>
<pre>:~$ sudo apt install git</pre>
<p>Or, if you do not have sudo, please read <a href="https://www.osradar.com/how-to-enable-sudo-on-debian-10/" rel="noopener noreferrer">How to enable sudo on Debian 11/10?</a></p>
<p>Then, you can check the installed version.</p>
<pre>:~$ git --version
git version 2.30.2</pre>
<p>Now, you can use it.</p>
<h3>2) Building the Git source code</h3>
<p>Compiling the Git source code is the best way to get the latest version. All this in a safe way because it will not be compiled by third parties.</p>
<p>The process is simple but requires a few extra steps. So let us get started.</p>
<p>First, install the necessary programs to make the compilation:</p>
<pre>:~$ sudo apt install build-essential make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip</pre>
<p><figure id="attachment_12905" aria-describedby="caption-attachment-12905" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12905" src="https://www.osradar.com/wp-content/uploads/2019/08/1.jpeg" alt="1.- Install required package for the build from source code" width="1365" height="470" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1.jpeg 1365w, https://www.osradar.com/wp-content/uploads/2019/08/1-300x103.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-768x264.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-1024x353.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-696x240.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-1068x368.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/1-1220x420.jpeg 1220w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12905" class="wp-caption-text">1.- Install required a package for the build from source code</figcaption></figure></p>
<p>Now, we can download the source code.</p>
<pre>:~$ cd /tmp/
:~$ wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.33.0.tar.gz</pre>
<p>Next, decompress it and access to the folder.</p>
<pre>:~$ tar xvfz git-2.33.0.tar.gz
:~$ cd git-2.33.0</pre>
<p>Now, you can start the compilation by running the following commands:</p>
<pre>:~$ sudo make prefix=/usr/local all
:~$ sudo make prefix=/usr/local install</pre>
<p><figure id="attachment_12907" aria-describedby="caption-attachment-12907" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12907 size-full" src="https://www.osradar.com/wp-content/uploads/2019/08/3.jpeg" alt="3.- Install Git on Debian 11 / 10" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/3-300x162.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-768x415.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-1024x553.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/3-696x376.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/3-1068x577.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/3-777x420.jpeg 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12907" class="wp-caption-text">3.- Install Git on Debian 11 / 10</figcaption></figure></p>
<p>Next, check the installed version.</p>
<pre>:~$ git --version</pre>
<p>And that is it. You can start to use Git.</p>
<h2>Conclusion</h2>
<p>Git is one of those applications that every developer must be able to manage to improve their workflow. Therefore, it is important to install it in Debian 10 and two ways have been shown to achieve this. One of them is using the package available in the official repositories and the other is compiling the source code.</p>
<p>Please share this post and join <a href="https://t.me/osradar" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-on-debian/">Install GIT 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/install-git-on-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Telegram desktop on Debian 11 &#124; And any Linux distribution?</title>
		<link>https://www.osradar.com/install-telegram-desktop-any-linux-distribution/</link>
					<comments>https://www.osradar.com/install-telegram-desktop-any-linux-distribution/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 22 Aug 2021 01:33:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[telegram]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WhatsApp]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7660</guid>

					<description><![CDATA[<p>Honestly, for me, Telegram is better than WhatsApp because it has many more options and is safer. However, it is also true that WhatsApp is more used and more widespread worldwide. Today I will show you how to install Telegram desktop on any Linux distribution in an easy and comfortable way. Tele&#8230;what? In the first [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-telegram-desktop-any-linux-distribution/">How to install Telegram desktop on Debian 11 | And any Linux distribution?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Honestly, for me, Telegram is better than WhatsApp because it has many more options and is safer. However, it is also true that WhatsApp is more used and more widespread worldwide. Today I will show you how to install Telegram desktop on any Linux distribution in an easy and comfortable way.</p>
<h1>Tele&#8230;what?</h1>
<p>In the first place, What is <a href="https://telegram.org" rel="noopener">Telegram</a>? Well, Telegram is a messaging app with a focus on speed and security, it’s super-fast, simple and free. You can use Telegram on all your devices <strong>at the same time. </strong>In short, your messages sync seamlessly across any number of your phones, tablets or computers.</p>
<p>Some of the most powerful features that differentiate it from WhatsApp are the following:</p>
<ul>
<li><strong>Telegram groups can have up to 100,000 members</strong>. It supports <strong>replies</strong>, <strong>mentions</strong>, and <strong>hashtags</strong> that help maintain order and keep communication in large communities efficient.</li>
<li>If you want secrecy, try our device-specific <strong>Secret Chats</strong> with self-destructing messages, photos, and videos.</li>
<li>Telegram has <strong>bots</strong>. Bots are like small programs that run right inside Telegram. They are very useful to extends Telegram functionality.</li>
<li>The <strong>Telegram API is accessible</strong>. This allows anyone to develop an unofficial client. Don&#8217;t worry, security is something Telegram takes seriously.</li>
</ul>
<p>There are many characteristics that make Telegram a perfect application. In my case, in particular, I have noticed that it is much faster and safer than WhatsApp.</p>
<h1>Let&#8217;s install Telegram</h1>
<p>If you want to install Telegram in any Linux distribution, I must tell you that it is something very simple. Telegram does take into account Linux users, creating an official client on a par with Windows and Mac OS. Already that speaks very well of it.</p>
<p>In the first place, you need to go to the official Telegram <a href="https://telegram.org" rel="noopener">website</a>.</p>
<p><figure id="attachment_7661" aria-describedby="caption-attachment-7661" style="width: 1170px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7661" src="https://www.osradar.com/wp-content/uploads/2018/11/1-19.png" alt="Downloading Telegram desktop client" width="1170" height="326" srcset="https://www.osradar.com/wp-content/uploads/2018/11/1-19.png 1170w, https://www.osradar.com/wp-content/uploads/2018/11/1-19-300x84.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/1-19-768x214.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/1-19-1024x285.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/1-19-696x194.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/1-19-1068x298.png 1068w" sizes="(max-width: 1170px) 100vw, 1170px" /><figcaption id="caption-attachment-7661" class="wp-caption-text">Downloading Telegram client</figcaption></figure></p>
<p>Then, download the client for Linux.</p>
<p>When the download is complete, decompress the file. Next, open your file browser and you will see two files.</p>
<p><figure id="attachment_31764" aria-describedby="caption-attachment-31764" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-31764 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/1-26.png" alt="2.- Install Telegram on Debian 11 and any Linux distribution" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/1-26.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/1-26-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/1-26-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/1-26-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/1-26-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/1-26-1068x600.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-31764" class="wp-caption-text">2.- Install Telegram on Debian 11 and any Linux distribution</figcaption></figure></p>
<p>Then, assign execution permissions to the <em>Telegram</em> file. Right-click on it and go to <em>Properties</em>.</p>
<p><figure id="attachment_31765" aria-describedby="caption-attachment-31765" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-31765 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/2-24.png" alt="3.- Changing the file permissions" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/2-24.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/2-24-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/2-24-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/2-24-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/2-24-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/2-24-1068x600.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-31765" class="wp-caption-text">3.- Changing the file permissions</figcaption></figure></p>
<p>Now, you can open it. Double-click on it.</p>
<p><figure id="attachment_31766" aria-describedby="caption-attachment-31766" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-31766 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/3-23.png" alt="4.- Opening Telegram desktop client on Linux" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/3-23.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/3-23-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/3-23-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/3-23-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/3-23-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/3-23-1068x600.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-31766" class="wp-caption-text">4.- Opening Telegram desktop client on Linux</figcaption></figure></p>
<p>Click on <em>Start Messaging</em> button to add your phone number.</p>
<p><figure id="attachment_7665" aria-describedby="caption-attachment-7665" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7665" src="https://www.osradar.com/wp-content/uploads/2018/11/5-19.png" alt="5.- Adding the phone number" width="1368" height="742" srcset="https://www.osradar.com/wp-content/uploads/2018/11/5-19.png 1368w, https://www.osradar.com/wp-content/uploads/2018/11/5-19-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/5-19-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/5-19-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/5-19-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/5-19-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/5-19-774x420.png 774w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-7665" class="wp-caption-text">5.- Adding the phone number</figcaption></figure></p>
<p>Then, Telegram will send you a code via SMS. When you type it, the application will start and you will use it without any problem.</p>
<p>And that&#8217;s it.</p>
<h1>Conclusion</h1>
<p>Telegram is much better than WhatsApp not only because of its features but also because its desktop customers are very good. Installing these desktop clients is simple and very useful.</p>
<p>Recently we talked about <a href="https://www.osradar.com/franz-on-linux-desktop/">Franz</a> an application to have several messaging accounts on the desktop. You might be interested so here&#8217;s the link.</p>
<p>Please share this article through your social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-telegram-desktop-any-linux-distribution/">How to install Telegram desktop on Debian 11 | And any Linux distribution?</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-telegram-desktop-any-linux-distribution/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
