Changes

Jump to: navigation, search

Ubuntu

2,994 bytes added, 14:02, 20 October 2015
Installing SuperCollider
[[Home | <<< back to Wiki Home]]=ofBook installation ideas=http://openframeworks.cc/ofBook/chapters/installation_up_4evr_linux.html
=Upstart to launch/respawn installationsoftware=*create this in /etc/init/facegraft.conf:* <code><nowikisyntaxhighlight lang="bash">
#!upstart
description "Face Swap"
# Give up if restart occurs 10 times in 90 seconds.
respawn limit 10 90
<nowiki></codesyntaxhighlight>*starting and stopping the service. from the command line:<codesyntaxhighlight lang="bash">start faceswap</codesyntaxhighlight>*<codesyntaxhighlight lang="bash">stop faceswap</syntaxhighlight><syntaxhighlight lang="bash">./ls#do some linux commands heresudo reboot</syntaxhighlight> =Disable Screen Dimming=<syntaxhighlight lang="bash">gsettings set org.gnome.desktop.session idle-delay 0</syntaxhighlight>source: http://askubuntu.com/questions/430384/turn-screen-off-when-inactive-setting-from-terminal =run ofApp on local screen=<syntaxhighlight lang="bash">export DISPLAY=:0~/code/of... command</syntaxhighlight>
=UVC / webcam control in ubuntu=
==v4l2-ctl==
===Installing===
*<codesyntaxhighlight lang="bash'>sudo apt-get install v4l-utils</codesyntaxhighlight>
===Using===
*set max zoom with c920:
**<codesyntaxhighlight lang="bash">v4l2-ctl -c zoom_absolute=200</codesyntaxhighlight>
*set max tele with c920:
**<codesyntaxhighlight lang="bash">v4l2-ctl -c zoom_absolute=100</codesyntaxhighlight>
*list all controllable settings:
**<codesyntaxhighlight lang="bash">v4l2-ctl --list-ctrls<code/syntaxhighlight>
==guvcview==
*comes installed.
*launch it:
**<codesyntaxhighlight lang="bash">guvcview</codesyntaxhighlight>
*should give you full access to your camera controls.
#make a live ubuntu usb disk in os x. [http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx directions]
#IN OSX: attach your new portable drive, partition it as an OSX Extended Journaled drive.
#Reboot into the live ubuntu usb disk.#IN UBUNTU: start install. select "something else", create three partitions (boot, root, and swap), leaving existing EFI 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:
**<codesyntaxhighlight lang="bash">diskutil list</codesyntaxhighlight>
**my EFI partition on external drive is /dev/disk2
*unmount:
**<codesyntaxhighlight lang="bash">diskutil unmountDisk disk2</codesyntaxhighlight>
*use dd to copy flash image to external partition:
**<codesyntaxhighlight lang="bash">sudo dd if=refind-flashdrive-0.7.4.img of=/dev/disk2s1 bs=1m</codesyntaxhighlight>
=Using H2 with Ubuntu=
==Recording from H2==
*<codesyntaxhighlight lang="bash">arecord -D "hw:2,0" -f S16_LE -c 2 -r 44100 test2.wav</codesyntaxhighlight
==pocketsphinx-continuous with H2==
*
=Custom PC Build=
*install Ubuntu
*Boot to command line. Download CUDA from NVIDIA:
<syntaxhighlight lang="bash">wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/rpmdeb/cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb</syntaxhighlight>
*Install CUDA, follow these instructions: http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html#ubuntu-installation
*Add nomodeset to GRUB_LINUX_CMDLINE_DEFAULT: http://askubuntu.com/questions/38780/how-do-i-set-nomodeset-after-ive-already-installed-ubuntu/38782#38782
*Install netatalk and ssh:
<syntaxhighlight lang="bash">sudo apt-get install ssh netatalk</syntaxhighlight>
*Install glew.h, etc. This is easily accomplished through the openFrameworks install dependencies script (if you plan to use oF):
http://openframeworks.cc/setup/linux-codeblocks/
*Install menu-meters: http://blog.dcxn.com/2012/06/06/menu-meters-for-ubuntu/
 
==Alternate NVIDIA Install options==
*http://www.askmetutorials.com/2015/01/install-uninstall-nvidia-driver-34058.html
*http://askubuntu.com/questions/464354/update-nvidia-drivers-with-xorg-edgers-ppa
 
=netatalk file sharing with OS X=
*http://outcoldman.com/en/archive/2014/11/09/ubuntu-as-home-server-part-3-afp-server/
*had to install libevent-dev and libtdb-dev:
<syntaxhighlight lang="bash">
sudo apt-get install libevent-dev
sudo apt-get install libtdb-dev
</syntaxhighlight>
=copy ssh key to remote server=
<syntaxhighlight lang="bash">cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"</syntaxhighlight>
=Use aptitude to downgrade some packages=
for example installing libcurl4-openssl-dev:
 
http://askubuntu.com/questions/584901/grive-tools-depends-libcurl4-openssl-dev-but-it-is-not-going-to-be-installed
=Installing SuperCollider=
https://github.com/supercollider/supercollider/wiki/Installing-SuperCollider-on-Ubuntu-systems
*add user to audio group:
<syntaxhighlight lang="bash">sudo adduser rtwomey audio</syntaxhighlight>

Navigation menu