Difference between revisions of "Ubuntu"

From Robert-Depot
Jump to: navigation, search
(Custom PC Build)
(Custom PC Build)
Line 84: Line 84:
 
=Custom PC Build=
 
=Custom PC Build=
 
*install Ubuntu
 
*install Ubuntu
*Download CUDA from NVIDIA:  
+
*Boot to command line. Download CUDA from NVIDIA:  
<syntaxhighlight lang="bash">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>
+
<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
 
*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
 
*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>
 
==Installing NVIDIA GeForce 960 Drivers==
 
==Installing NVIDIA GeForce 960 Drivers==
 
*http://www.askmetutorials.com/2015/01/install-uninstall-nvidia-driver-34058.html
 
*http://www.askmetutorials.com/2015/01/install-uninstall-nvidia-driver-34058.html

Revision as of 09:01, 22 April 2015

ofBook installation ideas

http://openframeworks.cc/ofBook/chapters/installation_up_4evr_linux.html

Upstart to launch/respawn installation software

  • create this in /etc/init/facegraft.conf:
#!upstart
description "Face Swap"

# Start job via the daemon control script. Replace "gert" with your username.
exec su -l rtwomey -c 'export DISPLAY=:0; /home/rtwomey/code/openFrameworks/apps/oftwomey/graft-tracker/bin/graft-tracker'

# Restart the process if it dies with a signal
# or exit code not given by the 'normal exit' stanza.
respawn

# Give up if restart occurs 10 times in 90 seconds.
respawn limit 10 90
  • starting and stopping the service. from the command line:
start faceswap
stop faceswap
./ls
#do some linux commands here
sudo reboot

Disable Screen Dimming

gsettings set org.gnome.desktop.session idle-delay 0

source: http://askubuntu.com/questions/430384/turn-screen-off-when-inactive-setting-from-terminal

run ofApp on local screen

export DISPLAY=:0
~/code/of... 
command

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

guvcview

  • comes installed.
  • launch it:
guvcview
  • should give you full access to your camera controls.

Make a Portable UBUNTU installation

  1. make a live ubuntu usb disk in os x. directions
  2. IN OSX: attach your new portable drive, partition it as an OSX Extended Journaled drive.
  3. Reboot into the live ubuntu usb disk.
  4. IN UBUNTU: start install. select "something else", create three partitions (boot, root, and swap), leaving existing EFI partition from OSX.
  5. Install Refind to first partition.

Install rEFInd to partition of external drive

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

pocketsphinx-continuous with H2

Custom PC Build

  • install Ubuntu
  • Boot to command line. Download CUDA from NVIDIA:
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
sudo apt-get install ssh netatalk

Installing NVIDIA GeForce 960 Drivers

Installing CUDA

netatalk file sharing with OS X

sudo apt-get install libevent-dev
sudo apt-get install libtdb-dev

copy ssh key to remote server

cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"