<?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: Herb Wolfe</title>
    <description>The latest articles on DEV Community by Herb Wolfe (@hwolfe71).</description>
    <link>https://dev.to/hwolfe71</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%2F96401%2F74f7557f-2112-43a2-b1bc-ef6086e01394.jpg</url>
      <title>DEV Community: Herb Wolfe</title>
      <link>https://dev.to/hwolfe71</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hwolfe71"/>
    <language>en</language>
    <item>
      <title>Tip for setting $DISPLAY when connecting to a Linux machine.</title>
      <dc:creator>Herb Wolfe</dc:creator>
      <pubDate>Fri, 30 Jan 2026 22:40:02 +0000</pubDate>
      <link>https://dev.to/hwolfe71/tip-for-setting-display-when-connecting-to-a-linux-machine-34cf</link>
      <guid>https://dev.to/hwolfe71/tip-for-setting-display-when-connecting-to-a-linux-machine-34cf</guid>
      <description>&lt;h2&gt;
  
  
  Background:
&lt;/h2&gt;

&lt;p&gt;I have an X server running on my Windows machine, and ssh into one of my Linux systems. When I started doing this, I would get the ip address for my Windows machine, export it to the $DISPLAY variable, and run a few simple clients, xeyes, xclock, and an xterm. All this was done manually.&lt;/p&gt;

&lt;h2&gt;
  
  
  Slowly simplifying the process:
&lt;/h2&gt;

&lt;p&gt;Once I figured out how I wanted the xclock to display, I created an alias for it. Then I put all the commands in a file, which I would run as needed. I still had to set $DISPLAY variable whenever I connected, though. Recently, I discovered that the IP address I connect from is stored as part of both the SSH_CLIENT and SSH_CONNECTION variables in bash.&lt;/p&gt;

&lt;p&gt;The first step was to figure out how to extract that IP address and assign it to a variable. That was solved with the &lt;code&gt;echo&lt;/code&gt; and &lt;code&gt;cut&lt;/code&gt; commands.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ip=$(echo ${SSH_CLIENT} | cut -f1 -d' '):0&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;That pipes the value of $SSH_CLIENT to the &lt;code&gt;cut&lt;/code&gt; command, extracting the first field, using a ' ' as the delimiter.&lt;/p&gt;

&lt;p&gt;I then exported that to the $DISPLAY variable.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export $DISPLAY=$ip&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I originally added that to the script I would run to start the X clients. However, I ran into a problem where the $DISPLAY variable wouldn't propagate to the parent shell. So if I wanted to run another client, I had to run the command manually again. That was solved by adding the command to the end of my .bashrc file. I then decided to add a check, in case I wasn't logging in via SSH, so that I would still get a valid value for $DISPLAY.&lt;/p&gt;

&lt;h2&gt;
  
  
  The end result:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;host=$(echo ${SSH_CLIENT} | cut -f1 -d' ')

if [ -z $host ]; then
        host=localhost
fi

disp=$host:0

export DISPLAY=$disp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>automation</category>
      <category>cli</category>
      <category>linux</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Hacktoberfest t-shirt arrived in the mail today</title>
      <dc:creator>Herb Wolfe</dc:creator>
      <pubDate>Sun, 15 Dec 2019 02:05:58 +0000</pubDate>
      <link>https://dev.to/hwolfe71/hacktoberfest-t-shirt-arrived-in-the-mail-today-14b7</link>
      <guid>https://dev.to/hwolfe71/hacktoberfest-t-shirt-arrived-in-the-mail-today-14b7</guid>
      <description>&lt;p&gt;Got my t-shirt and stickers today! 👕🙂&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
    </item>
    <item>
      <title>How to organize programming projects?</title>
      <dc:creator>Herb Wolfe</dc:creator>
      <pubDate>Mon, 28 Jan 2019 05:54:49 +0000</pubDate>
      <link>https://dev.to/hwolfe71/how-to-organize-programming-projects-488b</link>
      <guid>https://dev.to/hwolfe71/how-to-organize-programming-projects-488b</guid>
      <description>&lt;p&gt;I'm slowly working on getting my assortment of code organized, so I can put some of it on github. I have stuff scattered all over, most in a code directory, but some in other directories I've copied over from various other sources.&lt;/p&gt;

&lt;p&gt;I read &lt;/p&gt;
&lt;div class="ltag__link"&gt;
  &lt;a href="/nickjj" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F68035%2F985891c3-d691-4fc3-8b42-0a1de8a82f8b.jpeg" alt="nickjj"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/nickjj/how-do-you-organize-source-code-on-your-computer-i49" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;How do you organize source code on your computer?&lt;/h2&gt;
      &lt;h3&gt;Nick Janetakis ・ Jul 10 '18&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#discuss&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#productivity&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#beginners&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;
 and several other articles that came up in a google search, so I'm starting fresh with a ~/dev/ directory, and giving each project their own directory. However, I have some projects I've done in multiple languages, for a example, a guess the number game in Java, and bash. I also did a few of the problems on &lt;a href="https://projecteuler.net/" rel="noopener noreferrer"&gt;Project Euler&lt;/a&gt;, and at least one I solved in more than one programming language.

&lt;p&gt;I'm wondering what the best or recommended practice is for naming projects done in multiple languages. For example, should I create separate directories for the number guessing game, named guess-java, guess-shell, etc, or should I nest them, for example guess\java &amp;amp; guess\shell even though a lot of the advice I read was to not group projects by language&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>programming</category>
      <category>devtips</category>
    </item>
    <item>
      <title>How to revive my career?</title>
      <dc:creator>Herb Wolfe</dc:creator>
      <pubDate>Mon, 07 Jan 2019 03:49:24 +0000</pubDate>
      <link>https://dev.to/hwolfe71/how-to-revive-my-career-i25</link>
      <guid>https://dev.to/hwolfe71/how-to-revive-my-career-i25</guid>
      <description>&lt;p&gt;I'm not sure if revive, or start is more accurate. I've got a BA in Computer Science, and then about 10 years later, took some courses at a local community college to brush up on my skills and pick up some new ones, getting an Associate of Science degree in Computer Programming. I've only held one programming job, where I was a Software Engineer, using Visual Foxpro, and then Java. I stayed at that job for about 2 years. &lt;/p&gt;

&lt;p&gt;I know some Java, having used it when I was a Software Engineer, and then taking several courses in it, when I went back to school. I'm also familiar with C, having used it almost exclusively in the upper level CS courses I took for my first degree. Those are the languages in which I would feel most comfortable programming.&lt;/p&gt;

&lt;p&gt;I've also taken courses in Pascal, C++ and VB, and have taught myself a little bit of Perl and Ruby, and have done some Unix scripting. I've used HTML and some CSS, enough to build a personal web page, however, I haven't updated it in years.&lt;/p&gt;

&lt;p&gt;I am currently doing data processing, using Visual Foxpro, but I would much rather be doing something along the lines of application development, preferably in a Unix or Linux environment. Unfortunately, I don't see very many job postings around here for that, let alone entry level positions. Many of the entry level positions require skills or more experience than I have, and tend to be more for full stack or front end positions, neither of which match my interests. &lt;/p&gt;

&lt;p&gt;I'm not sure what to do. Relocation is not an option, and I can't really afford to go back to school yet again. I've considered trying to learn Javascript or Python, but neither interest me, and I don't want to end up in another job where I'm not happy. &lt;/p&gt;

&lt;p&gt;I'm open to any suggestions. Thanks.&lt;/p&gt;

</description>
      <category>help</category>
      <category>career</category>
    </item>
  </channel>
</rss>
