Upload files to your Rover

On Windows

Download and install WinSCP‚Äč

Connect to the Rover WiFi.

Just after you open the software it will ask you for the Rover login details, as always:

IP: 10.0.0.1 | Login: husarion | Password: husarion

and click login.

Now in the right window you'll see all the files located in your Rover.

You can upload files by dragging them from your local computer and dropping them inside Leo Rover's filesystem

On Linux

You can use scp tool for this. Just type:

scp [local_path] husarion@10.0.0.1:[remote_path]

If you want to copy a whole directory you can add -r option

scp -r [local_path] pi@10.0.0.1:[remote_path]

if [remote_path] is a relative path it will be resolved in /home/husarion namespace (e.g. husarion@10.0.0.1:leo will be resolved to /home/husarion/leo).

To show more options type man scp

Alternatively you can use sshfs to mount remote file system into your local directory

mkdir -p [local_path]
sshfs husarion@10.0.0.1:[remote_path] [local_path]

Now you can just put files inside [local_path] and it will be automatically synchronized with a remote directory.

When you're done just unmount the directory by typing

sudo umount [local_path]

File Permissions

By default, when logging as husarion user, you have write permission only on files inside /home/husarion directory. This should be sufficient in most cases but if you really need to upload files outside of the home directory you have a couple of options.

First, login to the Rover's console via ssh

Create a directory if it doesn't exist

mkdir -p [upload_directory]

Now, assign the ownership of that directory

sudo chown -R husarion:husarion [upload_directory]

This will change ownership of [upload_directory] and all files inside it to husarion user

Root logging is disabled by default. If you want to turn this on you can follow these instructions.

You can then get access to all files by logging to root instead of pi

Modifying root filesystem can be a destructive operation so if you don't fully understand what you're doing, make sure to backup your files first