On the Raspberry Pi Command Line Break CTRL + Break Via SSH Terminal Programs CTRL + C
All posts by
FireSSH
FireSSH is a firefox plugin which provides a great SSH interface to a Raspberry Pi over the network. Sending Break CTRL+C
Streaming Video Using Motion
Good Guides http://www.bubblews.com/news/1258665-raspberry-pi-webcam-server-tutorial-live-stream
Streaming Video Using VLC Player
Installing VLC Player sudo apt-get install vlc Streaming The Camera Video Using RTSP Enter the following command to start the streaming: raspivid -o – -t 0 -n | cvlc -vvv stream:///dev/stdin –sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 raspivid is used to capture the video "-o -" causes the output to be written to stdout "-t 0" sets […]
tar, for zipping files, directories, etc
Show all options tar –help Create Archive Of Specific Files tar -vfcz outputfilename.gz inputfile1 inputfile2 Zipping Files And Directories Use this to move to the directory containing the files and / or directories you want to zip cd projects/myfolder Zip 1 File tar -vczf zip_output_filename.gz file_to_zip.a Zip 2 Files tar -vczf zip_output_filename.gz file_to_zip1.a file_to_zip2.a Zip A […]
Using char-Converting
Convert To Lowercase – char string
Help
Displaying a programs options Type this on the command line: program_name –help
Bash Files
File Extension .sh is typical (but not mandatory) File Contents The file should start with: #!/bin/bash If there is a problem with the interpreter being found type error message you can see where your systems bash interpreter is by typing "which bash" on the command line. Blank lines are fine. Use the # character for […]
Sleep
Can be useful when chainging commands together in scripts etc: sleep 5 Will ause a pause of 5 second
C++ Basic String Functions
#include <string.h> strcpy – Copy string into string strcpy(s1, s2); Copies string s2 into string s1. strcat – Add string to end of string strcat(s1, s2); Concatenates string s2 onto the end of string s1. strlen – Get string length strlen(s1); Returns the length of string s1. strcmp – Compare strings strcmp(s1, s2); Returns 0 […]