update articles

This commit is contained in:
2021-05-01 02:19:10 +09:00
parent 051caa7790
commit 42c316a1fa
6 changed files with 54 additions and 30 deletions

View File

@@ -6,7 +6,17 @@ redirect_from: "/blog/2017/06/16/x11forward"
![x11-plot.png](/uploads/x11-plot.png)
## Ubuntu 16.04
# Installation
## Remote
### Arch Linux
```bash
pacman -S xorg-xauth xorg-fonts-100dpi xorg-xeyes
```
### Ubuntu 16.04
Make sure you have installed SSH, X11 and xAuth on a remote server.
@@ -16,12 +26,12 @@ sudo sed -i '/ForwardX11/s/.*/ForwardX11 yes/' /etc/ssh/sshd_config
sudo service ssh restart
```
## macOS Sierra
## Client (macOS Big Sur)
You also need to have X11 on your local machine.
```
brew cask install xquartz # install X11
brew install xquartz # install X11
ssh -X <remote>
$ xeyes # verify you have X11
```

View File

@@ -381,6 +381,9 @@ systemctl enable --now cfddns
```bash
pacman -S smartmontools
systemctl enable --now smartd
smartctl -t short /dev/sdc
smartctl -l selftest /dev/sdc
```
## backup
@@ -455,12 +458,17 @@ borg create $BORG_OPTS \
--exclude /var/lib/docker/devicemapper \
--exclude 'sh:/home/*/.cache' \
--exclude 'sh:/home/*/.cargo' \
--exclude 'sh:/home/*/.pyenv' \
--exclude 'sh:/home/*/.vscode-server' \
--exclude 'sh:/home/*/.local/share/TabNine' \
--one-file-system \
$TARGET::'{hostname}-system-{now}' \
/ /boot
echo "# data"
borg create $BORG_OPTS \
--exclude 'sh:/mnt/data/nextcloud/appdata_*/preview' \
--exclude 'sh:/mnt/data/nextcloud/appdata_*/dav-photocache' \
$TARGET::'{hostname}-data-{now}' \
/mnt/data /mnt/ftl