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
d18d5c8e
Commit
d18d5c8e
authored
7 years ago
by
Thomas Keck
Browse files
Options
Downloads
Patches
Plain Diff
Finished setup script
parent
aee38507
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.sh
+49
-0
49 additions, 0 deletions
setup.sh
with
49 additions
and
0 deletions
setup
→
setup
.sh
+
49
−
0
View file @
d18d5c8e
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
su gks
# 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
...
...
@@ -15,4 +23,27 @@ 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
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