User:Inge Hoonte/Dummies, the sequel: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 19: Line 19:
* also set up default start-up, and kiosk for browser, full-screen browser etc etc
* also set up default start-up, and kiosk for browser, full-screen browser etc etc


'''Evo's favorite commands'''
'''Evo's favorite commands''' <br/>
<source lang = "bash">
ls
ls
cp = copy (scp = secure copy)
cp = copy (scp = secure copy)
Line 53: Line 54:
echo blabla >> bla.txt
echo blabla >> bla.txt
cat /var/log/auth.log |less
cat /var/log/auth.log |less
</source>


'''cp''
'''cp''

Revision as of 17:04, 21 October 2011

oct 21 intro

-> 4 dummies attending. Evo starts with showing Dutch Design Week project. Making a physical poster. Take pictures from above. Installation with camera above + lights, and flatbed underneath it. Arduino and button to control camera. PVC pipes run from platform to flatbed with all cables (unstable).

  • Without button: connect wires to test Arduino
  • leave test script on computer there to see if button is working
  • Arduino: take picture
  • python script: kill P2P camera program so iPhoto doesn't open. Instead open gPhoto. save it, write it, etc
grep "bla" *
ps ax | grep "PTPCamera" 
// returns camera number 752
kill -9 752
ps ax | grep "PTPCamera" | grep -v "grep"
gphoto2 -a
  • work with PIL and ImageMagick
  • copy to temporary directory: folder of web page. For open day this was written in AppleScript, now in gPhoto: free software to communicate with digital cameras.
  • rotate picture 90 degrees
  • Copy to local image gallery
  • refresh browser -> chrome script (command shift f)
  • also set up default start-up, and kiosk for browser, full-screen browser etc etc

Evo's favorite commands

ls
cp = copy (scp = secure copy)
mv = move
mkdir = make dir
cd = change directory
rm
grep
find
man
watch
sed
cat
echo
less

|
>
>>
* = everything that ends in... 

ctrl + c
cd ~  = evo go home

example:
ls -al ~ = show all 
mv *.jpg ~/pics/
rm -rf pics
grep “bla” *
find -name “*bla*”
mkdir test
echo bla > bla.txt
echo blabla >> bla.txt
cat /var/log/auth.log |less

'cp copy all python files: cp Documents/.../*.py copyall python files that start with start and save as different file name: cp Docu.../start*.py ~/.../* recursive: all folders and sub trees in it: cp -R