HackyHour / Wuerzburg

Monthly HackyHour meetings in Würzburg
https://hackyhour.github.io/Wuerzburg/
Creative Commons Zero v1.0 Universal
8 stars 9 forks source link

HackyHour[4] on 2016-02-24 #14

Closed iimog closed 8 years ago

iimog commented 8 years ago

As discussed in the previous HackyHour we will have a hands on session with a Raspberry Pi and multiple USB drives. We will play around with differen RAID configurations, set-up a OwnCloud server and much more. If someone wants to add something or has other ideas or problems just join the discussion.

GalacticAC commented 8 years ago

I would suggest that we set up the micro SD cards with the proper OS prior to the meeting. It took me around an hour to download and install a fresh copy when I tried this weekend. If you send me a link to the proper OS for a good Cloud Server I can set it up myself on one of the new class 10 micro SD cards I bought for just that purpose!

iimog commented 8 years ago

Thanks for making preparations. I found many guides on setting up owncloud on the Pi (eg this one http://pimylifeup.com/raspberry-pi-owncloud/) And they all use the latest Raspbian distribution. So an SD card with Raspbian pre-installed would be great.

EzioAuditoredaFirenze commented 8 years ago

I have an old 320 GB HDD lying around from my old laptop. I'll put it in a USB 3.0 enclosure and bring it. If it works with the Raspberry Pi, we could use it to test out the OwnCloud server.

I would also bring a HDMI cable, a 4 port USB 2.0 hub and a powered 4 port USB 3.0 hub with me. :smiley:

GalacticAC commented 8 years ago

I can bring multiple 2-4gb sticks I got over the years. We can test the RAID stuff on them I guess!

Any one else has a rasberry?

nterhoeven commented 8 years ago

Yes, I have a raspberryPi 2

EzioAuditoredaFirenze commented 8 years ago

raspberry pi 2

I've got a Raspberry Pi 2 as well, and it's running Raspbian.

GalacticAC commented 8 years ago

I also figured out, that you can power it with a regular power bank for several days (worth less then 7 euros) if need be....this way sky net is self-contained! :-D

20160218_134030

EzioAuditoredaFirenze commented 8 years ago

One thing that I'd like to learn is setting up PGP encryption support for emails :closed_lock_with_key: . I've managed to set up PGP Public/Private Keys, but I am having a bit of trouble figuring out how to send encrypted mails and decrypt them.

nterhoeven commented 8 years ago

Good idea :-) We can do that. I don't know, if we will have enough time this week. Otherwise I would suggest to put it on the list for next month :-)

I opened a new issue ( #15 ) for this

EzioAuditoredaFirenze commented 8 years ago

:+1:

EzioAuditoredaFirenze commented 8 years ago

@sodalitas @diyaazak @pattypatprat @aforero11 @CodingCthulhu @manjusasi14 @WhimiscalHatter @Goodfella-no4 @iimog @malvikasharan @nterhoeven @greatfireball @GalacticAC

We would have our next HackyHour tomorrow at the CCTB. We will probably have a hands on session with the Raspberry Pi, learn some Python and Unix, play around with different RAID configurations, and setup a OwnCloud server. Hope you guys can attend. :smile:

GalacticAC commented 8 years ago

Perfect. Just a question, when will it start?!

greatfireball commented 8 years ago

Let me cite the website at http://hackyhour.github.io/Wuerzburg/

Every last Wednesday of the month at 6 pm at the CCTB Würzburg.

See you there!

Frank

moataz-youssef commented 8 years ago

Super. I will be there. I am bringing my own Pi as well 8-)

On 24/02/2016 09:50, Frank Förster wrote:

Let me cite the website at http://hackyhour.github.io/Wuerzburg/

Every last Wednesday of the month at 6 pm at the CCTB Würzburg.

See you there!

Frank

— Reply to this email directly or view it on GitHub https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-188143410.

sodalitas commented 8 years ago

Unfortunately, I can't come today, but I wish you all a fruitful meeting!

On Wed, Feb 24, 2016 at 9:58 AM, Goodfella-no4 notifications@github.com wrote:

Super. I will be there. I am bringing my own Pi as well 8-)

On 24/02/2016 09:50, Frank Förster wrote:

Let me cite the website at http://hackyhour.github.io/Wuerzburg/

Every last Wednesday of the month at 6 pm at the CCTB Würzburg.

See you there!

Frank

— Reply to this email directly or view it on GitHub <https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-188143410 .

— Reply to this email directly or view it on GitHub https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-188146185.

pattypatprat commented 8 years ago

