Cable Modem Woes

I’ve since returned this modem and have basic modem with one ethernet port and phone jacks. I was using an Arris cable modem which is proving to be garbage.

System: ARRIS DOCSIS 3.0 / PacketCable 2.0 Touchstone Telephony Gateway
HW_REV: 5
VENDOR: Arris Interactive, L.L.C.
BOOTR: 1.2.1.61
SW_REV: 7.5.63C.SIP.PC20.TW
MODEL: TG862G
Battery Charger FW Rev: 02.10
 Firmware Build and Revisions
Firmware Name: TS070563C_032913_MODEL_862_GW_TW_SIP_PC20
Firmware Build Time: Fri Mar 29 11:42:55 EDT 2013
eSAFE 0 FW Revision: 2.0.40_0920E

I tried to do DHCP reservations and it seems these just fail with no error displayed.  I wanted to change the subnet it uses and that isn’t allowed either. Wireless seems to lock up randomly and requires a reboot. I have multiple AP’s and funnel DHCP back to the Arris so usually I just end up on an AP that is farther away that what is ideal for my setup.

I built a DHCP server on my Raspberry Pi as a work around to not being able to reserve an IP and have that working smoothly for a couple of days now. I’m considering getting a different modem with out wireless or the phone ports ( I don’t use the phone ports) and then maybe a Ubiquiti Networks UniFi AP Enterprise WiFi System UAP-3 and using that so all of my APs would be from one manufacturer and work together better. Currently I’m using a mish mash between the cable modem and other old AP’s that people have discarded. I just don’t want to spend the $180 or so that it costs to get this equipment and use Ubiquiti’s proprietary POE.

Advertisements
Posted in Home Automation, Linux, Uncategorized | Leave a comment

Raspberry Pi email IP at boot

I found a bunch of what seem complicated answers for how to do this. I made my own eventually just using bash and adding it to /etc/rc.local, turns out I didn’t need to have it in rc.local either, if I put it in /etc/network/if-up/ and made it executable.

#!/bin/bash
#Send an email with the local IP
#sleep added to give me a wait to the process during boot and before remove to give the #script some time to run. These may not be needed. Adjust as needed.
sleep 5
#grep -v added to trim out some extra info from the file
#date added so it would append a time stamp to file
ifconfig | grep inet | grep -v inet6 | grep -v 127.0.0.1 >> file.tmp | date >> file.tmp
#-s after mail gives me a subject line
echo “$(cat file.tmp)” | mail -s IPaddress <email@domain.com>
sleep 5
rm file.tmp

I added this line to /etc/rc.local, but I was getting two copies of the email on boot up. So I deleted it.

/etc/network/if-up.d/mailip-1

If I wanted my external IP I could add a line like below. Maybe put a line in cron to run the script every so often and get this info at times other than when I boot the Pi or when renewing the IP.

dig +short myip.opendns.com @resolver1.opendns.com >> file.tmp

To get dig I had to add apt-get install dnsutils.

Posted in Debian, Linux, Uncategorized | Leave a comment

Raspberry Pi Term Server

So I got this idea online to make my own terminal server with a Raspberry Pi and ser2net.

20180301_151019

Hardware needed.

  • UGREEN USB to Serial RS232 Cable Adapter 4 Ports DB9 Converter 9-Pin Male to Male with Hexnuts
  • Raspberry Pi

Software installed.

  • Raspbian Stretch Lite
  • Ser2net
  • UFW
  • Screen

I think a Pi Zero could also do the job and save a few dollars. So far it remembers the port numbers on reboot and my config is good but I’m working on getting the logging to work the way I want it.

Install ser2net running Raspbian Stretch:

apt-get install ser2net  Then edit /etc/ser2net.conf with your USB to information that I got from running “dmesg | grep tty”.

apt-get install ufw

sudo ufw default deny

sudo ufw allow ssh

sudo ufw enable

sudo ufw status numbered

Installed screen:

sudo apt-get install screen

screen -S term <to open a screen with the name term>

To use the terminal server I ssh in and then run screen and open a terminal in there. The advantage to that is I can leave the terminal running during an upgrade and go get some milk and cookies.

telnet 127.0.0.1 2001

Posted in Uncategorized | Leave a comment

Upgrade Kankun Smart Plug

To preserve some changes and files I added. Add their path to sysupgrade.conf, in my case this is /www/ and /www/cgi-bin/.

# cat /etc/sysupgrade.conf

## This file contains files and directories that should
## be preserved during an upgrade.

# /etc/example.conf
# /etc/openvpn/
/www/
/www/cgi-bin/
root@cat:/rom/www/luci-static#

 

Download the upgrade to /tmp/

wget -O /tmp/openwrt-15.05.1-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/openwrt-15.05.1-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin

Run the upgrade and set back and wait. One site I found on the web said they had problems with wireless being disabled after running sysupgrade -c on one of three attempts. If that happens it means I’ll be opening the case and soldering pins to the headers to get wireless enabled again.

sysupgrade -c /tmp/openwrt-15.05.1-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin

BusyBox v1.23.2 (2016-01-02 18:01:44 CET) built-in shell (ash)

W I R E L E S S F R E E D O M
—————————————————–
CHAOS CALMER (15.05.1, r48532)
—————————————————–
* 1 1/2 oz Gin Shake with a glassful
* 1/4 oz Triple Sec of broken ice and pour
* 3/4 oz Lime Juice unstrained into a goblet.
* 1 1/2 oz Orange Juice
* 1 tsp. Grenadine Syrup
—————————————————–

root@cat:~#

Seems like it worked, the plug is sitting there with a blue light like it is still upgrading.

