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
<policy domain="coder" rights="read | write" pattern="PDF" /> | |
ust before </policymap> in /etc/ImageMagick-7/policy.xml and that makes it work again, but not sure about the security implications of that. | |
<policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" /> |
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
# Try to Normal | |
xrandr -o normal | |
sudo systemctl stop iio-sensor-proxy.service | |
sudo systemctl disable iio-sensor-proxy.service | |
# Try this command to remove |
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/sh | |
# ForceCommand /root/ssh-wrapper in /etc/ssh/sshd_config | |
# add logger options when needed | |
log="logger -t ssh-wrapper" | |
# find IP address | |
ip=`echo $SSH_CONNECTION | cut -d " " -f 1` | |
$log $USER login from $ip | |
espeak "$USER just logged in from $ip" > /dev/null 2>&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
#!/usr/bin/env python | |
# bouroo<[email protected]> | |
# 07.04.2019 | |
# sudo apt-get -y install pcscd python-pyscard python-pil | |
import binascii | |
import io | |
import os | |
import sys | |
from PIL import Image |
This is a writeup about how to install Ubuntu 16.04.1 Xenial Xerus for the 32-bit hard-float ARMv7 (armhf) architecture on a Qemu VM via Ubuntu netboot.
The setup will create a Ubuntu VM with LPAE extensions (generic-lpae) enabled. However, this writeup should also work for non-LPAE (generic) kernels.
The performance of the resulting VM is quite good, and it allows VMs with >1G ram (compared to 256M on versatilepb
and 1G on versatile-a9
/versatile-a15
). It also supports virtio
disks whereas versatile-a9
/versatile-a15
only support SD cards via the -sd
argument.
The motivation is: reverse ssh to remote computer, the only thing needed is that the remote is connected to the Internet.
- On 18.04 or older remote, get tmate, put it in /usr/local/bin (20.04 is 2.4.0 but has issues /w -F [tmate-io/tmate#204]):
curl -L https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz|tar xJv
sudo mv tmate-2.4.0-static-linux-amd/tmate /usr/local/bin
- Put public keys in ~/.ssh/authorized_keys