A beginner needs a little help getting startet

Ask questions about Arch Linux ARM. Please search before making a new topic.

A beginner needs a little help getting startet

Postby derletztename » Sun Feb 15, 2015 11:02 am

Hello
I am an engineer developing an application (still a prototype) with a Raspberry Pi, where I need to get the video stream from the Raspberry Pi Cam directly to a little screen. The System should do nothing else then streaming the video live from the Pi Cam to the screen after booting. As I am new to Linux I have no clue how to even start.
Is there someone who could help me with this somehow?
derletztename
 
Posts: 3
Joined: Sun Feb 15, 2015 10:33 am

Re: A beginner needs a little help getting startet

Postby pepedog » Sun Feb 15, 2015 2:23 pm

I think you want openmax on the pi. Create a new user and log in to it.
Once you figure out command string, create .bashrc file and paste it there.
Check it works by logging out then in as that user.

Once that works you can be pointed to where it boots straight to user.
It's started btw, not startet.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: A beginner needs a little help getting started

Postby derletztename » Tue Feb 17, 2015 8:18 pm

Thank you for the answer. :)
I managed to set up the system, updated it, got the camera running and set up an non-root account (which included a lot of reading and trial and error).

After reading: "OpenMAX is an extremely difficult API to work with - if you have any sense you will walk away right now." - I am a little bit afraid of trying to get this going. Isn't there an easier way?

If I understand everything right, I can use the pre-installed commands for the pi cam and put them in the .bashrc file where they get to action once the system starts.

And how do I get the system starting with my choosen user account? Or is this to be answered after I managed to get the other stuff working?
derletztename
 
Posts: 3
Joined: Sun Feb 15, 2015 10:33 am

Re: A beginner needs a little help getting startet

Postby SeBO » Mon Mar 02, 2015 6:32 pm

Autlogin: http://askubuntu.com/questions/8467/aut ... no-xserver ?

Check it - maybe it will help ;)
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: A beginner needs a little help getting startet

Postby pepedog » Mon Mar 02, 2015 7:43 pm

Let's just say the username created is called alarm
Put the command you want to run in /home/alarm/.profile
Log in as alarm, did it run?
Now to go straight from boot to this

mkdir /etc/systemd/system/getty@tty1.service.d
Now create this file
nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
and paste these contents in
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin alarm --noclear %I 38400 Linux
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: A beginner needs a little help getting startet

Postby derletztename » Tue Mar 03, 2015 11:25 am

Thank you :)
I'll try this
derletztename
 
Posts: 3
Joined: Sun Feb 15, 2015 10:33 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 4 guests