Categories
Operating Systems

CentOS 8 Stream Error setting up base repository

This is a super simple fix. If you are trying to set up a centos 8 stream server with just the boot iso and the internet. You need to select the repo that it can pick from so you can get your packages. When you are selecting your isntallation source, the “on the network” source you can pick for a repository URL is:

mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/

Select done and then you can select your packages. My go to is a minimal install, then you can continue your installation.

Categories
Uncategorized

Coupon code for namesilo.com renewals or transfers

This code should work on renewals as well as transfers. It should get you $1 off your domain purchase. The code you can use when you do a renewal or transfer with namesilo.com is:

vivi-onedollar

Full disclosure: I get some sort of affiliate return. But the goal would be to save you at least a dollar!

Categories
Gaming Nintendo Switch

Nintendo Switch static port for PfSense on its outbound NAT fix NAT D

This should resolve anyone trying to connect outbound with their Nintendo Switch when it gets stuck on NAT D when using a pfsense router. I am using version 2.5.1-RELEASE as of this guide creation. Doing this also creates no reason to enable uPNP either. This assumes your Nintendo Switch is using a Static IP, or has a DHCP IP reservation so you can keep using the same IP. But if you have not set up a DHCP static lease, see step 1, otherwise skip to step 2.

1. Set a static IP address for the device via DHCP static mappings

  • Status -> DHCP Leases, find the device, click + to add a mapping, set a static address, save, etc. I have an IP range outside my DHCP scope that I like to use for static leases.

2. Switch to Hybrid Outbound NAT

  • Firewall -> NAT, Outbound tab
  • Select Hybrid Outbound NAT, Save

3. Add Outbound NAT rule

  • Firewall -> NAT -> Outbound tab
  • Click Add
  • Set the console address as the source (Type = Network, then enter the IP address, pick /32 for the CIDR)
  • Check Static Port
  • Click Save

That is it, you should now have NAT Type B, which should let you play Splatoon 2, and connect to other Animal crossing users.

Categories
Uncategorized

EVGA Associates code for 10% discounts

Warning, this is purely an ad post for my associates code. Good news is it can get you up to 10% off any hardware at evga.com and it’s store. When you go to check out, just punch in this associates code during checkout: I6AM2ZPP7846RU5

That is it! Should save you up to 10%. Otherwise here’s the total savings per product type:

Product Type
Audio
10.00%

Capture Device
5.00%

Cases
10.00%

Cooling
10.00%

Gaming Keyboards
5.00%

Gaming Mice
5.00%

Graphics
3.00%

Motherboards
5.00%

Power Supplies
10.00%

I appreciate you for using my code!
Categories
linux minecraft Uncategorized

Minecraft Bedrock Server on CentOS 8 Stream error with libnsl.so.1

My Minecraft server was working great on my CentOS 8 Stream server for a few months. Then an update they must have added or modified a dependency. When I would go to start it, it would throw:

./bedrock_server: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory

Did a little googling and discovered I needed to install libnsl package:

dnf install libnsl

Once I did that, I was back up and running! Hopefully this helps someone else.

Categories
Uncategorized

AT LOTTO 2021 – Pandemic Edition

UPDATE AFTER DRAW: Looks like someone in Michigan won the jackpot :(.

NOTE: This is not endorsed by Anandtech, they have no legal obligations in this if I decide to screw you all over or something. This is also not just for AT members, friends of friends can join.

BUY IN = $10

In the past some have put in more money, but let it be known, if we win, we will still all get an equal share. If you want to add a buy in for a spouse/SO make sure to fill the form out TWICE with unique info so I can contact you each individually. The same goes for the Buy in, make sure to send it in twice.

The deadline to join is Jan 22 2021 at 2000 EST, 1900 CST, 1800 MST, or 1700 PCT. This is for the drawing of MEGAMILIONS on Jan 22 2021 @ 2100EST with a jackpot of $970 MILLION USD.

STEP 1 :

Send $10 via venmo (preferred), cashapp, or Amazon Gift card, IF YOU SEND AS CC, ADD 4% to cover the fee. If you want a referral code for any of these services let me know. You get free $ and I get free $.

venmo address
cashapp
Amazon GC: much prefer venmo, but this option is still possible

If you have heatware, I could also do a MO/cash/check, but email me first for my address.

STEP 2 :
Fill this quick form out :

https://forms.gle/augdN9KaPpacUaV97

This way I can keep track of everyone two fold, and then send a quick email once I get the tickets.

TIME TO WIN!

EXAMPLE WINNING SCENARIO:

We win $250,000, 50 people bought in, we split $250,000 – tax cut / 50. We will be PROBABLY be doing a lump payout. We will use some of the funds to have a lawyer do the divvy process and to try and levy as much tax saving as we can. I am thinking I take the tax cut (VA), and say we’re an anonymous group of friends who won. VA has a law that does not require you to divulge who the winner is. I can mail a check, cash, ACH, MO, etc, will let the lawyer make the decision for us most likely. IMO, this should be OK for non US citizens as well, because I will claim the winnings and divvy them up as gifts, or however the lawyer thinks will save us the most money.

Second scenario: Split it pretax and you collect yourself and pay your taxes. If I recall someone said that was an option, but I had not looked into it.

Also note, if we win anything less then $500, I will probably just roll it into another round of something. Scratchers, more megamillions, powerball, GME long calls, harhar. Those on the original buy in will get a % still, if it hits home.

Categories
Uncategorized

Connect a Nintendo switch to a bedrock server

I just bought a Nintendo Switch and was trying to play cross platform with my buddies on PC. The non-java version of Minecraft. So I set up a minecraft server running bedrock and did a tcpdump on my router to where my Switch was trying to connect to. It attempts to connect to mco.lbsg.net. So I pointed that DNS entry on my dnsmasq server to my bedrock server public address and my switch now lets me connect to it and I can play on that server.

Hopefully this gets fixed at some point or let’s us Switch players connect to bedrock servers directly.

Categories
Cisco General Computing Uncategorized

Looking up Cisco ASA5506 timebomb Field Notice – FN64228

(UPDATED APRIL 2021) – As the link was broken and now fixed) I don’t know why this isn’t plastered on cisco.com, but you can go to here and throw a serial number in and see if it’s affected by the timebomb that the C2000 CPU’s cause. This seems specific to the 5506x, there are other search tools and field notices at cisco to determine if your hardware is affected.

