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.
EDIT: 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. /EDIT
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
Roll face across keyboard
!!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:
Install XMBC Remote app from Cydia (ok, App Store)
Roll face across iPhone
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.....
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:
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.
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.
# 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!
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.
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?