Video Streaming with Apache
Feb 15, 10 by Juan Lebrijo about Streaming, Web, Flash, blog
In this post I will show you how I have mounted a streaming video server like youtube with my Apache server. Nwadays is one choice to do pseudostreaming that we know . The idea was inserting a video in a customer page, and show my video cv at my web curriculum. Install the development package for Apache to compile the streaming module:
apt-get install apache-dev apache2-threaded-dev
Download theFLV streaming module, and compile it:
apxs2 -i -a -c mod_flvx.c
Now Apache must to load the module when boot, and make a stream forevery flv file.Create flvx.load flie:
LoadModule flvx_module /usr/lib/apache2/modules/mod_flvx.so
And flvx.conf with:
AddHandler flv-stream .flv
To load it when apache boots, copy them into:
  • /etc/apache2/mods-available/
  • /etc/apache2/mods-enabled/
To see the videos the client mus download in the begining a flash video player wich manage the video transmision. We choose flash Flowplayer, so it seems good and have a GPL version (GPL). You must add the Javascript library at the header of your page, and locate in your page:

 



 flowplayer("player", "../flowplayer-3.1.4.swf");
 
Installing SVN on Debian
Jan 29, 10 by Juan Lebrijo about version control, agilism, blog
In order to build an XP environment, I will start with Control Version System. I choose Subversion CVS because have sufficient maturity, good integration with Eclipse via Subclipse, and I have experience using it at my job. Following the principle "don't repeat your self" and others good works, we have many articles in google installing SVN on Debian, like this great post by pasyonic. But I will do my own personal cheatsheet. Installing tools:
apt-get install subversion libapache2-svn
Creating a folder for your repos:
mkdir /var/repos
Permissions:
chown -R www-data:www-data /var/repos
Configuring WebDav-SVN for Apache /etc/apache2/mods-available/dav_svn.conf:
  DAV svn
  SVNParentPath /var/repos
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd
  Require valid-user
We must insert user/passwd(md5 encrypted) for each user you want to have RW access to all your repos:
htpasswd -cmb /etc/apache2/dav_svn.passwd juanan
Restart Apache to reload the changes. We can create a repo with:
 svnadmin create /var/repos/myproject
Important¡¡ reload permisions for apache user:
chown -R www-data:www-data /var/repos/myproject
mkdir /var/repos/myproject/branches
mkdir /var/repos/myproject/tags
mkdir /var/repos/myproject/trunk
I recommend to use the classic tree branches/tags/trunk for your repos. Every software take your releases from this folder tree, and it is a good convention for developments. Then you can access to your repo from the URL http://www.yourdomain.com/repos/myproject. You can checkout, commit,... with juanan user. If you want administering the users for each project, what permissions have, you must add this line to /etc/apache2/mods-available/dav_svn.conf:
AuthzSVNAccessFile /etc/apache2/dav_svn.authz
Creating that file with contents like these:
[myproject:/]
@admin = rw
[groups]
admin = juanan
Tortoise is great SVN client for Windows, it integrates perfectly with file explorer. Subclipse a great option for Eclipse IDE. The Subversion Book, if you want to learn all about SVN.
Instalando Subversion en Debian
Jan 29, 10 by Juan Lebrijo about version control, agilism, blog
Con el fin de construirme mi propio entorno XP, voy a empezar por un Sistema de Control de Versiones. He elegido Subversion por su madurez, buena integración con Eclipse via Subclipse, y por que tengo experiencia usándolo en mi trabajo. Siguiendo el principio de no repetirse a simismo, ni a buenos trabajos anteriores, os dejo de los muchos artículos de como instalar SVN en Debian este gran  post by pasyonic. Pero como siempre os dejo mi chuletilla personal. Instalando las herramientas necesarias:
apt-get install subversion libapache2-svn
Creando un repositorio de proyectos:
mkdir /var/repos
Permisos:
chown -R www-data:www-data /var/repos
Configurando WebDav-SVN para Apache en /etc/apache2/mods-available/dav_svn.conf:
  DAV svn
  SVNParentPath /var/repos
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd
  Require valid-user
Tenemos que insertar usuario /contraseña (encriptada con md5) para cada usuario que quieras que tenga acceso R/W a todos los repos:
htpasswd -cmb /etc/apache2/dav_svn.passwd juanan
Reinicia el Apache para recargar las configuraciones. Podemos crear nuestro primer repo con:
 svnadmin create /var/repos/myproject
Importante ¡¡¡ vuelve a dar los permisos para que pueda acceder el usuario de apache:
chown -R www-data:www-data /var/repos/myproject
Recomiendo encarecidamente usar el clásico árbol branches/tags/trunk para tus repos. Casitodo el software toma las versiones a partir de este árbol, y es una muy buena convención para los desarrollos. En este momento puedes acceder a tu report via http://www.yourdomain.com/repos/myproject. Puedes hacer checkout, commit,... con el usuario juanan. Si quieres administrar usuario para cada proyecto, los permisos que tendrán, debes añadir estas líneas a /etc/apache2/mods-available/dav_svn.conf:
AuthzSVNAccessFile /etc/apache2/dav_svn.authz
Creando un fichero con contenidos como el siguiente:
[myproject:/]
@admin = rw
[groups]
admin = juanan
Tortoise es un gran cliente de SVN para windows, que se integra muy bien con el explorador de archivos.. Subclipse una buena opción para tu Eclipse. The Subversion Book, si queres aprenderlo todo sobre SVN. WebSVN un buen administrador LAMP para tus repos..