Using 'Music on Console' on Raspbian, with sound over HDMI.
pi@raspberrypi:~ $ sudo apt-get install mocp
Before:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -g default-terminal "screen-256color" | |
| set -g mouse on | |
| set -g base-index 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " vim config | |
| :set smartindent | |
| :syntax on | |
| :set nobackup " no backup files | |
| :set backupdir=~/tmp " backup files here to be sure | |
| :set dir=~/tmp " save vim temp files here | |
A solution to automate regular, routine, somewhat boring tasks.
Disclaimer: I am not much of a Python programmer by any means, but I have used Ansible for a number of years and using Invoke, and now runner too, has made my ansible workflow better. These are some jumbled notes to share some ideas :)
The programs I am using:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| opkg list-upgradable | awk -F ' - ' '{print $1}' | xargs opkg upgrade |
Commands for controlling the Raspberry Pi 2 LEDs.
See rpi-leds for a node module that does this.
- OK (ACT) LED =
led0 - Power (PWR) LED =
led1
Allow access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Install USBGuard to whitelist USB Devices on this host | |
| # https://usbguard.github.io/ | |
| sudo apt install usbguard -y | |
| usbguard generate-policy > rules.conf | |
| # < edit rules > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # create a privilege escalation backdoor bin | |
| # | |
| # pi@psi:~ $ /usr/local/bin/beroot │············· | |
| # # whoami │············· | |
| # root | |
| # # | |