I made a full update of my install script:
https://github.com/boredland/spreads-deploy
From the ./setup.sh I offer three Setup-Methods:
[1] Standalone
[2] Processor
[3] Full
For Full and Processor the tools are compiled from source. That takes quite a long time, but is therefore quite platform-idependent.
I think in the area of the Standalone-Devices there a some things missing (udev rules etc.), but thats only a matter of time: help is kindly appreciated.
Yours
Boredland
Install Script
Moderator: peterZ
-
- Posts: 4
- Joined: 22 Sep 2014, 00:23
- E-book readers owned: 0
- Number of books owned: 500
- Country: USA
Re: Install Script
Had to add the following if [] fi to the tesseract.sh code:
if [ ! -d /usr/local/share/tessdata ]; then
sudo mkdir /usr/local/share/tessdata
fi
## check if the trainingfiles are there and if not add them from git
if [[ ! -d tessdata ]]
then
git clone https://code.google.com/p/tesseract-ocr.tessdata/ tessdata
fi
# My addtion goes here... [JTS]
if [ ! -d /usr/local/share/tessdata ]; then
sudo mkdir /usr/local/share/tessdata
fi
# NEVER assume a directory already exists! [JTS]
sudo cp tessdata/* /usr/local/share/tessdata
if [ ! -d /usr/local/share/tessdata ]; then
sudo mkdir /usr/local/share/tessdata
fi
## check if the trainingfiles are there and if not add them from git
if [[ ! -d tessdata ]]
then
git clone https://code.google.com/p/tesseract-ocr.tessdata/ tessdata
fi
# My addtion goes here... [JTS]
if [ ! -d /usr/local/share/tessdata ]; then
sudo mkdir /usr/local/share/tessdata
fi
# NEVER assume a directory already exists! [JTS]
sudo cp tessdata/* /usr/local/share/tessdata
-
- Posts: 4
- Joined: 22 Sep 2014, 00:23
- E-book readers owned: 0
- Number of books owned: 500
- Country: USA
Re: Install Script
Had to add the following sudo to the scanner_links_rules.sh:
# almost all files in /etc/ require root privileges...
sudo rm -f /etc/udev/rules.d/70-persistent-net.rules
sudo sh -c "echo 'ACTION=="add", SUBSYSTEM=="usb", MODE:="666"' > /etc/udev/rules.d/99-usb.rules"
sudo sed -i -e 's/KERNEL\!="eth\*|/KERNEL\!="/' /lib/udev/rules.d/75-persistent-net-generator.rules
# How did you ever get this to work???
rm -f /etc/udev/rules.d/70-persistent-net.rules
if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then
echo "We are chrooted!"
else
sudo udevadm control --reload-rules
fi
# almost all files in /etc/ require root privileges...
sudo rm -f /etc/udev/rules.d/70-persistent-net.rules
sudo sh -c "echo 'ACTION=="add", SUBSYSTEM=="usb", MODE:="666"' > /etc/udev/rules.d/99-usb.rules"
sudo sed -i -e 's/KERNEL\!="eth\*|/KERNEL\!="/' /lib/udev/rules.d/75-persistent-net-generator.rules
# How did you ever get this to work???
rm -f /etc/udev/rules.d/70-persistent-net.rules
if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then
echo "We are chrooted!"
else
sudo udevadm control --reload-rules
fi
-
- Posts: 4
- Joined: 22 Sep 2014, 00:23
- E-book readers owned: 0
- Number of books owned: 500
- Country: USA
Re: Install Script
Cannot figure out how to get around this installation error:
Downloading/unpacking piggyphoto>=0.1 (from spreads[web,chdkcamera,hidtrigger,gphoto2camera])
Could not find any downloads that satisfy the requirement piggyphoto>=0.1 (from spreads[web,chdkcamera,hidtrigger,gphoto2camera])
Cleaning up...
No distributions at all found for piggyphoto>=0.1 (from spreads[web,chdkcamera,hidtrigger,gphoto2camera])
Storing debug log for failure in /home/myHomeDir/.pip/pip.log
Yousa gotta fixin deez one!
Downloading/unpacking piggyphoto>=0.1 (from spreads[web,chdkcamera,hidtrigger,gphoto2camera])
Could not find any downloads that satisfy the requirement piggyphoto>=0.1 (from spreads[web,chdkcamera,hidtrigger,gphoto2camera])
Cleaning up...
No distributions at all found for piggyphoto>=0.1 (from spreads[web,chdkcamera,hidtrigger,gphoto2camera])
Storing debug log for failure in /home/myHomeDir/.pip/pip.log
Yousa gotta fixin deez one!
-
- Posts: 388
- Joined: 01 Jun 2014, 17:04
- Number of books owned: 1000
- Country: United States of America
Re: Install Script
The script referred to is the piggyphoto library here:
https://github.com/alexdu/piggyphoto
I've installed it in the past, but cannot now remember how I did this. Try fetching the repository and seeing if you can install it that way. I'll take a look myself when I get a chance this weekend.
https://github.com/alexdu/piggyphoto
I've installed it in the past, but cannot now remember how I did this. Try fetching the repository and seeing if you can install it that way. I'll take a look myself when I get a chance this weekend.
Re: Install Script
I think you're wrong, even though this does no harm. The Tesseract Makefile does, and that I am quite sure, create the tessdata directory automatically.# My addtion goes here... [JTS]
if [ ! -d /usr/local/share/tessdata ]; then
sudo mkdir /usr/local/share/tessdata
fi
# NEVER assume a directory already exists! [JTS]
sudo cp tessdata/* /usr/local/share/tessdata
Code: Select all
sudo rm -f /etc/udev/rules.d/70-persistent-net.rules
Sadly I never had this piggyphoto-error. Perhaps you can just post it on the spreads git, quite sure Johannes did add it newerly.
Furthermore:
Could you please file issues on my github for this in the future? Working down several errors in a forum is quite hard to follow up..
Re: Install Script
I deleted this project since noone was using it.