User:Max Dovey/sandbox: Difference between revisions
No edit summary |
|||
(17 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
Rasberry pi terminal commands to authorise users and set up a local access network. | Rasberry pi terminal commands to authorise users and set up a local access network. | ||
once pi is up and running plug in a router. | once pi is up and running plug in a router. | ||
bash : | bash : ifconfig #to get a list of ip details | ||
become sudo user (and adduser ) bash : (sudo) su adduser | 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 at root should see (#) and you can also check where u are by bash : whoami | ||
Line 19: | Line 19: | ||
plans for turning the pi into a public fm broadcast station | plans for turning the pi into a public fm broadcast station | ||
<ul> | <ul> | ||
<li>http://raspberrypi-hacks.com/7/turn-your-raspberry-pi-into-a-fm-transmitter-hack-radio-frequencies/ </li> | |||
<li> http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter </li> | <li> http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter </li> | ||
<li>http://mutsuda.com/2012/09/07/raspberry-pi-into-an-audio-spying-device/ </li> | <li>http://mutsuda.com/2012/09/07/raspberry-pi-into-an-audio-spying-device/ </li> | ||
<li>http://www.g7smy.co.uk/?p=283 </li> | <li>http://www.g7smy.co.uk/?p=283 </li> | ||
<li> http://www.linuxcircle.com/2013/05/08/raspberry-pi-microphone-setup-with-usb-sound-card/ </li> | |||
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=53013&p=433486 | |||
http://www.instructables.com/id/Arduino-Raspberry-Pi-Internet-Radio/?ALLSTEPS | |||
http://www.bobrathbone.com/pi_radio_installation.htm | |||
https://contractorwolf.wordpress.com/raspberry-pi-radio/ | |||
http://www.peyregne.info/wp/en/raspberry-pi-internet-radio-part-2-radio-playlist/ | |||
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=53013&p=433486 | |||
https://thenated0g.wordpress.com/tag/mpc/ | |||
http://www.rpiblog.com/ | |||
http://www.t3node.com/blog/live-streaming-mp3-audio-with-darkice-and-icecast2-on-raspberry-pi/ | |||
https://docs.google.com/viewer?a=v&pid=sites&srcid=ZGVmYXVsdGRvbWFpbnxnbHltYW4zaG9tZXxneDo0NzRlZGQ3ZjBjYWZkODk2 | |||
</ul> | </ul> | ||
===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 | |||
rm (removes filename) | |||
mkdir (makes directory) | |||
scp | |||
===SANDBOX 25/11/2013=== | |||
SANDBOX | |||
working with motion | |||
sudo apt-get install motion | |||
motion man or motion help | |||
To create configurations with motion | |||
make a configmotion.txt file with touch or nano or visit config man to learn new ones. | |||
write your line in that txt file e.g. (output_normal best / threshold 1000) | |||
run the program with -c config file of your choice. (motion -c configmotion.txt) | |||
ps (see what programs are running) | |||
kill (program number) or killall (program name) | |||
motion webcam | |||
configmotion.txt | |||
webcam_port 80 | |||
stream it with apache | |||
install apache2 | |||
visit ip address (should see it works page) | |||
cd into sites-available and add this line to config file save. | |||
ProxyPass /w http://localhost:8000 | |||
sudo service apache2 restart | |||
sudo a2enmod proxy proxy _http | |||
FBI - allows you to view images or files within terminal | |||
fbil (filename) | |||
/ on a man page allows you to search within (n) lets you go next page. | |||
===RADIO PI=== | |||
http://www.instructables.com/id/Raspberry-Pi-Radio-Transmitter/step4/Adding-Other-Songs/ | |||
http://sdrformariners.blogspot.nl/p/beginner-antennas.html | |||
===Community TV=== | |||
https://github.com/Metalab/ScreenInvader | |||
===Speech to text=== | |||
http://www.daveconroy.com/turn-raspberry-pi-translator-speech-recognition-playback-60-languages/ | |||
http://blog.oscarliang.net/raspberry-pi-voice-recognition-works-like-siri/ | |||
http://raspberrypi.stackexchange.com/questions/7969/text-to-speech-select-output-device |
Latest revision as of 15:27, 13 January 2014
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
- http://raspberrypi-hacks.com/7/turn-your-raspberry-pi-into-a-fm-transmitter-hack-radio-frequencies/
- http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter
- http://mutsuda.com/2012/09/07/raspberry-pi-into-an-audio-spying-device/
- http://www.g7smy.co.uk/?p=283
- http://www.linuxcircle.com/2013/05/08/raspberry-pi-microphone-setup-with-usb-sound-card/ http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=53013&p=433486 http://www.instructables.com/id/Arduino-Raspberry-Pi-Internet-Radio/?ALLSTEPS http://www.bobrathbone.com/pi_radio_installation.htm https://contractorwolf.wordpress.com/raspberry-pi-radio/ http://www.peyregne.info/wp/en/raspberry-pi-internet-radio-part-2-radio-playlist/ http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=53013&p=433486 https://thenated0g.wordpress.com/tag/mpc/ http://www.rpiblog.com/ http://www.t3node.com/blog/live-streaming-mp3-audio-with-darkice-and-icecast2-on-raspberry-pi/ https://docs.google.com/viewer?a=v&pid=sites&srcid=ZGVmYXVsdGRvbWFpbnxnbHltYW4zaG9tZXxneDo0NzRlZGQ3ZjBjYWZkODk2
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
rm (removes filename) mkdir (makes directory) scp
SANDBOX 25/11/2013
SANDBOX
working with motion
sudo apt-get install motion
motion man or motion help
To create configurations with motion make a configmotion.txt file with touch or nano or visit config man to learn new ones. write your line in that txt file e.g. (output_normal best / threshold 1000) run the program with -c config file of your choice. (motion -c configmotion.txt) ps (see what programs are running) kill (program number) or killall (program name)
motion webcam configmotion.txt webcam_port 80
stream it with apache install apache2 visit ip address (should see it works page) cd into sites-available and add this line to config file save. ProxyPass /w http://localhost:8000
sudo service apache2 restart sudo a2enmod proxy proxy _http
FBI - allows you to view images or files within terminal
fbil (filename)
/ on a man page allows you to search within (n) lets you go next page.
RADIO PI
http://www.instructables.com/id/Raspberry-Pi-Radio-Transmitter/step4/Adding-Other-Songs/ http://sdrformariners.blogspot.nl/p/beginner-antennas.html
Community TV
https://github.com/Metalab/ScreenInvader
Speech to text
http://www.daveconroy.com/turn-raspberry-pi-translator-speech-recognition-playback-60-languages/ http://blog.oscarliang.net/raspberry-pi-voice-recognition-works-like-siri/ http://raspberrypi.stackexchange.com/questions/7969/text-to-speech-select-output-device