Jump to content

Recommended Posts

Posted
I have brought two raspberry pi's for one of my primary schools to run the two screens. I have installed libre office etc on them and enabled SSH, and I can putty to them, however I have no idea what the linux command is to open a file on the actual, Raspberry Pi instead of in the putty window. So I can putty into the Pi's and start a powerpoint show from a windows share playing on them, without the need to plug a keyboard and mouse into each one.
Posted (edited)

Try sending the run command as an SSH argument, rather then SSH'ing to the shell then running it i.e.

 

ssh username@host "your command here"

 

EDIT: sorry, just realized you're suing Putty. Go to "Connection > SSH", then look for "Remote Command" and enter the command you're using to open presentations there. Then when you login, that command will be run on the host.

Edited by LosOjos
Posted
Try sending the run command as an SSH argument, rather then SSH'ing to the shell then running it i.e.

 

ssh username@host "your command here"

 

How would I do that? Sorry no experience when it comes to linux :(

Posted (edited)

Do you know the command to run or was that part of the question?

 

If so, this should do it (put this in the "Remote Command" box in Putty):

 

libreoffice --show localfilename.odp

 

It's important to specify the full path in Linux, and it's case sensitive. Assuming the file is in the home folder, the shorthand reference to this is '~/', so the example above would become:

 

libreoffice --show ~/localfilename.odp

 

EDIT: there's a list of LibreOffice command line arguments here: https://help.libreoffice.org/Common/Starting_the_Software_With_Parameters

Edited by LosOjos

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...