Create Config File The config file needs to be created with your AWS credentials [default] aws_access_key_id = YourAwsAccesKey aws_secret_access_key = YourAwsSecretKey region = us-west-2 If application running as root save it to: "/root/.aws/config" Or if running as a user (pi) save it to: "/home/pi/.aws/config" Protect it chmod 600 /root/.aws/config chmod 600 /home/pi/.aws/config
All posts by
Rubbish Bin
Trash directory is at: /home/$USER/.local/share/Trash If you delete something as root it is at: /root/.local/share/Trash The Trash directory is first created when a user deletes a file. Within Trash there are three subdirectories: files – where deleted files are stored until the trash is emptied info – stores information on where the files once were and […]
wget http access via command line
See wget: https://raspberry-projects.com/pi/command-line/wget/wget-general
.wget general
Getting The Output Of A GET request On The Command Line (You need to put the URL and parameters inside “” if using more than 1 parameter) To show full connection information and errors too: Options used: -q turns off the output of log, including error information.-O -, equivlalent to -O /dev/stdout, means dump the web […]
AWS Command Line Interface
Amazon recomends using the pip package manager to install its awscli. However we prefer to keep things simple and have all our packages installed with one package manager APT. AWS states the awscli package is available in repositories for other package managers such as APT and yum, but it is not guaranteed to be the latest […]
Database admin
Copy Database From Remote Machine to RPi mysqldump -h [source_db_server_ip_address] -u [source_db_username] -p[source_db_password] [source_db_database_name] | mysql -h localhost -u [dest_db_username] -p[dest_db_password] [dest_db_database_name] For example: mysqldump -h 1.2.3.4 -u admin1 -pabcd mydatabase | mysql -h localhost -u admin1 -pabcd mydatabase
USB Drives
Connecting A USB Drive Finding It Note that “mydrivename” can be anything you want it to be, its the name you will use to connect to it Releasing It After Use
.Try catch error handling general
try { } catch (const std::exception& e) { }
RPi3 Model B IO Pins
Note that the schematic for the Raspberry Pi 3 Model B has not been released so we are unable to confirm if there are any changes to the specific signals used on the display and camera connectors. Changes Compared to Raspberry Pi 1 The Raspberry Pi 2 uses a new processor model so some pin additional functions […]
Create Text File
Append to text file Overwrite A Text File