<?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: shreyashah1903</title>
    <description>The latest articles on DEV Community by shreyashah1903 (@shreyashah1903).</description>
    <link>https://dev.to/shreyashah1903</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%2F670566%2F5e77230c-f759-4286-a0bd-ab129bbafb5a.jpeg</url>
      <title>DEV Community: shreyashah1903</title>
      <link>https://dev.to/shreyashah1903</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shreyashah1903"/>
    <language>en</language>
    <item>
      <title>Set up Wifi from terminal</title>
      <dc:creator>shreyashah1903</dc:creator>
      <pubDate>Tue, 14 May 2024 21:17:31 +0000</pubDate>
      <link>https://dev.to/shreyashah1903/set-up-wifi-from-terminal-5c5m</link>
      <guid>https://dev.to/shreyashah1903/set-up-wifi-from-terminal-5c5m</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

sudo apt install wpa_supplicant
# Find out what is the wifi name
ip link set dev wlp3s0 up

#If wpa_supplicant conf file does not exist
wpa_passphrase &amp;lt;wifi_name&amp;gt; &amp;lt;wifi_password&amp;gt; | tee /etc/wpa_supplicant/wpa_supplicant.conf

wpa_supplicant -B -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlp3s0
dhclient wlp3s0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
    <item>
      <title>Signing Modules with mokutil</title>
      <dc:creator>shreyashah1903</dc:creator>
      <pubDate>Wed, 29 Sep 2021 05:22:04 +0000</pubDate>
      <link>https://dev.to/shreyashah1903/signing-modules-with-mokutil-1aih</link>
      <guid>https://dev.to/shreyashah1903/signing-modules-with-mokutil-1aih</guid>
      <description>&lt;p&gt;This blog focuses on installing Nvidia driver and few other drivers using the mokutil signing functionality.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Create a pair of key on system to sign the modules.
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;openssl req -new -x509 -newkey rsa:2048 -keyout /home/user/Nvidia.key -outform DER -out /home/user/Nvidia.der -nodes -days 36500 -subj "/CN=Graphics Drivers"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Add the key (Enroll using mok)
&lt;/h3&gt;

&lt;p&gt;First command will ask for a password. After reboot enter the same password. (** Prompt will ask for characters in specific position of the password. Do not enter the whole password. **)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mokutil --import /home/user/Nvidia.der
sudo reboot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check if keys are enrolled&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mokutil --list-enrolled # or sudo mokutil --list-enrolled | grep -i Graphics
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Update the dkms sign file if adding using dkms
&lt;/h3&gt;

&lt;p&gt;Updated the /etc/dkms/sign_helper.sh. Add/update the line with the newly created key paths.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;/lib/modules/"$1"/build/scripts/sign-file sha512 /home/user/Nvidia.priv /home/user/Nvidia.der "$2"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Update /etc/dkms/framework.conf Uncomment the line where sign_tool is mentioned&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sign_tool="/etc/dkms/sign_helper.sh"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you have already added dkms modules before changing the sign file, first remove and then add them again.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo dkms status # Check status of dkms module
sudo dkms remove &amp;lt;module&amp;gt;/&amp;lt;version&amp;gt; -k &amp;lt;kernel_version&amp;gt;
Eg. sudo dkms remove hid-asus-rog/1.0.2 -k 5.10.0-8-amd64
sudo dkms status # Check uninstalled again
sudo dkms add . # in the cloned directory of dkms module
sudo dkms build &amp;lt;module&amp;gt;/&amp;lt;version&amp;gt;
sudo dkms install &amp;lt;module&amp;gt;/&amp;lt;version&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Installing Nvidia driver
&lt;/h3&gt;

&lt;p&gt;For installing Nvidia driver using the .run file and enrolled keys. &lt;a href="https://www.nvidia.com/en-in/geforce/drivers/"&gt;Get-the-Driver-here&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo sh ./NVIDIA-Linux-x86_64-460.73.01.run -s --module-signing-secret-key=/home/user/Nvidia.key --module-signing-public-key=/home/user/Nvidia.der
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If this does not work try removing -s from the command above.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>mokutil</category>
      <category>nvidia</category>
    </item>
    <item>
      <title>Install Debian Series (Part -2 )</title>
      <dc:creator>shreyashah1903</dc:creator>
      <pubDate>Wed, 29 Sep 2021 05:13:27 +0000</pubDate>
      <link>https://dev.to/shreyashah1903/install-debian-series-part-2-84a</link>
      <guid>https://dev.to/shreyashah1903/install-debian-series-part-2-84a</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;The series focuses on installing Debian as a primary OS and removing Windows/ formatting Windows.&lt;/p&gt;

