Setting up linux webcam server Juho Launonen & Sami Kulmala.

Slides:



Advertisements
Similar presentations
Introduction to Linux Linux startup process Unix Shells and scripts.
Advertisements

1.A tool helps us mange the state of an emulator instance or Android-powered device 2.It is client-sever program that include three comopnents: 1). A.
Web Application Server Apache Tomcat Downloading and Deployment Guide.
Screen Cli based screen manager for Linux/Unix. Installing Screen Debian based systems: apt-get install screen Redhat based systems including centos:
Linux Boot Up Process Bootstrapping –Bootstrapping is the standard term for “ starting up a computer”. During bootstrapping, the kernel is loaded into.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Chien-Chung Shen Google Compute Engine Chien-Chung Shen
On Ubuntu Linux. Servers installed SSH APACHE First compiled from source Later installed again with apt-get PHP VNC (ubuntu) Had to be activated in system.
DataStax Enterprise on Microsoft Azure. BrightView Analytics provides a robust Software-as-a-Service (SaaS) business solution, which delivers critical.
Integrating HADOOP with Eclipse on a Virtual Machine Moheeb Alwarsh January 26, 2012 Kent State University.
Linux Operations and Administration
Hyrax Installation and Customization Dan Holloway James Gallagher.
GETTING STARTED USING LINUX UBUNTU FOR A MULTI-USER SYSTEM Team 4 Lab Coordinator Manager Presentation Prep Webmaster Document Prep Faculty Facilitator.
Terminal and Console Access Unix/IP Preparation Course May 29, 2011 Dar es Salaam, Tanzania.
Using the “CLI” Unix / Linux Preparation Course May 25 Djibouti.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 10 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
UNIX ™ /Linux Overview Unix/IP Preparation Course June 9, 2013 Lusaka, Zambia.
The Network Management Lab pc pc pc pc pc Virtual Servers Your Laptop.
bWAPP – Bee Bug – Installation
Sponsored by the National Science Foundation Configuration Management For Experimenters: Ansible Hands-On Sarah Edwards, GPO.
workshop eugene, oregon UNIX ™ /Linux Overview Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
May 10, 2012 Lloyd Moore, President/Owner. Quick Start Video Building Mobility 1.2 SDK Emulator Quirks Installing On A Device Summary Overview.
A few Linux basics Network Monitoring & Management.
Working with Ubuntu Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
baltrad node installation for beginners On Ubuntu Jesper Ellerbæk Nielsen Aalborg University, DK.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
UNIX ™ /Linux Overview Unix/IP Preparation Course May 25, 2014 Djibouti.
Linux Services Muhammad Amer. 2 xinetd Programs  In computer networking, xinetd, the eXtended InterNET Daemon, is an open-source super-server daemon.
UNIX ™ /Linux Overview Unix/Linux Preparation Course June 27, 2010 Pago Pago, American Samoa.
APC by Schneider Electric– Bill Pasquill SSPCNSV Installation ●Steps needed to install PCNSV on VMware ESX server 3.5 ●Mount CD ●Copy files ●Run Installation.
Globus Toolkit Installation Report. What is Globus Toolkit? The Globus Toolkit is an open source software toolkit used for building Grid systems.
Installing CompuCell3D from source. Why you might want to install from source? 1.There are no binaries for your platform (e.g. gentoo linux) 2.You want.
Apache Web Server Quick and Dirty for AfNOG 2015 (Originally by Joel Jaeggli for AfNOG 2007) ‏
By: Anuj Sharma. Topics covered:  GIT Introduction  GIT Benefits over different tools  GIT workflow  GIT server creation  How to use GIT for first.
PacNOG 6: Nadi, Fiji Terminal and Console Access Hervey Allen Network Startup Resource Center.
Tony Kombol.  Why text edit?  Many programs and features require configuration ▪ Configuration is kept in files ▪ Usually in the /etc directory  Changes.
Ruby on Rails on Ubuntu Bradley Taylor Rails Machine, LLC
 Load balancing is the process of distributing a workload evenly throughout a group or cluster of computers to maximize throughput.  This means that.
