- http://askubuntu.com/questions/596386/visualizing-linux-gpt-partition-efi-from-windows-host
- http://lifehacker.com/how-to-dual-boot-and-virtualize-the-same-partition-on-y-493223329
set root=(hd0)
set prefix=(hd0)/boot/grub
insmod normal
| #!bin/bash | |
| # This script configures the ROS environment variables according to the route | |
| # to the ROS_MASTER. ROS_MASTER can either be defined as an evironment variable | |
| # itself or given as first argument to this script. The ROS_IP and ROS_HOSTNAME | |
| # are set according to the IP that is sitting on the route to this master. | |
| # The ROS_MASTER_URI is also set, using port 11311. ROS_MASTER needs to be defined | |
| # as a numeric IP address, not a hostname. | |
| if [ "$1" ]; then |
| # every minute check if connection is still alive and try reconnecting if it's not | |
| */1 * * * * /usr/bin/nmcli c status id STRANDS-AAF > /dev/null || /usr/bin/nmcli c up id STRANDS-AAF |
| #!/bin/bash | |
| trap stop_tunnels 1 2 3 6 15 | |
| PIDS="" | |
| SSH_LOGIN="-N -p 22222 [email protected]" | |
| FORWARDS=" | |
| -L0.0.0.0:35900:localhost:5900 |
| DISPLAY=:0 cvlc -vvv --no-audio screen:// --screen-fps 1 --sout "#transcode{vcodec=MJPG,vb=800}:standard{access=http,mux=mpjpeg,dst=:18223/}" --sout-http-mime="multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a" |
| #!/bin/sh | |
| df -H | grep -vE '^Filesystem|tmpfs|cdrom|none|udev' | awk '{ print $5 " " $1 }' | while read output; | |
| do | |
| #echo $output | |
| usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) | |
| partition=$(echo $output | awk '{ print $2 }' ) | |
| if [ $usep -ge 80 ]; then | |
| echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" | | |
| mail -s "Alert: Almost out of disk space $usep%" root | |
| fi |
| # | |
| # You will need to change these variables... | |
| # | |
| # The host name or IP address of the SSH server that we are | |
| # sending the connection request to: | |
| SERVER_HOSTNAME=harek |
set root=(hd0)
set prefix=(hd0)/boot/grub
insmod normal
On the robot install proxytunnel: sudo apt-get install proxytunnel
enter this in ~/.ssh/config:
Host lcas ProxyCommand /usr/bin/proxytunnel -p lcas.lincoln.ac.uk:443 -E -d localhost:22 Compression yes ServerAliveInterval 120 TCPKeepAlive no RemoteForward *:19273 localhost:22
| # dumping | |
| mongodump --tlsInsecure -vvvv -d ff_rasberry -c 2021_riseholme_deltalink "--uri=mongodb://[email protected]:27017/?authSource=admin&tls=true&tlsAllowInvalidCertificates=true" | |
| # restoring | |
| mongorestore --tlsInsecure -vvvv --nsInclude=ff_rasberry.2021_riseholme_deltalink "--uri=mongodb://mhanheide@localhost:8000/?authSource=admin&tls=true&tlsAllowInvalidCertificates=true" |