Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.
Tiger Sachse edited this page Aug 5, 2017 · 8 revisions

General Commands

You can interact with Viento from the command line, using the following syntax:

$ viento [command]

Currently, Viento has 10 commands. They are as follows:

  • setup - Runs the Viento Setup Utility to configure Viento.
  • start - Start an instance of the Viento daemon.
  • stop - Stops the daemon.
  • enable - Enables the daemon to run at startup.
  • disable - Disables the daemon from running at startup.
  • status - Prints the status of the daemon to the screen.
  • version - Prints Viento version information.
  • force - Starts an interactive prompt to force a specific draft to transfer files.
  • stats - Shows some fun statistics!
  • help - Lists these commands.

Setup Commands

There are 8 setup commands and they are as follows:

  • h (help) - Displays a list of commands.
  • n (new) - Creates a new draft.
  • r (remove) - Removes a specific draft.
  • e (edit) - Edits a specific draft.
  • l (list) - Lists all drafts.
  • w (write) - Writes changes to file and signals the daemon to reload its configuration.
  • c (clear) - Clears all changes since last write.
  • q (quit) - Quits the setup utility.

Tips and Tricks

Check Logs
You can check the log files located in the .viento folder, which is in your home directory by default.

$ cd ~/.viento/logs
$ ls
$ vim log1.log

Change Default File Locations
I'm always annoyed when programs create new files/directories in my home directory and I have no way to change where these files kept. For this reason, I've not scattered file paths across the source code. Instead, all file paths are saved as variables in the viento_utils.py file, and these variables can be edited to any path desired.

Navigate to the directory that viento_utils.py is installed in (by default this is in python 3.6's site-packages directory, which is usually located at /usr/lib/python3.6/site-packages). The file path variables start at line 221, however the directories are kept in a list called 'directories' that starts on line 215. Each file path variable starts with a defined directory from the directories list (e.g. directories[2]) and then adds a string including the file's name and extension. As far as I can tell, the f_service variable requires that exact directory path and file extension (this is because it is read by systemd, not Viento), but besides that I'm pretty sure the extensions and the names can all be moved and changed.