Update: House Electrical Work

Late last year I started updating Electricals in our 1900s Foursquare. Over the 100+ years of this historical house, many families have lived and of course they have done their share of updates to the House’s electrical system. When I began, the house had approx. 70-80% of the wiring in the form of dreaded Knob & Tube wiring. Updates made by previous owners had resulted in a mix of all kinds of wiring – K&T, NM and even BX – resulting in a hodge-podge. During the purchase of the house, we had the house inspection done and of course this came up in the inspection report as well. Therefore, I knew from the very beginning what we were getting ourselves into. However, since we wanted an older house in Historical district of Fort Wayne, IN, it was expected to have such flaws in electrical wiring, i.e. not uncommon to see K&T. But after the purchase in October, I was determined to take care of updating the Electricals. I had set myself following goals:

  1. 100% elimination of K&T or BX, and only NM cable throughout the house
  2. Replacing existing in-wall Light Switches to Smart Switches
  3. Installing GFCI receptacles where code requires
  4. Adding new outlets in several much needed areas throughout the house
  5. Finally, the big one to upgrade the Electrical panel to 200A service since the current 100A panel is maxed out

Obviously, I left #5 to the pros as I don’t like to mess with Service panels. Since it’s also most expensive, I am saving it for 2018.

So, what about the rest of the goals?

100% elimination of K&T or BX, and only NM cable throughout the house

As of today, I am happy to report that our house is now 75% on NM cable and only 25% of K&T is remaining. This 25% is equal to only 2 circuits in the house with K&T and it’s mostly lighting. That’s a phenomenal progress! Looking forward to 100% completion in 2018. Then I can rest assured that house wiring is safe and can hopefully last another 100 years.

Replacing existing in-wall Light Switches to Smart Switches

I am very much into Smart devices. Ever since we got our first smart device – the Nest Thermostat, I had been wanting to get into Smart electrical switches. Then when I was doing the Kitchen renovation last year, I installed the first ever smart light switch in the Kitchen. Paired it with Wink Hub and it was an instant joy! Fast forward today, we have a total of 15 smart switches including a couple of dimmers as well. This total is 65% of our light switches in the house! The remaining will be replaced by smart switches soon. One of the reason why there is still 35% remaining is because most of these switches are part of the 2 circuits still on K&T. In traditional K&T, switches do not have a neutral wire and these smart switches require a neutral wire. Therefore, usually when I replace K&T wiring I also change all the connected switches to smart switches. So this one also a goal for 2018 to finish up.

Aside from these smart switches, I have 1 smart outlet as well. This is installed in a strategic location in the Kitchen I call “Crockpot Area”. As the name might suggest, the intent is to have a Crockpot running off this smart outlet and I can schedule this outlet to automatically turn off through Wink!

Installing GFCI receptacles where code requires

We had several findings in the house inspection report at the time of purchase related to absence of GFCI receptacles in areas such as Kitchen, Basement and Garage. As of today, I am complete with installing those wherever they were noted in the report.

Adding new outlets in several much needed areas throughout the house

Quite a lot of work done in this regard:

  • 5 new outlets in Living Room
  • 2 new outlets in Kitchen
  • 1 new outlet in Stairway Upstairs
  • 1 new GFCI outlet on Front Porch

Also, did several corrections:

  • Removed all Baseboard outlets. Why in the world would someone ruin gorgeous Baseboards by installing outlets there!
  • Installed new in-wall electrical boxes wherever there were none. That’s right, there were outlets with no boxes!
  • Corrected bootlegging. I just cannot believe this was done by knowledgeable electricians! It’s extremely dangerous. So, when I replaced the wiring I connected the ground properly. Wherever, I could not install new wire, I changed the outlet to 2-prong instead of 3-prong with dangerous Bootlegged ground.

Overall, 2017 was a great year to make these electrical updates to the house and in 2018, hopefully I will complete rest of the updates.

Fixing Random Samba Share Lockouts w/Docker

Continuation of my previous post about fixing random Samba Share lockouts. I discovered that Docker and Samba were fighting to gain access to the folders. If I set the label to samba_share_t, then Docker loses access. If I allow Docker (with “Z” option while running container), then Docker resets the label to “svirt_sandbox_file_t”. How can I make both use it? Turns out there is a solution. Credit to this Serverfault post: https://serverfault.com/a/881098/449814

Create a new SELinux Policy Module to allow Samba to access the Docker label.

Then start the Docker container with Volumes mounted using “Z” option. You should now be good to go with both Samba and Docker living together happily ever after…

 

Fixing Random Samba Share Lockouts

Ever had Samba shares on CentOS become randomly inaccessible? If so, I might have a cure… Turns out the culprit is (yet) again SELinux. Thank you SELinux for your super sensitive security policies…

It turns out that you might have lost extra important SELinux label on the share and sub-folders. Don’t ask me why and how? Perhaps a boot failure or power failure or random act of God?!

OK, here’s the solution you are looking for. Logon to your CentOS server and simply issue the chcon command. Be sure to do it recursively if you want to access sub-folders inside.

and that’s it! This will once again make that share accessible. Really… that simple!

EDIT: I figured out why lockouts were happening. It turns a Docker container was accessing these shares and resetting the label. If I set the label back to samba_share_t and make Docker container stop resetting it, then Docker container loses access to the folders. argh!

Fixing Grub2 on Centos 7

Grub2 is a very frustrating bootloader esp. when it fails. Here are some of things I have tried that have worked in the past related to Grub2 errors.

Symptom – System starts into Grub2 prompt or simply does not start.

This happened to me recently when yum package update broke something in Grub. The system was booting into Grub2 prompt. This happened on my system because of bad grub.cfg file. Assuming you still have a valid backup of this file available, you can follow the steps below:

1. Type commands

 

2. The root directory should be automatically set to your EFI partition and Prefix should be set to the EFI folder. Then find out a valid backup file for grub.cfg in /efi/centos. For me it was, grub.cfg.1509824788.rpmsave

3. Issue command

4. You should now be able to see the Grub2 boot menu. Just select a valid entry and system should boot normally

5. Once in, overwrite the grub.cfg file with the backup file you used to boot. Reboot and hopefully you should be booting normally

Alternatively, if you have Centos7 Live USB, you can skip Steps 1-4. Boot into rescue mode. Then chroot into your root partition (chroot /mnt/sysimage). Once done simply replace grub.cfg file with a backup file (Step 5) above.

How to cook perfectly spicy Maggi

It’s easy.. You need 1 pack of Maggi. Use a non stick pan and add 1 cup of water. Then add the spice mix. This step is important to put the spice mix before putting noodles. Then mix and allow the water to heat up but don’t boil. Then take Maggi and split in the middle to split the two layers. Put each layer in the pan. Wait 1 minute and then turn each layer. In 1 minute it should start softening. Then use a flat spatula to carefully split the noodles. Do not put pressure or break them. Mix and allow water to start boiling. In about 2 minutes water will be there but not completely gone. Then here’s the trick to get spicy taste… Add hot sauce. I use LA Victoria Salsa brava hot sauce. Add maybe 1 tablespoon. Mix thoroughly and then allow water to dry. It’s ready. Serve in a bowl. 
Of course you can put veggies. I just made mine plain. 

Hot sauce