Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
1. Edit the mirror list located at /etc/pacman.d/mirrorlist and uncomment a preferred mirror (preferrably closest to you) | |
2. Initialize Pacman GPG Keys | |
- $> pacman-key --init | |
- $> pacman-key --populate archlinux | |
- $> pacman-key --refresh-keys -u --keyserver hkps.pool.sks-keyservers.net | |
*The use of the --keyserver flag is due to an error that currently occurs when using the default keyserver | |
3. Reinstall Arch keyring | |
- $> pacman -S archlinux-keyring | |
4. Install Yay (if desired) | |
- Create a user (you cannot run makepkg as root, you must be signed in as a user) |
GRANT ALL PRIVILEGES ON *.* TO 'toor'@'10.x.x.x' IDENTIFIED BY 'xxxxxpassword' WITH GRANT OPTION; | |
flush privileges; |
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
FROM openjdk:11-jre-slim | |
EXPOSE 8080 | |
ENV TZ=Europe/Moscow | |
RUN adduser --system --group --home /opt/app appuser | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends curl jq \ |
解决 Mac Os X 升级之后出现 LC_CTYPE 警告问题 Mac 升级到 10.14 之后,登录远程 linux 服务器会出现如下错误:
warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
由于 mac ssh 连接的时候传递了 LANG 环境变量,此变量与服务器变量不一致,导致该问题发生。
解决方法,取消传递 LANG 环境变量:
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strconv" | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" | |
"github.com/labstack/echo" |
This is a minimal installation guide targeted to get Arch Linux running on Vultr. For simplicity, 'time zone', 'hostname', 'locale' and 'initramfs' are omited, you can configure them latter by yourself.
For simplicity, we use single root partition.
# fdisk /dev/vda