<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alexandre Cazalis</title>
    <description>The latest articles on DEV Community by Alexandre Cazalis (@alexlepalois).</description>
    <link>https://dev.to/alexlepalois</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F872122%2F514a2458-c7ca-4f03-a93e-e170ba762ade.png</url>
      <title>DEV Community: Alexandre Cazalis</title>
      <link>https://dev.to/alexlepalois</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alexlepalois"/>
    <language>en</language>
    <item>
      <title>Setting up a Debian 11 virtual machine using VMware Player</title>
      <dc:creator>Alexandre Cazalis</dc:creator>
      <pubDate>Sun, 19 Jun 2022 10:11:47 +0000</pubDate>
      <link>https://dev.to/alexlepalois/setting-up-a-debian-11x-virtual-machine-using-vmware-player-4hij</link>
      <guid>https://dev.to/alexlepalois/setting-up-a-debian-11x-virtual-machine-using-vmware-player-4hij</guid>
      <description>&lt;p&gt;Well, this is my first post. So don't hesitate to make some remarks on its content !&lt;/p&gt;

&lt;p&gt;Let's try to install the famous Linux distribution Debian 11 on a virtual machine, hosted on a Windows x86 64 bit platform.&lt;br&gt;
To do that, I will use VMware Workstation Player as virtualization tool (free for personal use).&lt;/p&gt;

&lt;h2&gt;
  
  
  A bit of context
&lt;/h2&gt;

&lt;p&gt;Why using a virtual machine ? First, this Debian machine is intended to be used to develop Nintendo 64 homebrews using the old official SDK. &lt;/p&gt;

&lt;p&gt;However, I've read that it will be sometimes necessary to use Windows only compatible tools to develop these N64 programs. I think that a dual boot machine will make things harder when switching between the two operating systems.&lt;/p&gt;

&lt;p&gt;Why not using Wine directly on linux ?&lt;br&gt;
-&amp;gt; I tried some years ago, and it was a pain to get it functional ... I hope it is better now.&lt;/p&gt;

&lt;p&gt;To conclude, my OS dev environment will be :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A Windows 10 host machine.&lt;/li&gt;
&lt;li&gt;A Debian 11 guest machine.&lt;/li&gt;
&lt;li&gt;A share folder to work with common data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installing VM Player
&lt;/h2&gt;

&lt;p&gt;&lt;u&gt;Remark&lt;/u&gt; : if you're using an Intel CPU, you'll need to enable virtualization in the BIOS (option named Intel VT-x).&lt;/p&gt;

&lt;p&gt;Go to this URL to download the tool : &lt;a href="https://customerconnect.vmware.com/en/downloads/info/slug/desktop_end_user_computing/vmware_workstation_player/16_0" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;br&gt;
The major release version right now is 16.&lt;/p&gt;

&lt;p&gt;After the installation process succeed, you can start the tool to get the main menu :&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqx0h4oyzk4ikxv64y9do.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqx0h4oyzk4ikxv64y9do.png" alt="VM Player main menu"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Select a Debian installation image
&lt;/h2&gt;

&lt;p&gt;Go to Debian download page &lt;a href="https://www.debian.org/distrib/index.en.html" rel="noopener noreferrer"&gt;here&lt;/a&gt; to select the adapted image file to download.&lt;br&gt;
For me, I chose a &lt;em&gt;64-bit PC netinst&lt;/em&gt; iso file as the platform I'm currently working on is intel x86_64 CPU based.&lt;/p&gt;

&lt;p&gt;A &lt;em&gt;network install&lt;/em&gt; image means that the installation process will need an internet access. Moreover, the repository of Debian packets (.deb files) will be configured to be used through the Internet (nothing local here).&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuring the virtual machine
&lt;/h2&gt;

&lt;p&gt;Once the Debian iso file is downloaded, you can create a virtual machine on VM Player from the main menu :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Clic on &lt;em&gt;Create a New Virtual Machine&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;em&gt;Installer disc image file (iso)&lt;/em&gt; radio button.&lt;/li&gt;
&lt;li&gt;Browse the Debian iso file you've downloaded.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Next&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;If not automatically detected, select the operating system of the virtual machine. In our case, choose &lt;em&gt;Linux&lt;/em&gt; for the OS, and &lt;em&gt;Debian 10.x 64 bit&lt;/em&gt; for the version (11.x not available yet).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Next&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Choose a name and a location for your VM data.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Next&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Set the type and the size for the virtual disk. 10 Gb will be enough for my project (count 2Gb for the OS itself). I recommend also to use split files to avoid allocating all the space at the beginning (almost no impact on read/write performance).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Next&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Finish&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now you can see your VM has appeared in the list :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F43xrmpcjn1es2u7ah6cu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F43xrmpcjn1es2u7ah6cu.png" alt="VM in list"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Debian 11.x on the VM
&lt;/h2&gt;

