Category Archives: life

A few BASH tips from an old Linux admin.

Everyone has seen these “Top 50 commands” blah blah blah….. #clickbait….

I am writing this just to make BASH a much more pleasant experience for people new and old to Linux.  It is also for any sysadmin that has simply not been introduced to some of them.

I could list tons of them, but that’s going to get a simple TL;DR for most people.  Then they will move on.  So I will list a few and lets let those digest.  Keep in mind all commands are in Linux, and may vary by distribution.

First BASH tips (Simple, but time savers):

  1.  Type ‘cd’ and you will go to your home directory for the user you are logged into.
    1. Similar to “cd” ~, however ~ can sometimes rely on the environment.
  2. To return to the previous directory you can type ” cd -“.
    1. This will return you to your previous location, not home.
  3. Type “tailf”, instead of “tail f” for the same results.
    1. Also, “tail -200” can be used instead of “tail -n 200”
  4. Use a custom “PS1” for root, and regular users.
    1. A “PS1” is the text in the login prompt. See Example to the right:
      1. Notice it is yellow
      2. Do the same but in red for root.
    2. Examples:
      1. Debian PS1 for a normal user (as seen to the right)
      2. Debian PS1 for a ROOT user.
        1. These will need to be added to the bottom of “.bashrc” in your home directory
        2. Keep in mind files starting with a . are hidden in Linux, but there.
          1. I also have MAC PS1’s public in my gists.

 

I think that is enough for today, I hope this helps make BASH your friend.

 

-M

Jasper Kits on hold…

These were for the community, and I have enjoyed designing and building these kits.  However, I am at a point now, where I do not have the time to properly maintain and build and ship them.  This is not necessarily a permanent decision, I may bring them back in the future given I have the time.

That being said, I do have a few left.  If you are interested please let me know now.  I will get an exact count soon, and update it here.  Once they are gone, I will not be building more.

With all that being said, I am still here to help with questions.  I am also still developing what I hope is a better user experience with my images.  (Version 1.6 out soon!)

If you have any questions; or would like one of the last kits, I would suggest speaking up now.  Not that I will disappear, but I will be unable to spend the time on them for a while starting soon.

I also wanted to say thank you again to the community members that are helping each other, and the new guys.  I do notice, and it is appreciated.

-M

Jasper Image V1.6 – Release Date!

I have recently had a large number of people wanting to know the exact release date for the v1.6 image. I will release it without the installer, and release the installer separately so it can be used on images that are not mine.

  • Release Date:
    February 15, 2017

I would highly suggest that if there is annoyance; or fix for the next release that it be reported ASAP to the room in our SLACK.

 

Thanks for your patience,

Matthew Curry

Google Disables Hangouts API…breaking many services.

I have seen much FUD around this, and I wanted to clarify so people are aware what Google’s Intentions are for Hangouts.  As I am a heavy user of the product, I was very surprised to see this.  It appears that Google will still keep Hangouts around, but for the ‘normal’ user demographic only.  They will be disabling their API on April 25.  This however, should not be a complete surprise.  Google has made it clear that with the arrival of their new products Allo and Duo that they are switching to an enterprise vision for many of their products.  However, they will NOT BE REMOVING IT COMPLETELY, as mentioned in the linked engadget.com article.

What does this mean for you? The ‘End User’, if just using the services at face value may not even see a difference.  However, services and sites that use the integration features will likely be affected.  They (google) have allowed for an exception, and that is if they site/service qualifies as an “Enterprise Communication Tool”, slack for example.  There won’t be many of those I expect.

Basically it comes down to this, they are ending the Hangouts API integration (publicly) on April 25th.

 

Hope that helps,

Matthew Curry

How AI listens in Jasper (and others)!

 There are two basic kinds of listeners, an active and a passive.  You will not get good offline (passive listener) results for a wide variety of speech currently.  Most offline listeners are used as ‘passive’ listeners. They usually just listen for the wake word or just a few small commands.  They are very accurate but can’t sustain a large vocabulary without CPU issues.  Some are also closed source such as Kitt.ai (snowboy), and require that you train each word on their site.

The other kind, aka the “Active listener”; or the one always listening.  Would be used to listen once activated by the passive listener, and has a much more broad vocabulary.  However, these are online only. Due to the way they work (gathering metadata to increase accuracy), its just not possible currently on a small device. Examples would be standard APIs such as Google, Wit.ai, Ivona/Polly, etc.

