Skip to content

Setting up the fish and box

Mark Niemann-Ross edited this page Jan 27, 2017 · 14 revisions

General Notes

The fish wifi shows up at 10.0.0.31

I have not installed vnc. Instead, use "ssh [email protected]"

Startup

I've created a startup file that handles a bunch of tasks. It's called fish_config.sh and is run from /etc/init.d/fish_config.sh. Here's instructions on how this works.

Install SQLite

Used to queue text to speech

instructions on installing SQLite and using it with python

sudo apt-get install sqlite3

The database is set up inside of fish_config.sh

Install I2C

setting up support for I2C which is used by the PCF8591 AtoD module

pip install works on my macintosh - but not the raspberry pi pip3 install smbus2 and pip install smbus2

On raspberry pi, use:

sudo apt-get install python-smbus python3-smbus python-dev python3-dev

which installs this.

install nltk

This was a bit problematic with incompleteread errors.

I was able to get it to install with sudo easy_install3 -U nltk

instal nltk

Here's an alternative


I don't think I'll use stuff below this line, but keeping it around just in case

Set Up pyttsx

pyttsx is the text-to-speech tool.

Install espeak

sudo apt-get install python-espeak

Install pyttsx for python3

mkdir gitFiles

cd gitFiles

sudo python3 setup.py install

Further description of the install process is at...

https://python-packaging.readthedocs.io/en/latest/minimal.html

There is a discussion of pyttsx for python3 at...

http://stackoverflow.com/questions/24963638/import-pyttsx-works-in-python-2-7-but-not-in-python3

are you getting "'libruby2.1:armhf' is missing final newline"

https://blog.bartbania.com/raspberry_pi/files-list-file-missing-final-newline/

dpkg -c /var/cache/apt/archive/libruby2.1.deb |
awk '{if ($6 == './'){ print '/.'; } else if
(substr($6, length($6), 1) == '/'){print
substr($6, 2, length($6) - 2); } else { print
substr($6, 2, length($6) - 1);}}' >
/var/lib/dpkg/info/libruby2.1.list