1
0
mirror of /repos/dotTiddlywiki.git synced 2025-12-30 07:31:33 +01:00
This commit is contained in:
Aiko Mastboom 2015-06-14 12:56:19 +02:00
parent 9b16fd944d
commit 34436b913e
8 changed files with 123 additions and 4 deletions

View File

@ -1,6 +1,6 @@
created: 20150504175318574
creator: user
modified: 20150505160831843
modified: 20150514144328942
modifier: user
tags: mqtt
title: Mosquitto
@ -50,4 +50,6 @@ apt-get install mosquitto mosquitto-clients
;MQTT Security Fundamentals Part 3: Advanced Authentication Mechanisms
:http://www.hivemq.com/mqtt-security-fundamentals-advanced-authentication-mechanisms/
;MQTT Security Fundamentals Part 4: Authorization
:http://www.hivemq.com/mqtt-security-fundamentals-authorization/
:http://www.hivemq.com/mqtt-security-fundamentals-authorization/
;MQTT Security Fundamentals Part 5: TLS / SSL
:http://www.hivemq.com/mqtt-security-fundamentals-tls-ssl/

View File

@ -1,6 +1,6 @@
created: 20150429212131561
creator: user
modified: 20150510060246163
modified: 20150513183026595
modifier: user
tags: [[raspberry pi]] node-red
title: Node-RED
@ -100,7 +100,12 @@ touch /usr/share/doc/python-rpi.gpio
docker run -i -t --cap-add=SYS_RAWIO --device /dev/ttyAMA0:/dev/ttyAMA0 --device /dev/ttyACM0:/dev/ttyACM0 --device /dev/mem:/dev/mem --add-host node1.aiko.sh:192.168.59.103 --add-host node2.aiko.sh:192.168.63.103 -p 1880:1880 aiko/node-red-pi bash
# prototyper.local
docker run --hostname node-red --cap-add=SYS_RAWIO --device /dev/ttyAMA0:/dev/ttyAMA0 --device /dev/mem:/dev/mem --add-host node1.aiko.sh:192.168.2.1 -p 1880:1880 -p 1822:22 -v /home/pi/data/red:/data --name node-red -d aiko/node-red-pi
# raspberrypiko.local
docker run --hostname raspberrypiko --cap-add=SYS_RAWIO --device /dev/ttyAMA0:/dev/ttyAMA0 --device /dev/mem:/dev/mem -p 1880:1880 -p 1822:22 -v /home/pi/data/red:/data --name node-red -d aiko/node-red-pi
(pro)20150510-2229 aiko@aiko-pro:~/Development/node-red-data
$ docker stop node1 ; docker rm node1 ; docker run --add-host prototyper.local:192.168.2.3 --add-host node1.aiko.sh:192.168.59.103 --add-host node2.aiko.sh:192.168.63.103 --hostname="node1" --name="node1" -p 1880:1880 -v ${PWD}:/data -d aiko/node-red:0.10.6 ; docker logs -f node1
```

View File

@ -0,0 +1,15 @@
created: 20150514063532944
creator: user
modified: 20150514063719345
modifier: user
tags:
title: apt-get proxy
type: text/vnd.tiddlywiki
* http://askubuntu.com/questions/109673/how-to-use-apt-get-via-http-proxy-like-this
To use apt-get through a proxy, either make a file in /etc/apt/apt.conf.d/ called proxy or something that you'll recognise, or make (if it doesn't exist) /etc/apt/apt.conf and insert the following line:
```
Acquire::http::Proxy "http://username:password@proxy.server:port/";
```

View File

@ -0,0 +1,12 @@
created: 20150516110118104
creator: user
modified: 20150516164520378
modifier: user
tags:
title: dotfiles
type: text/vnd.tiddlywiki
;Your unofficial guide to dotfiles on ~GitHub.
:https://dotfiles.github.io
;z - jump around
:https://github.com/rupa/z

View File

@ -0,0 +1,17 @@
created: 20150514064554375
creator: user
modified: 20150514144338190
modifier: user
tags: mqtt [[raspberry pi]]
title: mosquitto pi
type: text/vnd.tiddlywiki
```
git clone ssh://aiko@nas.aiko.sh/volume1/homes/aiko/repos/mqtt-broker-docker-image.git
git checkout pi
make build
```
```
docker run -p 1883:1883 --restart=on-failure:8 --name mqtt -d aiko/mosquitto:0.15-2
```

View File

@ -0,0 +1,10 @@
created: 20150612121230530
creator: user
modified: 20150612121322303
modifier: user
tags:
title: project factory
type: text/vnd.tiddlywiki
;Yeoman helps you to kickstart new projects, prescribing best practices and tools to help you stay productive.
:http://yeoman.io

View File

@ -0,0 +1,13 @@
created: 20150517051950248
creator: user
modified: 20150517152001652
modifier: user
tags:
title: to purge
type: text/vnd.tiddlywiki
```bash
sudo rm -rf /var/lib/man-db /var/lib/update-notifier
sudo apt-get -y purge apt-xapian-index man-db update-notifier-common
sudo apt-get -y autoremove
```

View File

@ -0,0 +1,45 @@
created: 20150511071117085
creator: user
modified: 20150511071606097
modifier: user
tags:
title: use usb stick with docker
type: text/vnd.tiddlywiki
```bash
mke2fs -T ext4 -L docker -v /dev/sda
```
$ cat /etc/default/docker
```sh
# Docker Upstart and SysVinit configuration file
# Customize location of Docker binary (especially for development testing).
#DOCKER="/usr/local/bin/docker"
# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
DOCKER_OPTS="--storage-driver=overlay -D --graph=/mnt/usb/docker"
#DOCKER_OPTS="--storage-driver=overlay -D"
# If you need Docker to use an HTTP proxy, it can also be specified here.
export http_proxy="http://192.168.2.1:3128/"
# This is also a handy place to tweak where Docker's temporary files go.
#export TMPDIR="/mnt/bigdrive/docker-tmp"
export TMPDIR="/mnt/usb/docker-tmp"
```
```bash
mkdir -p /mnt/usb/docker /mnt/usb/docker-tmp
```
$ ls -lathr /dev/disk/by-uuid/
```
$ cat /etc/fstab
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 0
UUID=16e0972d-6abf-4369-be0e-5fd2e10a070a /mnt/usb ext4 defaults,noatime 0 0
```