<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Linux on Werk Space</title>
    <link>/tags/linux/</link>
    <description>Recent content in Linux on Werk Space</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 06 Aug 2026 14:39:17 +0000</lastBuildDate>
    <atom:link href="/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Headless operation</title>
      <link>/docs/development-environment/linux/headless/</link>
      <pubDate>Mon, 13 Apr 2020 11:07:59 -0500</pubDate>
      <guid>/docs/development-environment/linux/headless/</guid>
      <description>&lt;h2 id=&#34;ssh-server&#34;&gt;SSH server&lt;/h2&gt;&#xA;&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;&#xA;&lt;p&gt;The install of OpenSSH mostly follows the &lt;a href=&#34;https://help.ubuntu.com/lts/serverguide/openssh-server.html&#34;&gt;Ubuntu guide&lt;/a&gt;.&lt;/div&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install, &lt;code&gt;sudo apt install openssh-server&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Copy original configuration,&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Protect original configuration&lt;code&gt;sudo chmod a-w /etc/ssh/sshd_config.original&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Edit the configuration file, &lt;code&gt;sudo nano /etc/ssh/sshd_config&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add the following to the configuration file while insuring that no other matching parameter is uncommented.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-md&#34; data-lang=&#34;md&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;PermitRootLogin no&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;PubkeyAuthentication yes&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;UsePAM yes&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;X11Forwarding yes&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;AllowUsers your-user-name&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;Restart the service, &lt;code&gt; sudo service sshd restart&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Make certain you are able to connect to the server remotely before adding public key authentication.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Data science platform</title>
      <link>/docs/development-environment/linux/data_science_platform/</link>
      <pubDate>Mon, 13 Apr 2020 11:08:30 -0500</pubDate>
      <guid>/docs/development-environment/linux/data_science_platform/</guid>
      <description>&lt;h2 id=&#34;anaconda&#34;&gt;Anaconda&lt;/h2&gt;&#xA;&lt;p&gt;Anaconda is a data science platform that supports Python and R. It comes with many packages that are needed to perform good data science.&lt;/p&gt;&#xA;&lt;h3 id=&#34;multi-user-installation&#34;&gt;Multi-user installation&lt;/h3&gt;&#xA;&lt;p&gt;Note the differences below, but this mostly follows [Anaconda&amp;rsquo;s Installing on Linux for multiple users] (&lt;a href=&#34;https://docs.anaconda.com/anaconda/install/multi-user/#multi-user-anaconda-installation-on-linux%29&#34;&gt;https://docs.anaconda.com/anaconda/install/multi-user/#multi-user-anaconda-installation-on-linux)&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Login as root, &lt;code&gt;sudo -i&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Follow instructions but change the install directory to &lt;em&gt;/opt/anaconda3&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Create a new groups, &lt;code&gt;addgroup conda-grp&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Set the &lt;em&gt;conda-grp&lt;/em&gt; as owner of the anaconda directory, &lt;code&gt;chgrp -R conda-grp /opt/anaconda3&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Change read/write permsissions on the directory, &lt;code&gt;chmod 770 -R /opt/anaconda3&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Add users to the group, &lt;code&gt;usermod -a -G conda-grp youruser&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Logout root, &lt;code&gt;exit&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Exit your shell session &lt;code&gt;exit&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Start a new session.&lt;/li&gt;&#xA;&lt;li&gt;Connect your user to the base environment&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;source /opt/anaconda3/bin/activate&#xA;conda init&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Restart your session again.&lt;/li&gt;&#xA;&lt;li&gt;Upon login, you should note &lt;em&gt;(base)&lt;/em&gt; appears by your prompt.&lt;/li&gt;&#xA;&lt;li&gt;Verify the installation, &lt;code&gt;conda list&lt;/code&gt; which lists all of the installed packages.&lt;/li&gt;&#xA;&lt;li&gt;Test python is from Anaconda, &lt;code&gt;python&lt;/code&gt;. This starts the python shell with a heading that indicates the version and the source as Anaconda.&lt;/li&gt;&#xA;&lt;li&gt;Quit the python shell, &lt;code&gt;exit()&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Update the conda package manager, &lt;code&gt;conda update conda&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Update all packages, &lt;code&gt;conda update --all&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Your Anaconda installation is complete and has fully functioning python environment. Now view the &lt;a href=&#34;https://docs.anaconda.com/anaconda/user-guide/&#34;&gt;User guide&lt;/a&gt;. If you are working in the gui, start &lt;a href=&#34;https://docs.anaconda.com/anaconda/navigator/&#34;&gt;Anaconda Navigator&lt;/a&gt;, &lt;code&gt;anaconda-navigator&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Linux</title>
      <link>/docs/development-environment/linux/</link>
      <pubDate>Wed, 08 Apr 2020 09:59:15 -0500</pubDate>
      <guid>/docs/development-environment/linux/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This computer is a general use computer, not a server. The basic install may be either the full Ubuntu desktop or my preference which is Lubuntu. Lubuntu is a lightweight version of Ubuntu, with a toned down graphical interface and no default installation of certain desktop software like an office suite.&lt;/p&gt;&#xA;&lt;p&gt;I do not use the Ubuntu system as my primary computer but specifically for development and running of machine learning tasks. The machine learning tasks often take a lot of processing power and time, so expect the machine to be unavailable during those task runs.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
