I run a Minecraft server on a big Linux computer I have running in my room.
Now, as a system administrator it is very helpful to be able to run some simple commands without needing to login with my key, password, TFA, etc.
It is, frankly, a lot of work.
Especially when I really just want to be playing games, but something seems to be wrong.</p>
Especially when I really just want to be playing games but I just need to check something quickly.</p>
<p>So for simple things like finding out of the network, CPU, memory or disk usage is my bottleneck, I wrote this really nifty script to connect the world of Minecraft and the Linux shell.</p>
@ -48,7 +48,7 @@ Especially when I really just want to be playing games, but something seems to b
<p>So to solve this interesting problem, I decided to use <codeclass="highlighter-rouge">tmux</code>.
<codeclass="highlighter-rouge">tmux</code> is a <strong>t</strong>terminal <strong>mu</strong>ltiple<strong>x</strong>er.
This allows you to run a terminal session, the leave it while it still runs in the background.</p>
This allows you to run a terminal session, then detach fromc it while it still runs in the background.</p>
<p>This is very valuable when running command line applications that need to have an active console connection, like a Minecraft server.</p>
@ -88,24 +88,21 @@ Negative numbers start from the bottom, so <em>in theory</em> I can do the follo
<p>No. It just doesn’t work. Negative numbers do <em>not</em> work with the <codeclass="highlighter-rouge">tmux capture-pane</code> subcommand.</p>
<p>So I did some simple UNIX piping, like so, to get just the last thing in the chat.
<codeclass="highlighter-rouge">-p</code> prints the result to the terminal/stdout.
<codeclass="highlighter-rouge">steve</code> is the name of the tmux session I’m trying to pull form.</p>
<p>So I did some simple UNIX piping, like so, to get just the last thing in the chat.</p>
<?xml version="1.0" encoding="utf-8"?><feedxmlns="http://www.w3.org/2005/Atom"><generatoruri="https://jekyllrb.com/"version="4.0.0">Jekyll</generator><linkhref="http://localhost:4000/feed.xml"rel="self"type="application/atom+xml"/><linkhref="http://localhost:4000/"rel="alternate"type="text/html"/><updated>2020-06-25T18:40:18+00:00</updated><id>http://localhost:4000/feed.xml</id><entry><titletype="html">How to use tmux to send and receive things from your Minecraft server</title><linkhref="http://localhost:4000/2020/06/25/tmux-minecraft.html"rel="alternate"type="text/html"title="How to use tmux to send and receive things from your Minecraft server"/><published>2020-06-25T00:00:00+00:00</published><updated>2020-06-25T00:00:00+00:00</updated><id>http://localhost:4000/2020/06/25/tmux-minecraft</id><contenttype="html"xml:base="http://localhost:4000/2020/06/25/tmux-minecraft.html"><p>So recently I had problem.
<?xml version="1.0" encoding="utf-8"?><feedxmlns="http://www.w3.org/2005/Atom"><generatoruri="https://jekyllrb.com/"version="4.0.0">Jekyll</generator><linkhref="http://localhost:4000/feed.xml"rel="self"type="application/atom+xml"/><linkhref="http://localhost:4000/"rel="alternate"type="text/html"/><updated>2020-06-25T18:46:07+00:00</updated><id>http://localhost:4000/feed.xml</id><entry><titletype="html">How to use tmux to send and receive things from your Minecraft server</title><linkhref="http://localhost:4000/2020/06/25/tmux-minecraft.html"rel="alternate"type="text/html"title="How to use tmux to send and receive things from your Minecraft server"/><published>2020-06-25T00:00:00+00:00</published><updated>2020-06-25T00:00:00+00:00</updated><id>http://localhost:4000/2020/06/25/tmux-minecraft</id><contenttype="html"xml:base="http://localhost:4000/2020/06/25/tmux-minecraft.html"><p>So recently I had problem.
I run a Minecraft server on a big Linux computer I have running in my room.
Now, as a system administrator it is very helpful to be able to run some simple commands without needing to login with my key, password, TFA, etc.
It is, frankly, a lot of work.
Especially when I really just want to be playing games, but something seems to be wrong.</p>
Especially when I really just want to be playing games but I just need to check something quickly.</p>
<p>So for simple things like finding out of the network, CPU, memory or disk usage is my bottleneck, I wrote this really nifty script to connect the world of Minecraft and the Linux shell.</p>
@ -14,7 +14,7 @@ Especially when I really just want to be playing games, but something seems to b
<p>So to solve this interesting problem, I decided to use <code class="highlighter-rouge">tmux</code>.
<code class="highlighter-rouge">tmux</code> is a <strong>t</strong>terminal <strong>mu</strong>ltiple<strong>x</strong>er.
This allows you to run a terminal session, the leave it while it still runs in the background.</p>
This allows you to run a terminal session, then detach fromc it while it still runs in the background.</p>
<p>This is very valuable when running command line applications that need to have an active console connection, like a Minecraft server.</p>
@ -54,24 +54,21 @@ Negative numbers start from the bottom, so <em>in theory</em> I can
<p>No. It just doesn’t work. Negative numbers do <em>not</em> work with the <code class="highlighter-rouge">tmux capture-pane</code> subcommand.</p>
<p>So I did some simple UNIX piping, like so, to get just the last thing in the chat.
<code class="highlighter-rouge">-p</code> prints the result to the terminal/stdout.
<code class="highlighter-rouge">steve</code> is the name of the tmux session I’m trying to pull form.</p>
<p>So I did some simple UNIX piping, like so, to get just the last thing in the chat.</p>
@ -131,7 +128,7 @@ And, we have a way to respond.</p>
<p>Remember to checkout the git repository to see what I did with it: <a href="https://github.com/TTWNO/termcraft">https://github.com/TTWNO/termcraft</a>.</p>
<p>Happy hacking!</p></content><author><name></name></author><summarytype="html">So recently I had problem. I run a Minecraft server on a big Linux computer I have running in my room. Now, as a system administrator it is very helpful to be able to run some simple commands without needing to login with my key, password, TFA, etc. It is, frankly, a lot of work. Especially when I really just want to be playing games, but something seems to be wrong.</summary></entry><entry><titletype="html">Site Update</title><linkhref="http://localhost:4000/2020/06/04/site-update.html"rel="alternate"type="text/html"title="Site Update"/><published>2020-06-04T00:00:00+00:00</published><updated>2020-06-04T00:00:00+00:00</updated><id>http://localhost:4000/2020/06/04/site-update</id><contenttype="html"xml:base="http://localhost:4000/2020/06/04/site-update.html"><p>I updated the site with some easier to identify information about me and my projects :)</p>
<p>Happy hacking!</p></content><author><name></name></author><summarytype="html">So recently I had problem. I run a Minecraft server on a big Linux computer I have running in my room. Now, as a system administrator it is very helpful to be able to run some simple commands without needing to login with my key, password, TFA, etc. It is, frankly, a lot of work. Especially when I really just want to be playing games but I just need to check something quickly.</summary></entry><entry><titletype="html">Site Update</title><linkhref="http://localhost:4000/2020/06/04/site-update.html"rel="alternate"type="text/html"title="Site Update"/><published>2020-06-04T00:00:00+00:00</published><updated>2020-06-04T00:00:00+00:00</updated><id>http://localhost:4000/2020/06/04/site-update</id><contenttype="html"xml:base="http://localhost:4000/2020/06/04/site-update.html"><p>I updated the site with some easier to identify information about me and my projects :)</p>
<p>Also, Clue has been delayed due to my partner in crime on the project wokring too many hours.</p>