make sure you ssh into the correct IP address (not hostname)
Resize Partition
df -h
fdisk /dev/mmcblk0
# options p (note start of partition 2) d 2 n p 2 (enter start value, default end) w
reboot
resize2fs /dev/mmcblk0p2
| // calling multiple promises | |
| exports.addNewProfile = function(token, auth, body, callback) { | |
| var beacon | |
| checkNewToken(token).then(function() { | |
| return checkAuthPresent(auth) | |
| }).then(function() { | |
| console.log('UN: '+auth.basic.username) | |
| return checkUniqueEmail(auth.basic.username) |
| Process: Xcode [999] | |
| Path: /Applications/Xcode-beta.app/Contents/MacOS/Xcode | |
| Identifier: com.apple.dt.Xcode | |
| Version: 7.0 (8208.9) | |
| Build Info: IDEFrameworks-8208009000000000~2 | |
| Code Type: X86-64 (Native) | |
| Parent Process: ??? [1] | |
| Responsible: Xcode [999] | |
| User ID: 501 |
| add-apt-repository ppa:webupd8team/atom | |
| Disabling keys on keyboard: | |
| http://ubuntuforums.org/showthread.php?t=1798947 | |
| xev to find out key codes, then create a .Xmodmap file in home directory. |
| import UIKit | |
| import CoreBluetooth | |
| class ViewController: UIViewController, CBCentralManagerDelegate, CBPeripheralManagerDelegate { | |
| var centralManager:CBCentralManager! | |
| var peripheralManager:CBPeripheralManager = CBPeripheralManager() | |
| let uuid:CBUUID = CBUUID(string: "DCEF54A2-31EB-467F-AF8E-350FB641C97B") |
| # use base image of minibian (mac install) | |
| wget https://sourceforge.net/projects/minibian/files/2016-03-12-jessie-minibian.tar.gz/download | |
| diskutil list | |
| diskutil unmountDisk /dev/disk4 | |
| sudo dd bs=1m if=2016-03-12-jessie-minibian.img of=/dev/disk4 | |
| # make sure you ssh into the correct IP address (not hostname) | |
| Resize Partition | |
| df -h | |
| fdisk /dev/mmcblk0 |
make sure you ssh into the correct IP address (not hostname)
Resize Partition
df -h
fdisk /dev/mmcblk0
# options p (note start of partition 2) d 2 n p 2 (enter start value, default end) w
reboot
resize2fs /dev/mmcblk0p2
| set -v | |
| echo "startup-script.sh has run" >> working.txt | |
| apt-get update | |
| apt-get install -yq ca-certificates git nodejs build-essential supervisor | |
| curl https://nodejs.org/dist/v5.9.1/node-v5.9.1-linux-x64.tar.gz | tar xvzf - -C /opt/nodejs --strip-components=1 | |
| ln -s /opt/nodejs/bin/node /usr/bin/node |
https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/downloads.html
Download and extract Yagarto into Applications directory on Mac
$ export PATH="$PATH:/Applications/yagarto-4.7.2/bin" $ export PATH="$PATH:/Applications/yagarto-4.7.2/tools"
Install tools on the Raspberry Pi.
sudo apt-get install -y gcc gdb
Configure Editor, install colour syntax highlighting.
| # setting up latest version of python on Ubuntu. | |
| # following line needed if not running 16.10+ | |
| sudo add-apt-repository ppa:jonathonf/python-3.6 | |
| sudo apt-get update | |
| sudo apt-get install python3.6 python3-pip | |
| nano ~/.bashrc | |
| # add the folling line to the end of ~/.bashrc |