Cannot make it to the meeting today :( been having a series of exhausting experiments :( have a good meeting :)

On Wed, Feb 24, 2016 at 12:50 PM, Chee Keong Kwok notifications@github.com wrote:

Unfortunately, I can't come today, but I wish you all a fruitful meeting!

On Wed, Feb 24, 2016 at 9:58 AM, Goodfella-no4 notifications@github.com wrote:

Super. I will be there. I am bringing my own Pi as well 8-)

On 24/02/2016 09:50, Frank Förster wrote:

Let me cite the website at http://hackyhour.github.io/Wuerzburg/

Every last Wednesday of the month at 6 pm at the CCTB Würzburg.

See you there!

Frank

— Reply to this email directly or view it on GitHub < https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-188143410 .

— Reply to this email directly or view it on GitHub <https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-188146185 .

— Reply to this email directly or view it on GitHub https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-188216507.

moataz-youssef commented 8 years ago

Hey guys, I am bringing an ethernet cable, a 4 port USB 2.0 hub (non powered), 2 USB sticks, 2 microSD cards with Raspbian pre-installed and a RPi 2. I also have a charger with a micro USB cable and a power bank that is almost full.

Anyone has a USB webcam? I want to learn how to make a livestream video through the RPi.

malvikasharan commented 8 years ago

can someone tell me the best way to get to CCTB (not coming by car)? Which bus stop is the closest?

On Wed, Feb 24, 2016 at 4:21 PM, Goodfella-no4 notifications@github.com wrote:

Hey guys, I am bringing an ethernet cable, a 4 port USB 2.0 hub (non powered), 2 USB sticks, 2 microSD cards with Raspbian pre-installed and a RPi 2. I also have a charger with a micro USB cable and a power bank that is almost full.

Anyone has a USB webcam? I want to learn how to make a livestream video through the RPi.

— Reply to this email directly or view it on GitHub https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-188303696.

