<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAOZRVK97dwqF6j3FRAsGHRXjmWhHO6wkx0onrTfZZ9Wv9j-eRw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi KWLUG friends,</div>
        <div><br>
        </div>
        <div>Thanks for letting me present my VS-Code-Server Virtual
          Machine at the previous meeting. Here are my setup
          instructions<br>
        </div>
        <div><br>
        </div>
        <div>I have been using Oracle VirtualBox </div>
        <br>
        <div style="margin-left:40px"><span
            style="font-family:monospace"><a
              href="https://www.virtualbox.org/wiki/Downloads"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://www.virtualbox.org/wiki/Downloads</a></span><br>
        </div>
        <br>
        <div>Running a RedHat Fedora Server 37 VM <br>
        </div>
        <div><br>
        </div>
        <div style="margin-left:40px"><span
            style="font-family:monospace"><a
              href="https://getfedora.org/en/server/download/"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://getfedora.org/en/server/download/</a></span></div>
        <br>
        As my VS-Code-Server host.<br>
        <div><br>
        </div>
        <div style="margin-left:40px"><span
            style="font-family:monospace"><a
              href="https://github.com/coder/code-server"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/coder/code-server</a></span></div>
        <br>
        <div>The Oracle VirualBox Virtual Machine is configured with:</div>
        <div>
          <ul>
            <li>2 CPU</li>
            <li>4 GB RAM</li>
            <li>Default Display settings</li>
            <li>50 GB Storage</li>
            <li>1 NAT Network Adapter with port forwarding</li>
            <ul>
              <li>Fedora Cockpit TCP Host port 29090 Guest port 9090</li>
              <li>Visual Studio Code Server TCP Host port 28080 Guest
                port 8080</li>
              <li>SSHD TCP Host port 2022 Guest port 22</li>
            </ul>
          </ul>
          <div>Use the Fedora Server ISO downloaded previously to create
            the virtual machine operating system.</div>
          <div><br>
          </div>
          <div>For the Fedora install, I used the defaults but did set
            my timezone, created a user, and set the root password.<br>
          </div>
          <div><br>
          </div>
          <div>Reboot the server.</div>
          <div>Remove the ISO from the disc drive.</div>
          <div><br>
          </div>
          <div>At this point, I used the Fedora Cockpit browser tool. I
            had added the port forward earlier.</div>
          <div style="margin-left:40px"><span
              style="font-family:monospace"><a
                href="http://localhost:29090" moz-do-not-send="true"
                class="moz-txt-link-freetext">http://localhost:29090</a></span></div>
          <div><br>
          </div>
          <div>In the terminal, update the operating system with these
            commands</div>
          <div style="margin-left:40px"><span
              style="font-family:monospace">sudo -i</span></div>
          <div style="margin-left:40px"><span
              style="font-family:monospace">dnf check-update</span></div>
          <div style="margin-left:40px"><span
              style="font-family:monospace">dnf -y upgrade</span></div>
          <div style="margin-left:40px"><span
              style="font-family:monospace">dnf install -y make gcc
              zlib-devel bzip2 bzip2-devel readline-devel sqlite
              sqlite-devel openssl-devel tk-devel libffi-devel xz-devel</span></div>
          <div style="margin-left:40px"><span
              style="font-family:monospace">dnf group install
              "Development Tools" -y</span></div>
          <div>The following install is optional</div>
          <div style="margin-left:40px"><span
              style="font-family:monospace">dnf group install "C
              Development Tools and Libraries" -y</span></div>
          <div><br>
          </div>
          <div>Reboot the virtual machine</div>
          <div>Launch the Fedora Cockpit and access the terminal.</div>
          <div>
            <ul>
              <li>test the install<br>
                <span style="font-family:monospace">curl -fsSL <a
                    href="https://code-server.dev/install.sh"
                    moz-do-not-send="true" class="moz-txt-link-freetext">https://code-server.dev/install.sh</a>
                  | sh -s -- --dry-run</span><br>
                <br>
              </li>
              <li>run the Visual Studio Code Server install script<br>
                <span style="font-family:monospace">curl -fsSL <a
                    href="https://code-server.dev/install.sh"
                    moz-do-not-send="true" class="moz-txt-link-freetext">https://code-server.dev/install.sh</a>
                  | sh</span><br>
                <br>
              </li>
              <li>start the Code Server service and enable it for
                startup<br>
                <span style="font-family:monospace">sudo systemctl
                  --enable --now code-server@$USER</span><br>
                <br>
              </li>
              <li>verify if the code server is running<br>
                <font size="2"><span style="font-family:monospace">sudo
                    systemctl status code-server@$USER</span></font><br>
                <br>
              </li>
              <li>move to the Code Server's configuration directory<br>
                cd ~/.config/code-server/<br>
                <br>
              </li>
              <li>make a backup of the YAML configuration file<br>
                cp -v ~/.config/code-server/config.yaml
                ~/.config/code-server/config.yaml.orig<br>
                <br>
              </li>
              <li>open the YAML config file in vim<br>
                vim ~/.config/code-server/config.yaml<br>
                <br>
              </li>
              <li>update the address<br>
                <a href="http://0.0.0.0:8080" moz-do-not-send="true">0.0.0.0:8080</a><br>
                <br>
              </li>
              <li>change the password to your own value. Other
                authentication options are available and explained on
                the GitHub project page<br>
                <br>
                <br>
              </li>
              <li>stop and start the services<br>
                <font size="2"><span style="font-family:monospace">sudo
                    systemctl status code-server@$USER<br>
                    <font size="2"><span style="font-family:monospace">sudo
                        systemctl stop code-server@$USER<br>
                        <font size="2"><span
                            style="font-family:monospace">sudo systemctl
                            start code-server@$USER<br>
                            <font size="2"><span
                                style="font-family:monospace">sudo
                                systemctl status code-server@$USER<br>
                                <br>
                              </span></font></span></font></span></font></span></font></li>
              <li><font size="2"><span style="font-family:monospace"><font
                      size="2"><span style="font-family:monospace"><font
                          size="2"><span style="font-family:monospace"><font
                              size="2"><span
                                style="font-family:monospace">launch a
                                new browser to open the Code Server
                                interface<br>
                                <a href="http://localhost:28080"
                                  moz-do-not-send="true"
                                  class="moz-txt-link-freetext">http://localhost:28080</a><br>
                                <br>
                              </span></font></span></font></span></font></span></font></li>
            </ul>
            <div><font size="2">From this point you're best served
                looking up Visual Studio Code getting started
                instructions.</font></div>
            <div><br>
            </div>
            <div>Good hunting in your own server build and please let me
              know if this works for you.</div>
            <div><br>
            </div>
            <div>Sean D<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p>This was an awesome talk. Video recording is coming. Thank you,
      Sean.<br>
    </p>
  </body>
</html>