Skip to content

Instantly share code, notes, and snippets.

seffyroff

Block or report user

Report or block seffyroff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Ubuntu 18.04, DBUS Fix Instructions with Troubleshooting
Ubuntu 18.04, DBUS Fix Instructions with Troubleshooting
After asking if there were updated instructions, and promising to write it up if I could figure it out...https://www.reddit.com/r/bashonubuntuonwindows/comments/9l46br/asking_wsl_ubuntu_1804_dbus_fix_updated/
From a truly clean 18.04.1 install it should be this:
sudo apt install dbus-x11
sudo systemd-machine-id-setup
@seffyroff
seffyroff / Run Visual Studio Code for Linux from WSL.md
Created Nov 15, 2018 — forked from fedme/Run Visual Studio Code for Linux from WSL.md
Run Visual Studio Code for Linux from WSL on Windows 10
View Run Visual Studio Code for Linux from WSL.md

Run Visual Studio Code for Linux from WSL

Thanks a lot to mredbishop and others for their insturctions posted here. This is just a recap of what they figured out.

This process was tested on WSL Ubuntu 18.04.

Install VcXsrv on Windows

  1. Dowload the VcXsrv installer from https://sourceforge.net/projects/vcxsrv/
  2. Install the software on Windows

Add VS Code repositories

View 2018-11-08_21-43-15.txt
seffyroff@maasvm:~$ sudo ./lxd-p2c rombus.lan maas / --rsync-args="-vvv --exclude=/var/cache"
Generating a temporary client certificate. This may take a minute...
Certificate fingerprint: b8b5087b293d2e4891fddb416e390b31c5ae3b16c22de192779e5751520bb2b6
ok (y/n)? y
Admin password for https://rombus.lan:8443:
opening connection using: sh -c "/home/seffyroff/lxd-p2c netcat @lxd-p2c/bfba53aa-d314-4d52-87d2-6f21e3e5a3fb" localhost rsync --server -vvvlogDtpXrSze.iLsfxC --compress-level=2 --delete --partial --numeric-ids . /tmp/foo (13 args)
sending incremental file list
[sender] make_file(rootfs,*,0)
send_file_list done
[sender] pushing local filters for /tmp/lxd-p2c_mount_728675622/rootfs/
View update-juju-unit-hostnames.py
#!/usr/bin/env python
"""
This script will update all the juju units using
the hostname defined on the provided dns server
Usage:
{0} ip-of-maas-dns-server
"""
View profile.lxd-super-privileged.yaml
config:
boot.autostart: "true"
linux.kernel_modules: openvswitch,nbd,ip_tables,ip6_tables,kvm
raw.apparmor: mount,
raw.lxc: |-
lxc.cgroup.devices.allow = c 10:237 rwm
lxc.cgroup.devices.allow = b 7:* rwm
lxc.cgroup.devices.allow = b 259:* rwm
lxc.cgroup.devices.allow = b 230:* rw
security.nesting: "true"
View setup-lxd-profile.sh
#!/bin/bash
set -eu
_UID=$(id -u)
GID=$(id -g)
# give lxd permission to map your user/group id through
grep root:$_UID:1 /etc/subuid -qs || sudo usermod --add-subuids ${_UID}-${_UID} --add-subgids ${GID}-${GID} root
# set up a separate key to make sure we can log in automatically via ssh
# with $HOME mounted
View netboot.xyz-edgerouter.md

Setting up netboot.xyz with an EdgeRouter

This document covers how to setup netboot.xyz, a service that provides iPXE-based installation and live boot of a bunch of operating systems, on a Ubiquiti EdgeRouter.

Assumptions

I've made a few assumptions throughout this document that will probably be different for your setup:

View stdout
consul-dev_consul.1.tlhacl3b4dst@rombus | ==> Found address '10.0.2.80' for interface 'eth0', setting bind option...
consul-dev_consul.1.tlhacl3b4dst@rombus | ==> Found address '172.18.0.7' for interface 'eth1', setting client option...
consul-dev_consul.1.tlhacl3b4dst@rombus | bootstrap = true: do not enable unless necessary
consul-dev_consul.1.tlhacl3b4dst@rombus | ==> Starting Consul agent...
consul-dev_consul.1.tlhacl3b4dst@rombus | ==> Consul agent running!
consul-dev_consul.1.tlhacl3b4dst@rombus | Version: 'v1.0.3'
consul-dev_consul.1.tlhacl3b4dst@rombus | Node ID: 'd26442fe-82f2-2aaf-b24a-bdca60130bb1'
consul-dev_consul.1.tlhacl3b4dst@rombus | Node name: 'ff1d4c0dfb73'
consul-dev_consul.1.tlhacl3b4dst@rombus | Datacenter: 'dc1' (Segment: '<all>')
consul-dev_consul.1.tlhacl3b4dst@rombus | Server: true (Bootstrap: true)
@seffyroff
seffyroff / grav.log
Created Jan 10, 2018
Grav log output for newsfeed error on admin plugin
View grav.log
[2018-01-10 19:30:42] grav.CRITICAL: Call to undefined function ZendXml\simplexml_import_dom() - Trace: #0 /srv/src/user/plugins/admin/vendor/fguillot/picofeed/lib/PicoFeed/Parser/XmlParser.php(68): ZendXml\Security::scan('<feed xmlns="ht...', Object(DOMDocument)) #1 /srv/src/user/plugins/admin/vendor/fguillot/picofeed/lib/PicoFeed/Parser/XmlParser.php(29): PicoFeed\Parser\XmlParser::scan('<feed xmlns="ht...') #2 /srv/src/user/plugins/admin/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Parser.php(113): PicoFeed\Parser\XmlParser::getSimpleXml('<feed xmlns="ht...') #3 /srv/src/user/plugins/admin/classes/admin.php(1468): PicoFeed\Parser\Parser->execute() #4 /srv/src/user/plugins/admin/classes/admincontroller.php(765): Grav\Plugin\Admin\Admin->getFeed() #5 [internal function]: Grav\Plugin\Admin\AdminController->taskGetNewsFeed() #6 /srv/src/user/plugins/admin/classes/adminbasecontroller.php(104): call_user_func(Array) #7 /srv/src/user/plugins/admin/admin.php(346): Grav\Plugin\Admin\AdminBaseController->execute() #
You can’t perform that action at this time.