https://snvui.cisco.com/snv/FN64228

If you need to grab your SN, type show inv and it’ll spit out SN and version. I’ve found a bunch of V02 are unaffected, based on that lookup tool.

madfw5# show inv
Name: "Chassis", DESCR: "ASA 5506-X with FirePOWER services, 8GE, AC, DES"
PID: ASA5506           , VID: V04     , SN: JMX2xxxxxx

Name: "Storage Device 1", DESCR: "ASA 5506-X SSD"
PID: ASA5506-SSD       , VID: N/A     , SN: MSAxxxxxxxx

madfw5# 
Categories
Software Uncategorized

WHMCS remove NS1 and NS2 prefix

This one was bothering me for some reason. When you select the product type in your WHMCS Products/Services as Server/VPS it adds this NS1 and NS2 requirement. Which are just nameservers, it makes no sense! So if you change it from Server/VPS to OTHER the option goes away. If you have modules and other configurable options enabled, they’re all still there and work. Seems silly, but I reached out to WHMCS to ask why it exists in the first place.

Do know, this removes the hostname as well. If you want to keep hostname, you have the ability to hide NS1 and NS2 prefix’s and prepulate them instead. You would leave your Product/Service as Server/VPS and then make these changes:

The fields can be hidden by editing the /templates/orderforms/your_active_template/configureproduct.tpl file.

To remove one or more of the default fields on your order form entirely, you can change the field type to hidden and supply a unique value.

For example:

Find:

<label for="inputNs1prefix">{$LANG.serverns1prefix}</label>
<input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="{$server.ns1prefix}" placeholder="ns1">


<label for="inputNs2prefix">{$LANG.serverns2prefix}</label>
<input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="{$server.ns2prefix}" placeholder="ns2">

Replace with:

<!-- <label for="inputNs1prefix">{$LANG.serverns1prefix}</label> -->
<input type="hidden" name="ns1prefix" class="form-control" id="inputNs1prefix" value="host{$smarty.now}" placeholder="ns1">


<!-- <label for="inputNs2prefix">{$LANG.serverns2prefix}</label> -->
<input type="hidden" name="ns2prefix" class="form-control" id="inputNs2prefix" value="host{$smarty.now}" placeholder="ns2">


It is recommended to create your own custom order form to preserve changes through any upgrades – http://docs.whmcs.com/Order_Form_Templates#Creating_a_Custom_Order_Form_Template

Hopefully this helps someone, enjoy!

Categories
Linux

Writing multiple lines of code to a file in linux

Sometimes it’s needed to create multiple files, repeatadly with linux. This should work with any of the major distros: CentOS, Ubuntu, Fedora, Debian, etc.

This also assumes the file does not exist already, if it does exist, it will append this info to the end of the file that already exists.

cat >> ifcfg-eth0 << EOF
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
EOF

You can now type cat ifcfg-eth0 and it will output the 4 lines above.

If that is not to your liking, you could always use something like echo with append statements. Like this:

echo "TYPE=Ethernet" >> ifcfg-eth0
echo "DEVICE=eth0" >> ifcfg-eth0
echo "BOOTPROTO=none" >> ifcfg-eth0
echo "ONBOOT=yes" >> ifcfg-eth0

The >> option appends the echo information into a file name. But if you do > it will overwrite all lines in the file.

Enjoy!