Loading sub-menu...

1.1 Cookbook

compared with
Current by developer
on ago 21, 2012 20:00.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (33)

View Page History
{pop-away:metadata | comments | children | labels}

In this section you will find specific solutions for specific needs.
Galicaster is dependant on the hardware installed on the units so we provide some guides to install and configure of the most commom cards used along this software. We also include some instructions to help you fix the access to those cards and the application on the operative system.

h4. Drivers installation and configuration:

h5. Epiphan VGA2USB Module Installation
* *[Epiphan Modules Installation|Epiphan cards]*
* *[Hauppauge Cards Configuration|Hauppauge cards]*
* *[Blackmagic Cards Configuration|Galicaster:Blackmagic cards]*
* *[NCast Cards Configuration|Galicaster:NCast cards]*
* *[Firewire Cards Configuration|Galicaster:Firewire cards]* (Not available yet)

h4. Instructions
* [UDEV rules|#udev]
* [Galicaster Autostart|#autostart]

To dowload de driver se [http://www.epiphan.com/downloads/linux/]
h5. UDEV rules


Run the following commands in a shell (requires being root)
Create the file {{/etc/udev/rules.d/galicaster.rules}}, which will contain the udev rules that will be applied to the devices.

Use the following command to find out the value of *{{ATTR\{name\}}}* for a specific device:
{code:none} 
install -m 0644 vga2usb.ko /lib/modules/$(uname -r)/kernel/drivers/video/
echo options vga2usb v4l_num_buffers=2 v4l_err_on_nosignal=0 > /etc/modprobe.d/vga2usb.conf
echo softdep vga2usb pre: videodev usbvideo post: >> /etc/modprobe.d/vga2usb.conf
depmod -a
{code:none}
$ udevadm info --attribute-walk --name=${device}
{code}

substituting {{"$\{device\}"}} for the device's mount point, for example:

h5. UDEV rules
{code:none}
$ udevadm info --attribute-walk --name=/dev/video0
$ udevadm info --attribute-walk --name=/dev/video1 | grep name
{code}

(e.g. {{/dev/video0}})

Create the file /etc/udev/rules.d/galicaster.rules [1] where the udev rules to be applied to the devices will be added.

These are some configuration examples:

{code}

Use the following command to find out the value of {{ATTR\{name\}}}:
For newer Epiphan drivers:
{code:none}
{code:none} 
$ udevadm info --attribute-walk --name=${device}
KERNEL=="video[0-9]*", ATTR{name}=="vga2usb", SYMLINK+="screen"
{code}

substituting "${device}" for the device's mount point (e.g. /dev/video0)
{anchor:autostart}

h4. Galicaster Launcher & Autostart

h5. Autostart
If you want to make a launcher to run galicaster through the visual interface you may follow these instructions:

Add the file galicaster.desktop to the folder \~/.config/autostart/
* Copy {{docs/autostart/galicaster.svg}} to {{/usr/share/icons}}.
* Copy {{docs/autostart/galicaster.destktop to {{usr/share/applications}}.
** Now you have galicaster on your Unity interface.
* Run Galicaster and Lock the launcher of the dock.
* Drag the GC icon to the desktop.
** If the GC logo doesn't show, right-button on the file, go to _Properties_, choose the tab _Permissions_ and check _Allow executing file as a program_.
** You can resize it by clicking right-button on the launcher, go to _Resize Icon..._ .

{code:none} 
[Desktop Entry]
Name=Galicaster Class
Version=1.0
Type=Application
Terminal=false
Exec=python "/home/galicaster/src/galicaster/classexec.py"
{code}

Warning: Some paths may need to be adjusted to the current environment.
To make galicaster start as the operative system loads do the following:
* Copy {{docs/autostart/galicaster.desktop}} to {{~/.config/autostart}}.