There are projects to fix these offline issues, but they are all in the works. See my site for info on some of them. mattcurry.com

Pre-Built Jasper Kits, Ready to go out of the box!

These kits will arrive and be ready to use the moment you power them up. They will be customized to the user, and an image will be provided so they can restore any time they like.

They will include the following:

  • RPI3 B+
  • 32GB Class 10 SD Card
  • US Robotics 9610 [USB Speaker/Mic]
  • Customized/Installed/Setup of Jasper by me personally
    • Install of Jasper and all dependencies
    • STT Setup
    • TTS Setup
  • Testing
    • Running overnight
    • With your settings if you wish
  • Copy of your personalized image for backup
    • In case you wish to restore to a “Known Good” state
  • Updates
    • Such as customized integrations and modules provided by me.
    • Updated Installer / Setup script COMING SOON.


If you are interested in one of these kits, feel free to contact me or start the process by purchasing one below:




Jasper Images Updated version 1.4 (aka Revision 4)

They are updating now; this includes a few fixes and features.

 

  • Jasper Tools Cron Installed (keeps them updated)
  • TTS Server Setup Out of the box!
  • STT Setup Out of the Box! (Just add key in profile.yml)
  • Jasper Start at Boot Cron Installed (allows for Jasper to start at boot)
  • Tested with several different variations of USB devices
    • USB Mic /Speaker Combinations
  • A ‘paired’ installer will be released soon!
    • This will allow the user to answer a few simple questions and have it running in seconds.

I apologize for the delays recently, I have had some personal issues come up.

Jasper Client Links

These are several links I have compiled, and/or created in the last few months. They can help you get Jasper going. I am also working on a full how-to for both RPI2 and RPI3.

  • Jasper-Support-Forums
    • Support forums, I help run these if you have any questions. Contact Me.
  • SLACK SIGN UP
    • Chat room for helping with Jasper
  • Jasper-Client
    • Official Jasper-Client
  • Jasper-RPI-Tools:
    • Set of tools I created in helping setup Jasper/RPI. They are a work in progress, so be sure to do a ‘git pull’ often.
  • RPI-Jasper-Dependencies:
    • Set of pre-compiled dependencies, that would normally take hours to compile. Tested on RPI2/3. Usually used for a non-Jasper image; as the images I created have them all installed.
  • ALSA Setup Wiki
    • Help with ‘.asoundrc’, and setting your default audio device
    • Usually the most common road block.
  • Home-Assistant.io: Home automation for the RPI, works very well. Working on integration on the same RPI; however it has dependency conflicts. Testing in pyenv soon…
  • How TO: Burning SD Card

NAOMI gets an Upgrade… A head…

NAOMI-HEAD

 

Hardware Shown:

  • High Resolution Raspberry PI Camera
    • Eventually I would like to try stereoscopic vision
  • PIR Motion Sensor
    • Used to ‘Wake’ NAOMI to motion in the room.
  • UltraSonic Range Sensor
    • She will track any motion
    • Once an Object/Person/Face is being tracked the Range Sensor will take measurement readings.
  • PWM HAT
    • Used to remove ‘Jitter’, and allow for other Servos
    • May try an “Arm”
  • Server Mount Allowing Pan/Tilt

N.A.O.M.I – v1 Build

This is the latest revision of NAOMI

Keep in mind, I am working to make this easily built with off-shelf (preferably cheap) parts.

Currently Running:

  • RPI2
  • Bluetooth Adapter
  • Pico Router (2″ Square)
    • Allows for Network Bridging (AKA Borrowing Wifi)
  • Wifi Adapter
  • USB Speakerphone
  • Camera (x2)
    • One IP
    • One USB (Can’t See it in Pic)
  • Zwave Home Automation Controller (usb)

Integrations (Currently In Use):

  • Jasper Framework
    • Evernote
    • Twitter
    • Wolfram Alpha
    • Facebook (Tested)
    • Gmail Notifier
  • Home-Assistant.io (testing)
    • Shows when people or devices leave or come on to the network.
    • Tracks family members
    • Tracks Internet Speed Performance over time
    • Tracks Weather
    • Controls Zwave/Zigbee Devices
      • Turn on/off lights, open doors, etc…