To Do List

Learning in Motion

  • Software License Audit
  • Off-site Backup
  • Hardware Audit
  • E-mail Audit
  • Website Move
  • Delete bad products from website
  • Fix power cabling in conference room.
  • Add NRPE to transfer, qbserver

Personal

  • Play with Raspberry Pi
  • Cleanup Garage
  • Setup backups for websites and DBs
Posted in Journal | Comments Off on To Do List

Things I’d Like to Accomplish

  • Host Poker
  • Host Movie Night
  • Develop Process for Scanning Bills
  • Get tools cleaned up and put away
Posted in Journal | Comments Off on Things I’d Like to Accomplish

CENTOS 7: Fix yum after failed update

Ended up with a ton of duplicate errors and complaints about multiple architectures. Ran several things such as:

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

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

for i in $(package-cleanup --dupes); do rpm -e --justdb $i --nodeps; done
yum update

Posted in Journal | Tagged , , | Comments Off on CENTOS 7: Fix yum after failed update

Format USB Drive for EXT4

Use lsblk to identify device

$ 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  [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  

Format with EXT4

Create a GPT partition table by issuing:

sudo parted /dev/sdb --script -- mklabel gpt

Run the following command to create a EXT4 partition that takes the whole space:

sudo parted /dev/sdb --script -- mkpart primary ext4 0% 100%

Format the partition to ext4:

sudo mkfs.ext4 -F /dev/sdb1

How to Format USB Drives and SD Cards on Linux
https://linuxize.com/post/how-to-format-usb-sd-card-linux/

Posted in Journal | Comments Off on Format USB Drive for EXT4

GIT: Change Master of Orphaned Repo

When a Origin Master becomes unavailable create a new repo for the master and then on the client:

$ 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

and maybe

$ git push --all
$ git push --tags

Posted in Journal | Comments Off on GIT: Change Master of Orphaned Repo

Excel Tips

=LEFT(<cn>,LEN(<cn>)-LEN(<hostname>)-1)

Example

=LEFT(D2,LEN(D2)-LEN(A2)-1)

Posted in Journal | Tagged | Comments Off on Excel Tips

Re-tagging in Git

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
Posted in git | Comments Off on Re-tagging in Git

Measuring in Acrobat

To Scale:

  • Right clicked the page when the measuring tool was selected and chose ‘change scale ratio’.
Posted in Journal | Comments Off on Measuring in Acrobat

Adding a Package to Local 3rd Party Ubuntu Repository

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 . > 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 > 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 Systems, Inc. <debian.package.support@citrix.com>
Installed-Size: 49651
Pre-Depends: debconf (>= 0.5)
Depends: libc6 (>= 2.13-38), libice6 (>= 1:1.0.0), libgtk2.0-0 (>= 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 (>= 2.12.0), libgstreamer-plugins-base0.10-0 (>= 0.10.15), libgstreamer0.10-0 (>= 0.10.15), libspeex1, libvorbis0a, libvorbisenc2, libcanberra-gtk-module, gstreamer
1.0-libav (>= 1.2.0), gstreamer1.0-plugins-bad (>= 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.

Sign appropriate files:

# gpg -a --yes --output dists/stable/Release.gpg --local-user 7F4B9823FC5FA0C2 --detach-sign dists/stable/Release</pre>
You need a passphrase to unlock the secret key for
user: "Linux Admins (None) <linuxadmins@intusurg.com>"
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: "Linux Admins (None) <linuxadmins@intusurg.com>"
2048-bit RSA key, ID FC5FA0C2, created 2017-11-02

gpg: gpg-agent is not available in this session
Posted in Journal, System Configuration | Tagged , , | Comments Off on Adding a Package to Local 3rd Party Ubuntu Repository

Local Apt Repository Client Configure

  1. wget -qO – http://mc-server/repository/repo.key | sudo apt-key add –
  2. cd /etc/apt/sources.list.d
  3. sudo vi local.list
    1. deb [arch=amd64] http://mc-server.all-offroad.net/repository/amd64 stable contrib
  4. sudo chmod a+r /etc/apt/sources.list.d/local.list
  5. sudo apt update
Posted in Journal | Comments Off on Local Apt Repository Client Configure

Generating a New GPG Key

Run gpg to generate a new key

$ gpg --gen-key

Answer questions:

  1. RSA
  2. 4096
  3. User ID
  4. Email Address
  5. 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) <jeverson@techmentor.com>
ssb 2048R/C1B6E02B5116D297 2017-10-25
Posted in System Configuration | Tagged , , | Comments Off on Generating a New GPG Key

Testing for UDP Traffic

On the receiver run:

tcpdump host <ip of sender>

On sender run:

  echo "PING" > /dev/udp/<ip of receiver>/<port #>

Example:

Sender

$ echo "PING" > /dev/udp/192.9.20.115/6000"

Receiver

$ sudo tcpdump host 192.9.20.111
[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 > kate.all-offroad.net.6000: UDP, length 5
12:13:51.616314 IP kate.all-offroad.net > mc-server.all-offroad.net: ICMP host kate.all-offroad.net unreachable - admin prohibited, length 41
Posted in Journal, System Monitoring | Tagged , | Comments Off on Testing for UDP Traffic