<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SysAdmin</title>
	<atom:link href="https://sysadmin.techmentor.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://sysadmin.techmentor.com</link>
	<description>Hax, Hashes, Slashes, &#38; Bangs!</description>
	<lastBuildDate>Sat, 23 May 2020 22:12:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>CENTOS 7: Fix yum after failed update</title>
		<link>https://sysadmin.techmentor.com/2020/05/23/centos-7-fix-yum-after-failed-update/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Sat, 23 May 2020 22:12:02 +0000</pubDate>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[duplicates]]></category>
		<category><![CDATA[yum]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=347</guid>

					<description><![CDATA[Ended up with a ton of duplicate errors and complaints about multiple architectures. Ran several things such as: All fixed various things, but still left a handful of duplicates. This, as root, finally fixed:]]></description>
										<content:encoded><![CDATA[
<p>Ended up with a ton of duplicate errors and complaints about multiple architectures. Ran several things such as:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo yum update --skip-broken
sudo yum-complete-transaction
sudo yum-complete-transaction --cleanup-only
sudo yum update --skip-broken --exclude systemd-libs.otherarch
sudo package-cleanup --cleandupes
</pre></div>


<p>All fixed various things, but still left a handful of duplicates. This, as root, finally fixed:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
for i in $(package-cleanup --dupes); do rpm -e --justdb $i --nodeps; done
yum update
</pre></div>


<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Format USB Drive for EXT4</title>
		<link>https://sysadmin.techmentor.com/2020/05/23/format-usb-drive-for-ext4/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Sat, 23 May 2020 19:12:40 +0000</pubDate>
				<category><![CDATA[Journal]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=345</guid>

					<description><![CDATA[Use lsblk to identify device Format with EXT4 Create a GPT partition table by issuing: Run the following command to create a EXT4 partition that takes the whole space: Format the partition to ext4: How to Format USB Drives and SD Cards on Linuxhttps://linuxize.com/post/how-to-format-usb-sd-card-linux/]]></description>
										<content:encoded><![CDATA[
<p>Use lsblk to identify device</p>



<p></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$ lsblk
NAME                 MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                    8:0    0 119.2G  0 disk 
├─sda1                 8:1    0   500M  0 part /boot
└─sda2                 8:2    0  55.4G  0 part 
  ├─centos_kate-swap 253:0    0     3G  0 lvm  &#x5B;SWAP]
  ├─centos_kate-root 253:1    0  35.2G  0 lvm  /
  └─centos_kate-home 253:2    0  17.2G  0 lvm  /home
sdb                    8:16   1  28.9G  0 disk 
└─sdb1                 8:17   1  28.9G  0 part /mnt/KATE_BACKUP
sr0                   11:0    1  1024M  0 rom  
</pre></div>


<h3 class="wp-block-heading" id="format-with-ext4">Format with EXT4</h3>



<p>Create a GPT partition table by issuing:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo parted /dev/sdb --script -- mklabel gpt
</pre></div>


<p>Run the following command to create a EXT4 partition that takes the whole space:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo parted /dev/sdb --script -- mkpart primary ext4 0% 100%
</pre></div>


<p>Format the partition to ext4:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo mkfs.ext4 -F /dev/sdb1
</pre></div>


<p></p>



<p>How to Format USB Drives and SD Cards on Linux<br><a href="https://linuxize.com/post/how-to-format-usb-sd-card-linux/">https://linuxize.com/post/how-to-format-usb-sd-card-linux/</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>GIT: Change Master of Orphaned Repo</title>
		<link>https://sysadmin.techmentor.com/2020/05/17/git-change-master-of-orphaned-repo/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Mon, 18 May 2020 03:20:15 +0000</pubDate>
				<category><![CDATA[Journal]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=341</guid>

					<description><![CDATA[When a Origin Master becomes unavailable create a new repo for the master and then on the client: and maybe]]></description>
										<content:encoded><![CDATA[
<p>When a Origin Master becomes unavailable create a new repo for the master and then on the client:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$ git remote rm origin
$ git remote add origin gitpriv@backwater.techmentor.com.com:gitrepo/provisioning/ubuntu.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
$ git push --set-upstream origin master
</pre></div>


<p>and maybe</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$ git push --all
$ git push --tags
</pre></div>


<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Excel Tips</title>
		<link>https://sysadmin.techmentor.com/2019/02/08/excel-tips/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Fri, 08 Feb 2019 23:18:20 +0000</pubDate>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[Excel]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=336</guid>

					<description><![CDATA[Example]]></description>
										<content:encoded><![CDATA[
<p><pre class="brush: plain; title: ; notranslate">=LEFT(&amp;lt;cn&gt;,LEN(&amp;lt;cn&gt;)-LEN(&amp;lt;hostname&gt;)-1)</pre></p>



<p>Example</p>



<p><pre class="brush: plain; title: ; notranslate">=LEFT(D2,LEN(D2)-LEN(A2)-1)</pre></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Re-tagging in Git</title>
		<link>https://sysadmin.techmentor.com/2019/02/06/re-tagging-in-git/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Wed, 06 Feb 2019 23:05:15 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=333</guid>

					<description><![CDATA[1. list all remote tags git ls-remote --tags 2. delete local tag git tag -d V_1_0_1 3. push tag deletion to remote git push origin :refs/tags/V_1_0_1 4. tag local branch again git tag V_1_0_1 5. push tag to remote git push origin tag V_1_0_1]]></description>
										<content:encoded><![CDATA[<p>1. list all remote tags</p>
<pre class="brush: plain; title: ; notranslate">git ls-remote --tags</pre>
<p>2. delete local tag</p>
<pre class="brush: plain; title: ; notranslate">git tag -d V_1_0_1</pre>
<p>3. push tag deletion to remote</p>
<pre class="brush: plain; title: ; notranslate">git push origin :refs/tags/V_1_0_1</pre>
<p>4. tag local branch again</p>
<pre class="brush: plain; title: ; notranslate">git tag V_1_0_1</pre>
<p>5. push tag to remote</p>
<pre class="brush: plain; title: ; notranslate">git push origin tag V_1_0_1</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Measuring in Acrobat</title>
		<link>https://sysadmin.techmentor.com/2018/01/04/measuring-in-acrobat/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Thu, 04 Jan 2018 16:42:45 +0000</pubDate>
				<category><![CDATA[Journal]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=331</guid>

					<description><![CDATA[To Scale: Right clicked the page when the measuring tool was selected and chose &#8216;change scale ratio&#8217;.]]></description>
										<content:encoded><![CDATA[<p>To Scale:</p>
<ul>
<li>Right clicked the page when the measuring tool was selected and chose &#8216;change scale ratio&#8217;.</li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Adding a Package to Local 3rd Party Ubuntu Repository</title>
		<link>https://sysadmin.techmentor.com/2017/12/11/adding-a-package-to-local-3rd-party-ubuntu-repository/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Mon, 11 Dec 2017 16:01:08 +0000</pubDate>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[System Configuration]]></category>
		<category><![CDATA[Apt]]></category>
		<category><![CDATA[Repository]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=326</guid>

					<description><![CDATA[Copy .deb packs to the binary folder: :# cp icaclient_13.7.0.10276927_amd64.deb /var/www/isrgubtu-repo/public_html/repository/amd64/dists/stable/3rd-party/binary-amd64 Recreate Packages and Release file: # cd /var/www/isrgubtu-repo/public_html/repository/amd64 # dpkg-scanpackages -a amd64 . &#62; dists/stable/3rd-party/binary-amd64/Packages dpkg-scanpackages: info: Wrote 3 entries to output Packages file. #  apt-ftparchive release dists/stable/3rd-party/binary-amd64 &#62; dists/stable/3rd-party/binary-amd64/Release Confirm new package is listed: # more dists/stable/3rd-party/binary-amd64/Packages Package: icaclient Version: 13.7.0.10276927 Architecture: amd64 Maintainer: Citrix [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Copy .deb packs to the binary folder:</p>
<pre class="brush: plain; title: ; notranslate">:# cp icaclient_13.7.0.10276927_amd64.deb /var/www/isrgubtu-repo/public_html/repository/amd64/dists/stable/3rd-party/binary-amd64</pre>
<p>Recreate Packages and Release file:</p>
<pre class="brush: plain; title: ; notranslate"># cd /var/www/isrgubtu-repo/public_html/repository/amd64
# dpkg-scanpackages -a amd64 . &gt; dists/stable/3rd-party/binary-amd64/Packages
dpkg-scanpackages: info: Wrote 3 entries to output Packages file.
#  apt-ftparchive release dists/stable/3rd-party/binary-amd64 &gt; dists/stable/3rd-party/binary-amd64/Release</pre>
<p>Confirm new package is listed:</p>
<pre class="brush: plain; title: ; notranslate"># more dists/stable/3rd-party/binary-amd64/Packages
Package: icaclient
Version: 13.7.0.10276927
Architecture: amd64
Maintainer: Citrix Systems, Inc. &lt;debian.package.support@citrix.com&gt;
Installed-Size: 49651
Pre-Depends: debconf (&gt;= 0.5)
Depends: libc6 (&gt;= 2.13-38), libice6 (&gt;= 1:1.0.0), libgtk2.0-0 (&gt;= 2.12.0), libsm6, libx11-6, libxext6, libxmu6, libxpm4, libasound2, libstdc++6, libwebkit-1.0-2 | libwebkitgtk-1.0-0, libid
n11, zlib1g
Recommends: libglib2.0-0 (&gt;= 2.12.0), libgstreamer-plugins-base0.10-0 (&gt;= 0.10.15), libgstreamer0.10-0 (&gt;= 0.10.15), libspeex1, libvorbis0a, libvorbisenc2, libcanberra-gtk-module, gstreamer
1.0-libav (&gt;= 1.2.0), gstreamer1.0-plugins-bad (&gt;= 1.2.0)
Suggests: libpcsclite1
Filename: ./dists/stable/3rd-party/binary-amd64/icaclient_13.7.0.10276927_amd64.deb
Size: 19379604
MD5sum: f075ae8145f2bff77dca7ff4071df2a1
SHA1: de1d486cc738a06ddd051b9036a31b7fd36894d4
SHA256: 610ad493f910dfb49549717c29a4812b5c216270fc8b03011fc09e8d56b92448
Section: utils
Priority: extra
Homepage: http://www.citrix.com
Description: Citrix Receiver for Linux
Citrix Receiver lets you access your enterprise files, applications, and
desktops from your favorite device wherever you are. Just ask your IT
department how to get started.</pre>
<p>Sign appropriate files:</p>
<pre class="brush: plain; title: ; notranslate"># gpg -a --yes --output dists/stable/Release.gpg --local-user 7F4B9823FC5FA0C2 --detach-sign dists/stable/Release&lt;/pre&gt;
You need a passphrase to unlock the secret key for
user: &quot;Linux Admins (None) &lt;linuxadmins@intusurg.com&gt;&quot;
2048-bit RSA key, ID FC5FA0C2, created 2017-11-02

gpg: gpg-agent is not available in this session
# gpg -a --yes --clearsign --output dists/stable/InRelease --local-user 7F4B9823FC5FA0C2 dists/stable/Release

You need a passphrase to unlock the secret key for
user: &quot;Linux Admins (None) &lt;linuxadmins@intusurg.com&gt;&quot;
2048-bit RSA key, ID FC5FA0C2, created 2017-11-02

gpg: gpg-agent is not available in this session</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Local Apt Repository Client Configure</title>
		<link>https://sysadmin.techmentor.com/2017/10/25/local-apt-repository-client-configure/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Wed, 25 Oct 2017 19:00:13 +0000</pubDate>
				<category><![CDATA[Journal]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=324</guid>

					<description><![CDATA[wget -qO &#8211; http://mc-server/repository/repo.key &#124; sudo apt-key add &#8211; cd /etc/apt/sources.list.d sudo vi local.list deb [arch=amd64] http://mc-server.all-offroad.net/repository/amd64 stable contrib sudo chmod a+r /etc/apt/sources.list.d/local.list sudo apt update]]></description>
										<content:encoded><![CDATA[<ol>
<li>wget -qO &#8211; http://mc-server/repository/repo.key | sudo apt-key add &#8211;</li>
<li>cd /etc/apt/sources.list.d</li>
<li>sudo vi local.list
<ol>
<li>deb [arch=amd64] http://mc-server.all-offroad.net/repository/amd64 stable contrib</li>
</ol>
</li>
<li>sudo chmod a+r /etc/apt/sources.list.d/local.list</li>
<li>sudo apt update</li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Generating a New GPG Key</title>
		<link>https://sysadmin.techmentor.com/2017/10/25/generating-a-new-gpg-key/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Wed, 25 Oct 2017 13:38:50 +0000</pubDate>
				<category><![CDATA[System Configuration]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[Keys]]></category>
		<category><![CDATA[PGP]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=322</guid>

					<description><![CDATA[Run gpg to generate a new key $ gpg --gen-key Answer questions: RSA 4096 User ID Email Address Comment Enter a passphrase Use gpg to confirm you now have the new key stored in the keyring: gpg --list-secret-keys --keyid-format LONG Results: /root/.gnupg/secring.gpg ------------------------ sec 2048R/4E6660E79D2BCFD5 2017-10-25 uid Jay C. Everson (None) &#60;jeverson@techmentor.com&#62; ssb 2048R/C1B6E02B5116D297 2017-10-25]]></description>
										<content:encoded><![CDATA[<p>Run gpg to generate a new key</p>
<pre class="brush: plain; title: ; notranslate">$ gpg --gen-key</pre>
<p>Answer questions:</p>
<ol>
<li>RSA</li>
<li>4096</li>
<li>User ID</li>
<li>Email Address</li>
<li>Comment</li>
</ol>
<p>Enter a passphrase</p>
<p>Use gpg to confirm you now have the new key stored in the keyring:</p>
<pre class="brush: plain; title: ; notranslate">gpg --list-secret-keys --keyid-format LONG</pre>
<p>Results:</p>
<pre class="brush: plain; title: ; notranslate">/root/.gnupg/secring.gpg
------------------------
sec 2048R/4E6660E79D2BCFD5 2017-10-25
uid Jay C. Everson (None) &lt;jeverson@techmentor.com&gt;
ssb 2048R/C1B6E02B5116D297 2017-10-25</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Testing for UDP Traffic</title>
		<link>https://sysadmin.techmentor.com/2016/07/06/testing-for-udp-traffic/</link>
		
		<dc:creator><![CDATA[The TechMentor]]></dc:creator>
		<pubDate>Wed, 06 Jul 2016 19:27:45 +0000</pubDate>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[System Monitoring]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[UDP]]></category>
		<guid isPermaLink="false">http://techmentor.com/journal/?p=319</guid>

					<description><![CDATA[On the receiver run: tcpdump host &#60;ip of sender&#62; On sender run:   echo &#34;PING&#34; &#62; /dev/udp/&#60;ip of receiver&#62;/&#60;port #&#62; Example: Sender $ echo &#34;PING&#34; &#62; /dev/udp/192.9.20.115/6000&#34; Receiver $ sudo tcpdump host 192.9.20.111 &#x5B;sudo] password for jeverson: tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on enp0s25, link-type EN10MB (Ethernet), capture [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>On the receiver run:</p>
<pre class="brush: plain; title: ; notranslate">tcpdump host &lt;ip of sender&gt;</pre>
<p>On sender run:</p>
<pre class="brush: plain; title: ; notranslate">  echo &quot;PING&quot; &gt; /dev/udp/&lt;ip of receiver&gt;/&lt;port #&gt;</pre>
<p>Example:</p>
<p>Sender</p>
<pre class="brush: plain; title: ; notranslate">$ echo &quot;PING&quot; &gt; /dev/udp/192.9.20.115/6000&quot;</pre>
<p>Receiver</p>
<pre class="brush: plain; title: ; notranslate">$ sudo tcpdump host 192.9.20.111
&#x5B;sudo] password for jeverson:
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp0s25, link-type EN10MB (Ethernet), capture size 65535 bytes

12:13:51.616237 IP mc-server.all-offroad.net.37052 &gt; kate.all-offroad.net.6000: UDP, length 5
12:13:51.616314 IP kate.all-offroad.net &gt; mc-server.all-offroad.net: ICMP host kate.all-offroad.net unreachable - admin prohibited, length 41</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
