A collection of scripts for Virtual Didactic Network (VDN).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Clément FRÉVILLE 6a55b58ffc
Show vdn-drone help
2 years ago
bin Show vdn-drone help 2 years ago
completion Complete vdn-rsync 2 years ago
.gitignore Initial commit 2 years ago
LICENSE Initial commit 2 years ago
README.md Show vdn-drone help 2 years ago

README.md

vdn-tools

A collection of scripts for Virtual Didactic Network (VDN).

Bash completion script

This script can complete the most commonly used commands in VDN like vdn-ssh, vdn-start or vdn-scp.

It can complete network and system names. Guest filenames can also be completed like the scp command.

Locally

Source the completion/vdn-completion.bash file in your .bashrc:

. ~/path/to/completions/vdn-completion.bash

Globally

Copy the vdn-completion.bash file in /usr/local/share/bash-completion/completions/ and link all the commands:

cp completion/vdn-completion.bash /usr/local/share/bash-completion/completions/vdn
grep 'complete -F \w* [a-z-]*' -- completion/vdn-completion.bash | awk '{ print "/usr/local/share/bash-completion/completions/"$NF }' | xargs -I {} ln -s /usr/local/share/bash-completion/completions/vdn {}

vdn-drone

Execute your pipeline locally.

Run the pipeline named default:

vdn-drone exec --pipeline default

vdn-rsync

Copy files between the host and the guest system using rsync.

With a script

Use the bin/vdn-rsync script to have a nice interface with rsync.

vdn-rsync -av src root@bigboss:

Add it to your path:

PATH="$PATH:~/path/to/vdn-tools/bin/"

Without a script

Specify the vdn-ssh command with rsync.

rsync -av src -e vdn-ssh root@bigboss: