Home

>

Basic guides

Upload files to Leo Rover

Prerequisites

On Windows

Download and install WinSCP

Connect to Leo Rover's WiFi.

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

IP: 10.0.0.1 | Login: pi | Password: raspberry

and click login.

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

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

On Linux or Mac

You can use scp tool for this. Just type:

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

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

To show more options type man scp

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

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

File Permissions

By default, when logging as pi user, you have write permission only on files inside /home/pi 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.

Recommended: take ownership of the directory

First

Login to the Rover via ssh

Create a directory if it doesn't exist

Now, assign the ownership of that directory

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

Not recommended: upload files by logging into root account

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 the 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.

Contents

Need help? Contact us - contact@fictionlab.pl