Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GUI install instructions #14

Merged
merged 3 commits into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions GUI/RASPBERRY_PI/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,28 +88,28 @@ And (as before) go to the boot-options now enabling `Desktop Autologin` to boot

## Setup UC2-env for our GUI

For easy Python-environment handling, install the [Berryconda](https://github.com/jjhelmus/berryconda) derivate of [Anaconda](https://www.anaconda.com/). We prepared some convenient-scripts that you can download from our [SCRIPTS-section](../../SCRIPTS/SETUP_UC2env) to install Berryconda, setup a UC2env for development and activate it as standard.
For easy Python-environment handling, install the [Berryconda](https://github.com/jjhelmus/berryconda) derivate of [Anaconda](https://www.anaconda.com/). We prepared some convenient-scripts that you can download from our [SCRIPTS-section](SCRIPTS/SETUP_UC2env) to install Berryconda, setup a UC2env for development and activate it as standard.

### Disclaimer
By using this install script you **agree** to the following [license agreement](https://github.com/jjhelmus/berryconda/blob/master/LICENSE.txt) available in the following [repository](https://github.com/jjhelmus/berryconda).


### Installing
* **Download all files** of the [SCRIPTS-section](../../SCRIPTS/SETUP_UC2env)
* **Download all files** of the [SCRIPTS-section](SCRIPTS/SETUP_UC2env)
For downloading the files, first create two new directories:
```
$ mkdir -p ~/UC2/SCRIPTS
$ cd ~/UC2/SCRIPTS
```
and then download the Script files there as follows:
```
$ wget https://raw.githubusercontent.com/bionanoimaging/UC2-Software-GIT/master/SCRIPTS/SETUP_UC2env/00-UC2_Prerequisites.sh
$ wget https://raw.githubusercontent.com/bionanoimaging/UC2-Software-GIT/master/SCRIPTS/SETUP_UC2env/01-UC2_Berryconda.sh
$ wget https://raw.githubusercontent.com/bionanoimaging/UC2-Software-GIT/master/SCRIPTS/SETUP_UC2env/02-UC2_CreateEnvironment.sh
$ wget https://raw.githubusercontent.com/bionanoimaging/UC2-Software-GIT/master/GUI/RASPBERRY_PI/SCRIPTS/SETUP_UC2env/00-UC2_Prerequisites.sh
$ wget https://raw.githubusercontent.com/bionanoimaging/UC2-Software-GIT/master/GUI/RASPBERRY_PI/SCRIPTS/SETUP_UC2env/01-UC2_Berryconda.sh
$ wget https://raw.githubusercontent.com/bionanoimaging/UC2-Software-GIT/master/GUI/RASPBERRY_PI/SCRIPTS/SETUP_UC2env/02-UC2_CreateEnvironment.sh
```
* After downloading all 3 files, make the files runable via:
```
$ chmod +x 00-UC2_Prerequsites.sh 01-UC2_Berryconda.sh 02-UC2_CreateEnvironment.sh
$ chmod +x 00-UC2_Prerequisites.sh 01-UC2_Berryconda.sh 02-UC2_CreateEnvironment.sh

```
* **Run** 01-UC2_Berryconda.sh and after that 02-UC2_CreateEnvironment.sh by typing:
Expand Down Expand Up @@ -159,8 +159,8 @@ For downloading the files, first create two new directories:
gstreamer1.0-plugins-{bad,base,good,ugly} \
gstreamer1.0-{omx,alsa} python-dev libmtdev-dev \
xclip xsel libjpeg-dev
python -m pip install --upgrade --user pip setuptools
python -m pip install --upgrade --user Cython==0.29.10 pillow
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade Cython==0.29.10 pillow
```
<p align="center">
<img src="./IMAGES/script06.png" width="400" alt="">
Expand All @@ -184,7 +184,7 @@ For downloading the files, first create two new directories:
$ cd ~/UC2
$ git clone https://github.com/kivy/kivy
$ cd kivy
$ python -m pip install --user .
$ python -m pip install .
```
The installation of kivy again will take a while (~15min, MEM<=500mb), so lean back and enjoy a coffee.
* **Setup the device** Once Kivy is finished, configure the touch-screen of RasPi (if installed) as valid input-method. Hence, in the terminal run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

echo [UC2] Loading variables...
USER_HOME_DIR="/home/$USER"
WORKING_DIR="${USER_HOME_DIR}/UC2/SCRIPTS"
WORKING_DIR="$(pwd)"
ARCHITECTURE=$(uname -m)
UC2_ENVIRONMENT_NAME="UC2env"