Skip to content

Instantly share code, notes, and snippets.

@bor8
bor8 / install_qwc2.md
Last active April 14, 2018 13:32
Install QGIS Web Client 2 on Ubuntu 16.04

Install QGIS Web Client 2 on Ubuntu 16.04

cd /opt
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
chmod +x nodesource_setup.sh
bash nodesource_setup.sh
apt install nodejs
nodejs -v
npm -v
@bor8
bor8 / chroot.sh
Last active January 3, 2019 10:57 — forked from uglide/chroot.sh
Chroot to Installed system on LVM
#!/bin/bash
fdisk -lu
pvscan
vgscan
vgchange -a y
lvscan
mount /dev/template99-vg/root /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
# pip3 install requests
import base64
import json
import requests
some_text = 'blah blub blah dings abc abc abc usw hehe hehe hehe hehe hehe hehe'
response = requests.post("https://textvis-word-cloud-v1.p.rapidapi.com/v1/textToCloud?max_words=1000",
headers={
[2020-04-22 09:30:31.592174] E [MSGID: 100009] [glusterfsd.c:800:get_volfp] 0-glusterfsd: loading volume file /var/lib/glusterd/thin-arbiter/thin-arbiter.vol failed [No such file or directory]
[2020-04-22 09:30:31.592380] E [MSGID: 100028] [glusterfsd.c:2746:glusterfs_volumes_init] 0-glusterfsd: Cannot reach volume specification file
[2020-04-22 09:30:31.841355] I [MSGID: 100030] [glusterfsd.c:2867:main] 0-/usr/sbin/glusterfsd: Started running /usr/sbin/glusterfsd version 7.5 (args: /usr/sbin/glusterfsd -N --volfile-id ta -f /var/lib/glusterd/thin-arbiter/thin-arbiter.vol --brick-port 24007 --xlator-option ta-server.transport.socket.listen-port=24007)
[2020-04-22 09:30:31.841457] I [glusterfsd.c:2594:daemonize] 0-glusterfs: Pid of current running process is 25897
[2020-04-22 09:30:31.842262] E [MSGID: 100009] [glusterfsd.c:800:get_volfp] 0-glusterfsd: loading volume file /var/lib/glusterd/thin-arbiter/thin-arbiter.vol failed [No such file or directory]
[2020-04-22 09:30:31.842494] E [MSGID: 100028] [glusterfs