Page 1 of 1
open and view files via terminal
Posted: Fri Nov 29, 2013 3:21 pm
by desmondttm123
Hi guys! i wanted to create an exe command on desktop using chmod. i want to run the raspberry pi camera command raspistill -o image.jpg command and i want a command to open the file in full screen. I'm using a tft screen so i don't know how to enable preview for the image taken. is there a command to open files via terminal? thanks!
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 3:58 pm
by bubbl
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 4:05 pm
by jamesh
desmondttm123 wrote:Hi guys! i wanted to create an exe command on desktop using chmod. i want to run the raspberry pi camera command raspistill -o image.jpg command and i want a command to open the file in full screen. I'm using a tft screen so i don't know how to enable preview for the image taken. is there a command to open files via terminal? thanks!
I use fbi on the command line to display jpegs.
sudo apt-get install fbi
Not tried with the desktop, just from the terminal (no X running)
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 4:17 pm
by desmondttm123
thanks for the replies! but how do i use FBI as command in terminal?
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 4:18 pm
by redhawk
Is this local terminal or via ssh??
Richard S.
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 4:31 pm
by desmondttm123
hi! it is local =)
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 4:31 pm
by bubbl
desmondttm123 wrote:thanks for the replies! but how do i use FBI as command in terminal?
it's all there on the internet.
http://manpages.ubuntu.com/manpages/gut ... fbi.1.html
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 4:45 pm
by jamesh
desmondttm123 wrote:thanks for the replies! but how do i use FBI as command in terminal?
fbi name.jpg
(I'm pretty sure you could have guessed that).
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 4:48 pm
by desmondttm123
hi thanks for the links!
i installed fbi, and wrote it on chmod but still did not work. if the directory is root > home > pi, do i have to include it? if so how?
my command inside the chmod is
/*
raspistill -o image.jpg
fbi -h image.jpg
*/
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 4:49 pm
by desmondttm123
fbi name.jpg
(I'm pretty sure you could have guessed that).
yes i did =)
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 6:03 pm
by bubbl
desmondttm123 wrote:hi thanks for the links!
i installed fbi, and wrote it on chmod but still did not work. if the directory is root > home > pi, do i have to include it? if so how?
my command inside the chmod is
/*
raspistill -o image.jpg
fbi -h image.jpg
*/
you need to learn bash programming for that. a little bit different coding
the simplest code should look something like this (I haven't tested it as I don't use raspicamera, but it should work):
Code: Select all
#!/bin/bash
while true
do
echo "Enter a file name"
read filename
raspistill -o $filename
sleep 10
fbi -h $filename
done
save it as let's say raspidisplay.sh
chmod 775
and run ./raspidisplay.sh
Re: open and view files via terminal
Posted: Fri Nov 29, 2013 6:08 pm
by bubbl