<?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>rust Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/rust/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 03 Sep 2021 15:52:32 +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>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>How to install Rust Programming Language on Fedora 34?</title>
		<link>https://www.osradar.com/install-rust-programming-language-fedora-34/</link>
					<comments>https://www.osradar.com/install-rust-programming-language-fedora-34/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 30 Jun 2021 06:38:00 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[rust]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=30974</guid>

					<description><![CDATA[<p>Hello, friends. We know that many developers use Fedora as a system to work with. So, it is convenient for you to know how to install Rust Programming Language on Fedora 34. Rust is an open source, multipurpose and new programming language that aims to retire to the C language. Although it is sponsored by [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-rust-programming-language-fedora-34/">How to install Rust Programming Language on Fedora 34?</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. We know that many developers use Fedora as a system to work with. So, it is convenient for you to know how to install Rust Programming Language on Fedora 34.</p>



<p><a href="https://www.rust-lang.org/">Rust</a> is an open source, multipurpose and new programming language that aims to retire to the C language. Although it is sponsored by <a href="https://www.mozilla.org/">Mozilla</a> and <a href="http://samsung.com">Samsung</a>, it is a community project. Its focus is primarily on large programs that run on the client and server side.</p>



<p>The main characteristics of Rust are performance, reliability, and productivity. Rust can compile and create applications very quickly; it is conducive to very few failures and its large documentation makes it possible to learn quickly.</p>



<h2>Install Rust Programming Language on Fedora 34</h2>



<p>The installation is quite simple to perform through the terminal. To do this, first, make sure that the distribution is up to date.</p>



<p>So, open a terminal and run</p>



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



<p>After that you should install <a href="https://www.osradar.com/install-development-build-tools-fedora/" target="_blank" rel="noreferrer noopener">the development and build tools</a> for this our post will help you.</p>



<p>After that, you can install the <code>curl</code> and <code>nano</code> packages with which we can complete the post.</p>



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



<p>Now proceed to download and run the installation script provided by the Rust developers.</p>



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



<p>During the execution of the script, we will be asked about the type of installation. In this case, choose option 1.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="870" height="696" src="https://www.osradar.com/wp-content/uploads/2021/06/1-9.png" alt="1.- Install Rust on Fedora 34" class="wp-image-30976" srcset="https://www.osradar.com/wp-content/uploads/2021/06/1-9.png 870w, https://www.osradar.com/wp-content/uploads/2021/06/1-9-300x240.png 300w, https://www.osradar.com/wp-content/uploads/2021/06/1-9-768x614.png 768w, https://www.osradar.com/wp-content/uploads/2021/06/1-9-696x557.png 696w" sizes="(max-width: 870px) 100vw, 870px" /><figcaption>1.- Install Rust on Fedora 34</figcaption></figure>



<p>Then the whole installation process will continue and at the end, you will see the following screen:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="224" src="https://www.osradar.com/wp-content/uploads/2021/06/2-7-1024x224.png" alt="2.- Rust installed" class="wp-image-30977" srcset="https://www.osradar.com/wp-content/uploads/2021/06/2-7-1024x224.png 1024w, https://www.osradar.com/wp-content/uploads/2021/06/2-7-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2021/06/2-7-768x168.png 768w, https://www.osradar.com/wp-content/uploads/2021/06/2-7-696x152.png 696w, https://www.osradar.com/wp-content/uploads/2021/06/2-7.png 1040w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Rust installed</figcaption></figure>



<p>This way the installation has been completed successfully. To make Rust available from the terminal without any problems run</p>



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



<p>Now we are ready to try Rust. We are ready to test Rust, for example, show the installed version.</p>



<pre class="wp-block-preformatted">rustc --version<br>rustc 1.53.0 (53cb7b09b 2021-06-17)</pre>



<h2>Your first program with Rustc</h2>



<p>Now to check that everything is OK we need to create a program. We will do the classic &#8220;Hello World&#8221;.</p>



<p>First, create the necessary directory structure and access it.</p>



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



<p>Obviously, you can change the names and adjust them to your preferences.</p>



<p>Now create the code file</p>



<pre class="wp-block-preformatted">nano helloworld.rs</pre>



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



<pre class="wp-block-preformatted">fn main() {<br>println!("Hello, thanks for visiting Osradar blog.");<br>}</pre>



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



<p>Now compile the program</p>



<pre class="wp-block-preformatted">rustc helloworld.rs</pre>



<p>And run it</p>



<pre class="wp-block-preformatted">./helloworld<br>Hello, thanks for visiting Osradar blog.</pre>



<p>So, Rust is installed.</p>



<h2>Conclusion</h2>



<p>Installing the Rust language in Linux is a fairly simple process. The possibilities offered by this language are many. It is also a great alternative to traditional programming languages.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-rust-programming-language-fedora-34/">How to install Rust Programming Language on Fedora 34?</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-fedora-34/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install the CLI code editor Ox on OpenSUSE 15.2</title>
		<link>https://www.osradar.com/install-the-cli-code-editor-ox-on-opensuse-15-2/</link>
					<comments>https://www.osradar.com/install-the-cli-code-editor-ox-on-opensuse-15-2/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 08 Mar 2021 00:54:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[Leap]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[rust]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28890</guid>

					<description><![CDATA[<p>Hello, friends. A text editor in the terminal? Yes. So, you will learn how to install Ox on OpenSUSE 15.2 We already know that in Linux we have many different tools. One of them is the term that has proven to be a great help in many tasks such as downloading files and editing text. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-cli-code-editor-ox-on-opensuse-15-2/">Install the CLI code editor Ox on OpenSUSE 15.2</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 text editor in the terminal? Yes. So, you will learn how to install Ox on OpenSUSE 15.2</p>



<p>We already know that in Linux we have many different tools. One of them is the term that has proven to be a great help in many tasks such as downloading files and editing text.</p>



<p>This time we have a terminal tool created with Rust called Ox. Ox is a code editor with a terminal interface that consumes few resources and can help a lot with programming.</p>



<p>Says the program’s developer:</p>



<blockquote class="wp-block-quote"><p>OX IS A CODE EDITOR. IT WAS WRITTEN IN RUST USING ANSI ESCAPE SEQUENCES. IT ASSISTS DEVELOPERS WITH PROGRAMMING BY PROVIDING SEVERAL TOOLS TO SPEED UP AND MAKE PROGRAMMING EASIER AND A REFRESHING ALTERNATIVE TO HEAVILY BLOATED AND RESOURCE HUNGRY EDITORS</p></blockquote>



<p>Therefore, we can install it on any computer, including the oldest ones.</p>



<p>On the other hand, Ox takes many advantages from applications like Vi, Nano, Emacs, and other veteran programs. All this without dependencies and making it quite light and easy to compile. So few that this is the entire list:</p>



<ul><li>Rust language</li><li>Termion</li><li>Unicode-rs</li><li>Clap</li><li>Regex</li><li>Rum</li><li>Serde</li><li>Shellexpand</li></ul>



<p>So, let us install it.</p>



<h2 id="install-ox-on-opensuse-15.2"><a href="#install-ox-on-opensuse-15.2" name="install-ox-on-opensuse-15.2"></a>Install Ox on OpenSUSE 15.2</h2>



<p>Ox is built in the Rust language so we need to install it first.</p>



<p><a href="https://www.osradar.com/install-rust-opensuse/" target="_blank" rel="noreferrer noopener">How to install Rust on OpenSUSE 15.2?</a></p>



<p>After that, you can start installing the application by running the following command</p>



<pre class="wp-block-preformatted">cargo install --git https://github.com/curlpipe/ox</pre>



<p>This will start the whole process of downloading dependencies. When finished, you can invoke the editor with the ox command.</p>



<h2 id="first-steps-with-ox"><a href="#first-steps-with-ox" name="first-steps-with-ox"></a>First steps with Ox</h2>



<p>When the program is properly installed you can run it from the terminal</p>



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



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="524" src="https://www.osradar.com/wp-content/uploads/2021/03/1-2-1024x524.png" alt="1.- Installing Ox on OpenSUSE 15.2" class="wp-image-28966" srcset="https://www.osradar.com/wp-content/uploads/2021/03/1-2-1024x524.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/1-2-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/1-2-768x393.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/1-2-696x356.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/1-2-1068x547.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/1-2.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Installing Ox on OpenSUSE 15.2</figcaption></figure>



<p>Also, you can open a file or specify the path where you want the new file to be created</p>



<pre class="wp-block-preformatted">ox /path/file</pre>



<p>There you can start editing code. If you want to save changes, you can do it with the key combination <code>CTRL + S</code> but if it’s the first time you modify the file, you have to choose a name with <code>CTRL + w</code></p>



<p>Also, you can open a new tab by pressing the <code>CTRL + N</code></p>



<p>So, you can navigate between tabs with the <code>CTRL + H</code> and <code>CTRL + D</code> keys, and as you can see it’s quite easy to use.</p>



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



<p>Ox has a long way to go, that’s true, but it’s also an interesting project that adds more functionalities every day and allows us to edit code from the terminal, being easy to use. This gives even more power to the terminal and gives us solutions in multiple environments.</p>



<p><a href="https://github.com/curlpipe/ox" target="_blank" rel="noreferrer noopener">Ox Website</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-cli-code-editor-ox-on-opensuse-15-2/">Install the CLI code editor Ox on OpenSUSE 15.2</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-the-cli-code-editor-ox-on-opensuse-15-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Rust Programming Language on OpenSUSE 15.2?</title>
		<link>https://www.osradar.com/install-rust-opensuse/</link>
					<comments>https://www.osradar.com/install-rust-opensuse/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 06 Mar 2021 04:27:00 +0000</pubDate>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[rust]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28947</guid>

					<description><![CDATA[<p>Learning programming languages is a good option to find a good job. Above all, if you dedicate yourself to this. Because for no one is a secret that we live in times where many applications are used. That’s why this post will teach you how to install Rust on OpenSUSE 15.2 What is Rust? Rust [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-rust-opensuse/">How to install Rust Programming Language on OpenSUSE 15.2?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Learning programming languages is a good option to find a good job. Above all, if you dedicate yourself to this. Because for no one is a secret that we live in times where many applications are used. That’s why this post will teach you how to install Rust on OpenSUSE 15.2</p>



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



<p><a href="https://www.rust-lang.org/" target="_blank" rel="noreferrer noopener">Rust</a> is an open source, multipurpose and new programming language that aims to retire to the C language. Although <strong>it is sponsored by Mozilla and Samsung</strong>, it is a community project. Its focus is primarily on large programs that run on the client and server side.</p>



<p>The main characteristics of Rust are performance, reliability, and productivity. Rust can compile and create applications very quickly; it is conducive to very few failures and its large documentation makes it possible to learn quickly.</p>



<h2 id="install-rust-on-opensuse-15.2"><a href="#install-rust-on-opensuse-15.2" name="install-rust-on-opensuse-15.2"></a>Install Rust on OpenSUSE 15.2</h2>



<p>Perhaps the best way to get Rust on OpenSUSE is through the official installer provided by the language. In this respect, this guarantees that we are running the latest version available and is not complicated.</p>



<p>To do this, open a terminal or connect via SSH and update OpenSUSE.</p>



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



<p>After this, make sure you have the <code><a href="https://www.osradar.com/how-to-use-curl-command-linux/" target="_blank" rel="noreferrer noopener">curl</a></code> package installed on the system</p>



<pre class="wp-block-preformatted">sudo zypper in curl</pre>



<p>And all you have to do is run this command which will download and install Rust on your system</p>



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



<p>During the installation, you will be asked how to install it. It is recommended that you use the default configuration by choosing option 1.</p>



<p>At the end you will get an output screen similar to this one:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="957" height="716" src="https://www.osradar.com/wp-content/uploads/2021/03/1-1.png" alt="1.- Install Rust on OpenSUSE 15.2" class="wp-image-28948" srcset="https://www.osradar.com/wp-content/uploads/2021/03/1-1.png 957w, https://www.osradar.com/wp-content/uploads/2021/03/1-1-300x224.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/1-1-768x575.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/1-1-696x521.png 696w" sizes="(max-width: 957px) 100vw, 957px" /><figcaption>1.- Install Rust on OpenSUSE 15.2</figcaption></figure>



<p>And to make rust available in the terminal without problems, run:</p>



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



<p>Finally, you can check the version we just installed.</p>



<pre class="wp-block-preformatted">rustc --version
rustc 1.50.0 (cb75ad5db 2021-02-10)</pre>



<h2 id="testing-rust-on-opensuse-15.2"><a href="#testing-rust-on-opensuse-15.2" name="testing-rust-on-opensuse-15.2"></a>Testing Rust on OpenSUSE 15.2</h2>



<p>Now it is necessary to make a test file and run it to make sure that everything is OK.</p>



<p>So, create the project folder and inside it the program folder. You can choose any name you want.</p>



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



<p>Now we just need to add some rust code to the file. A hello world!! will suffice.</p>



<pre class="wp-block-preformatted">nano helloworld.rs</pre>



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



<pre class="wp-block-preformatted"><span class="hljs-function"><span class="hljs-keyword">fn</span> <span class="hljs-title">main</span></span>() {
    <span class="hljs-built_in">println!</span>(<span class="hljs-string">"Hello, thanks for visiting Osradar blog."</span>);
}</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="891" height="186" src="https://www.osradar.com/wp-content/uploads/2021/03/2-1.png" alt="2.- Testing the Rust installation" class="wp-image-28949" srcset="https://www.osradar.com/wp-content/uploads/2021/03/2-1.png 891w, https://www.osradar.com/wp-content/uploads/2021/03/2-1-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/2-1-768x160.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/2-1-696x145.png 696w" sizes="(max-width: 891px) 100vw, 891px" /><figcaption>2.- Testing the Rust installation</figcaption></figure>



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



<p>Then, compile the file with the <code>rustc</code> command</p>



<pre class="wp-block-preformatted">rustc helloworld.rs</pre>



<p>And now run it</p>



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



<p>Finally, you get the following output, which indicates that Rust is now working properly.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="888" height="143" src="https://www.osradar.com/wp-content/uploads/2021/03/3.png" alt="3.- Running a program made it with rust" class="wp-image-28950" srcset="https://www.osradar.com/wp-content/uploads/2021/03/3.png 888w, https://www.osradar.com/wp-content/uploads/2021/03/3-300x48.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/3-768x124.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/3-696x112.png 696w" sizes="(max-width: 888px) 100vw, 888px" /><figcaption>3.- Running a program made it with rust</figcaption></figure>



<pre class="wp-block-preformatted">Hello, thanks for visit Osradar blog.</pre>



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



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



<p>Installing the Rust language in Linux is a fairly simple process. The possibilities offered by this language are many. It is also a great alternative to traditional programming languages.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-rust-opensuse/">How to install Rust Programming Language on OpenSUSE 15.2?</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-opensuse/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Hegemon. A system monitor for Linux.</title>
		<link>https://www.osradar.com/how-to-install-hegemon-a-system-monitor-for-linux/</link>
					<comments>https://www.osradar.com/how-to-install-hegemon-a-system-monitor-for-linux/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 25 Dec 2018 19:17:09 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[monitoring tools]]></category>
		<category><![CDATA[rust]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8512</guid>

					<description><![CDATA[<p>There are several tools to monitor your Linux system. Some more or less complex, today I will present you a light but powerful tool to verify your system. I&#8217;m talking about Hegemon. In this post, you will learn how to install Hegemon on Linux. To monitor the processes and the memory of your computer, there [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-hegemon-a-system-monitor-for-linux/">How to install Hegemon. A system monitor for Linux.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There are several tools to monitor your Linux system. Some more or less complex, today I will present you a light but powerful tool to verify your system. I&#8217;m talking about Hegemon. In this post, you will learn how to install Hegemon on Linux.</p>
<p>To monitor the processes and the memory of your computer, there are tools such as top and <a href="https://www.osradar.com/htop-how-to-install-it-and-use-it/">htop</a>, however, <a href="https://github.com/p-e-w/hegemon">Hegemon</a> is presented as a modular alternative to them. It is also written in <a href="https://www.rust-lang.org/">Rust</a>, which guarantees that its consumption will be very fair.</p>
<p>Some of its features are:</p>
<ul>
<li>Monitor CPU and memory usage, temperatures, and fan speeds.</li>
<li>Expand any data stream to reveal a more detailed graph and additional information Adjustable update interval.</li>
<li>Clean MVC architecture with good code quality.</li>
<li>Unit tests.</li>
</ul>
<p>For now, it only supports <a href="https://www.osradar.com/uniq-on-linux/">Linux</a>, but in the future, the development team has in mind to include support for Mac OS and <a href="https://www.osradar.com/set-a-static-ip-address-in-freebsd/">BSD</a>.</p>
<p>So, let&#8217;s install Hegemon.</p>
<h1>1. Install Rust Language</h1>
<p>Hegemon is a tool built in Rust. Therefore, you must install it and configure it properly in order to run it.</p>
<p>We recently taught you <a href="https://www.osradar.com/install-rust-programming-language-linux/">how to do it</a>, so there won&#8217;t be any problems.</p>
<h1>2. Install Hegemon</h1>
<p>One of the dependencies is Rust, but when its installation is complete, it is now necessary to install the system&#8217;s sensors. With this, Hegemon will be able to measure the temperature of your processors and show information closer to reality.</p>
<p>For RHEL and CentOS:</p>
<pre class="">:~# yum install lm_sensors-devel</pre>
<p>If you use Fedora:</p>
<pre class="">:~$ sudo dnf install lm_sensors-devel7</pre>
<p>In case you are using Debian, Ubuntu and Linux Mint.</p>
<pre class="">:~$ sudo apt install libsensors4-dev</pre>
<p><figure id="attachment_8702" aria-describedby="caption-attachment-8702" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8702" src="https://www.osradar.com/wp-content/uploads/2018/12/1-17.png" alt="1.- Install libsensors" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/1-17.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/1-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/1-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/1-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/1-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/1-17-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8702" class="wp-caption-text">1.- Install libsensors</figcaption></figure></p>
<p>Now using the Rust cargo package manager, you can install Hegemon without problems.</p>
<pre class="">:~$ cargo install hegemon</pre>
<p><figure id="attachment_8704" aria-describedby="caption-attachment-8704" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8704" src="https://www.osradar.com/wp-content/uploads/2018/12/2-2222.png" alt="2.- Install hegemon using cargo" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/2-2222.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/2-2222-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/2-2222-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/2-2222-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/2-2222-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/2-2222-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8704" class="wp-caption-text">2.- Install hegemon using cargo</figcaption></figure></p>
<p>Then, run it.</p>
<pre class="">:~$ hegemon</pre>
<p>And you will see.</p>
<p><figure id="attachment_8706" aria-describedby="caption-attachment-8706" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8706" src="https://www.osradar.com/wp-content/uploads/2018/12/3-333.png" alt="3.- Running hegemon" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/3-333.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/3-333-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/3-333-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/3-333-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/3-333-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/3-333-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8706" class="wp-caption-text">3.- Running hegemon</figcaption></figure></p>
<p>As you can see in the image, you can expand the information shown by pressing the space keyboard. In addition, you can change the default monitoring frequency to 3.</p>
<p>To exit, <strong>press</strong> <strong>q</strong>.</p>
<h1>Conclusion</h1>
<p>While Hegemon is at an early stage of development, the fact that it is modular makes it interesting. In other words, you can expand its functionality on your own. Being programmed in Rust gives us the opportunity to have a good tool without sacrificing resources.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-hegemon-a-system-monitor-for-linux/">How to install Hegemon. A system monitor for Linux.</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-hegemon-a-system-monitor-for-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
