User:Max Dovey/sandbox: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 52: Line 52:


shuf speech | tail -n1 | festival --tts #shuffle the speech file and seperate lines like tail -n1 and pipe | to festival text to speech.
shuf speech | tail -n1 | festival --tts #shuffle the speech file and seperate lines like tail -n1 and pipe | to festival text to speech.
===using ssh, scp and rsync to server====
how to cp files terminal bash
sudo cp ~/music/filename /var/lib/mpd/music
Instead of using ftp client
we set up ssh securtiy key so that it authoraised with a pairing identity.
using
ssh-keygen
set empty pass phrase
ssh-copy-id "servername"
now you should be able to ssh into server with no password required.
now trying "scp" in command line without ssh and it should copy without auth.
rync your files to the server without ssh security
rsync folder server:directory_public_html
http://ged.msu.edu/angus/tutorials/using-ssh-scp-terminal-macosx.html

Revision as of 20:14, 11 November 2013

WEEK 1

living in a sandbox.

Rasberry pi terminal commands to authorise users and set up a local access network. once pi is up and running plug in a router. bash : ifconfig #to get a list of ip details become sudo user (and adduser ) bash : (sudo) su adduser once at root should see (#) and you can also check where u are by bash : whoami

once you follow the adduser procedure you have set up accounts for people on your local server. this person should then have an email account with their first name @(rasberrypi) or (the ip address) you can then login to the server via terminal using this bash bash: ssh (user@ip)

that should log you into the network.

week 3 plans for turning the pi into a public fm broadcast station

using cat and Pipeing

Piping stuff using | \

Apt-get Fesitval (a text to speech analyser) Festival --tts (text to speech)


open nano/ gedit/ leafpad or any text editor. create text. ps command see whats running

cat is really low level pipe which will return most things to std out (terminal unless something else is selcted) cat file | application

shuf speech | tail -n1 | festival --tts #shuffle the speech file and seperate lines like tail -n1 and pipe | to festival text to speech.

using ssh, scp and rsync to server=

how to cp files terminal bash sudo cp ~/music/filename /var/lib/mpd/music

Instead of using ftp client we set up ssh securtiy key so that it authoraised with a pairing identity. using ssh-keygen set empty pass phrase ssh-copy-id "servername"

now you should be able to ssh into server with no password required. now trying "scp" in command line without ssh and it should copy without auth. rync your files to the server without ssh security rsync folder server:directory_public_html http://ged.msu.edu/angus/tutorials/using-ssh-scp-terminal-macosx.html