LING 408/508: Programming for Linguists Lecture 17 October 28 th.
Linux Services Configuration
Servo Motors Precise angular motion. Servo Motors Raspberry Pi Webcam Interfaces Keeping track of things.
Docker and Container Technology
Load balanced High-Availability Apache Cluster.  Load balancers takes care of the load on a web server nodes and tried to direct request to the node.
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
Introduction to Linux Server Setup Jonathan Hood CSE 4000 Practical Issues in Software Engineering.
Day 15 Apache. Being a web server Once your system is correctly connected to the network, you could be a web server. –When you go to a web site such as.
 Prepared by: Eng. Maryam Adel Abdel-Hady
LINUXCHIX WEBMAIL. Software run by an ISP or online service that provides access to send, receive, and review using only your Web browser. Users.
 Prepared by: Eng. Maryam Adel Abdel-Hady
Embedded Software Design Week II Linux Intro Linux Kernel.
Intro to GNU/Linux See, Stallman? I said GNU. Are you happy now?
Installation. All Rights Reserved © Alcatel-Lucent | Installation Module Objectives  Installation  Startup and process monitoring  Uninstallation.
Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.
Apache Web Server v. 2.2 Reference Manual Chapter 2 Starting Apache.
Linux, Apache, MySQL, PHP/Python/PERL ● a.k.a. LAMP ● Standard set of tools for configuring a Linux-based web server with database & interfacing capabilities.
Lecture 18CS311 – Operating Systems 1 1 CS311 – Lecture 18 Outline Midterm 2 Review Note: These lecture notes are not intended replace your notes. This.
Introduction to Android Programming
APACHE INSTALL AWS Linux (Amazon Web Services EC2)
Installing iHRIS Install iHRIS Manage on an Ubuntu System
Hyrax Configuration.
Labs – Installing a FTP Server
Our chosen platform is:
Ubuntu Working in Terminal
Lab 1 introduction, debrief
Scripting Tools, languages and the Shell intERLab at AIT
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
LING 408/508: Computational Techniques for Linguists
Copyright (c) 2017 by Dr. E. Horvath
Setting up a Webcam on a Raspberry Pi
Presentation transcript:

Setting up linux webcam server Juho Launonen & Sami Kulmala

At the beginning we... Created new virtual machine with default settings and linux debian distro Installed apache and loads of other stuff Connected webcam Got nice feed from the camera Tried to set up the server

Then the problems started It appeared that the v4l (video for linux), which is a video capture application programming interface for Linux, did not work for us at all That's when the shit hit the fan Nothing was working properly and we were desperate After 16 hours and thousands of useless attempts it was time to start all over again with a new distro...

Installing Ubuntu

So... Ubuntu server was succesfully installed with GUI Apache was installed sudo apt-get install apache2 Webcam server package  sudo apt-get install webcam-server

Configuration We had to make startup script for the webcam server so that we could control it as a daemon and start it at startup We made the following script to the /etc/init.d directory...

#!/bin/sh SERVER_BIN=webcam-server LOCK_FILE=/var/lock/$SERVER_BIN RTRN=0 OPTIONS='-v -g 640x480 -p c JUMI' start() { [ -f $LOCK_FILE ] && echo "$SERVER_BIN already started" [ -f $LOCK_FILE ] && return echo -n "Starting $SERVER_BIN: " export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so nohup $SERVER_BIN $OPTIONS > /dev/null 2>/dev/null & RTRN=$? [ $RTRN -eq 0 ] && echo Started! || echo FAIL [ $RTRN -eq 0 ] && touch $LOCK_FILE } stop() { [ -f $LOCK_FILE ] || echo "$SERVER_BIN is not running" [ -f $LOCK_FILE ] || return echo -n "Stopping $SERVER_BIN: " pkill -f "$SERVER_BIN $OPTIONS" RTRN=$? rm -f $LOCK_FILE [ $RTRN -eq 0 ] && echo Stopped! || echo FAIL } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo "Usage: $0 {start|stop|restart}" RTRN=1 esac exit $RTRN

Configuration With following commands we made the startup script run when Ubuntu starts up  sudo chmod +x /etc/init.d/webcam-server  sudo update-rc.d webcam-server defaults Now everything was ready for a little test so we started the webcam server  sudo /etc/init.d/webcam-server start

IT'S WORKING! Juho was pretty scared when he realized that

Webcam stream to a webpage To use the webcam stream on a webpage we had to copy the necessary java files to our webroot  sudo cp /usr/share/doc/webcam- server/applet/* /var/www/ Then we made webpages with following applet for the camera  :8888">

That's it! Now lets see that amazing site!