add startup/stop/mounting scriptlets
parent
1f98512b86
commit
baae0415e7
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
jupyter-lab \
|
||||
--config=/home/jebba/.jupyter/jupyter_notebook_config.py \
|
||||
--notebook-dir=/home/jebba/devel/jupyter/notebooks \
|
||||
--app-dir=/home/jebba/.local/share/jupyter/lab \
|
||||
1>>/home/jebba/log/jupyter.log 2>>/home/jebba/log/jupyter.err &
|
||||
|
||||
# --debug \
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
# do better
|
||||
killall jupyter-lab && echo "killed"
|
||||
sleep 2
|
||||
killall jupyter-lab && echo "again"
|
||||
ps ax|grep /home/jebba/.local/bin/jupyter-lab | grep -v -e grep -e "/home/jebba/bin/spacecruft-jupyter-stop"
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo umount /srv/satnogs
|
||||
|
||||
# Kernel
|
||||
sudo mount -t ceph 10.99.99.7:6789:/satnogs -o rw,name=ml,secret="`cat /home/jebba/.cephkey`" /srv/satnogs
|
||||
# Nope
|
||||
#sudo mount -t ceph 10.99.99.7:6789:/satnogs -o rw,name=ml,secretfile=/etc/ceph/ceph.client.ml.keyring /srv/satnogs
|
||||
|
||||
# FUSE
|
||||
#sudo ceph-fuse -n client.ml -m 10.99.99.7:6789 -r /satnogs /srv/satnogs/ --debug-auth=10 --debug-ms=10 -c /etc/ceph/ceph.conf -o rw,allow_other
|
||||
|
||||
df -h /srv/satnogs
|
||||
|
||||
exit 0
|
||||
|
||||
usage: ceph-fuse [-n client.username] [-m mon-ip-addr:mon-port] <mount point> [OPTIONS]
|
||||
--client_mountpoint/-r <sub_directory>
|
||||
use sub_directory as the mounted root, rather than the full Ceph tree.
|
||||
|
||||
usage: ceph-fuse mountpoint [options]
|
||||
|
||||
general options:
|
||||
-o opt,[opt...] mount options
|
||||
-h --help print help
|
||||
-V --version print version
|
||||
|
||||
FUSE options:
|
||||
-d -o debug enable debug output (implies -f)
|
||||
-f foreground operation
|
||||
-s disable multi-threaded operation
|
||||
|
||||
--conf/-c FILE read configuration from the given configuration file
|
||||
--id ID set ID portion of my name
|
||||
--name/-n TYPE.ID set name
|
||||
--cluster NAME set cluster name (default: ceph)
|
||||
--setuser USER set uid to user or uid (and gid to user's gid)
|
||||
--setgroup GROUP set gid to group or gid
|
||||
--version show version and quit
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# spacecruft-voila-start
|
||||
|
||||
set -x
|
||||
|
||||
cd /home/jebba/devel/voila/jupyter
|
||||
|
||||
voila \
|
||||
--debug \
|
||||
--no-browser \
|
||||
--port=8866 \
|
||||
--theme=light \
|
||||
--autoreload=True \
|
||||
--template=default \
|
||||
--Voila.ip=localhost \
|
||||
--VoilaConfiguration.enable_nbextensions=False \
|
||||
wut-web.ipynb
|
||||
exit
|
||||
--strip_sources=False \
|
||||
|
||||
--base_url=<Unicode> (Voila.base_url)
|
||||
Default: '/'
|
||||
Path for voila API calls. If server_url is unset, this will be
|
||||
used for both the base route of the server and the client. If
|
||||
server_url is set, the server will server the routes prefixed by
|
||||
server_url, while the client will prefix by base_url (this is
|
||||
useful in reverse proxies).
|
||||
--server_url=<Unicode> (Voila.server_url)
|
||||
Default: None
|
||||
Path to prefix to voila API handlers. Leave unset to default to base_url
|
||||
--Voila.config_file_paths=<List>
|
||||
Default: []
|
||||
Paths to search for voila.(py|json)
|
||||
--Voila.connection_dir_root=<Unicode>
|
||||
Default: ''
|
||||
Location of temporry connection files. Defaults to system
|
||||
`tempfile.gettempdir()` value.
|
||||
--Voila.custom_display_url=<Unicode>
|
||||
Default: ''
|
||||
Override URL shown to users. Replace actual URL, including protocol,
|
||||
address, port and base URL, with the given value when displaying URL to the
|
||||
users. Do not change the actual connection URL. If authentication token is
|
||||
enabled, the token is added to the custom URL automatically. This option is
|
||||
intended to be used when the URL to display to the user cannot be determined
|
||||
reliably by the Jupyter notebook server (proxified or containerized setups
|
||||
for example).
|
||||
--Voila.log_level=<Enum>
|
||||
Default: 30
|
||||
Choices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL')
|
||||
Set the log level by value or name.
|
||||
--Voila.root_dir=<Unicode>
|
||||
Default: ''
|
||||
The directory to use for notebooks.
|
||||
|
||||
--Voila.server_url=<Unicode>
|
||||
Default: None
|
||||
Path to prefix to voila API handlers. Leave unset to default to base_url
|
||||
--Voila.static_paths=<List>
|
||||
Default: ['/home/jebba/.local/lib/python3.7/site-packages/voila/static']
|
||||
paths to static assets
|
||||
--Voila.static_root=<Unicode>
|
||||
Default: '/home/jebba/.local/lib/python3.7/site-packages/voila/static'
|
||||
Directory holding static assets (HTML, JS and CSS files).
|
||||
--Voila.template_paths=<List>
|
||||
Default: []
|
||||
path to nbconvert templates
|
||||
--VoilaConfiguration.file_whitelist=['.*\\.(png|jpg|gif|svg)']
|
||||
--VoilaConfiguration.resources=<Dict>
|
||||
Default: {}
|
||||
extra resources used by templates; example use with --template=reveal
|
||||
--VoilaConfiguration.resources="{'reveal': {'transition': 'fade', 'scroll':
|
||||
True}}"
|
||||
|
Loading…
Reference in New Issue