root@cat:~# cat /etc/openwrt_release
DISTRIB_ID=’OpenWrt’
DISTRIB_RELEASE=’15.05.1′
DISTRIB_REVISION=’r48532′
DISTRIB_CODENAME=’chaos_calmer’
DISTRIB_TARGET=’ar71xx/generic’
DISTRIB_DESCRIPTION=’OpenWrt Chaos Calmer 15.05.1′
DISTRIB_TAINTS=”
root@cat:~# cat /etc/openwrt_version
15.05.1
root@cat:~#

After the install finished I was good and logged back in using the password that I had set for root. The relay didn’t work to turn the switch on and off  but adding two lines to rc.local corrected this problem.

echo 26 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio26/direction

After doing that and testing with a couple of reboots I can run the commands below to turn the outlet on and off from the CLI or go to the web page that I build and do the same there. Just the line with the word echo in them.

#ON:
#echo 1 > /sys/devices/virtual/gpio/gpio26/value
#OFF:
#echo 0 > /sys/devices/virtual/gpio/gpio26/value

Space is at a premium on this device after the upgrade.

root@corner:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 1.0M 256.0K 768.0K 25% /
/dev/root 2.0M 2.0M 0 100% /rom
tmpfs 14.2M 68.0K 14.1M 0% /tmp
/dev/mtdblock3 1.0M 256.0K 768.0K 25% /overlay
overlayfs:/overlay 1.0M 256.0K 768.0K 25% /
tmpfs 512.0K 0 512.0K 0% /dev
root@corner:~# exit
root@cat:/~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 512.0K 396.0K 116.0K 77% /
/dev/root 2.3M 2.3M 0 100% /rom
tmpfs 14.0M 64.0K 13.9M 0% /tmp
/dev/mtdblock3 512.0K 396.0K 116.0K 77% /overlay
overlayfs:/overlay 512.0K 396.0K 116.0K 77% /
tmpfs 512.0K 0 512.0K 0% /dev
root@cat:~#

Smartthings is broken now and I can’t use voice commands on Alexa for this plug either until I sort that out.

 

Quote | Posted on by | Leave a comment

Wages

I was filling the Heep up with gas today at the local Cumberland Farms and noticed a help wanted sign “Starting pay $13 an hour”.
This made me think of Al Vermalia he was an old codger I worked with years ago. He used to tell me how easy I had it since when he started out at seventeen cents an hour back in the day.
When I started minimum wage was $2.65 and I got a raise a few weeks later when the state minimum went up. I’m starting to understand why that seemed so huge to Al and I think I might be the old codger now.

When I hit seventy how much will that dollar be worth then?

Posted in Family | Leave a comment

Stuffed Spaghetti Squash

One large spaghetti squash
one pound mozzarella
sixteen ounces ricotta cheese
four ounces butter
garlic cloves to taste
one pound boneless skinless chicken
four ounces Italian dressing
basil cubes to taste

Heat the oven to four hundred degrees
Split the squash in half and remove the seeds
clean and crush the garlic cloves place them and a couple pats of butter on a cookie sheet with the halves of squash open side down over the garlic and butter. Cook for one hour.

When the squash is close to having been in the oven for one hour take the chicken and dice it up in a pan on the stove top. Brown the chicken and add the Italian dressing and cubes of basil letting it all blend together.

Once the squash has cooked for an hour remove it from the oven and flip them over. Add a layer of ricotta cheese then the browned chicken and last a layer of mozzarella into the squash. Put this back in the over at four hundred and cook for another twenty minutes or until the mozzarella starts to brown.

Remove form the oven and let sit for about five minutes, serves four to six people with left overs.

I like to add a diced up tomato or mushrooms into the squash with the chicken, ricotta, and mozzarella. You could add anything you like to give it a little more something.

Basil Cubes
Harvest the fresh basil from the garden and puree it into a mush add a little olive oil and dump these in an ice cube tray. Freeze and save the basil for later use, long after your basil has all frozen outside.

I got some great spaghetti squash this year from the Suzy Dan team, thanks guys we had a great dinner Sunday.

Posted in cooking, food, gardening | Leave a comment

Bread and Butter Pickles

3 Quarts Bread and Butter Pickles

I added a little chili powder, lemon and pepper to give it a slight bite. I also ignored the onions as I’m no fan of onions and celery. I let these sit with the weight on them for about twenty four hours since I got busy, I think it just let the flavor sink in more.

  • 15 cups sliced cucumbers
  • 3 onions, thinly sliced
  • 1cup coarse salt
  • 4 cups cracked ice
  • 1cups cider vinegar
  • 1cups sugar
  • 3teaspoon turmeric
  • 1teaspoon celery seed
  • 1 tablespoon mustard seeds

pickles

Directions

  1. Combine cucumbers, onions, salt and ice in a large bowl.
  2. Mix well.
  3. Put a weight on and allow to stand 3 hours. (I used a plate with a jar of honey, anything will do).
  4. Rinse and drain thoroughly.
  5. Combine vinegar, sugar, turmeric, celery seed and mustard seed in a large pot.
  6. Add drained cucumbers.
  7. Place pot on medium low heat.
  8. Bring almost to a boil, but DO NOT ALLOW TO BOIL.
  9. Remove from heat.
  10. Seal in sterilized jars, 10 minutes in a hot water bath.

 

  1. Easy way to sterilize jars: Wash them well in hot soapy water.
  2. Dry them off.
  3. Put on a cookie sheet, right side up, at 225°F for 15 minutes.
  4. Turn off oven and leave them in there until you need them.

 

Posted in cooking, Family, recipes, Uncategorized | Leave a comment