<!DOCTYPE html>
<html>
<head>
  <title>Arch guide</title>
  <style>
    
  body {
    color: black;
    background-image: url('../images/linux_background.png');
  }

  table {
        color: black;
        background-color: #bebebe;
        margin-top: 10px;
        margin-bottom: 10px;
        margin-left: 10px;
        margin-right: 10px;
  }

  </style>
</head>
<body>
  <a href="../index.html"><img src="../images/back_home.png" alt=
  "Back to home page"></a><br>
  <a href="../linux_room.html#distro_guides"><img src="images/back.png" alt=
  "Back to linux room"></a>
  <center>
    <table border="1" width="60%">
      <tr>
        <td>
          <h1>Arch linux</h1>
          <p>Arch is just a better distro, but using arch doesnt instantly
          make you a better linux user. Saying "I am a arch user btw" is still
          fun and annoys people so I keep saying it reguardless.<br>
          <br>
          <b>Warning: This is a ever changing page due to the fact I havent
          been daily driving arch for long as of writing this and is
          uncompletish.</b></p>
        </td>
      </tr>
      <tr>
        <td>
          <ul>
            <li>
              <a href="#installing">Installing arch</a>
            </li>
            <li>
              <a href="#post">After installing</a>
            </li>
            <li>
              <a href="#nvidia">Nvidia drivers</a>
            </li>
            <li>
              <a href="#tricks">Tricks</a>
            </li>
          </ul>
        </td>
      </tr>
    </table>
    <table border="1" width="60%">
      <tr>
        <td>
          <h2 id="installing">Installing arch</h2>
          <p>A lot of arch users will get pissed as fuck at me but <b>its ok
          to use arch install</b>. I personally prefer manually installing
          arch and wouldnt want to do it any other way so I dont use it, btw
          (:<br>
          <br>
          The <a href="https://wiki.archlinux.org/title/Installation_guide"
          target="_blank">offical arch installation guide</a> and other
          resources on the arch wiki is a great way to install arch though I
          also like to use <a href=
          "https://www.youtube.com/watch?v=PQgyW10xD8s" target="_blank">distro
          tubes arch installation guide</a> alongside the resources. Some arch
          users may be pissed I dare tell people to go watch a youtube video.
          I am sure most arch installation guides on youtube suck but DT's
          video is killer. Plus its not a replacement for the wiki, its just
          to help follow it a bit easier and act as a good jumping off
          point.<br>
          <br>
          Some things I gotta add is for me DT's video I linked doesnt work
          100 percent. When setting up grub it cant find the efi directory.
          You gotta use a switch to show that command that fails the efi
          directory. I forgor the switch and I am too lazy to look it up but
          you can find it if the <code>--help</code> flag. Also to dual boot
          with nasty nasty MS Windows(R) you gotta install ntfs-3g for it to
          be able to read MS Windows(R) ntfs(R) Microsoft(R) partitions. You
          also gotta set <code>GRUB_DISABLE_OS_PROBER=false</code> in
          <code>/etc/default/grub</code> and mount the MS Windows(R) directory
          in the efi directory for OS proper to work sometimes.</p>
        </td>
      </tr>
      <tr>
        <td>
          <h2 id="post">After installing</h2>
          <ul>
            <li>Make sure you install a good ass DE or WM. No better DE than
            good old trusty xfce. Your also going to want lightdm with that.
            Thunar is a quite useable file manager though you can betterize it
            with gvfs or another opinional packages for cool fancy shit. Or
            for even more cool fancy things get something like <a href=
            "../linux_room.html#spacefm" target="_blank">spaceFM</a>. Just
            fuck around tbh.
            </li>
            <li>If your sound fucking aint working right install
            sof-firmware.</li>
            <li>I use <a href="https://github.com/Jguer/yay" target="_blank">
              yay</a> because it makes life in arch easier even though its
              stupid ass bloat.
            </li>
          </ul>
        </td>
      </tr>
      <tr>
        <td>
          <h2 id="nvidia">Nvidia drivers</h2>
          <p>A lot can change depending on many things and everything I say
          has only been tested on my machine so read some fucking resources
          here:</p>
          <ul>
            <li>
              <a href="https://wiki.archlinux.org/title/NVIDIA" target=
              "_blank">Offical nvidia arch wiki</a>
            </li>
            <li>
              <a href=
              "https://github.com/korvahannu/arch-nvidia-drivers-installation-guide"
              target="_blank">Some strangely helpful github guide</a>
            </li>
            <li>
              <a href=
              "https://medium.com/@sakalakis/how-to-easily-install-the-nvidia-drivers-in-arch-linux-5f1b3f1a5f66"
              target="_blank">Ewwwww, medium site (it strangely works without
              javascript)</a>
            </li>
          </ul>Guide for my system mostly and maybe yours:
          <ul>
            <li>Install some packages:<br>
            <code>sudo pacman -Syu<br>
            sudo pacman -S nvidia nvidia-utils nvidia-settings</code></li>
            <li>Rebuild the initramfs:<br>
            <code>sudo mkinitcpio -P</code></li>
            <li>Follow <a href=
            "https://wiki.archlinux.org/title/NVIDIA_Optimus#LightDM"
              target="_blank">a guide found here</a> to setup lightdm for
              nvidia.
            </li>
            <li>Open up the xfce startup app thingy and add
            <code>nvidia-settings --load-config-only</code> as a startup app
            so your nvidia settings load on login.</li>
            <li>After reboot you can check the drivers with:
              <ul>
                <li>My prefered way:<br>
                <code>sudo pacman -S mesa-utils<br>
                glxinfo | grep -E "OpenGL vendor|OpenGL renderer"</code></li>
                <li>Another way: <code>nvidia-smi</code></li>
              </ul>
            </li>
            <li>For multi monitor refresh rate issues add these to your
            /etc/environment<br>
            <code>CLUTTER_DEFAULT_FPS=&lt;refresh rate of your sync
            monitor&gt;<br>
            __GL_SYNC_DISPLAY_DEVICE=&lt;monitor to sync to&gt;</code><br>
            Then open your nvidia settings, go to OpenGL Settings and turn off
            "Allow Flipping".</li>
          </ul>
        </td>
      </tr>
      <tr>
        <td>
          <h2 id="tricks">Tricks</h2>
          <ul>
            <li>To clean out shit that builds up in pacman run <code>sudo
            pacman -Sc</code> and <code>sudo pacman -Qdtq | sudo pacman -Rs
            -</code><br>
            <code>-Sc</code> also works in yay.</li>
          </ul>
        </td>
      </tr>
    </table>
  </center>
</body>
</html>