Below, certificates and keys will be created for TLS. Then the misquitto configuration will be edited. Your server will run on localhost:8883 afterwards not localhost:1883.
mkdir /etc/mosquitto/certs
set incsearch hlsearch | |
set number relativenumber | |
set cursorline | |
set nowrap | |
set tabstop=4 shiftwidth=4 noexpandtab | |
set colorcolumn=81 | |
syntax on | |
filetype indent on |
#!/bin/bash | |
function run { | |
if ! pgrep $1 ; | |
then | |
$@& | |
fi | |
} | |
#run compton -CGb -r 0 -l 0 -t 0 --blur-background-fixed |
# These settings were set by the catalyst build script that automatically | |
# built this stage. | |
# Please consult /usr/share/portage/config/make.conf.example for a more | |
# detailed example. | |
COMMON_FLAGS="-march=native -O2 -pipe -fomit-frame-pointer" | |
CFLAGS="${COMMON_FLAGS} -flto" | |
CXXFLAGS="${COMMON_FLAGS} -flto" | |
FCFLAGS="${COMMON_FLAGS}" | |
FFLAGS="${COMMON_FLAGS}" | |
LDFLAGS="-Wl,-O2 -Wl,--as-needed -flto" |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
! xft | |
Xft*antialias: true | |
Xft*rgba: rgba | |
Xft*hinting: true | |
Xft*hintstyle: hintfull | |
! rxvt-unicode | |
URxvt*saveLines: 1000 | |
URxvt*internalBorder: 3 | |
URxvt*lineSpace: 0 |
#!/usr/bin/env bash | |
sysctl -w net.ipv4.ip_forward=1 | |
# Has network (here: a OpenVPN tunnel) | |
INTERNET=tun0 | |
# wants network (here: LAN-port) | |
WANTS_NET=enp0s25 | |
NEW_IP=192.168.2.20 | |
ip link set up dev $WANTS_NET |
CC="clang" | |
CXX="clang++" | |
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" | |
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" | |
LDFLAGS="-Wl,-O2 -Wl,--as-needed" |
### This is a YAML representation of the profile. | |
### Any line starting with a '# will be ignored. | |
### | |
### A profile consists of a set of configuration items followed by a set of | |
### devices. | |
### | |
### An example would look like: | |
### name: onenic | |
### config: | |
### raw.lxc: lxc.aa_profile=unconfined |
#!/usr/bin/env bash | |
echo "Generating initramfs source structure" | |
cd /usr/src/initramfs && rm -r * | |
mkdir -p {bin,dev/mapper,etc,lib,lib64,mnt/root,proc,root,sbin,sys,run} | |
cp --archive /dev/{null,console,tty} dev | |
# Required executables | |
cp \ | |
/bin/busybox \ | |
bin/ |