&lt;p&gt;Let's start the installation process, by launching the VM (clic on &lt;em&gt;Play virtual machine&lt;/em&gt;).&lt;br&gt;
You'll see the Debian install main menu, once the VM has started:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy5trn338va20peb1vkzg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy5trn338va20peb1vkzg.png" alt="Debian Menu"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Remark&lt;/u&gt; : I've provided my choices between parenthesis.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select &lt;em&gt;Graphical install&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Select a language (English).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select your location (other &amp;gt;&amp;gt; Europe &amp;gt;&amp;gt; France).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Configure locales (United Kingdom - en_GB.UTF-8).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Configure the keyboard (French).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;At this step, the installer checks that it has an internet access, which is mandatory in our case.&lt;/li&gt;
&lt;li&gt;Set an hostname for the VM (debian-n64).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Set a domain name (empty for me).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Set a password for root user. Don't forget it!&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Set a new user (alex) and the associated password. DON'T FORGET IT, because this password will be asked when using &lt;em&gt;sudo&lt;/em&gt; command !&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select the method for partitioning file system (Guided - use entire disk). I recommend the simplest method for VM use.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select the only disk available.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select partition disk (only one partition). I do not recommend &lt;em&gt;Separate /home partition&lt;/em&gt; which broke the installation for me.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Answer &lt;em&gt;yes&lt;/em&gt; to format the disk.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;At this point, the Debian base system is about to be installed.&lt;/li&gt;
&lt;li&gt;Answer &lt;em&gt;no&lt;/em&gt; for adding more Debian repositories (the default one is sufficient).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select the Debian Mirror (France).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select the Debian Mirror (ftp.fr.debian.org).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select the proxy if needed (no proxy for me).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Answer for participating to Debian packet statistics (no).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select the desktop environnement (default).&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Now, you'll have to wait a little when installing all the Debian packet (~1500).&lt;/li&gt;
&lt;li&gt;Answer &lt;em&gt;yes&lt;/em&gt; to install the GRUB.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select the location of GRUB : MBR of &lt;em&gt;/dev/sda1&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Continue&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's all !&lt;/p&gt;

&lt;p&gt;The VM will reboot after that, and the log menu is displayed :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshg64c1hc10ngtzuppbk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshg64c1hc10ngtzuppbk.png" alt="Log menu"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuring the Debian virtual machine
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Enable common alias
&lt;/h3&gt;

&lt;p&gt;I use all the time the alias &lt;em&gt;ll&lt;/em&gt; which is not directly available.&lt;br&gt;
To have that, open a terminal and type : &lt;code&gt;vi ~/.bashrc&lt;/code&gt;.&lt;br&gt;
Now, uncomment the alias by removing the character &lt;em&gt;#&lt;/em&gt;.&lt;br&gt;
Start a new shell : &lt;code&gt;bash&lt;/code&gt; &lt;/p&gt;

&lt;h3&gt;
  
  
  Become a sudoer
&lt;/h3&gt;

&lt;p&gt;To be able to use &lt;em&gt;sudo&lt;/em&gt; command, you've to be in the sudoers list. For that, in a terminal :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log as root : &lt;code&gt;su -&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Type the root password, set during the installation process.&lt;/li&gt;
&lt;li&gt;Edit the sudoers file : &lt;code&gt;visudo&lt;/code&gt;. It opens nano as default editor.&lt;/li&gt;
&lt;li&gt;Add the following line, to add your username (alex for me) :
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alex     ALL=(ALL:ALL) ALL`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Save and quit the editor.&lt;/li&gt;
&lt;li&gt;quit the root session : &lt;code&gt;exit&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Share a host/guest folder
&lt;/h3&gt;

&lt;p&gt;On the host machine (Windows, VM is powered off), in the VMware Player main menu :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select the virtual machine, on the list.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Edit virtual machine settings&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Options&lt;/em&gt; tab.&lt;/li&gt;
&lt;li&gt;Clic on &lt;em&gt;Shared Folders&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;em&gt;Always enabled&lt;/em&gt; radio button.&lt;/li&gt;
&lt;li&gt;Add a folder, and keep in memory the name.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now start the VM and open a terminal :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Edit the fstab file which list mount configuration when the OS is launched : &lt;code&gt;vi /etc/fstab&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Add the following line :
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.host:/share    /home/alex/share    fuse.vmhgfs-fuse    allow_other,uid=1000,gid=1000    0    0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;u&gt;Remarks&lt;/u&gt; : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the local folder /home/alex/share will contain the share folder on the VM. It has to be created using &lt;code&gt;mkdir&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;the string after &lt;code&gt;.host:/&lt;/code&gt; is the name set in the VM Player configuration (for me : &lt;em&gt;share&lt;/em&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next episode
&lt;/h2&gt;

&lt;p&gt;Ok, now I've a Debian virtual machine configured.&lt;br&gt;
Next step will be to build an environnement to compile N64 programs using the official SDK!&lt;/p&gt;

</description>
      <category>debian</category>
      <category>vm</category>
      <category>vmware</category>
    </item>
  </channel>
</rss>