&lt;p&gt;Part - 2 focuses on &lt;strong&gt;installing debian on a laptop with Windows 10.&lt;/strong&gt; Use the bootable drive created as mentioned in &lt;a href="https://dev.to/shreyashah1903/install-debian-series-part-1-creating-recovery-drive-and-a-bootable-drive-8d8"&gt;Part-1&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps
&lt;/h3&gt;

&lt;h3&gt;
  
  
  1. Learn to enter in BIOS utility for Windows 10.
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;Insert the bootable drive&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Press Windows + S. Search for Settings&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Click on **Updates and Security**&lt;/code&gt;&lt;br&gt;
&lt;code&gt;On the left pane, click on **Recovery**&lt;/code&gt;&lt;br&gt;
&lt;code&gt;On the right pane, under advanced startup - click on **Restart Now**&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Inside BIOS utility, change/add the boot option.
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;Go under advanced setup and then under boot tab.&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Select the bootable drive as the first boot option.&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Save and Exit.&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. System will boot up from the USB drive
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Connect your LAN to access internet during installation process&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Fast forward to 7.25
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/5puYlsS8yW8"&gt;
&lt;/iframe&gt;
&lt;/li&gt;
&lt;li&gt;Boot up the laptop with the new OS installed.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Install Debian Series (Part -1 Creating Recovery drive and a bootable drive)</title>
      <dc:creator>shreyashah1903</dc:creator>
      <pubDate>Wed, 29 Sep 2021 05:11:10 +0000</pubDate>
      <link>https://dev.to/shreyashah1903/install-debian-series-part-1-creating-recovery-drive-and-a-bootable-drive-8d8</link>
      <guid>https://dev.to/shreyashah1903/install-debian-series-part-1-creating-recovery-drive-and-a-bootable-drive-8d8</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;The series focuses on installing Debian as a primary OS and removing Windows/ formatting Windows.&lt;/p&gt;

&lt;p&gt;Part - 1 focuses on &lt;strong&gt;creating a recovery drive and a bootable drive.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Wired Internet connection (Wired is preferred as the wireless drivers have to be added as part of installation)&lt;/li&gt;
&lt;li&gt;One USB flash drive (atleast 16 GB in size) if you want to create a Windows 10 recovery drive&lt;/li&gt;
&lt;li&gt;One USB flash drive for creating a bootable media to load the Debian OS.&lt;/li&gt;
&lt;li&gt;Of course a laptop.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  1. Creating a Windows Recovery Drive / System Repair disc
&lt;/h3&gt;

&lt;p&gt;The recovery drive will store Windows OS with the system files which will allow you to reinstall Windows again at a later point in time. Consider the recovery drive as a factory reset/Wipe data option in a mobile phone nowadays.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Any personal files or applications will not be backed up in the recovery drive.&lt;/strong&gt; For that, you need to do a system image backup which will backup everything. System Image Backup will require an external hard drive as it is a large file. For eg. If you have a 1TB hard drive with 100 GB of used size, the system image backup will almost be about 100 GB in size.&lt;/p&gt;

&lt;h4&gt;
  
  
  Steps
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Insert the &lt;strong&gt;formatted/clean&lt;/strong&gt; USB flash drive which is at least 16 GB in size. The steps below are done for Windows 10. It might change a little bit for other versions of Windows.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;Press Windows button + S. Type Recovery Drive.&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Back up system files to the recovery drive checkbox. Keep it checked.&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Select the USB drive once it appears. Click next.&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Get a snack, this will take sometime to finish.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click finish and store the USB at a safe place.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  2. Creating a bootable USB flash drive for Debian
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Download required ISO (*.iso) file for Debian from the &lt;a href="https://cdimage.debian.org/cdimage/weekly-builds/"&gt;here.&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Download the Rufus software from &lt;a href="https://rufus.ie/en_US/"&gt;here.&lt;/a&gt; This is a helper software to create a bootable media.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Insert a &lt;strong&gt;formatted&lt;/strong&gt; USB flash drive and open Rufus.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;Select the USB flash drive in device.&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Select the ISO file.&lt;/code&gt;&lt;br&gt;
&lt;code&gt;[optional] Give an appropriate Volume label (flash drive name).&lt;/code&gt; &lt;br&gt;
&lt;code&gt;Keep everything else as default option.&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Click start and click close once it is ready.&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  We are now ready to start the setup process. Go to &lt;a href=""&gt;Install Debian Series (Part-2)&lt;/a&gt;
&lt;/h4&gt;

</description>
      <category>linux</category>
      <category>install</category>
      <category>windows</category>
      <category>debian</category>
    </item>
  </channel>
</rss>
