-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotes from new ubuntu
96 lines (47 loc) · 2.57 KB
/
Notes from new ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Installation following: https://github.com/DIYBookScanner/spreadpi/blob/master/delivery/scripts/10-spreads.sh
git was not installed. Had to
§ sudo apt-get install git
virtualenv is not included in installation instructions. Started out with the following to be able to install virtualenv.
§ sudo apt-get -y install build-essential cython libffi-dev libjpeg8-dev liblua5.1-0\
> libudev-dev libusb-1.0-0-dev libusb-dev nginx python2.7-dev\
> python-pyexiv2 python-netifaces python-pip python-yaml unzip
Continued with
§ sudo pip install virtualenv
§ virtualenv --no-site-packages ~/.venv1
§ source ~/.venv1/bin/activate
§ wget --continue https://www.assembla.com/spaces/chdkptp/documents/aDDsvQyhOr465JacwqjQYw/download/aDDsvQyhOr465JacwqjQYw -O /tmp/chdkptp.zip
§ sudo unzip -d /usr/local/lib/chdkptp /tmp/chdkptp.zip
§ rm -rf /tmp/chdkptp.zip
§ pip install --upgrade pip (up to date)
§ pip install cffi
§ sudo git clone https://github.com/jbaiter/spreads.git /usr/src/spreads
§ cd /usr/src/spreads
§ sudo git checkout webplugin
(.venv1)kampsnigel@nya-datorn-ubuntu:/usr/src/spreads$ pip install --pre pyusb
still in this subfolder in the virtual environment i continue with:
§ pip install git+https://github.com/dreamhost/[email protected]
python setup.py install
§ sudo pip install git+https://github.com/dreamhost/[email protected]
python setup.py install (BY MISTAKE!!!!! no harm done i hope)
§ sudo python setup.py install
§ pip install git+https://github.com/gbishop/cython-hidapi.git
ERROR! (fails without sudo!)
ImportError: No module named Cython.Distutils
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-rTmlZg-build/setup.py", line 3, in <module>
from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
§ sudo pip install git+https://github.com/gbishop/cython-hidapi.git
§ mkdir -p /home/spreads/.config/spreads (fails without sudo!)
§ sudo mkdir -p /home/spreads/.config/spreads
§ cp $DELIVERY_DIR/files/config.yaml /home/spreads/.config/spreads (FAILS!)
§ sudo cp $DELIVERY_DIR/files/config.yaml /home/spreads/.config/spreads
Above fails: cp: cannot stat `/files/config.yaml': No such file or directory
Skipping to following:
§ cp $DELIVERY_DIR/files/spread /etc/init.d/spread
Above fails: cp: cannot stat `/files/spread': No such file or directory.
skipping to
§ pip install flask-compress
I tried without sudo, but i needed sudo for every line in which it is noted.