DEV Community

passocacornio
passocacornio

Posted on

Camera tethering on linux terminal

I was trying to use gui solutions on linux to enable tethering shoot in my camera and none worked so I wrote a script using gphoto2 to read implement this, so I'm sharing it because maybe someone is facing the same issues I faced.
The project is setup assuming you're shooting with Raw+JPG option.

Setup

To use it first you need to clone the repository

git clone https://gitlab.com/silvamateus/theter-config.git
Enter fullscreen mode Exit fullscreen mode

It still don't set up automatically (it's planned for future releases) so you'll have to copy the folder tether-conf to $HOME/.conf (or the path you set up in the variable XDG_CONFIG_HOME) and make sure the shellscript tether is in your path: I recommend putting it inside $HOME/.local/bin.
Just make sure the path you put it in is in your PATH variable.
You may change the default image inside the tether-conf folder (placeholder.JPG) to one of your liking. Just make sure to rename it to the proper name placeholder.JPG

Running

To run the script you just need to run:
tether name-of-the-shoot .
Or if you want to save the project in a path other than $HOME/Pictures/name-of-the-shoot you can:

  • run the command as CUSTOM_PATH=path/to/the/folder tether name-of-the-shoot;

  • export CUSTOM_PATH in your shell file (.zshrc, .bashrc, etc) and then run the command as specified prior.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up