<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Linux on djismgaming&#39;s tech home</title>
    <link>https://djismgaming.github.io/tags/linux/</link>
    <description>Recent content in Linux on djismgaming&#39;s tech home</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 25 Aug 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://djismgaming.github.io/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Installing Microsoft Edit in Debian or Ubuntu based distros</title>
      <link>https://djismgaming.github.io/blog/installing-microsoft-edit-debian-ubuntu/</link>
      <pubDate>Mon, 25 Aug 2025 00:00:00 +0000</pubDate>
      <guid>https://djismgaming.github.io/blog/installing-microsoft-edit-debian-ubuntu/</guid>
      <description>&lt;p&gt;This little application makes it easier to edit files on the terminal with full mouse, copy-paste support and more! A good one to have in our toolkit.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: The current version of Edit (1.2.0) is not available via the package manager &lt;code&gt;apt&lt;/code&gt; yet. This could change at some point in the future, making for an easier deployment.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&#34;install-pre-requisites&#34;&gt;Install Pre-requisites&lt;/h2&gt;
&lt;p&gt;zstd - to decompress the downloaded file&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo apt install zstd
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;install-the-latest-edit-version-from-github-for-x86_64&#34;&gt;Install the latest Edit version from GitHub for x86_64&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;EDIT_VERSION&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;$(&lt;/span&gt;curl -s &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;https://api.github.com/repos/microsoft/edit/releases/latest&amp;#34;&lt;/span&gt; | grep -Po &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;#34;tag_name&amp;#34;: &amp;#34;v\K[0-9.]+&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;wget -qO edit.tar.zst https://github.com/microsoft/edit/releases/latest/download/edit-$EDIT_VERSION-x86_64-linux-gnu.tar.zst
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo tar xf edit.tar.zst -C /usr/local/bin edit
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;edit --version
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rm -rf edit.tar.zst
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This can easily be made into a script for multiple installations.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mount an SMB share and use iGPU on an unprivileged Debian 12 LXC container in Proxmox</title>
      <link>https://djismgaming.github.io/blog/proxmox-unprivileged-lxc-smb-and-igpu/</link>
      <pubDate>Thu, 08 Feb 2024 00:00:00 +0000</pubDate>
      <guid>https://djismgaming.github.io/blog/proxmox-unprivileged-lxc-smb-and-igpu/</guid>
      <description>&lt;h2 id=&#34;pre-requisites&#34;&gt;Pre-requisites:&lt;/h2&gt;
&lt;p&gt;Create an unprivileged Debian 12 LXC container.&lt;/p&gt;
&lt;p&gt;Inside the LXC container, use the &lt;code&gt;root&lt;/code&gt; user to create a non-root user with your name. In the case of mine I wanted to add it to the &lt;code&gt;sudo&lt;/code&gt; and &lt;code&gt;docker&lt;/code&gt; groups after installing Docker inside the LXC container.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;useradd -s /bin/bash -m -G sudo,docker ismael
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Change the user password to whatever you need.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;su ismael
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;passwd
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This user&amp;rsquo;s default &lt;code&gt;UID:GID&lt;/code&gt; will be &lt;code&gt;1000:1000&lt;/code&gt;. If not, create it with:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Proxmox | automatically restore SMB/CIFS share connections</title>
      <link>https://djismgaming.github.io/blog/proxmox-automatically-restore-smb-cifs-share-connections/</link>
      <pubDate>Wed, 10 Jan 2024 00:00:00 +0000</pubDate>
      <guid>https://djismgaming.github.io/blog/proxmox-automatically-restore-smb-cifs-share-connections/</guid>
      <description>&lt;p&gt;If at some point Proxmox loses connectivity with an SMB/CIFS share, it will not restore the connection by itself until a restart of the Proxmox node is performed.&lt;/p&gt;
