Light Linux for Raspberry Pi and NGINX server

Hello guys,

So I want to set up a NGINX server on my Pi for me to stream RTMP from my (covers face) I-phone to my Pi and then onwards to my pc, I got the basics of this down but do you think there is any particular distro I could use to do this bearing in mind my Pi is the first model 500mhz :)

You guys think the distro that comes with the pi is up to the task?

By the way, Please bear in mind that I am a Linux noob I like me some Ubuntu and blackarch for getting stressed trying to work out command line. While I understand the basics command line I am not a switchmaster.

so can I get K.I.S.S advice and many thanks in advance.

Ultirian Heavy Industry

you could try Kodi Linux

Wait- distro you use has a graphical desktop interface, or did you put Raspbian Wheezy on there yourself? I just re-read "distro that comes with the Pi"... if you've a graphical desktop on there it's already using too many resources, decoding compressed media is gonna sucker punch it in the nuts, so unless you're sentimentally attached to that install I'd just make sure you're not going to lose any personal stuff and re-image it with OSMC.

Give it a whirl, what's to lose? I run OSMC on an RPi2 modB & it's easy as P- ok I didn't do it, nearly, but not; seriously installing OSMC image to an SD card for Pi is a case of

  1. Download IMG
  2. Roll face across keyboard
  3. Enjoy OSMC

!!ADDED BENEFIT!! You can go right ahead and enable the usual Airplay, UPnP, as well as the "allow this to control those and those to control these and let's all serve eachother" which will make using the XMBC or Kodi app on your iPhone very, very e z, like so:

  1. Install XMBC Remote app from Cydia (ok, App Store)
  2. Roll face across iPhone
  3. Hey your pop corn's ready dude press play

Now you can airplay any media your iPhone can access straight to your TV, and also browse any media libraries the Pi is connected to & mounted, and control the volume, and use soft keyboard and mousing functions, and.....

1 Like

You could try to apt-get Kodi but you'll likely have to do a bit of config yourself, so I'd try the OSMC IMG 1st & if it runs like pushing a wet noodle uphill then put the default Raspbian back on and go:

sudo apt-get update
sudo apt-get install kodi

Then go:

Then enable all the CoolShiz™ (Airplay, AssPlay, UPnPP-play, etc, et al)

Then connect with iPhone app

Then go

So the difficulty we've got here is that you are looking for a light-weight distro with a desktop environment. This is normally an oxy-moron when you're talking about building something on a 500MHz ARM device, because to be honest, with 256M and 500MHz, your best option may be to run arch-arm (the one from noobs should work). The situation boils down to if you want something to run efficiently, your best bet is to eliminate the x server and just use the command line. I'm willing to work with you to get this up and running if you'd like.

1 Like

Some good advice guys,

I do not want to use the phone as a movie streaming device though it is literally my camera from my phone using this app:

then this can stream to a RTMP server that I can set up with nginx and then onwards to my pc ^_^

Good advice though @SynAck your funny :P

Also @SgtAwesomesauce If I get stuck then its cool to ask you for advice with arch-arm? I would like to try and figure it out myself first though :) see if I can RTFM and all that!

Many thanks.

Ultirian Heavy Industry :)

Definitely. Starting advice is to read through the Pacman and Systemd wiki pages to get familiar with the package management system and the service manager that arch uses.

From there,

# pacman -Syu ## this will update your system.  same as apt-get update && apt-get upgrade
# pacman -S openssh ## this will install the openssh package (both client and server)
# systemctl enable sshd ## this will enable the ssh server to start on boot.
# systemctl start sshd  ## this will start the ssh server

The thing about arch that people tend to like is that it's lightweight, which means it typically runs "faster" than Debian or Ubuntu. This is only because there's less stuff running on the computer, taking up CPU time.

If you get stuck, feel free to shoot me a message!


Oh, um ok... roll your own personal live-streaming Airplay solution with RTMP & a RPi web server. Um...

Well, again, I would just image the SD with Raspbian:

Then I would read these while I drank some coffee listening to some tunes & waited for the SD card write to finish:

Essentially, it's going to be a case of jumping into the RPi terminal & go:

sudo apt-get install nginx

Then go:

sudo /etc/init.d/nginx start

Then in a browser go:
from Pi itself http://localhost/
other LAN host http://[IP-of-RPi-goes-here]/

You should see this:

Now read these:

Now do this:

1 Like

! XD

I will try this on another SD card mate, Nice one :D

Its a good way to learn some linux, I am currently staring at a black screen with a bunch of progress bars while Arch linux is installing, Its like sheep couting xD


He's skipping the GUI route and going for command line, sir you get +1 like for bravery & skill development.

Sweet! I hope you like arch.

Let us know how it turns out!

Research > Evaluate > Build > Document > Test / Eval > Mod / Test / Eval / Doc > Destroy > Research > Eval > Build > Explodes into flames and slides down wall > Coffee > Research

If you have spare SD, especially older ones you don't trust with your precious data, definitely use the above methodology as often as you can. It doesn't have to hurt, it doesn't have to be super complicated. You will learn more from overcoming problems and from re-installing OSs & software, & re-re-installing them, & re-re-re...

If you can get a second Pi on the cheap or free I'd recommend doing that so you can experiment & learn without service interruption to a working setup.

Until then, give yourself a little extra lead in time before you consider your Pi setup and production ready, don't be afraid to cut off its' head & kill it with fire then build again.

If you are wanting something barebones and pretty light, AlpineLinux is pretty great for setups like this.

Guys am I being a moron here?

But after much messing about cleanining up the install and remounting my SD card with ,rw. I am now trying to log into my machine through SSH and something tells me deep in my mind that you cannot log into any linux box as root through ssh?

throws pi at wall

installs nginx on Ubuntu laptop instead

installs and runs first time

Ubuntu saves the day again :.<


dusts pi off after realising I have to take laptop everywhere with me

I just realised that I have not been shutting down arch linux down properly

This will help you with SSH root login

I've done this a few times... always ends in new artwork.

Here's the nginx documentation for arch. Hopefully that will help.
What part are you stuck on, and are you following any guides?

Sorry about the lack of posting, I'm in the middle of writing a paper.

1 Like

Mate you are a star,

I will not bug you to much about it I think I need to sit down and go back to billy B's in this regards,

Sorry I been in a dark corner crying about my broken pi :)

I am only stuck on stupid things like editing configs I just automatically assume there will be some text editor somewhere for me.

Raspberry wheazy carried me a bit to easy I think ;)

If I get really stuck I will drop you a line, I think I just need to go back to the billy B's as I said ;)