I use fbi on the command line to display jpegs.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!
it's all there on the internet. http://manpages.ubuntu.com/manpages/gut ... fbi.1.htmldesmondttm123 wrote:thanks for the replies! but how do i use FBI as command in terminal?
fbi name.jpgdesmondttm123 wrote:thanks for the replies! but how do i use FBI as command in terminal?
yes i did =)fbi name.jpg
(I'm pretty sure you could have guessed that).
you need to learn bash programming for that. a little bit different codingdesmondttm123 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
*/
Code: Select all
#!/bin/bash
while true
do
echo "Enter a file name"
read filename
raspistill -o $filename
sleep 10
fbi -h $filename
done