&lt;p&gt;With this tip, you&amp;rsquo;ll make the Proxmox node restore the connection automatically.&lt;/p&gt;
&lt;p&gt;In your node&amp;rsquo;s shell, create a bash script that looks for mount points in &lt;code&gt;/mnt/pve/&lt;/code&gt; and unmounts them if they become stale:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;nano remount.sh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Put this content into the file:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Set up your SSH key-based authentication from Windows in a single line</title>
      <link>https://djismgaming.github.io/blog/windows-ssh-copy-id/</link>
      <pubDate>Wed, 18 Oct 2023 00:00:00 +0000</pubDate>
      <guid>https://djismgaming.github.io/blog/windows-ssh-copy-id/</guid>
      <description>&lt;p&gt;Using Linux directly to interact with Linux servers is pretty great and seamless. But when your daily driver is Windows, this can be a little more cumbersome.&lt;/p&gt;
&lt;p&gt;For instance, when connecting with the Windows version of OpenSSH there is a way to copy your generated key for simple password-less logins after that.&lt;/p&gt;
&lt;h2 id=&#34;generate-your-private-and-public-keys-in-your-windows-powershell-shell&#34;&gt;Generate your private and public keys in your Windows PowerShell shell&lt;/h2&gt;
&lt;p&gt;Execute the command below in Windows Terminal or any other terminal in Windows:&lt;/p&gt;</description>
    </item>
    <item>
      <title>SpeedTouch modem as a router</title>
      <link>https://djismgaming.github.io/blog/speedtouch-modem-as-router/</link>
      <pubDate>Fri, 13 Oct 2023 00:00:00 +0000</pubDate>
      <guid>https://djismgaming.github.io/blog/speedtouch-modem-as-router/</guid>
      <description>&lt;p&gt;A SpeedTouch modem, like a 2007 model Thompson Speedtouch 585V6, is a DSL modem. But with a little tweak, it can be used as a router for your network.&lt;/p&gt;
&lt;p&gt;Run these commands towards the SpeedTouch modem using &lt;code&gt;telnet&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;telnet &amp;lt;modem ip address&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Commands to set up a SpeedTouch DSL modem as a router:&lt;/p&gt;
&lt;p&gt;For firmware versions 5.3 and lower:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ppp relay flush
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ppp flush
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;eth flush
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;atm flush
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;atm phonebook flush
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;eth bridge ifdelete intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;ethport4
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;eth ifadd intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;ethport4
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;eth ifconfig intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;ethport4 dest&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;ethif4 retry&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt; group&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;default
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;eth ifattach intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;ethport4
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ip ifadd intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;WAN_Port dest&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;ethport4
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ip ifconfig intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;WAN_Port hwaddr&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;00:11:42:0c:65:1d &lt;span style=&#34;color:#75715e&#34;&gt;# This line is needed if MAC address cloning is required, otherwise it&amp;#39;s not necessary&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;dhcp client ifadd intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;WAN_Port
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;dhcp client ifattach intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;WAN_Port
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;nat ifconfig intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;WAN_Port translation&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;enabled
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;nat ifattach intf&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;WAN_Port
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;saveall
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For firmware versions 6.1 and higher:&lt;/p&gt;</description>
    </item>
    <item>
      <title>SSH Tunneling for easy access to web-based apps from servers</title>
      <link>https://djismgaming.github.io/blog/ssh-tunneling-web-apps/</link>
      <pubDate>Fri, 13 Oct 2023 00:00:00 +0000</pubDate>
      <guid>https://djismgaming.github.io/blog/ssh-tunneling-web-apps/</guid>
      <description>&lt;p&gt;I had to access Portainer in my cloud VM to modify docker containers. I can access it now via any web browser with SSL (https) no problem, but this way is good in a pinch.&lt;/p&gt;
&lt;p&gt;Run this command in your local machine:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ssh -L 9000:127.0.0.1:9000 my_user@my-remote-server
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will forward port 9000 to our local machine:&lt;/p&gt;
&lt;p&gt;http://localhost:9000 or http://127.0.0.1:9000&lt;/p&gt;
&lt;p&gt;At this local address the Portainer web UI from the remote server will appear.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
