Skip to content

FIND WHERE A BITLY ADDRESS GOES

  • General

From time to time I still run into URL shorteners. I always wonder where it is going to send me, and if I can actually trust the link. This is especially worrisome when you run into URL shorteners on new sites. Well I found a way to note the actuall address of the site that it is trying to send you to.

All you have to do is copy the URL and put a plus at the end of it

Example:


Add the plus at the end of the URL
http://bit.ly/2HK6nTW+

Place it in your address bar, and it will bring you to the page, showing the full URL

Now you can see that
http://bit.ly/2HK6nTW+
goes to

Thanks for reading!



SET A STATIC IP ON YOUR RASPBERRY PI 4

This guide assumes that you are running the latest version of Raspbian on your Pi. If you are not, you can follow this guide to get it setup.

How to install Raspbian on your Raspberry Pi 4
https://tacticalware.com/wp-admin/post.php?post=1240&action=edit

My build also uses a FAST M.2 drive instead of the slow Micro SD card:
https://tacticalware.com/boot-raspberry-pi-4-from-m-2-usb-drive/

Now that we have both those straightened out, to set a static IP is simple. Just perform the following:

Open a Terminal
Type:
sudo bash
nano /etc/dhcpcd.conf
Replace hostname with the name of the Pi, I set mine to tacticalware1
Then you will want to
uncomment the following lines and set your address(to uncomment, remove the # from the beginning of them)
#interface eth0
#static ip_address line and set the ip
#static routers line and set it
#static domain_name_servers line and set it
Note that if your local network is 192.168.1.xxx or 192.168.0.xxx use an ip scheme that matches your setup
Ctrl x to save
y
Press Enter
nano /etc/hostname
Make sure you set it to tacticalware1 or whatever your pi’s name is
ctrl x
y
nano /etc/hosts
make sure tacticalware1 is listed in there as well at the bottom of the file, next to 127.0.0.1
ctrl x to save
reboot

Your system will now reboot and your static ip address will now be in effect.

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Thanks for reading…….


ENABLE SSH ON THE RASPBERRY PI 4

Enabling ssh on the Raspbian Operating system for the Raspberry Pi 4, is simple and quick. Here is a quick rundown on the steps for it.

Once you are on the Desktop

Click the Raspberry iscon
Select Preferences
Click Raspberry Pi Configuration
Navigate to the Interfaces tab
Select Enable next to SSH
Click OK
Reboot

Now you can SSH into the Raspberry Pi using Putty from another computer. All you need to know if the IP Address on the Pi

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Thanks for reading…….


WORDPRESS DOUBLE DASH ISSUE 2021 [SOLVED]

  • General

The dreaded double dash issue is back in wordpress. This issue is where wordpress automatically reformats two dashes, into a single long dash. It needs to be removed in blogs like this ome, where many of the commands you see are infact double dashes. This is the quick fix for it.

Login into your site

Go to: Dashboard

Click Appearance

Select Theme Editor

Choose functions.php

Scroll to the bottom of the page and paste

add_filter( ‘run_wptexturize’, ‘__return_false’ );

Click Update

The issue is fixed

Make sure the ‘ symbol above is correct, if it is the apostrophe that slants forward it will not work. it has to the be the apostrophe character that is straight up/down

You will probably need to do this everytime you update your wordpress theme. So bookmark this page and come back when you need to fix it next time.

RASPBERRY PI – NORDVPN INSTALL

This is a quick how to on setting up NORD VPN on a Raspberry Pi.

First you are going to want to make sure you are on the same platform as me, for these directions to apply, line by line.
https://tacticalware.com/install-ubuntu-desktop-20-10-64-bit-os-on-raspberry-pi-4/

Open a Terminal
sudo bash
Enter your password
apt-get update
apt-get upgrade
y
mkdir /installs
cd /installs
mkdir nordvpn
cd nordvpn

wget -qnc https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb

sudo dpkg -i nordvpn-release_1.0.0_all.deb
apt-get update
apt install nordvpn
y

nordvpn login
Enter username
Enter password
nordvpn connect

You are now connected to the VPN!

Hardware I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

SanDisk MobileMate USB 3.0 microSD Card Reader (Only needed if you dont have a Micro SD Reader/Writer slot in your computer)
https://amzn.to/39toi0G

BESTBUY BOT RUNNING ON RASPBERRY PI

I have been trying for weeks, if not months, to get my hands on the new AMD and NVidia video cards, and just cannot. They are always sold out on bestbuy.com, amazon and many other sites. So I had taken a deeper dive into why this is happening….and it is one simple word…bots.

Thankfully one user on github was sick of it too, so they wrote an open source bot, and released it to everyone, to help level the playing field. Below you will find the info on how to setup this bot to help you, do your normal holiday shopping, against these bots.

First you will need to follow this guide:
https://tacticalware.com/install-ubuntu-desktop-20-10-64-bit-os-on-raspberry-pi-4/

Once you set your Raspberry Pi up, you can pick up the rest here:

From the Desktop of your Raspberry Pi
Open a terminal and type the following:
sudo bash
Enter your password
apt- get update
apt-get upgrade
y
Your Pi will update

Once it is updated, run the following
apt-get dist-upgrade
y
The distribution will upgrade now

After it finishes updating, type the following
mkdir /installs
chmod 777 /installs
cd /installs
apt install git
git https://github.com/Hari-Nagarajan/fairgame.git
reboot

After your system reboots, from the desktop
Open a terminal
sudo bash
Enter your password
cd /installs/fairgame
apt install python3-pip
pip install pipenv
pipenv shell
pipenv install

This will probably fail with an error, however the major dependencies have been satisfied, so your bot will work.

Now time to test the bot
python3 app.py bestbuy –sku [6440913]

Success!

From here you will want to refer to the Readme in your /installs/fairgame directory to see exactly how you will want to run the bot now that it works.

Hardware I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

SanDisk MobileMate USB 3.0 microSD Card Reader (Only needed if you dont have a Micro SD Reader/Writer slot in your computer)
https://amzn.to/39toi0G

INSTALL UBUNTU DESKTOP 20.10 64-BIT OS ON RASPBERRY PI 4

This guide shows you how to install an Operating System on a Raspberry Pi 4. The one I chose for this guide is Ubuntu Desktop 20.10 64-BIT, so if you are installing that, you can follow along easily. If you are wondering which hardware I used, the exact items are linked at the bottom

On a Windows computer
Insert your SD Card into the Windows computer
Open a web browser
Navigate to https://www.raspberrypi.org/software/
Download the Raspberry Pi Imager

Once it is downloaded, double the imager.exe file
Select Yes
Click Install
Checkmark Run Raspberry Pi Imager
Click Finish

Now that the Raspberry Pi Imager is running
Click Choose OS
Scroll down and select UBUNTU
On the next Screen select Ubuntu Desktop 20.10 (RPi 4/400)
Click Choose SD
Select your SD Card
Click Write
All existing data …. will be erased. Are you sure you want to continue?
Click Yes
Data is written to the SD Card
The data is automatically verified after it is written
Once it finishes you will see the message that “you can now remove the SD card from the reader”
Remove the card
Click Continue

Now back on the Raspberry Pi
Plug in network cable
Connect the keyboard
Plug in a mouse
Connect the HDMI cable
Install the Micro SD card you just made (up above)
Plug in the power (Last step)

The Raspberry Pi installation begins
Select English
Click Continue
Select Keyboard Layout
Click Continue
Place a dot next to Connect to this network
Select Wireless Network
Click Connect
Enter your Wireless Password
Click Connect
Select Continue
Choose Time zone
Click Continue
Enter your Name, Password and other info
Click Continue
The Operating System installs now
Once it is installed your Raspberry Pi will reboot automatically
Your Desktop will appear and you are done

Your Raspberry Pi 4 is setup with the Ubuntu Desktop 20.10

Hardware I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

SanDisk MobileMate USB 3.0 microSD Card Reader (Only needed if you dont have a Micro SD Reader/Writer slot in your computer)
https://amzn.to/39toi0G


Thanks for Reading!

RASPBERRY PI GREEN SCREEN

An issue that you will find with the Raspberry Pi’s are the Green Screens, as show in the picture. Green Screens are the result of a corrupted Operating System. The simple fix for this, is to reinstall the OS onto the Micro SD card, or onto the M.2 ssd if you run your Pi devices the way I do.



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L


BOOT RASPBERRY PI 4 FROM M.2 USB DRIVE

If you want huge performance increases, consider getting rid of the Micro SD card, and moving your data and OS over to an M.2 Drive on the Raspberry Pi. How do you do this, you ask. First, make sure you have the same hardware as me, in order to follow along. Second, run through the following guide.

If you need to do this from scratch, follow this guide to setup your Raspberry Pi: https://tacticalware.com/install-raspbian-os-on-raspberry-pi-4/

Then, make sure your firmware / eeprom is up to date. If you need assistance with it, follow this guide:
https://tacticalware.com/update-new-raspberry-pi-4-firmware-eeprom/

Once you have both steps above completed, you can move onto setting up the M.2 drive

For this, I have inserted a WD 500GB M.2 Drive into a USB 3.0 dongle, and have it connected to my Pi. If you want to get the same parts as I have, skip to the bottom of this page.

Now, you will want to connect your M.2 dongle to your Raspberry Pi 4, and boot it up.

Once you are at the Desktop:
Open a Terminal
sudo bash
raspi-config
Select option 6 – Advanced Options
Choose option A6 – Boot Order
Select option B1 – USB Boot
Press Enter
You should now be on the “Usb device is the default boot device” screen
Select OK
Scroll to Finish and select it
You will see the message:
Would you like to reboot now?
Choose NO

Back on your Raspberry Pi 4 Desktop
In the top left corner, click on the Raspberry to access the drop down menu
Select Accessories
Scroll over to and choose SD Card Copier

A dialog box will open
If you have the same setup as me, using the same hardware below, you will want to select the same options, otherwise you will have to choose the relevant settings for you
Copy from Device – Select the option for the SC32G
Copy to Device – Select the option for the WDS500G3
Select Start
Choose YES – to erase all contents
Click OK once the contents are copies over successfully
Select Close
Shutdown your Raspberry Pi 4
Remove your Micro SSD
Power the Pi back on, it should now boot from the USB M.2 Drive
Open a terminal
Type
sudo bash
raspi-config
Select option 6 – Advanced Options
Choose option A1 – Expand filesystem
Press Enter
Root File system will be resized
Click Ok
Reboot

You are done!

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Thanks for reading…….

UPDATE NEW RASPBERRY PI 4 FIRMWARE / EEPROM

This guide assumes you do not have a running Raspberry Pi 4 device, and this is your first time opening it up. If that is the case, make sure you follow the steps in this guide first
https://tacticalware.com/install-raspbian-os-on-raspberry-pi-4/

Once your Operating system is setup and functional you will want to update the firmware to the latest revision, therefore the objective of this guide is to show you how to update Raspian and how to update the eeprom / firmware

Open a terminal
sudo bash
apt update
apt upgrade
rpi-update

Would you like to proceed
Type y
Now reboot your Pi

Open a terminal
sudo bash
rpi-eeprom-update -d -a
reboot your Pi after it updates

Open a terminal
raspi-config
Scroll down and select Option 8 – Update
Update now runs, and after the update completes
Scroll down and select Option 6 – Advanced Options
Then scroll down to Option A7 – Bootloader Options
Select Option E1 Latest – Use the latest version of the boot rom software
Press Enter
Select OK
On the Reset boot rom to defaults screen
Select No
On the Boot rom not reset to defaults screen
Select OK
Scroll down and select Finish
Select Yes

Your Firmware / EEPROM are now Updated, and you will have the latest version with the latest features.

Hardware I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Thanks for reading!