<?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>hostname Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/hostname/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 18 Sep 2020 21:59:37 +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 change the hostname on Ubuntu?</title>
		<link>https://www.osradar.com/change-hostname-ubuntu/</link>
					<comments>https://www.osradar.com/change-hostname-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 19 Sep 2020 01:58:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=23632</guid>

					<description><![CDATA[<p>This simple tutorial will teach you how to change the hostname on Ubuntu. The steps we will tell you here will work for all versions of 16.04 for here including derivatives like Linux Mint or ElementaryOS. Although this is a simple post, it can be useful for anyone who has Ubuntu on a network. What [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-hostname-ubuntu/">How to change the hostname on Ubuntu?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This simple tutorial will teach you how to change the hostname on Ubuntu. The steps we will tell you here will work for all versions of 16.04 for here including derivatives like <a href="https://www.osradar.com/linux-mint-20-available/" target="_blank" rel="noreferrer noopener">Linux Mint</a> or ElementaryOS. Although this is a simple post, it can be useful for anyone who has Ubuntu on a network.</p>



<h2>What is the Hostname?</h2>



<p>Briefly, a hostname is a unique name for a computer or network connection on a network. This name is a string of characters that help identify a computer on the network. It must be unique since there may be packet loss and some services may not work properly.</p>



<p>In other words, the hostname allows you to distinguish between devices on a local network. Besides, it allows computers to locate others, making it possible to exchange data within a network.</p>



<p>On the other hand, the hostname is used on the Internet as part of the Fully Qualified Domain Name that should not be confused.</p>



<p><strong>But the aim of this post is that we learn how to change it in Ubuntu.</strong></p>



<h2>Change the Hostname in Ubuntu</h2>



<p>In this tutorial, we will use the terminal. This is so that you can take advantage of it both on a server and your desktop system.</p>



<p>So, open your terminal or start an SSH session. If you use the GNOME interface you can open a terminal by pressing the keys CTRL + ALT + T</p>



<p>Then, check what your hostname is. To do this, run it:</p>



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



<p>You will get a simple output where you will see the hostname.</p>



<p>If you want a little more information related to the hostname you can use the command hostnamectl</p>



<pre class="wp-block-preformatted">hostnamectl
Static hostname: laptop
Icon name: computer-laptop
Chassis: laptop
Machine ID: 16fa2990e5014c52bbca62e8a9eb3558
Boot ID: 25860d46c0c94da5a8a5a344a237d81f</pre>



<p>Now, you know what the hostname is in your system, it&#8217;s time to change it.</p>



<p>The easiest and most practical way is to use the <code>hostnamectl</code> command. To change it, follow this syntax:</p>



<pre class="wp-block-preformatted">sudo hostnameclt set-hostname [new-hostname]</pre>



<p>For example:</p>



<pre class="wp-block-preformatted">sudo hostnameclt set-hostname osradar</pre>



<p>And it&#8217;s that simple. Check the <code>hostname</code> command again and you will see the change reflected.</p>



<h2>Change the Hostname in Ubuntu permanently</h2>



<p>The above method is temporary. This means that when the computer is restarted, the changes will be reversed. To make the change permanent, you have to do the previous step but another one.</p>



<p>After you&#8217;ve changed the hostname with the previous command open the file <code>/etc/hosts</code> and replace any indication of the old hostname with the new one.</p>



<pre class="wp-block-preformatted">sudo nano /etc/hosts</pre>



<p>Then, save the changes and reboot the system.</p>



<p>Now the change has been permanent.</p>



<h2>Conclusion</h2>



<p>Changing the hostname is quite easy but for many it can&#8217;t waste any time. So this is important to know and keep in mind for daily work.</p>



<p>So, please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram Channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-hostname-ubuntu/">How to change the hostname on Ubuntu?</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/change-hostname-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Change hostname in opensuse Leap</title>
		<link>https://www.osradar.com/change-hostname-in-opensuse-leap/</link>
					<comments>https://www.osradar.com/change-hostname-in-opensuse-leap/#comments</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Wed, 18 Apr 2018 19:25:01 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[change hostname]]></category>
		<category><![CDATA[change hostname opensuse]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[opensuse change hostname]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=2587</guid>

					<description><![CDATA[<p>Let me tell you how to change to the hostname in OpenSUSE Leap test machine. I was fighting the last two days before this working method, this method should work on Suse Server 12,  OpenSUSE 42.x and Opensuse 15. My server: suse15:~ # uname -a Linux suse15 4.12.14-lp150.8-default #1 SMP Sat Apr 7 05:12:52 UTC 2018 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-hostname-in-opensuse-leap/">Change hostname in opensuse Leap</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Let me tell you how to change to the hostname in OpenSUSE Leap test machine. I was fighting the last two days before this working method, this method should work on Suse Server 12,  OpenSUSE 42.x and Opensuse 15.</p>
<h4>My server:</h4>
<p>suse15:~ # uname -a<br />
Linux suse15 4.12.14-lp150.8-default #1 SMP Sat Apr 7 05:12:52 UTC 2018 (8719fc4) x86_64 x86_64 x86_64 GNU/Linux</p>
<p>IP: 192.168.65.151<br />
Hostname:  suse15<br />
Domain name:  osradar.com.</p>
<p>The actual info:</p>
<p><img loading="lazy" class="alignnone size-full wp-image-2589" src="https://www.osradar.com/wp-content/uploads/2018/04/suse1.png" alt="" width="940" height="397" srcset="https://www.osradar.com/wp-content/uploads/2018/04/suse1.png 940w, https://www.osradar.com/wp-content/uploads/2018/04/suse1-300x127.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/suse1-768x324.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/suse1-696x294.png 696w" sizes="(max-width: 940px) 100vw, 940px" /></p>
<p><strong>Change hostname procedure :</strong></p>
<p>The procedure to change the computer hostname on openSuse Linux:</p>
<p>Type the following command to edit /etc/hostname using your preferred text editor:<br />
sudo vi /etc/hostname<br />
Delete the existing name and put a new name.<br />
Now Edit the /etc/hosts file:<br />
vi /etc/hosts<br />
Replace any name related to the existing computer name with your new one.</p>
<p><img loading="lazy" class="alignnone size-full wp-image-2591" src="https://www.osradar.com/wp-content/uploads/2018/04/suse11.png" alt="" width="998" height="489" srcset="https://www.osradar.com/wp-content/uploads/2018/04/suse11.png 998w, https://www.osradar.com/wp-content/uploads/2018/04/suse11-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/suse11-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/suse11-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/04/suse11-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/04/suse11-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2018/04/suse11-857x420.png 857w" sizes="(max-width: 998px) 100vw, 998px" /><br />
Reboot the system to changes take effect<br />
sudo reboot</p>
<p><strong>Using hostingctl command</strong></p>
<p>hostingctl is   a command from where you can change  the hostname  also  with the following commands:</p>
<pre>hostnamectl set-hostname  suse15</pre>
<p><strong>Using  Yast2</strong></p>
<p>Yast2 us  GUI tool  to  manage your  server/desktop</p>
<p>Start <span style="background-color: #f6d5d9;">Yast2 </span>with<br />
# sudo yast2</p>
<p><img loading="lazy" class="alignnone size-full wp-image-2596" src="https://www.osradar.com/wp-content/uploads/2018/04/111.png" alt="" width="811" height="598" srcset="https://www.osradar.com/wp-content/uploads/2018/04/111.png 811w, https://www.osradar.com/wp-content/uploads/2018/04/111-300x221.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/111-768x566.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/111-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2018/04/111-696x513.png 696w, https://www.osradar.com/wp-content/uploads/2018/04/111-570x420.png 570w" sizes="(max-width: 811px) 100vw, 811px" /></p>
<p>&nbsp;</p>
<p>Then NetworkServices &gt; Hostnames &gt; and  change hostname related to your  IP address</p>
<p><img loading="lazy" class="alignnone size-full wp-image-2598" src="https://www.osradar.com/wp-content/uploads/2018/04/222.png" alt="" width="802" height="593" srcset="https://www.osradar.com/wp-content/uploads/2018/04/222.png 802w, https://www.osradar.com/wp-content/uploads/2018/04/222-300x222.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/222-768x568.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/222-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2018/04/222-696x515.png 696w, https://www.osradar.com/wp-content/uploads/2018/04/222-568x420.png 568w" sizes="(max-width: 802px) 100vw, 802px" /></p>
<p><strong>Restart rcnetwork services.</strong></p>
<pre>osradar@suse15~&gt; sudo rcnetwork restart</pre>
<p><strong>How to verify? </strong></p>
<p><img loading="lazy" class="alignnone size-full wp-image-2600" src="https://www.osradar.com/wp-content/uploads/2018/04/333.png" alt="" width="1098" height="310" srcset="https://www.osradar.com/wp-content/uploads/2018/04/333.png 1098w, https://www.osradar.com/wp-content/uploads/2018/04/333-300x85.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/333-768x217.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/333-1024x289.png 1024w, https://www.osradar.com/wp-content/uploads/2018/04/333-696x197.png 696w, https://www.osradar.com/wp-content/uploads/2018/04/333-1068x302.png 1068w" sizes="(max-width: 1098px) 100vw, 1098px" /></p>
<p>Please reboot for the final check and enjoy</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-hostname-in-opensuse-leap/">Change hostname in opensuse Leap</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/change-hostname-in-opensuse-leap/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
