- Plug in your SD card, HDD, or other block device and then use the following command to see which /dev/diskN node it's located on:
diskutil list- Unmount the disk where “N� is the number of the disk taken from the above command:
| #include <iostream> | |
| #include <string> | |
| #include <curl/curl.h> | |
| static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) | |
| { | |
| ((std::string*)userp)->append((char*)contents, size * nmemb); | |
| return size * nmemb; | |
| } |
| #!/bin/sh | |
| sudo apt-get update | |
| sudo apt-get -y upgrade | |
| sudo dpkg-reconfigure tzdata | |
| sudo apt-get -y install console-data locales | |
| sudo dpkg-reconfigure console-data | |
| sudo dpkg-reconfigure locales |