[image: --] Malvika Sharan [image: http://]about.me/malvikasharan http://about.me/malvikasharan?promo=email_sig

moataz-youssef commented 8 years ago

Am Hubland if you are taking Bus 14 or 10. Philosophishes Institut if you are taking 114 or 214.

nterhoeven commented 8 years ago

if you're taking the line 10, the closest is "emil-fischer-strasse"

moataz-youssef commented 8 years ago

Hello everyone! How did it go with the USB camera in the end? I am sorry I had to leave early.

greatfireball commented 8 years ago

Finally we had images from the camera, but the colors were strange... Might be an issue with the camera drivers. I missed your explanation why you want to use a camera, but if you actually need a camera, I would suggest to buy the Raspberry camera. This is supported by soft- and hardware and should work out of scratch with Raspberian.

moataz-youssef commented 8 years ago

Thanks for the update. I wanted to monitor the print process of the 3D printer in my lab without being physically there in the room. The raspberry pi camera seems like a nice suggestion as I actually checked it and it's very light, so I can glue it to the housing of the machine.

I do have a couple of other Logitech cameras so I will check with these just for the fun of it before I get anything new.

The issue for me will be to encrypt and password protect the stream. Any ideas? On Feb 26, 2016 1:48 PM, "Frank Förster" notifications@github.com wrote:

Finally we had images from the camera, but the colors were strange... Might be an issue with the camera drivers. I missed your explanation why you want to use a camera, but if you actually need a camera, I would suggest to buy the Raspberry camera. This is supported by soft- and hardware and should work out of scratch with Raspberian.

— Reply to this email directly or view it on GitHub https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-189261610.

greatfireball commented 8 years ago

I am not sure about the performance of a raspberry + video processing + encryption... Think we have to test the performance... It might be an easy solution to enable local host streaming only, connect to the RasPi via SSH (encryption+user credentials) and use that tunnel to watch the camera stream... But as I mentioned, I have no idea about possible performance issues. The SSH setup would also avoid the setup of a webserver on the RasPi.

moataz-youssef commented 8 years ago

That's a fantastic idea. Thanks 😆 On Feb 26, 2016 2:07 PM, "Frank Förster" notifications@github.com wrote:

I am not sure about the performance of a raspberry + video processing + encryption... Think we have to test the performance... It might be an easy solution to enable local host streaming only, connect to the RasPi via SSH (encryption+user credentials) and use that tunnel to watch the camera stream... But as I mentioned, I have no idea about possible performance issues. The SSH setup would also avoid the setup of a webserver on the RasPi.

— Reply to this email directly or view it on GitHub https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-189265983.

GalacticAC commented 8 years ago

A little off topic: No-one uses the gitter chat we set up?

moataz-youssef commented 8 years ago

This comes to my email ☺ On Feb 26, 2016 2:21 PM, "GalacticAC" notifications@github.com wrote:

A little off topic: No-one uses the gitter chat we set up?

— Reply to this email directly or view it on GitHub https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-189270235.

GalacticAC commented 8 years ago

Both infact do, if the settings are enabled! :-D Anyway...is there a way to link them without reposting stuff?!

iimog commented 8 years ago

In fact, you can see the activity in the right sidebar of the gitter chat. But it only states "GalacticAC commented #14" and not the comment itself.

GalacticAC commented 8 years ago

I am not sure what you mean!

iimog commented 8 years ago

See "Activity" on the right side: gitter_screenshot

moataz-youssef commented 8 years ago

Just a little update. I tried the camera again using a Logitech HD Webcam (C615) and a RPi 1 with a Class 4 microSD card. It worked, well kind of... I was able to access the feed remotely from another PC and to make the daemon start automatically. But somehow, the camera starts for like 10 seconds and that's it. I will investigate this later. It occurs to me that this is maybe some sort of motion tracking or something, that's why it doesn't work, but in any case, the camera is switched off when it's not streaming, so I have no idea how it will be monitoring motion. Maybe it was also a hardware problem or limitation (slow Pi, slow card). I will try again with a RPi 2 and faster card and see how it goes.

@iimog How can I tunnel the feed via SSH when I enable it only via localhost? I am using Putty as the SSH client on Windows.

iimog commented 8 years ago

@Goodfella-no4 I'm happy to hear that you made some progress. As of how to tunnel a feed via ssh you should have a look at the LocalForward option of ssh. For openssh on linux you can follow my instructions (for doing the same on Putty and Windows have a look at this page: http://howto.ccs.neu.edu/howto/windows/ssh-port-tunneling-with-putty/) In principle you do the following:

ssh -L 12345:localhost:8080 pi@192.168.1.100

Let me know if it worked :smiley:

GalacticAC commented 8 years ago

Sounds good. My main problem right now is getting the ssh to work remotly at all. At home it works, on the university vpn from home it works too, but if i am at work locked into "the same" VPN session, it does not recognize it. At home it works again. Is there a trick to do this remotely over the web?

moataz-youssef commented 8 years ago

Hey guys. Thanks @iimog for the tip, I will try it and tell you if it worked (and if it doesn't ;-) )

Anyway, I have updates. It seems that it works after all. The command sudo service motion start resulted in motion running as a daemon, and I can see it running when I type service --status-all but in reality it's not running and the webserver and the webcam are off.

So what I did was to type sudo motion start

And voila it works! But, even when using a RPi 2, with a powered USB 3.0 hub, ethernet and a Class 10 card, the lag of the video is horrible! It's unusable. There is lag and there is a very bad framerate. I tried lowering the resolution but it didn't work, and needless to say that when I increased the framerate nothing happened as well. The CPU usage with the RPi 2 doesn't exceed 25%, so that's a good sign. Any advice?

moataz-youssef commented 8 years ago

I followed the guide in here: http://pimylifeup.com/raspberry-pi-webcam-server/

malvikasharan commented 8 years ago

Frank, Do you think you can lead the WUBSyB discussion next week? I can't find your personal email :(

On Thu, Mar 3, 2016 at 12:23 PM, Goodfella-no4 notifications@github.com wrote:

I followed the guide in here: http://pimylifeup.com/raspberry-pi-webcam-server/

— Reply to this email directly or view it on GitHub https://github.com/HackyHour/Wuerzburg/issues/14#issuecomment-191715076.

[image: --] Malvika Sharan [image: http://]about.me/malvikasharan http://about.me/malvikasharan?promo=email_sig

moataz-youssef commented 8 years ago

Hello! Here is an update. I finally got it to work, I got the RPi Camera and it works fine even with a RPi1 with an output of 1080p@30fps with a bitrate of around 10-15 Mbps. The feed is accessible through the RTSP protocol and can be shown on VLC and accessed from several clients at the same time. It worked fine with ethernet and with wifi as well, CPU temp was around 57 degrees Celsius max. I will be very glad to help anyone who is putting a similar system together. Thank to all of you and especially to @iimog

moataz-youssef commented 8 years ago

Sorry a quick addition: The feed is not in real time and there is a lag of around 2 seconds. But for my needs this is very acceptable. Resolution, fps and bitrate have no influence on the lag, I believe it's needed for buffering, but movement is fluid even with my old RPi1 with ~60% CPU activity while streaming to 2 clients simultaneously at 1080p. Impressive little beast :-)