Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GridKaSchool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Thomas Keck
GridKaSchool
Commits
6d44b46e
Commit
6d44b46e
authored
7 years ago
by
Thomas Keck
Browse files
Options
Downloads
Patches
Plain Diff
Updated installation scripts
parent
d18d5c8e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.sh
+6
-44
6 additions, 44 deletions
setup.sh
uscript.sh
+55
-0
55 additions, 0 deletions
uscript.sh
with
61 additions
and
44 deletions
setup.sh
+
6
−
44
View file @
6d44b46e
...
...
@@ -2,48 +2,10 @@ GKUSER=gks
PASSWORD
=
thebestscipyintroductionatthegridkaschool
# Install required packages
apt-get
install
python3-pip python3-virtualenv
apt-get
install
libfreetype6-dev libpng12-dev pkg-config
apt-get
install
llvm libedit-dev
apt-get
install
git
apt-get update
apt-get
install
-y
python3-pip python3-virtualenv
apt-get
install
-y
libfreetype6-dev libpng12-dev pkg-config
apt-get
install
-y
llvm libedit-dev
apt-get
install
-y
git
# Change to user account and to his home directory
su
$GKUSER
cd
# Setup python environment
python3
-m
virtualenv
-p
python3 venv
source
venv/bin/activate
pip3
install
-U
pip3 setuptools
pip3
install
numpy
pip3
install
widgetsnbextension
pip3
install
jupyter ipython matplotlib pandas scipy scikit-learn sympy
pip3
install
Cython tensorflow
pip3
install
llvmlite
==
0.5.0
pip3
install
numba
pip3
install
xgboost
pip3
install
WordCloud numexpr theano
pip3
install
--upgrade
jupyter
# Clone git repository
git clone https://gitlab.ekp.kit.edu/tkeck/GridKaSchool.git
# Generate SSL Certificate
openssl req
-x509
-nodes
-days
365
-newkey
rsa:1024
-keyout
jupyter_key.key
-out
jupyter_cert.pem
mkdir
ssl
mv
jupyter_key.key ssl/
mv
jupyter_cert.pem ssl/
# Configure Jupyter notebook
jupyter notebook
--generate-config
echo
"c.NotebookApp.certfile = '/home/
$GKUSER
/ssl/jupyter_cert.pem'"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.ip = '*'"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.keyfile = '/home/
$GKUSER
/ssl/jupyter_key.key'"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.open_browser = False"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.password = u'"
$(
python3
-c
"from notebook.auth import passwd; print(passwd('
$PASSWORD
'))"
)
"'"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.port = 8080"
>>
.jupyter/jupyter_notebook_config.py
# Automatically source environment and workaround for
# https://github.com/jupyter/notebook/issues/1318
echo
"source ~/venv/bin/activate"
>>
.bashrc
echo
"unset XDG_RUNTIME_DIR"
>>
.bashrc
time
su -
"gks"
-c
"bash /tmp/uscript.sh"
This diff is collapsed.
Click to expand it.
uscript.sh
0 → 100644
+
55
−
0
View file @
6d44b46e
#!/bin/bash
cd
# Setup python environment
python3
-m
virtualenv
-p
python3 venv
source
venv/bin/activate
pip3
install
setuptools
==
36.2.7
pip3
install
pip
==
9.0.1
pip3
install
numpy
==
1.13.1
pip3
install
jupyter
==
1.0.0
pip3
install
matplotlib
==
2.0.2
pip3
install
scipy
==
0.19.1
pip3
install
pandas
==
0.20.2
pip3
install
sympy
==
1.1.1
pip3
install
scikit-learn
==
0.19.0
pip3
install
tensorflow
==
1.3.0
pip3
install
xgboost
==
0.6a2
pip3
install
theano
==
0.10.0b1
pip3
install
Cython
==
0.26
pip3
install
llvmlite
==
0.5.0
pip3
install
numba
==
0.34.0
pip3
install
numexpr
==
2.6.2
pip3
install
WordCloud
==
1.3.1
# Clone git repository
git clone https://gitlab.ekp.kit.edu/tkeck/GridKaSchool.git
# Generate SSL Certificate
openssl req
-x509
-nodes
-days
365
-newkey
rsa:1024
-keyout
jupyter_key.key
-out
jupyter_cert.pem
<<
CERTEOF
DE
BW
KA
KIT
SCC
$(
hostname
)
.scc.kit.edu
.
CERTEOF
mkdir
ssl
mv
jupyter_key.key ssl/
mv
jupyter_cert.pem ssl/
# Configure Jupyter notebook
jupyter notebook
--generate-config
echo
"c.NotebookApp.certfile = '/home/gks/ssl/jupyter_cert.pem'"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.ip = '*'"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.keyfile = '/home/gks/ssl/jupyter_key.key'"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.open_browser = False"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.password = u'"
$(
python3
-c
"from notebook.auth import passwd; print(passwd('
$PASSWORD
'))"
)
"'"
>>
.jupyter/jupyter_notebook_config.py
echo
"c.NotebookApp.port = 8080"
>>
.jupyter/jupyter_notebook_config.py
# Automatically source environment and workaround for
# https://github.com/jupyter/notebook/issues/1318
echo
"source ~/venv/bin/activate"
>>
.bashrc
echo
"unset XDG_RUNTIME_DIR"
>>
.bashrc
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment