<?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>Linux Archives - CyberBlogSpot</title>
	<atom:link href="https://cyberblogspot.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://cyberblogspot.com/category/linux/</link>
	<description>Not just another blogspot site</description>
	<lastBuildDate>Sun, 19 Jul 2020 04:19:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://cyberblogspot.com/wp-content/uploads/2018/08/cropped-iphone-iphone3gs-32x32.jpg</url>
	<title>Linux Archives - CyberBlogSpot</title>
	<link>https://cyberblogspot.com/category/linux/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Relocating Shared Folders in VMware Workstation</title>
		<link>https://cyberblogspot.com/relocating-shared-folders-in-vmware-workstation/</link>
					<comments>https://cyberblogspot.com/relocating-shared-folders-in-vmware-workstation/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 12 Oct 2019 12:46:22 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=1155</guid>

					<description><![CDATA[<p>Step 1 &#8211; Enable Folder Sharing in VMware Workstation Step 2 &#8211; Check if the Created Share is Visible A test is performed first if the shared folder is visible before relocating shared folders in VMware Workstation. Step 3 &#8211; Create the Folder Where the Shared Host Folder Will Appear Run the command mkdir &#60;shared-folder-root-directory&#62;,&#8230;&#160;<a href="https://cyberblogspot.com/relocating-shared-folders-in-vmware-workstation/" rel="bookmark">Read More &#187;<span class="screen-reader-text">Relocating Shared Folders in VMware Workstation</span></a></p>
<p>The post <a href="https://cyberblogspot.com/relocating-shared-folders-in-vmware-workstation/">Relocating Shared Folders in VMware Workstation</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Step 1 &#8211; Enable Folder Sharing in VMware Workstation</h3>



<pre class="EnlighterJSRAW">Virtual Machine Settings/Options/Shared Folders</pre>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="706" height="689" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-folders.png" alt="Shared folders option in Virtual Machine Settings needs to be enabled before relocating shared folders in VMware Workstation" class="wp-image-1101" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-folders.png 706w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-folders-300x293.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-folders-400x390.png 400w" sizes="(max-width: 706px) 100vw, 706px" /></figure>



<h3 class="wp-block-heading">Step 2 &#8211; Check if the Created Share is Visible</h3>



<p>A test is performed first if the shared folder is visible before relocating shared folders in VMware Workstation.</p>



<pre class="EnlighterJSRAW"># vmware-hgfsclient</pre>



<figure class="wp-block-image"><img decoding="async" width="804" height="621" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-hgfs.png" alt="The shared folder is tested for visibility before relocating shared folders in VMware Workstation" class="wp-image-1105" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-hgfs.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-hgfs-300x232.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-hgfs-768x593.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-hgfs-400x309.png 400w" sizes="(max-width: 804px) 100vw, 804px" /></figure>



<h3 class="wp-block-heading">Step 3 &#8211; Create the Folder Where the Shared Host Folder Will Appear</h3>



<p>Run the command<strong><em> mkdir &lt;shared-folder-root-directory&gt;</em></strong>, where &#8220;&lt;shared-folder-root-directory&gt;&#8221; may be created anywhere in the root (&#8220;/&#8221;) file system.  It is preferable though, to create the directory in your home directory so it becomes easily accessible like your other user files like the Desktop, Documents, Downloads, Music, Pictures, Public, Templates, Videos, etc.</p>



<pre class="EnlighterJSRAW"># mkdir &lt;shared-folder-root-directory&gt;</pre>



<figure class="wp-block-image"><img decoding="async" width="804" height="621" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mkdir.png" alt="" class="wp-image-1109" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mkdir.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mkdir-300x232.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mkdir-768x593.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mkdir-400x309.png 400w" sizes="(max-width: 804px) 100vw, 804px" /></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="621" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-annotated.png" alt="" class="wp-image-1110" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-annotated.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-annotated-300x232.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-annotated-768x593.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-annotated-400x309.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<h3 class="wp-block-heading">Step 4 &#8211; Mount the Shared Folder</h3>



<p>Mount the shared folder.  Replace &#8220;&lt;shared_folder&gt;&#8221; with the folder name used in Step 1 (in my example, it is &#8220;VMShare&#8221;).  Replace &#8220;&lt;shared-folder-root-directory&gt;&#8221; with the directory name created in Step 3 (for me, it is /root/VMShare).</p>



<pre class="EnlighterJSRAW"># vmhgfs-fuse -o allow_other -o auto_unmount .host:/&lt;shared_folder&gt; &lt;shared-folder-root-directory&gt;</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="621" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mount.png" alt="" class="wp-image-1114" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mount.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mount-300x232.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mount-768x593.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-mount-400x309.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<p>The shared folder should now appear with a sharing icon in your home directory after a successful relocating of shared folders in VMware Workstation.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="621" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-mounted.png" alt="Image showing the shared folder inside the home folder after successfully  relocating shared folders in VMware Workstation" class="wp-image-1112" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-mounted.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-mounted-300x232.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-mounted-768x593.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-shared-mounted-400x309.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<h3 class="wp-block-heading">Step 5 &#8211; Add an Fstab Entry</h3>



<p>The shared folder will disappear when you reboot your system and you will need to re-mount the shared folder.  To make the mount permanent, edit the file<strong><em> /etc/fstab</em></strong> and append the line:</p>



<pre class="EnlighterJSRAW">.host:/&lt;shared_folder&gt; &lt;shared-folder-root-directory&gt; fuse.vmhgfs-fuse nofail,allow_other 0 0</pre>



<p>To edit the file, I usually use<strong><em> nano</em></strong>.</p>



<pre class="EnlighterJSRAW"># nano /etc/fstab</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="621" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-nano.png" alt="" class="wp-image-1115" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-nano.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-nano-300x232.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-nano-768x593.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vm-nano-400x309.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<p>After saving the file, that&#8217;s it.  You&#8217;re shared folder will now show up in your home directory all the time in between reboots.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Note:  In other Linux distributions where VMware Tools are installed as it is, without any patches, once the shared folder is created in the VM Settings/Options, the shared folder automatically appears (get mounted) at <strong><em>/mnt/hgfs/&lt;shared-name&gt;</em></strong> directory.</p></blockquote>



<h2 class="wp-block-heading">Related Articles on Relocating Shared Folders in VMware Workstation </h2>



<p><a href="https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/" target="_blank" aria-label="undefined (opens in a new tab)" rel="noreferrer noopener">How to Install VMware Tools in Arch Linux</a></p>



<h2 class="wp-block-heading">References on Relocating Shared Folders in VMware Workstation</h2>



<p><a rel="noreferrer noopener" aria-label="VMware/Installing Arch as a guest (opens in a new tab)" href="https://wiki.archlinux.org/index.php/VMware/Installing_Arch_as_a_guest#Shared_Folders_with_vmhgfs-fuse_utility" target="_blank">VMware/Installing Arch as a guest</a><br><a rel="noreferrer noopener" aria-label="VMware-Tools-Patches (opens in a new tab)" href="https://github.com/rasa/vmware-tools-patches" target="_blank">VMware-Tools-Patches</a><br><a href="https://kb.vmware.com/s/article/60262" target="_blank" rel="noreferrer noopener" aria-label="How to configure VMware Tools Shared Folders Linux mounts (60262)  (opens in a new tab)">How to configure VMware Tools Shared Folders Linux mounts (60262) </a></p>
<p>The post <a href="https://cyberblogspot.com/relocating-shared-folders-in-vmware-workstation/">Relocating Shared Folders in VMware Workstation</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/relocating-shared-folders-in-vmware-workstation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install VMware Player 15.1 on Kali Linux 2019 &#8211; and Make It Work!</title>
		<link>https://cyberblogspot.com/how-to-install-vmware-player-15-1-on-kali-linux-2019-and-make-it-work/</link>
					<comments>https://cyberblogspot.com/how-to-install-vmware-player-15-1-on-kali-linux-2019-and-make-it-work/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 08 Oct 2019 21:57:28 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=758</guid>

					<description><![CDATA[<p>09 October 2019 Update: VMware Player Version 15.5.0 downloaded on 09 October 2019 installs without any issues on my existing Kali system (Kali Version 5.2.0). Important: This post is specifically for Kali Linux distribution as I did not have any problem installing VMware Workstation Player for other Linux distributions like Ubuntu or Linux Mint. It&#8217;s&#8230;&#160;<a href="https://cyberblogspot.com/how-to-install-vmware-player-15-1-on-kali-linux-2019-and-make-it-work/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Install VMware Player 15.1 on Kali Linux 2019 &#8211; and Make It Work!</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-install-vmware-player-15-1-on-kali-linux-2019-and-make-it-work/">How to Install VMware Player 15.1 on Kali Linux 2019 &#8211; and Make It Work!</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>09 October 2019 Update:</p><p>VMware Player Version 15.5.0 downloaded on 09 October 2019 installs without any issues on my existing Kali system (Kali Version 5.2.0).</p></blockquote>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Important:  This post is specifically for Kali Linux distribution as I did not have any problem installing VMware Workstation Player for other Linux distributions like Ubuntu or Linux Mint.</p></blockquote>



<p>It&#8217;s quite easy to install VMware Player on Kali Linux but making it work is another thing.  After successfully installing VMware Player and launching it, this is what you&#8217;ll get:</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" decoding="async" width="468" height="163" src="https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-player-launch-error.png" alt="&quot;Unable to start services.&quot; error generated by VMware Player when starting up, figure 1, how to install VMware Player 15.1 on Kali Linux" class="wp-image-761" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-player-launch-error.png 468w, https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-player-launch-error-300x104.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-player-launch-error-400x139.png 400w" sizes="auto, (max-width: 468px) 100vw, 468px" /></figure></div>



<p>The log file mentioned on the error message above is pages long and is meant for people with knowledge of the inner workings of Linux.</p>



<p>If you searched the Internet, you would find out that this problem goes way back years to version 14 of VMware Player.  To fix the problem, some people would advise you to install &#8220;build-essentials&#8221;, &#8220;kernel-devel&#8221;, &#8220;gcc&#8221;, &#8220;linux-headers&#8221;, and all sort of packages.  Some would even say that VMware is not for Kali Linux and would advise you to use VirtualBox instead, or use another Linux distribution to be able to install VMware.</p>



<p>The truth is, all the tools for modifying the kernel are already installed on a Kali Linux 2019 distribution and we don&#8217;t even need to install another tool.  And using VirtualBox or another Linux distribution is pointless, as we want a <strong>VMware Player installation on a Kali Linux distribution</strong>.  Period.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>The real fix to this problem is mkubecek&#8217;s vmware-host-modules on github.com &#8211; <a href="https://github.com/mkubecek/vmware-host-modules">https://github.com/mkubecek/vmware-host-modules</a>.</p></blockquote>



<p> If you know your way around Linux, go ahead,  get the &#8220;vmware-host-modules&#8221; on github and enjoy VMware Player 15.1 on Kali LInux 2019.  A step by step procedure for installing VMware Player on Kali Linux follows.</p>



<h2 class="wp-block-heading">Step 1 &#8211; Download VMware Player</h2>



<p>Download VMware Player 15.1 &#8211; <a href="https://my.vmware.com/en/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/15_0">https://my.vmware.com/en/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/15_0</a>.  As of this writing, 20 September 2019, the current VMware Player downloadable is <em>VMware-Player-15.1.0-13591040.x86_64.bundle</em> .</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1024" height="577" src="https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-workstation-player-download-1024x577.png" alt="" class="wp-image-779" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-workstation-player-download-1024x577.png 1024w, https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-workstation-player-download-300x169.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-workstation-player-download-768x432.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-workstation-player-download-400x225.png 400w, https://cyberblogspot.com/wp-content/uploads/2019/09/vmware-workstation-player-download.png 1316w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">Step 2 &#8211; Run VMware Player Installer</h2>



<pre class="EnlighterJSRAW"># cd Downloads
# chmod +x VMware-Player*
# ./VMware-Player-15.1.0-13591040.x86_64.bundle</pre>



<h2 class="wp-block-heading">Related Articles:</h2>



<figure class="wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-cyberblogspot"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="ByjPTq74zl"><a href="https://cyberblogspot.com/how-to-install-arch-linux-on-vmware-workstation-player/">How to Install Arch Linux on VMware WorkStation Player</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;How to Install Arch Linux on VMware WorkStation Player&#8221; &#8212; CyberBlogSpot" src="https://cyberblogspot.com/how-to-install-arch-linux-on-vmware-workstation-player/embed/#?secret=ByjPTq74zl" data-secret="ByjPTq74zl" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<h2 class="wp-block-heading">References:</h2>



<p><a href="http://www.vmware.com">http://www.vmware.com</a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-install-vmware-player-15-1-on-kali-linux-2019-and-make-it-work/">How to Install VMware Player 15.1 on Kali Linux 2019 &#8211; and Make It Work!</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-install-vmware-player-15-1-on-kali-linux-2019-and-make-it-work/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Comparison of Trimmed Images</title>
		<link>https://cyberblogspot.com/comparison-of-trim-images/</link>
					<comments>https://cyberblogspot.com/comparison-of-trim-images/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 07 Oct 2019 11:52:55 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=1244</guid>

					<description><![CDATA[<p>Conclusions: Jpg is smaller than png trimming a image appears to zoom the image as the pixels are stretched with the Cali Theme, image width must be at least 750 pixels to fill the entire width of the content display (image will have no spaces on either side)</p>
<p>The post <a href="https://cyberblogspot.com/comparison-of-trim-images/">Comparison of Trimmed Images</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="600" src="https://cyberblogspot.com/wp-content/uploads/2019/10/original-800x600-1.jpg" alt="" class="wp-image-1246" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/original-800x600-1.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/10/original-800x600-1-300x225.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/original-800x600-1-768x576.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/original-800x600-1-400x300.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /><figcaption>Original image &#8211; 800&#215;600 screenshot</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="749" height="298" src="https://cyberblogspot.com/wp-content/uploads/2019/10/L750Trim.jpg" alt="" class="wp-image-1245" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/L750Trim.jpg 749w, https://cyberblogspot.com/wp-content/uploads/2019/10/L750Trim-300x119.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/L750Trim-400x159.jpg 400w" sizes="auto, (max-width: 749px) 100vw, 749px" /><figcaption>Trimmed bottom and left (750 pixels)</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="318" src="https://cyberblogspot.com/wp-content/uploads/2019/10/L750Trim-resize800.jpg" alt="" class="wp-image-1248" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/L750Trim-resize800.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/10/L750Trim-resize800-300x119.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/L750Trim-resize800-768x305.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/L750Trim-resize800-400x159.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /><figcaption>The trimmed 750-pixel image above, resized to 800 pixels</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="739" height="495" src="https://cyberblogspot.com/wp-content/uploads/2019/10/cropped.jpg" alt="" class="wp-image-1251" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/cropped.jpg 739w, https://cyberblogspot.com/wp-content/uploads/2019/10/cropped-300x201.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/cropped-400x268.jpg 400w" sizes="auto, (max-width: 739px) 100vw, 739px" /></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="489" src="https://cyberblogspot.com/wp-content/uploads/2019/10/Screenshot-from-2019-10-08-04-00-00.png" alt="" class="wp-image-1253" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/Screenshot-from-2019-10-08-04-00-00.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/10/Screenshot-from-2019-10-08-04-00-00-300x199.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/Screenshot-from-2019-10-08-04-00-00-400x266.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1024" height="576" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-1024x576.jpg" alt="" class="wp-image-1490" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-1024x576.jpg 1024w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-300x169.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-768x432.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-400x225.jpg 400w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768.jpg 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>Filename: windows10-desktop-1366&#215;768 <br>File size: 66KB (jpg)<br>Displayed Full Size (1366&#215;768)</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1024" height="576" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-1024x576.jpg" alt="" class="wp-image-1490" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-1024x576.jpg 1024w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-300x169.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-768x432.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-400x225.jpg 400w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768.jpg 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>Filename: windows10-desktop-1366&#215;768 <br>File size: 66KB (jpg)<br>Displayed Large Size (1024&#215;576)</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="300" height="169" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-300x169.jpg" alt="" class="wp-image-1490" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-300x169.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-768x432.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-1024x576.jpg 1024w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-400x225.jpg 400w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768.jpg 1366w" sizes="auto, (max-width: 300px) 100vw, 300px" /><figcaption>Filename: windows10-desktop-1366&#215;768 <br>File size: 66KB (jpg)<br>Displayed Medium Size (300&#215;169)</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="150" height="150" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-1366x768-150x150.jpg" alt="" class="wp-image-1490"/><figcaption>Filename: windows10-desktop-1366&#215;768 <br>File size: 66KB (jpg)<br>Displayed Thumbnail (150&#215;150)</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1000" height="768" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768.jpg" alt="" class="wp-image-1504" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768.jpg 1000w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768-300x230.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768-768x590.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768-400x307.jpg 400w" sizes="auto, (max-width: 1000px) 100vw, 1000px" /><figcaption>windows10-desktop-cropped-1000&#215;768 <br>File size: 49 KB (jpg)<br>Displayed Full Size (1000&#215;768)</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="300" height="230" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768-300x230.jpg" alt="" class="wp-image-1504" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768-300x230.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768-768x590.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768-400x307.jpg 400w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-1000x768.jpg 1000w" sizes="auto, (max-width: 300px) 100vw, 300px" /><figcaption>windows10-desktop-cropped-1000&#215;768 <br>File size: 49 KB (jpg)<br>Displayed Medium (300&#215;230)</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="768" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768.jpg" alt="" class="wp-image-1507" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768-300x288.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768-768x737.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768-400x384.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /><figcaption>windows10-desktop-cropped-800&#215;768.jpg <br>File size: 41 KB<br>Displayed Full size (800&#215;768)</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="300" height="288" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768-300x288.jpg" alt="" class="wp-image-1507" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768-300x288.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768-768x737.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768-400x384.jpg 400w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-800x768.jpg 800w" sizes="auto, (max-width: 300px) 100vw, 300px" /><figcaption>windows10-desktop-cropped-800&#215;768.jpg <br>File size: 41 KB<br>Displayed Medium (300&#215;288)</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="750" height="768" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-750x768.jpg" alt="" class="wp-image-1509" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-750x768.jpg 750w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-750x768-293x300.jpg 293w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-750x768-400x410.jpg 400w" sizes="auto, (max-width: 750px) 100vw, 750px" /><figcaption>windows10-desktop-cropped-750&#215;768.jpg <br>Full size</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="293" height="300" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-750x768-293x300.jpg" alt="" class="wp-image-1509" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-750x768-293x300.jpg 293w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-750x768-400x410.jpg 400w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-750x768.jpg 750w" sizes="auto, (max-width: 293px) 100vw, 293px" /><figcaption>windows10-desktop-cropped-750&#215;768.jpg <br>Medium</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="700" height="768" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-700x768.jpg" alt="" class="wp-image-1511" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-700x768.jpg 700w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-700x768-273x300.jpg 273w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-700x768-400x439.jpg 400w" sizes="auto, (max-width: 700px) 100vw, 700px" /><figcaption>windows10-desktop-cropped-700&#215;768.jpg<br>Full size</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="273" height="300" src="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-700x768-273x300.jpg" alt="" class="wp-image-1511" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-700x768-273x300.jpg 273w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-700x768-400x439.jpg 400w, https://cyberblogspot.com/wp-content/uploads/2019/10/windows10-desktop-cropped-700x768.jpg 700w" sizes="auto, (max-width: 273px) 100vw, 273px" /><figcaption>windows10-desktop-cropped-700&#215;768.jpg<br>medium</figcaption></figure>



<h2 class="wp-block-heading">Conclusions:</h2>



<ul class="wp-block-list"><li>Jpg is smaller than png</li><li>trimming a image appears to zoom the image as the pixels are stretched</li><li>with the Cali Theme, image width must be at least 750 pixels to fill the entire width of the content display (image will have no spaces on either side)</li></ul>
<p>The post <a href="https://cyberblogspot.com/comparison-of-trim-images/">Comparison of Trimmed Images</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/comparison-of-trim-images/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install VMware Tools in Arch Linux</title>
		<link>https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/</link>
					<comments>https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 02 Oct 2019 23:09:34 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=1096</guid>

					<description><![CDATA[<p>VMware Tools incorporates many features that enhance the operation of VMware Workstation. For example, you can activate copy and pasting from documents on the host to the guest computer, or vice versa. Or you can create a shared folder to make files accessible from either the guest or the host machine. It is therefore prudent,&#8230;&#160;<a href="https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Install VMware Tools in Arch Linux</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/">How to Install VMware Tools in Arch Linux</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>VMware Tools incorporates many features that enhance the operation of VMware Workstation.  For example, you can activate copy and pasting from documents on the host to the guest computer, or vice versa.  Or you can create a shared folder to make files accessible from either the guest or the host machine.  It is therefore prudent, if not necessary, to install VMware Tools in Arch Linux right after installing VMware Workstation.</p>



<p>In Arch Linux,  VMware Tools does not install as easily as it does on Windows and other Linux distributions.  One of the problem is the absence of &#8220;init directory&#8221; that the installer needs for it&#8217;s proper installation.  A google search will point you the official Arch Linux website and a github vmware-tools-patches.  Both articles are about making patches to make VMware Tools.</p>



<p>The procedure outlined below does not make any patches and only entails creating the systemd service file to start the VMware Tools service daemon.</p>



<h2 class="wp-block-heading">Step 1 &#8211; Dowload VMware Tools</h2>



<p>Download the VMware Tools package by clicking the &#8220;Install Tools&#8221; button at the bottom of the VMware Workstation&#8217;s window.  You may also start the download process by using the menu at the top of the window by selecting VM/Install VMware Tools.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="808" height="693" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-annotated.png" alt="" class="wp-image-1128" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-annotated.png 808w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-annotated-300x257.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-annotated-768x659.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-annotated-400x343.png 400w" sizes="auto, (max-width: 808px) 100vw, 808px" /></figure>



<h2 class="wp-block-heading">Step 2 &#8211; Unpack VMware Tools</h2>



<p>If the VMware Tools download in Step 1 was successful, the installer ISO image would be automatically mounted on the file system, as shown in the screenshot below.   The installer is mounted at <strong><em>/run/media/root/&#8217;VMware Tools&#8217;</em></strong>.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="828" height="686" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-folder-1.png" alt="" class="wp-image-1138" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-folder-1.png 828w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-folder-1-300x249.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-folder-1-768x636.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-download-folder-1-400x331.png 400w" sizes="auto, (max-width: 828px) 100vw, 828px" /></figure>



<p><br>Let us unpack the compressed installer file to our home directory.  Note that I am logged in as the user &#8220;root&#8221; and my home folder is &#8220;/root&#8221;.</p>



<pre class="EnlighterJSRAW"># tar xf /run/media/root/&#039;VMware Tools&#039;/VMwareTools*.tar.gz -C /root</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="828" height="375" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar.png" alt="" class="wp-image-1140" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar.png 828w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar-300x136.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar-768x348.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar-400x181.png 400w" sizes="auto, (max-width: 828px) 100vw, 828px" /></figure>



<p>The uncompressed installer is now at my home directory as shown by the image below.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="909" height="689" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar-folder.png" alt="" class="wp-image-1142" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar-folder.png 909w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar-folder-300x227.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar-folder-768x582.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-untar-folder-400x303.png 400w" sizes="auto, (max-width: 909px) 100vw, 909px" /></figure>



<h2 class="wp-block-heading">Step 3 &#8211; Create a Fake Init Directory</h2>



<p>Before we run the installer, we need to create a fake init directory.  The init directory is used by Linux distributions that use System V Init for initialization.  Arch Linux does not use the System V Init but instead uses the new <strong><em>systemd</em></strong> initialization.</p>



<pre class="EnlighterJSRAW"># for x in {0..6}; do mkdir -p /etc/init.d/rc${x}.d; done</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="721" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-init.d.png" alt="" class="wp-image-1150" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-init.d.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-init.d-300x269.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-init.d-768x689.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-init.d-400x359.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<h2 class="wp-block-heading">Step 4 &#8211; Run the VMware Installer</h2>



<p>Now, we can run the installer.</p>



<pre class="EnlighterJSRAW"># ./vmware-tools-distrib/vmware-install.pl</pre>



<p>On my install, I accepted all the defaults by pressing the enter key for all the prompts.  The screenshot of the resulting message after the installation process is shown below.  Take note that it says that it was unable to start the vmware-tools service.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="721" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-tools-install.png" alt="" class="wp-image-1151" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-tools-install.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-tools-install-300x269.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-tools-install-768x689.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-tools-install-400x359.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<h2 class="wp-block-heading">Step 5 &#8211; Create a VMware Tools Service File</h2>



<p>Create the service file <strong><em>/etc/systemd/system/vmwaretools.service</em></strong> by starting a text editor.</p>



<pre class="EnlighterJSRAW"># nano /etc/systemd/system/vmwaretools.service</pre>



<p>Type in the following text and save the file.</p>



<pre class="EnlighterJSRAW">&#091;Unit]
Description=VMWare Tools Daemon

&#091;Service]
ExecStart=/etc/init.d/vmware-tools start
ExecStop=/etc/init.d/vmware-tools stop
PIDFile=/var/lock/subsys/vmware
TimeoutSec=0
RemainAfterExit=yes
 
&#091;Install]
WantedBy=multi-user.target</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="721" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-service-file-1.png" alt="" class="wp-image-1163" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-service-file-1.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-service-file-1-300x269.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-service-file-1-768x689.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-service-file-1-400x359.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<h2 class="wp-block-heading">Step 6 &#8211; Start and Enable VMware Tools Service</h2>



<p>To start the VMware Tools service, you can use the command:</p>



<pre class="EnlighterJSRAW"># systemctl start vmwaretools.service</pre>



<p>To make the service start at boot time, we use the command:</p>



<pre class="EnlighterJSRAW"># systemctl enable vmwaretools.service</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="699" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-enable.png" alt="" class="wp-image-1153" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-enable.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-enable-300x261.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-enable-768x668.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-enable-400x348.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<h2 class="wp-block-heading">Step 7 &#8211; Reboot and Check</h2>



<p>To see if VMware Tools successfully starts after after a reboot, type the command:</p>



<pre class="EnlighterJSRAW"># systemctl status vmwaretools.service</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="721" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-check-after-reboot.png" alt="" class="wp-image-1164" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-check-after-reboot.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-check-after-reboot-300x269.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-check-after-reboot-768x689.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-vmware-check-after-reboot-400x359.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<p>That&#8217;s it, and we have now a working VMware Tools Daemon.</p>



<h2 class="wp-block-heading"><strong>Related Arcticles:&nbsp;</strong></h2>



<p><a href="https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/" target="_blank" rel="noopener noreferrer">How to Partition a Disk in Linux with fdisk</a></p>



<h2 class="wp-block-heading">References:</h2>



<p><a href="https://wiki.archlinux.org/index.php/VMware/Installing_Arch_as_a_guest">https://wiki.archlinux.org/index.php/VMware/Installing_Arch_as_a_guest</a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/">How to Install VMware Tools in Arch Linux</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Arch Linux on VMware WorkStation Player</title>
		<link>https://cyberblogspot.com/how-to-install-arch-linux-on-vmware-workstation-player/</link>
					<comments>https://cyberblogspot.com/how-to-install-arch-linux-on-vmware-workstation-player/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 29 Sep 2019 13:18:10 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=913</guid>

					<description><![CDATA[<p>Arch Linux has no graphical user interface (GUI) during installation. In fact, all you will get during installation is a zsh shell prompt as shown in the image below. Therefore, I hope this step-by-step guide on how to install Arch Linux on VMware Workstation Player could make the installation a lot easier. Step 1 &#8211;&#8230;&#160;<a href="https://cyberblogspot.com/how-to-install-arch-linux-on-vmware-workstation-player/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Install Arch Linux on VMware WorkStation Player</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-install-arch-linux-on-vmware-workstation-player/">How to Install Arch Linux on VMware WorkStation Player</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Arch Linux has no graphical user interface (GUI) during installation.  In fact, all you will get during installation is a <strong><em>zsh</em></strong> shell prompt as shown in the image below.  Therefore, I hope this step-by-step guide on how to install Arch Linux on VMware Workstation Player could make the installation a lot easier. </p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="553" height="359" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-prompt.jpg" alt="" class="wp-image-915" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-prompt.jpg 553w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-prompt-300x195.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-prompt-400x260.jpg 400w" sizes="auto, (max-width: 553px) 100vw, 553px" /></figure>



<h2 class="wp-block-heading">Step 1 &#8211; <a href="https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">Partition the hard drive</a></h2>



<p>The first decision to make when installing an operating system is how to partition the hard disk.  In Linux, there are different partition schemes we can use:</p>



<ul class="wp-block-list"><li><strong>All files in one partition</strong> &#8211; a single big partition for the whole system (<strong><em>&#8220;/&#8221;</em></strong> or root partition) and a small swap partition equal to the size of the memory.  This is actually a two-partition scheme.</li><li><strong>Separate /home partition </strong>&#8211; a partition for root<strong><em> (/)</em></strong>, a partition for <strong><em>/home</em></strong>, and a swap partition.  A scheme that uses a total of three (3) partitions.</li><li><strong>Separate /home partition and one or more separate partition for <em>/var, /tmp, /usr, /root</em>, etc</strong>.  Some people call this the complex scheme.  It uses four (4) or more partitions including the swap partition.</li></ul>



<p>To make things simple, we will use the two-partition scheme.  We will partition a 30GB disk into a 28GB root (/) partition and a 2GB swap partition.</p>



<p>First, run the following command in a terminal window to start the partitioning process:   </p>



<pre class="EnlighterJSRAW"># fdisk /dev/sda</pre>



<p> For a step-by-step procedure, see: <a rel="noreferrer noopener" href="https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/" target="_blank">How to Partition a Disk in Linux with fdisk</a>. </p>



<p>The output of the command <strong><em>lsblk</em></strong> below shows the 30GB hard disk<strong><em> sda </em></strong>partitioned into a 28GB <strong><em>sda1</em></strong> and a 2GB <strong><em>sda2</em></strong>, after completing the command <strong><em>fdisk /dev/sda</em></strong> above.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="696" height="226" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-lsblk.png" alt="" class="wp-image-1020" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-lsblk.png 696w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-lsblk-300x97.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-lsblk-400x130.png 400w" sizes="auto, (max-width: 696px) 100vw, 696px" /></figure>



<h2 class="wp-block-heading">Step 2 &#8211; Format and mount the partitions</h2>



<p>The next step is to format and mount the first partition<strong><em> sda1</em></strong>.  </p>



<pre class="EnlighterJSRAW"># mkfs.ext4 /dev/sda1
# mount /dev/sda1 /mnt</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="703" height="344" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mkfs.png" alt="" class="wp-image-1022" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mkfs.png 703w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mkfs-300x147.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mkfs-400x196.png 400w" sizes="auto, (max-width: 703px) 100vw, 703px" /></figure>



<p>Then, we turn the second partition <strong><em>sda2</em></strong> into a swap partition and subsequently, enable it. </p>



<pre class="EnlighterJSRAW"># mkswap /dev/sda2
# swapon /dev/sda2</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="700" height="179" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mkswap.png" alt="" class="wp-image-1024" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mkswap.png 700w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mkswap-300x77.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mkswap-400x102.png 400w" sizes="auto, (max-width: 700px) 100vw, 700px" /></figure>



<p>If we want to make sure if everything is going on right up to this point, we use the command<strong><em> lsblk</em></strong> again.  As can be seen below, <strong><em>sda1</em></strong> has been mounted on <em><strong>/mnt</strong></em> and the swap partition is already enabled.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="700" height="252" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-lsblk2.png" alt="" class="wp-image-1025" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-lsblk2.png 700w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-lsblk2-300x108.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-lsblk2-400x144.png 400w" sizes="auto, (max-width: 700px) 100vw, 700px" /></figure>



<h2 class="wp-block-heading">Step 3 &#8211; Download and install the base distribution packages</h2>



<p>Now we are ready to download and install the base distribution packages (does not include the GUI interface yet).  But first, we have to make sure we have an internet connection.  Type the command below:</p>



<pre class="EnlighterJSRAW"># ping -c 4 www.google.com</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="700" height="312" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-ping-1.png" alt="" class="wp-image-1027" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-ping-1.png 700w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-ping-1-300x134.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-ping-1-400x178.png 400w" sizes="auto, (max-width: 700px) 100vw, 700px" /></figure>



<p>We sent four (4) packets to google and it responded accordingly, so we are good.</p>



<p>Also, we have to modify the file <em><strong>/etc/pacman.d/mirrorlist</strong></em>.  This procedure could make a big difference on how fast we could download the distribution packages .  Moreover, we could avoid being flooded with error messages.  This is because one of the mirrors in the list is not serving the data anymore (in case you have the same mirrorlist that I had).</p>



<p>As a background information, the mirrorlist contains the list of servers around the world serving the Arch Linux distribution packages.  When we start the download process, the downloader uses the first server on the top of the list.  If the server turns out to be slow, maybe because of the server&#8217;s geographical location, the downloader will not switch to another faster server.  The downloader will only switch to the next server on the list if it encounters an error.  As a result,  we may end downloading from a very slow server, making a few minutes of download turn into a couple of hours of waiting.</p>



<p>On my first try at installing Arch Linux, I unwittingly skipped this very important procedure.  The result: it took me approximately two hours and a half (2.5 hours) to download a mere 1GB of data on a 40 Mbps fiber connection.  What was supposed to be a few minutes of download turned into a two-hour-plus nightmare.  Moreover, my terminal display was flooded with error messages because the first server on the top of the list, <a rel="noreferrer noopener" aria-label="http://mirror.netweaver.uk (opens in a new tab)" href="http://mirror.netweaver.uk" target="_blank">http://mirror.netweaver.uk</a>, was not serving the distribution packages anymore.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>To check the status of a mirror, go to <a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://www.archlinux.org/mirrors/status/" target="_blank">https://www.archlinux.org/mirrors/status/</a></p></blockquote>



<p>Therefore, we definitely need to modify the mirrorlist before proceeding.  We should make sure that the servers geographically near us is at the top of the list.  We can do this without actually moving the names by simply commenting out the lines preceding the server(s) we want to use  (put a hashtag sign, &#8220;#&#8221;, at the beginning of the lines).  Below is a screenshot of the top part of the mirrorlist.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="698" height="379" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mirrorlist-1.png" alt="" class="wp-image-1031" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mirrorlist-1.png 698w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mirrorlist-1-300x163.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-mirrorlist-1-400x217.png 400w" sizes="auto, (max-width: 698px) 100vw, 698px" /></figure>



<p>To modify the mirrorlist, we run the command:</p>



<pre class="EnlighterJSRAW"># nano /etc/pacman.d/mirrorlist</pre>



<p>After saving the modified mirrorlist, we can now download and install the base packages.</p>



<pre class="EnlighterJSRAW"># pacstrap /mnt base base-devel</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="700" height="484" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-pacstrap.png" alt="" class="wp-image-1035" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-pacstrap.png 700w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-pacstrap-300x207.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-pacstrap-400x277.png 400w" sizes="auto, (max-width: 700px) 100vw, 700px" /></figure>



<h2 class="wp-block-heading">Step 4 &#8211; Configure the new installation</h2>



<h3 class="wp-block-heading"><strong>Step 4A &#8211; Generate the configuration file fstab</strong></h3>



<p>Generate an fstab to be appended to the existing fstab file located in /mnt/etc/fstab.</p>



<pre class="EnlighterJSRAW"># genfstab -U /mnt &gt;&gt; /mnt/etc/fstab</pre>



<p>The <strong><em>fstab</em></strong> (file system table) is a configuration file containing file systems and their mount points.  It is located in <strong><em>/etc/fstab</em></strong> in the new system.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="701" height="458" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-genfstab.png" alt="" class="wp-image-1038" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-genfstab.png 701w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-genfstab-300x196.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-genfstab-400x261.png 400w" sizes="auto, (max-width: 701px) 100vw, 701px" /></figure>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Before continuing with the configuration, we <strong>chroot</strong> to the newly installed system. </p></blockquote>



<pre class="EnlighterJSRAW"># arch-chroot /mnt</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="699" height="179" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-chroot.png" alt="" class="wp-image-1040" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-chroot.png 699w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-chroot-300x77.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-chroot-400x102.png 400w" sizes="auto, (max-width: 699px) 100vw, 699px" /></figure>



<p>Take note that the prompt changed when we<strong><em> chroot</em></strong>-ed with the command <strong><em>arch-chroot</em></strong>.  It indicates that we are now inside the newly installed system, and, as also shown by the prompt, we are in the new system&#8217;s <strong><em>root (/)</em></strong> directory.  All the subsequent system commands will now run in the context of the newly installed Arch Linux system that we are currently configuring. </p>



<h3 class="wp-block-heading"><em><strong>Step 4B &#8211; Set the time zone and set the hardware clock from the system clock</strong></em> </h3>



<p>Create a symbolic link to the zoneinfo and synchronize the real time clock (hardware clock or BIOS clock) from the system clock.</p>



<pre class="EnlighterJSRAW"># ln -sf /usr/share/zoneinfo/&lt;Region&gt;/&lt;City&gt; /etc/localtime
# hwclock --systohc</pre>



<p>The time zone configuration file is<strong><em> /etc/localtime</em></strong>.  It is a symbolic link to a specific file in<strong><em> /usr/share/zoneinfo</em></strong>.<br>The command <strong><em>hwclock &#8211;systohc </em></strong>creates <strong><em>/etc/adjtime</em></strong>.    It contains information on the time drift of the hardware clock.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="701" height="353" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-localtime.png" alt="" class="wp-image-1042" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-localtime.png 701w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-localtime-300x151.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-localtime-400x201.png 400w" sizes="auto, (max-width: 701px) 100vw, 701px" /></figure>



<h3 class="wp-block-heading"><strong>Step 4C &#8211; Set localization</strong></h3>



<p>We will need to generate a compiled localization file (<strong><em>/usr/lib/locale/locale-archive</em></strong>).  In order to do this, we must first un-comment the locale identifier that we need in the file<strong><em> /etc/locale.gen</em></strong>.  For example, if we want to localize in English particular to the US and use the UTF-8 characters, we need to open the file <strong><em>/etc/locale.gen</em></strong> and remove the hashtag (#) from the line <strong><em>#en_US.UTF-8</em></strong> .</p>



<pre class="EnlighterJSRAW"># nano /etc/locale.gen</pre>



<p>After saving the changes to <strong><em>/etc/locale.gen</em></strong>, run the command<strong><em> locale-gen</em></strong>.</p>



<pre class="EnlighterJSRAW"># locale-gen</pre>



<p>This will generate the file <strong><em>/usr/lib/locale/locale-archive</em></strong>. </p>



<p>Afterwards, create the file <strong><em>/etc/locale.conf </em></strong>defining the LANG variable.</p>



<pre class="EnlighterJSRAW"># echo LANG=en_PH.UTF-8 &gt; /etc/locale.conf</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="356" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-locale-gen.png" alt="" class="wp-image-1047" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-locale-gen.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-locale-gen-300x134.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-locale-gen-768x342.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-locale-gen-400x178.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<h3 class="wp-block-heading"><strong>Step 4D &#8211; Configure Network</strong></h3>



<p>Create the file <strong><em>/etc/hostname</em></strong> containing the host name or computer name to be assigned to this system.</p>



<pre class="EnlighterJSRAW"># echo archlinux &gt; /etc/hostname</pre>



<p>Next, append the file <strong><em>/etc/hosts</em></strong> with the following texts:<br>127.0.0.1 localhost<br>:: 1 localhost<br>127.0.1.1 <em>myhostname</em>.localdomain <em>myhostname</em></p>



<p>The file <strong><em>/etc/hosts</em></strong>, contains a mapping of IP addresses and hostnames.  This file is the first place where programs look for when trying to resolve the IP address of a certain host.</p>



<pre class="EnlighterJSRAW"># nano /etc/hosts</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="330" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-hostname.png" alt="" class="wp-image-1050" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-hostname.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-hostname-300x124.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-hostname-768x317.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-hostname-400x165.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<h3 class="wp-block-heading"><strong>Step 4E &#8211; Set the root password</strong></h3>



<p>In this step, you will be prompted for a new password.</p>



<pre class="EnlighterJSRAW"># passwd</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="216" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-passwd.png" alt="" class="wp-image-1056" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-passwd.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-passwd-300x81.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-passwd-768x207.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-passwd-400x108.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<h3 class="wp-block-heading"><strong>Step 4F &#8211; Download and install the boot loader</strong></h3>



<p>Download the grub boot loader.</p>



<pre class="EnlighterJSRAW">pacman -S grub</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="600" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-download.png" alt="" class="wp-image-1057" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-download.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-download-300x225.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-download-768x576.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-download-400x300.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>Install the grub boot loader.</p>



<pre class="EnlighterJSRAW">grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="323" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-install-1.png" alt="" class="wp-image-1059" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-install-1.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-install-1-300x121.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-install-1-768x310.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-grub-install-1-400x162.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<h2 class="wp-block-heading">Step 5 &#8211; Reboot</h2>



<p>Type the command &#8220;<strong>exit</strong>&#8220;.  Then type the command&#8221;<strong>reboot</strong>&#8220;.  See the output sample below.</p>



<pre class="EnlighterJSRAW"># exit
# reboot</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="283" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-reboot.png" alt="" class="wp-image-1062" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-reboot.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-reboot-300x106.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-reboot-768x272.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-reboot-400x142.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<h2 class="wp-block-heading">Step 6 &#8211; Network configuration, part two </h2>



<p>The previous steps that we have followed so far are based on the official <a rel="noreferrer noopener" aria-label="Arch Linux Installation Guide (opens in a new tab)" href="https://wiki.archlinux.org/index.php/Installation_guide" target="_blank">Arch Linux Installation Guide</a>.  But after the first reboot, if we test for an internet connection just as we did in Step 3 above, we will find out that we have lost our internet connection.</p>



<pre class="EnlighterJSRAW"># ping www.google.com</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="250" src="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-first-boot.png" alt="" class="wp-image-1064" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-first-boot.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-first-boot-300x94.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-first-boot-768x240.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/arch-linux-first-boot-400x125.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>Something is still missing!</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>The solution here can be found in the guide on systemd-networkd: <a href="https://wiki.archlinux.org/index.php/Systemd-networkd">https://wiki.archlinux.org/index.php/Systemd-networkd</a> </p></blockquote>



<p>We need to configure the installed network service<strong><em> systemd-networkd</em></strong>.  Identify first the device name of the LAN adapter:</p>



<pre class="EnlighterJSRAW"># ip link</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="259" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-iplink.png" alt="" class="wp-image-1075" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-iplink.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-iplink-300x97.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-iplink-768x249.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-iplink-400x130.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>In my case, my network adapter is name <strong><em>ens33</em></strong>.  Create a file name <strong><em>&lt;adaptername&gt;.network </em></strong>in <strong><em>/etc/systemd/network</em></strong>, where <strong><em>adaptername</em></strong> is the name of the network adapter.</p>



<pre class="EnlighterJSRAW"># nano /etc/systemd/network/ens33.network</pre>



<p>Place the following entries in the file and save the file.</p>



<pre class="EnlighterJSRAW">&#091;Match]
Name=ens33
&#091;Network]
DHCP=ipv4</pre>



<p>Next, we will create the configuration file<strong><em> /etc/resolv.conf</em></strong>. <br></p>



<pre class="EnlighterJSRAW"># nano /etc/resolv.conf</pre>



<p>Type in the following text and save the file:</p>



<pre class="EnlighterJSRAW">nameserver 8.8.8.8
nameserver 8.8.4.4</pre>



<p>The <strong><em>systemd-networkd</em></strong> configuration is done, so we start the service.  To automatically start the service at boot time, enable the service.</p>



<pre class="EnlighterJSRAW">systemctl start systemd-networkd
systemctl enable systemd-networkd</pre>



<h2 class="wp-block-heading">Step 7 &#8211; Download and install gnome desktop</h2>



<p>Download and install <strong><em>xorg</em></strong> and<strong><em> gnome</em></strong> desktop.</p>



<pre class="EnlighterJSRAW"># pacman -S xorg xorg-server
# pacman -S gnome gnome-extra</pre>



<p>Run<strong><em> systemctl enable gdm.service</em></strong> to make gnome desktop load after booting.  And then, <strong><em>systemctl start gdm.service</em></strong> to bring up the gnome login screen.</p>



<pre class="EnlighterJSRAW"># systemctl enable gdm.service
# systemctl start gdm.service</pre>



<p>We now have the gnome login window.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="721" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login-fresh.png" alt="" class="wp-image-1087" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login-fresh.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login-fresh-300x269.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login-fresh-768x689.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login-fresh-400x359.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<p>And the gnome desktop.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="600" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome.png" alt="" class="wp-image-1083" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-300x225.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-768x576.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-400x300.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>But going on to the network setup, there seems to be a problem.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="600" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-net-prob.png" alt="" class="wp-image-1084" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-net-prob.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-net-prob-300x225.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-net-prob-768x576.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-net-prob-400x300.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>Gnome installed NetworkManager to be used for managing the network but it still has to be started and enabled.   Open a terminal windows and type in the commands:</p>



<pre class="EnlighterJSRAW"># systemctl start NetworkManager
# systemctl enable NetworkManager</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="600" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-network-manager.png" alt="" class="wp-image-1082" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-network-manager.png 800w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-network-manager-300x225.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-network-manager-768x576.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-network-manager-400x300.png 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>Great job! Now, enjoy your new Arch Linux!</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="804" height="721" src="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login.png" alt="" class="wp-image-1081" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login.png 804w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login-300x269.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login-768x689.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/arch-linux-gnome-login-400x359.png 400w" sizes="auto, (max-width: 804px) 100vw, 804px" /></figure>



<h2 class="wp-block-heading">What to Do Next</h2>



<p>After a successful install of Arch Linux, VMware Tools is generally installed next in order add useful features such as copy and pasting and file sharing between host and guest computers.  Please refer to:</p>



<p><a href="https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/">How to Install VMware Tools in Arch Linux</a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-install-arch-linux-on-vmware-workstation-player/">How to Install Arch Linux on VMware WorkStation Player</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-install-arch-linux-on-vmware-workstation-player/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Partition a Disk in Linux with fdisk</title>
		<link>https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/</link>
					<comments>https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 27 Sep 2019 22:52:49 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=960</guid>

					<description><![CDATA[<p>In this tutorial, we are to going to assume that we are preparing a 30GB disk for the installation of a Linux distribution. For simplicity, we are going to partition the drive into only two (2) partitions. The first partition will be a 28GB partition to be used for mounting the whole Linux filesystem and&#8230;&#160;<a href="https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Partition a Disk in Linux with fdisk</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/">How to Partition a Disk in Linux with fdisk</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, we are to going to assume that we are preparing a <strong>30GB</strong> disk for the installation of a Linux distribution.  For simplicity, we  are going to partition the drive into only two (2) partitions.  The first partition will be  a 28GB partition to be used for mounting the whole Linux filesystem and the second 2GB partition is to be used as a swap partition.  Advanced users usually partition a Linux drive into many partitions to create separate partitions for root, home, var, tmp, swap, etc.</p>



<h2 class="wp-block-heading">Step 1 &#8211; Find the device name of the disk to be partitioned</h2>



<pre class="EnlighterJSRAW"># lsblk
# fdisk -l</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="400" src="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-lsblk-list-2.jpg" alt="" class="wp-image-965" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-lsblk-list-2.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-lsblk-list-2-300x150.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-lsblk-list-2-768x384.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-lsblk-list-2-400x200.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /><figcaption>lsblk and fdisk -l output</figcaption></figure>



<p>The device name for the first disk is<strong><em> /dev/sda</em></strong>, the second disk is <strong><em>/dev/sdb</em></strong>, the third disk is<strong><em> /dev/sdc</em></strong>, and so on.<br>In this case, we have a 30GB drive named<em><strong> /dev/sda</strong></em>.  </p>



<h2 class="wp-block-heading">Step 2 &#8211; Create the first partition</h2>



<p> Run the <strong><em>fdisk</em></strong> command specifying the <strong>device name</strong>. </p>



<pre class="EnlighterJSRAW"># fdisk /dev/sda</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="263" src="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk1.jpg" alt="" class="wp-image-966" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk1.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk1-300x99.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk1-768x252.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk1-400x132.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<ul class="wp-block-list"><li>Type &#8220;n&#8221; and press the &#8220;enter key&#8221;</li><li>Type &#8220;p&#8221; or press the &#8220;enter key&#8221; to select the default <strong>partition type</strong>: <strong>primary</strong></li><li>Type &#8220;1&#8221; or press the &#8220;enter key&#8221; to select the default <strong>partition number</strong>: <strong>1</strong></li><li>Type &#8220;2048&#8221; or press the &#8220;enter key&#8221; to select the default <strong>first secto</strong>r: <strong>2048</strong></li><li>Type &#8220;<strong>+28G</strong>&#8221; for the <strong>size of the partition</strong>, and press the &#8220;enter key&#8221;</li></ul>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="395" src="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk2.jpg" alt="" class="wp-image-969" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk2.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk2-300x148.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk2-768x379.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk2-400x198.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>That&#8217;s it for the first 28GB partition. </p>



<h2 class="wp-block-heading">Step 3 &#8211; Create the second partition</h2>



<ul class="wp-block-list"><li> Type &#8220;n&#8221; and press the &#8220;enter key&#8221;</li><li>Type &#8220;p&#8221; or press the &#8220;enter key&#8221; to select the default <strong>partition type</strong>: <strong>primary</strong></li><li>Type &#8220;2&#8221; or press the &#8220;enter key&#8221; to select the default <strong>partition number</strong>: <strong>2</strong></li><li>Press the &#8220;enter key&#8221; to select the <strong>default first sector</strong></li><li>Press the &#8220;enter key&#8221; to select the<strong> default last sector</strong></li></ul>



<p>Take note that on the first sector and last sector prompt, we simply use the default values since we want to use all the remaining space of 2GB for the second partition.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="237" src="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk3.jpg" alt="" class="wp-image-972" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk3.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk3-300x89.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk3-768x228.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk3-400x119.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>The two (2) partitions are already created but we still need to write the changes to the disk.</p>



<h2 class="wp-block-heading">Step 4 &#8211; Write the partitions to the disk</h2>



<ul class="wp-block-list"><li>Press &#8220;w&#8221; and the &#8220;enter key&#8221;</li></ul>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="292" src="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk4.jpg" alt="" class="wp-image-974" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk4.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk4-300x110.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk4-768x280.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk4-400x146.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p><strong><em>fdisk</em></strong> writes the changes to the partition table of the disk and automatically exits to the shell prompt.</p>



<h2 class="wp-block-heading">Step 5 &#8211; Verify the created partitions</h2>



<p>To verify if we really succeeded in partitioning the drive into two (2) partitions, we use <strong>lsblk</strong> and<strong> fdisk</strong> again.</p>



<pre class="EnlighterJSRAW"># lsblk
# fdisk -l</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="498" src="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-last.jpg" alt="" class="wp-image-975" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-last.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-last-300x187.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-last-768x478.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/09/fdisk-last-400x249.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p>As the output shows, we have the two (2) partitions <strong>sda1</strong> and <strong>sda2</strong> under the device<strong> sda</strong> with the correct sizes of 28GB and 2GB respectively. </p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>For the details of the commands used in this tutorial, please refer to:<br><a rel="noreferrer noopener" href="https://wiki.archlinux.org/index.php/Fdisk" target="_blank">fdisk</a><br><a rel="noreferrer noopener" href="https://wiki.archlinux.org/index.php/Device_file#lsblk" target="_blank">lsblk</a> </p></blockquote>



<h2 class="wp-block-heading">Related Articles on How to Partition a Disk in Linux with fdisk</h2>



<p><a href="https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/">How to Install VMware Tools in Arch Linux</a><br><a href="https://cyberblogspot.com/how-to-install-vmware-tools-in-arch-linux/">How to Install VMware Tools in Arch Linux</a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/">How to Partition a Disk in Linux with fdisk</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change Kali Terminal Prompt Color</title>
		<link>https://cyberblogspot.com/how-to-change-kali-linux-terminal-prompt-color/</link>
					<comments>https://cyberblogspot.com/how-to-change-kali-linux-terminal-prompt-color/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 24 Sep 2019 09:48:01 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=792</guid>

					<description><![CDATA[<p>The environment variable PS1 (Prompt String One) holds the string that is being displayed as a command or shell prompt in the terminal emulator program Terminal. The prompt string is embedded (interspersed) with color tags in the form of where x is a display attribute (normal, dim, bold, italics, etc) and y is the color&#8230;&#160;<a href="https://cyberblogspot.com/how-to-change-kali-linux-terminal-prompt-color/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Change Kali Terminal Prompt Color</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-change-kali-linux-terminal-prompt-color/">How to Change Kali Terminal Prompt Color</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>The environment variable <strong>PS1</strong> (Prompt String One) holds the string that is being displayed as a command or shell prompt in the terminal emulator program Terminal.  The prompt string is embedded (interspersed) with color tags in the form of</p></blockquote>



<pre class="EnlighterJSRAW">\&#091;\033&#091;x;ym\]</pre>



<blockquote class="wp-block-quote is-style-default is-layout-flow wp-block-quote-is-layout-flow"><p>where <strong>x </strong>is a display attribute (normal, dim, bold, italics, etc) and <strong>y</strong> is the color code.</p><p>Changing the value or content of PS1 during a terminal session quickly changes the displayed prompt, however, the changes are lost once the terminal session is closed.  To make the changes permanent, the hidden file named .<strong>bashrc</strong> located in the user&#8217;s home directory must be edited to reflect the changes in the prompt string.</p></blockquote>



<h2 class="wp-block-heading">Displaying the Value of PS1</h2>



<h3 class="wp-block-heading">Command</h3>



<pre class="EnlighterJSRAW">echo $PS1</pre>



<h3 class="wp-block-heading">Output</h3>



<pre class="EnlighterJSRAW">\&#091;\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\&#091;\033&#091;01;33m\]\u@\h\&#091;\033&#091;00m\]:\&#091;\033&#091;01;34m\]\w\&#091;\033&#091;00m\]\$</pre>



<h2 class="wp-block-heading">Changing the Prompt</h2>



<p>The prompt string can be made as simple as a single character like a dollar sign ($) or a hashtag sign (#).  Or it can be any text string you may want.  To change the prompt string, assign a new value to PS1.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>To enter a string with spaces or non-printable characters, enclose the string with single (&#8216;) or double (&#8220;) quotes. </p></blockquote>



<pre class="EnlighterJSRAW">PS1=$
PS1=#
PS1=Jean
PS1=&quot;Jean Valjean&quot;
PS1=24601</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="489" src="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-prompt-string-examples.png" alt="" class="wp-image-845" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-prompt-string-examples.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-prompt-string-examples-300x199.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-prompt-string-examples-400x266.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /><figcaption>Figure 1 &#8211; Examples of Customized Prompt</figcaption></figure>



<h2 class="wp-block-heading">The Default Shell Prompt</h2>



<p>The default shell prompt, besides being a cue for entering a shell command in a terminal session, is also used to convey a lot of information about the system.  Take for an example the default Kali Linux shell prompt,</p>



<pre class="EnlighterJSRAW">root@kali~#</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="147" src="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-default-prompt-red.png" alt="" class="wp-image-849" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-default-prompt-red.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-default-prompt-red-300x60.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-default-prompt-red-400x80.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /><figcaption>Figure 2 &#8211; Default Kali Linux Terminal Shell Prompt</figcaption></figure>



<p>The default shell prompt is in <strong>red</strong>, a warning sign.  It indicates that the terminal user has administrative privileges or root privileges.  It means that the user may, and can, mess up the system with improper commands like deleting files necessary for Kali&#8217;s normal operations.</p>



<p>It also shows the current user<strong> root</strong>, the host name <strong>kali</strong>, the current working directory, the <strong>home directory </strong>represented by the tilde sign <strong>(~)</strong>, and finally, the hashtag sign <strong>(#) </strong>indicating a priveleged user as opposed to an ordinary user which is usually handed a prompt with a dollar sign ($).</p>



<h2 class="wp-block-heading">Understanding the Cryptic PS1</h2>



<p>To incorporate meaningful information on the shell prompt, <em> bash</em>, the shell interpreter, uses a special set of characters called <em>escape characters </em>, to encode information in the prompt string.  See the table (Bash Prompt Escape Characters) below for the complete list of escape characters that are recognized by <em>bash</em>. </p>



<figure class="wp-block-table"><table><tbody><tr><td><strong>Escape Character Code</strong></td><td><strong>Meaning</strong></td></tr><tr><td>\u</td><td>Username</td></tr><tr><td>\h</td><td>Hostname</td></tr><tr><td>\w</td><td>Working directory</td></tr><tr><td>\$</td><td>Display a hashtag if uid=0 (user is root) or else display a dollar sign ($)</td></tr></tbody></table></figure>



<p>Let&#8217;s try this one:</p>



<pre class="EnlighterJSRAW">PS1=&#039;\u\h\w\$&#039;</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="147" src="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-sample-escape-chars.png" alt="" class="wp-image-855" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-sample-escape-chars.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-sample-escape-chars-300x60.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-sample-escape-chars-400x80.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /></figure>



<p>The resulting prompt (rootkali~#) is close to the default prompt (root@kali:~#).  Let us now insert the hashtag sign (@)  sign between the words &#8220;root&#8221; and &#8220;kali&#8221; and also insert the colon sign (:) between the word &#8220;kali&#8221; and the tilde sign (~):</p>



<pre class="EnlighterJSRAW">PS1=&#039;\u@\h\w:\$&#039;</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="147" src="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-prompt-escape-chars-2.png" alt="" class="wp-image-858" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-prompt-escape-chars-2.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-prompt-escape-chars-2-300x60.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-prompt-escape-chars-2-400x80.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /></figure>



<p>The resulting shell prompt is now the same as the default prompt, only, without the colors. </p>



<p>As mentioned above the color tag is in the form of:</p>



<pre class="EnlighterJSRAW">\&#091;\033&#091;x;ym\]</pre>



<p>where<strong> x</strong> is an attribute and <strong>y </strong>is the color code.</p>



<pre class="EnlighterJSRAW">&#091;table id=14 /]</pre>



<p>Going back to our last shell prompt,</p>



<pre class="EnlighterJSRAW">PS1=&#039;\u@\h\w:\$&#039;</pre>



<p>we&#8217;ll add the color tag for <strong>red</strong> (31) with <strong>bold</strong> (1) attribute to make the words &#8220;root@kali&#8221; bold red, </p>



<pre class="EnlighterJSRAW">\&#091;\033&#091;1;31m\]</pre>



<p>add the color tag for <strong>blue</strong> (34) with <strong>bold</strong> (1) attribute before the tilde sign,</p>



<pre class="EnlighterJSRAW">\&#091;\033&#091;1;34m\]</pre>



<p>and finally, insert the color tag for <strong>white</strong> (37) with <strong>normal </strong>(0) attribute after the tilde sign,</p>



<pre class="EnlighterJSRAW">\&#091;\033&#091;0;37m\]</pre>



<p>The resulting code will be:</p>



<pre class="EnlighterJSRAW">PS1=&#039;\&#091;\033&#091;1;31m\]\u@\h\&#091;\033&#091;1;34m\]\w:\&#091;\033&#091;0;37m\]\$&#039;</pre>



<p>Now, we have the Kali&#8217;s default shell prompt.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="147" src="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-complete.png" alt="" class="wp-image-870" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-complete.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-complete-300x60.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/terminal-complete-400x80.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /></figure>



<h2 class="wp-block-heading">Summary</h2>



<p>To summarize, the shell prompt string is stored in the environment variable PS1.  The string is composed of escape characters with meanings as defined in the table Bash Prompt Escape Characters.  It also contains color tags in the form of,</p>



<pre class="EnlighterJSRAW">\&#091;\033&#091;x;ym\]</pre>



<p>as defined in the Attribute and Color Codes table.</p>



<h2 class="wp-block-heading">Dissecting Kali&#8217;s Default Prompt</h2>



<p>The Kali Linux Terminal&#8217;s  default shell prompt as quoted at the very start of this post is represented by the string, </p>



<pre class="EnlighterJSRAW">\&#091;\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\&#091;\033&#091;01;33m\]\u@\h\&#091;\033&#091;00m\]:\&#091;\033&#091;01;34m\]\w\&#091;\033&#091;00m\]\$</pre>



<p>which is the output of the command:</p>



<pre class="EnlighterJSRAW">echo $PS1</pre>



<p>The configuration string up to the curly right braced &#8220;}&#8221; takes effect only when a user changes the apparent root directory by using the command &#8220;chroot&#8221;.</p>



<pre class="EnlighterJSRAW">\&#091;\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}</pre>



<p>Since we are not chroot-ing, we&#8217;re interested only on the part of the environment string past the curly right braces &#8220;}&#8221;, which is:</p>



<pre class="EnlighterJSRAW">\&#091;\033&#091;01;33m\]\u@\h\&#091;\033&#091;00m\]:\&#091;\033&#091;01;34m\]\w\&#091;\033&#091;00m\]\$</pre>



<p>Based on our discussion above, here is the dissection of the said prompt:</p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td>\[</td><td>Start of color information.</td></tr><tr><td>\033[01;33m</td><td>Bold Yellow</td></tr><tr><td>\]</td><td>End of color information.</td></tr><tr><td>\u</td><td>Display the current user name</td></tr><tr><td>@</td><td>Display the &#8220;@&#8221; sign. </td></tr><tr><td>\h</td><td>Display the host name.</td></tr><tr><td>\[ </td><td>Start of color information.</td></tr><tr><td>\033[00m</td><td></td></tr><tr><td>\033[00m</td><td>Color information (See table below).</td></tr><tr><td>\]</td><td>End of color information.</td></tr><tr><td>:</td><td>Display the colon sign(&#8220;:&#8221;).</td></tr><tr><td>\[</td><td>Start of color information.</td></tr><tr><td>\033[01;34m</td><td>Bold Blue</td></tr><tr><td>\]</td><td>End of color information.</td></tr><tr><td>\w</td><td>Display the current working directory (tilde sign &#8220;~&#8221;)</td></tr><tr><td>\[</td><td>Start of color information.</td></tr><tr><td>\033[00m</td><td></td></tr><tr><td>\]</td><td>End of color information.</td></tr><tr><td>\$</td><td>If user is root, display &#8220;#&#8221;, else display &#8220;$&#8221;</td></tr></tbody></table></figure>



<h2 id="tablepress-12-name" class="tablepress-table-name tablepress-table-name-id-12">Table 2. Bash Prompt Escape Characters</h2>

<table id="tablepress-12" class="tablepress tablepress-id-12" aria-labelledby="tablepress-12-name" aria-describedby="tablepress-12-description">
<thead>
<tr class="row-1">
	<th class="column-1">Escape Character</th><th class="column-2">Description</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">\a</td><td class="column-2">A bell character.</td>
</tr>
<tr class="row-3">
	<td class="column-1">\d</td><td class="column-2">The date, in "Weekday Month Date" format (e.g., "Tue May 26").</td>
</tr>
<tr class="row-4">
	<td class="column-1">\D{format}</td><td class="column-2">The format is passed to strftime(3) and the result is inserted into the prompt string; an empty format results in a locale-specific time representation. The braces are required.</td>
</tr>
<tr class="row-5">
	<td class="column-1">\e</td><td class="column-2">An escape character.</td>
</tr>
<tr class="row-6">
	<td class="column-1">\h</td><td class="column-2">The hostname, up to the first ‘.’.</td>
</tr>
<tr class="row-7">
	<td class="column-1">\H</td><td class="column-2">The hostname.</td>
</tr>
<tr class="row-8">
	<td class="column-1">\j</td><td class="column-2">The number of jobs currently managed by the shell.</td>
</tr>
<tr class="row-9">
	<td class="column-1">\l</td><td class="column-2">The basename of the shell’s terminal device name.</td>
</tr>
<tr class="row-10">
	<td class="column-1">\n</td><td class="column-2">A newline.</td>
</tr>
<tr class="row-11">
	<td class="column-1">\r</td><td class="column-2">A carriage return.</td>
</tr>
<tr class="row-12">
	<td class="column-1">\s</td><td class="column-2">The name of the shell, the basename of $0 (the portion following the final slash).</td>
</tr>
<tr class="row-13">
	<td class="column-1">\t</td><td class="column-2">The time, in 24-hour HH:MM:SS format.</td>
</tr>
<tr class="row-14">
	<td class="column-1">\T</td><td class="column-2">The time, in 12-hour HH:MM:SS format.</td>
</tr>
<tr class="row-15">
	<td class="column-1">\@</td><td class="column-2">The time, in 12-hour am/pm format.</td>
</tr>
<tr class="row-16">
	<td class="column-1">\A</td><td class="column-2">The time, in 24-hour HH:MM format.</td>
</tr>
<tr class="row-17">
	<td class="column-1">\u</td><td class="column-2">The username of the current user.</td>
</tr>
<tr class="row-18">
	<td class="column-1">\v</td><td class="column-2">The version of Bash (e.g., 2.00).</td>
</tr>
<tr class="row-19">
	<td class="column-1">\V</td><td class="column-2">The release of Bash, version + patchlevel (e.g., 2.00.0).</td>
</tr>
<tr class="row-20">
	<td class="column-1">\w</td><td class="column-2">The current working directory, with $HOME abbreviated with a tilde (uses the $PROMPT_DIRTRIM variable).</td>
</tr>
<tr class="row-21">
	<td class="column-1">\W</td><td class="column-2">The basename of $PWD, with $HOME abbreviated with a tilde.</td>
</tr>
<tr class="row-22">
	<td class="column-1">\!</td><td class="column-2">The history number of this command.</td>
</tr>
<tr class="row-23">
	<td class="column-1">\#</td><td class="column-2">The command number of this command.</td>
</tr>
<tr class="row-24">
	<td class="column-1">\$</td><td class="column-2">If the effective uid is 0, #, otherwise $.<br />
</td>
</tr>
<tr class="row-25">
	<td class="column-1">\nnn</td><td class="column-2">The character whose ASCII code is the octal value nnn.</td>
</tr>
<tr class="row-26">
	<td class="column-1">\\</td><td class="column-2">A backslash.</td>
</tr>
<tr class="row-27">
	<td class="column-1">\[</td><td class="column-2">Begin a sequence of non-printing characters.  This could be used to embed a terminal control sequence into the prompt.</td>
</tr>
<tr class="row-28">
	<td class="column-1">\]</td><td class="column-2">End a sequence of non-printing characters.</td>
</tr>
</tbody>
</table>
<span id="tablepress-12-description" class="tablepress-table-description tablepress-table-description-id-12">Source: https://www.gnu.org/software/bash/manual/bash.pdf<br />
Bash Reference Manual<br />
Reference Documentation for Bash<br />
Edition 5.0, for Bash Version 5.0.<br />
May 2019<br />
Chapter 6.9 - Controlling the Prompt, Pages 97-98<br />
Downloaded 19Sept2019</span>




<figure class="wp-block-image"><img loading="lazy" decoding="async" width="800" height="417" src="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-prompt-fore-colors-cropped.jpg" alt="" class="wp-image-1636" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-prompt-fore-colors-cropped.jpg 800w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-prompt-fore-colors-cropped-300x156.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-prompt-fore-colors-cropped-768x400.jpg 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-prompt-fore-colors-cropped-400x209.jpg 400w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<h2 class="wp-block-heading">Related Articles:</h2>



<p><a href="https://cyberblogspot.com/how-to-partition-a-disk-in-linux-with-fdisk/" target="_blank" aria-label="undefined (opens in a new tab)" rel="noreferrer noopener">How to Partition a Disk in Linux with fdisk</a></p>



<h2 class="wp-block-heading">References:</h2>



<p><a href="https://www.gnu.org/software/bash/manual/bash.pdf">https://www.gnu.org/software/bash/manual/bash.pdf</a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-change-kali-linux-terminal-prompt-color/">How to Change Kali Terminal Prompt Color</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-change-kali-linux-terminal-prompt-color/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Kali Linux Terminal Commands</title>
		<link>https://cyberblogspot.com/kali-linux-terminal-commands/</link>
					<comments>https://cyberblogspot.com/kali-linux-terminal-commands/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 18 Sep 2019 00:04:08 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=713</guid>

					<description><![CDATA[<p>Software Package Maintenance Run &#8220;apt-get update&#8221; and &#8220;apt-get upgrade&#8221; to update installed software packages.To install a new software package, run &#8220;apt-get install &#60;software package name&#62;&#8221;. Apt sources list is /etc/apt/sources.list and must contain: Information Display Display operating system version. List block devices like hard drives and usb drives.</p>
<p>The post <a href="https://cyberblogspot.com/kali-linux-terminal-commands/">Kali Linux Terminal Commands</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Software Package Maintenance</h2>



<pre class="EnlighterJSRAW"># apt-get update
# apt-get upgrade
# apt-get install &lt;software package name&gt;</pre>



<p>Run &#8220;apt-get update&#8221; and &#8220;apt-get upgrade&#8221; to update installed software packages.<br>To install a new software package, run &#8220;apt-get install &lt;software package name&gt;&#8221;.<br><br>Apt sources list is <strong>/etc/apt/sources.list</strong> and must contain:</p>



<pre class="EnlighterJSRAW">deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free</pre>



<h2 class="wp-block-heading">Information Display</h2>



<pre class="EnlighterJSRAW"># uname -a</pre>



<p>Display operating system version.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="489" src="https://cyberblogspot.com/wp-content/uploads/2019/09/uname.png" alt="" class="wp-image-750" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/uname.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/09/uname-300x199.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/uname-400x266.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /></figure>



<pre class="EnlighterJSRAW"># lsblk</pre>



<p>List block devices like hard drives and usb drives.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="489" src="https://cyberblogspot.com/wp-content/uploads/2019/09/lsblk-2.png" alt="" class="wp-image-753" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/lsblk-2.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/09/lsblk-2-300x199.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/lsblk-2-400x266.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /><figcaption><strong>Figure 2</strong> lsblk command showing device sda and sdb (drives a and b)</figcaption></figure>



<p></p>
<p>The post <a href="https://cyberblogspot.com/kali-linux-terminal-commands/">Kali Linux Terminal Commands</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/kali-linux-terminal-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Make Kali Linux Live Persistent</title>
		<link>https://cyberblogspot.com/how-to-make-kali-linux-live-persistent/</link>
					<comments>https://cyberblogspot.com/how-to-make-kali-linux-live-persistent/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 17 Sep 2019 02:16:13 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=698</guid>

					<description><![CDATA[<p>To make Kali Live persistent, create a new ext4 partition, make a filesystem labelled &#8220;persistence&#8221;, create a file named &#8220;persistence.conf&#8221; with the text &#8220;/ union&#8221;. commands: # lsblk create new primary partition on sdb2&#8217;s free space, write the changes and quit cfdisk # cfdisk /dev/sdb (cfdisk is curses fdisk) # mkfs.ext4 -L persistence /dev/sdb3 &#8211;&#8230;&#160;<a href="https://cyberblogspot.com/how-to-make-kali-linux-live-persistent/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Make Kali Linux Live Persistent</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-make-kali-linux-live-persistent/">How to Make Kali Linux Live Persistent</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>To make Kali Live persistent, create a new ext4 partition, make a filesystem labelled &#8220;persistence&#8221;, create a file named &#8220;persistence.conf&#8221; with the text &#8220;/ union&#8221;.</p>



<p>commands:</p>



<p># lsblk</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="489" src="https://cyberblogspot.com/wp-content/uploads/2019/09/lsblk-command.png" alt="" class="wp-image-722" srcset="https://cyberblogspot.com/wp-content/uploads/2019/09/lsblk-command.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/09/lsblk-command-300x199.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/09/lsblk-command-400x266.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /></figure>



<p>create new primary partition on sdb2&#8217;s free space, write the changes and quit cfdisk</p>



<p># cfdisk /dev/sdb (cfdisk is curses fdisk)</p>



<p># mkfs.ext4 -L persistence /dev/sdb3 &#8211; make an ext4 filesystem on sdb3</p>



<p># e2label /dev/sdb3 persistence &#8211; label with &#8220;persistence&#8221;</p>



<p>create the configuration file</p>



<p># mkdir -p /mnt/my_usb<br># mount /dev/sdb3 /mnt/my_usb<br>#echo &#8220;/ union&#8221; &gt; /mnt/my_usb/persistence.conf<br>#umount /dev/sdb3</p>



<p>done</p>



<p></p>
<p>The post <a href="https://cyberblogspot.com/how-to-make-kali-linux-live-persistent/">How to Make Kali Linux Live Persistent</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-make-kali-linux-live-persistent/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Hack Wireless Passwords Using Kali Linux</title>
		<link>https://cyberblogspot.com/how-to-hack-wireless-passwords-using-kali-linux/</link>
					<comments>https://cyberblogspot.com/how-to-hack-wireless-passwords-using-kali-linux/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 13 Sep 2019 22:26:49 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.cyberblogspot.com/?p=703</guid>

					<description><![CDATA[<p>In order to get the password of a Wireless Access Point (WAP), the handshake information between a client (pc, laptop, iphone, or an android phone), and the WAP must first be sniffed and saved into a packet capture (pcap) file. This pcap file is then fed to a password cracking tool like aircrack-ng or submitted&#8230;&#160;<a href="https://cyberblogspot.com/how-to-hack-wireless-passwords-using-kali-linux/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Hack Wireless Passwords Using Kali Linux</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-hack-wireless-passwords-using-kali-linux/">How to Hack Wireless Passwords Using Kali Linux</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In order to get the password of a Wireless Access Point (WAP), the handshake information between a client (pc, laptop, iphone, or an android phone), and the WAP must first be sniffed and saved into a packet capture (pcap) file.  This pcap file is then fed to a password cracking tool like aircrack-ng or submitted to a cloud cracking service.</p>



<p>Whatever your motivations for studying wifi password hacking, be advised that cracking a password with an ordinary home computer may take a few seconds to a million years, depending on the strength of the password being cracked.  See https://password.kaspersky.com/, for a test on how long it takes to crack different passwords. </p>



<p>The procedure for cracking using Kali Linux:</p>



<h2 class="wp-block-heading">Step 1 &#8211; Identify Wireless Adapter Device Name</h2>



<pre class="EnlighterJSRAW"># ifconfig</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="543" src="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-ifconfig.png" alt="ifconfig output for identifying the installed wireless adapter to be used on how to hack wireless passwords" class="wp-image-1265" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-ifconfig.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-ifconfig-300x221.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-ifconfig-400x295.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /><figcaption>Output of ifconfig showing the wireless device wlan0</figcaption></figure>



<p>Based on the output above, my wireless adapter device name is <strong><em>wlan0</em></strong>.</p>



<h2 class="wp-block-heading">Step 2 &#8211; Place Wireless Adapter in Monitor (Promiscous) Mode</h2>



<pre class="EnlighterJSRAW"># airmon-ng start wlan0</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="471" src="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airmon-ng.png" alt="Airmon-ng places the wireless adapter into monitor mode in preparation on how to hack wireless passwords" class="wp-image-1267" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airmon-ng.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airmon-ng-300x192.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airmon-ng-400x256.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /><figcaption>Output of airmon-ng</figcaption></figure>



<p>The output of the command indicates that &#8220;monitor mode vif enabled for [phy0]wlan0 on [phy0]<strong><em>wlan0mon</em></strong>&#8220;.  To verify this, run the command <strong><em>ifconfig</em></strong> again.</p>



<pre class="EnlighterJSRAW"># ifconfig</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="736" height="579" src="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-ifconfig2.png" alt="" class="wp-image-1269" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-ifconfig2.png 736w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-ifconfig2-300x236.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-ifconfig2-400x315.png 400w" sizes="auto, (max-width: 736px) 100vw, 736px" /></figure>



<p>Take note that the network device <strong><em>wlan0</em></strong> disappeared from the display and was replaced by <strong><em>wlan0mon</em></strong>.</p>



<h2 class="wp-block-heading">Step 3 &#8211; Display the Wireless Networks in the Neighborhood</h2>



<pre class="EnlighterJSRAW"># airodump-ng wlan0mon</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="871" height="579" src="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng.png" alt="" class="wp-image-1272" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng.png 871w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng-300x199.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng-768x511.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng-400x266.png 400w" sizes="auto, (max-width: 871px) 100vw, 871px" /></figure>



<p>The output of <strong><em>airodump-ng</em></strong> is a list of wireless networks in the area, and below it, is the list of connected clients associated with each network.  Copy the BSSID and CH (channel number) of the target wireless network.  In my case I will use the second network on the list with BSSID <strong><em>38:37:8B:FE:7B:DB</em></strong> operating on channel <strong><em>5</em></strong>.  After copying the BSSID and Channel Number, stop airodump-ng by pressing &lt;ctrl-Z&gt;.</p>



<h2 class="wp-block-heading">Step 4 &#8211; Capture the Handsake Packets</h2>



<pre class="EnlighterJSRAW"># airodump-ng -c 5 --bssid 38:37:8b:fe:7b:db -w /root/Desktop wlan0mon</pre>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="853" height="327" src="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng-2.png" alt="" class="wp-image-1275" srcset="https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng-2.png 853w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng-2-300x115.png 300w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng-2-768x294.png 768w, https://cyberblogspot.com/wp-content/uploads/2019/10/terminal-command-airodump-ng-2-400x153.png 400w" sizes="auto, (max-width: 853px) 100vw, 853px" /></figure>



<h2 class="wp-block-heading">Step 5 &#8211; Crack the Wireless Password</h2>



<pre class="EnlighterJSRAW"># aircrack-ng -b 38:37:8b:fe:7b:db -w /usr/share/wordlist/rockyou.txt /root/Desktop/*.cap</pre>



<p>Wait for aircrack-ng to finish cracking the password.</p>



<h2 class="wp-block-heading">Related Articles on How to Hack Wireless Passwords Using Kali Linux</h2>



<p><a href="https://cyberblogspot.com/how-to-change-kali-linux-terminal-prompt-color/">How to Change Kali Terminal Prompt Color</a></p>



<h2 class="wp-block-heading">References on How to Hack Wireless Passwords Using Kali Linux</h2>



<p><a href="https://www.kali.org/advanced-web-attacks-and-exploitation/">https://www.kali.org/advanced-web-attacks-and-exploitation/</a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-hack-wireless-passwords-using-kali-linux/">How to Hack Wireless Passwords Using Kali Linux</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-hack-wireless-passwords-using-kali-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
