Difference between revisions of "Ubuntu"
From Robert-Depot
(→Upstart to launch/respawn installation) |
(→Upstart to launch/respawn installation) |
||
Line 3: | Line 3: | ||
=Upstart to launch/respawn installation= | =Upstart to launch/respawn installation= | ||
*create this in /etc/init/facegraft.conf | *create this in /etc/init/facegraft.conf | ||
− | *<blockquote> | + | *<blockquote><pre> |
#!upstart | #!upstart | ||
description "Face Swap" | description "Face Swap" | ||
Line 16: | Line 16: | ||
# Give up if restart occurs 10 times in 90 seconds. | # Give up if restart occurs 10 times in 90 seconds. | ||
respawn limit 10 90 | respawn limit 10 90 | ||
− | </blockquote> | + | </pre></blockquote> |
=UVC / webcam control in ubuntu= | =UVC / webcam control in ubuntu= |
Revision as of 06:10, 2 November 2013
Contents
Upstart to launch/respawn installation
- create this in /etc/init/facegraft.conf
UVC / webcam control in ubuntu
v4l2-ctl
Installing
sudo apt-get install v4l-utils
Using
- set max zoom with c920:
v4l2-ctl -c zoom_absolute=200
- set max tele with c920:
v4l2-ctl -c zoom_absolute=100
- list all controllable settings:
v4l2-ctl --list-ctrls<code>
guvcview
- comes installed.
- launch it:
- <code>guvcview
- should give you full access to your camera controls.
Make a Portable UBUNTU installation
- make a live ubuntu usb disk in os x. directions
- IN OSX: attach your new portable drive, partition it as an OSX Extended Journaled drive.
- IN UBUNTU: start install. select "something else", create three partitions (boot, root, and swap), leaving existing partition from OSX.
- Install Refind to first partition.
Install rEFInd to partition of external drive
- download refind flashdrive http://sourceforge.net/projects/refind/files/0.7.4/refind-flashdrive-0.7.4.zip/download
- use diskutil to find number for partition on your external:
diskutil list
- my EFI partition on external drive is /dev/disk2
- unmount:
diskutil unmountDisk disk2
- use dd to copy flash image to external partition:
sudo dd if=refind-flashdrive-0.7.4.img of=/dev/disk2s1 bs=1m
Using H2 with Ubuntu
Recording from H2
arecord -D "hw:2,0" -f S16_LE -c 2 -r 44100 test2.wav