mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
Generalized examples
This commit is contained in:
@@ -87,8 +87,8 @@ $ locale-gen
|
||||
$ mkinitcpio -p linux
|
||||
|
||||
# utenza personale
|
||||
$ useradd --create-home --groups wheel --user-group mek
|
||||
$ passwd mek
|
||||
$ useradd --create-home --groups wheel --user-group user
|
||||
$ passwd user
|
||||
$ visudo
|
||||
|
||||
# grub
|
||||
|
||||
@@ -131,8 +131,8 @@ emerge \
|
||||
--quiet --verbose \
|
||||
app-admin/sudo
|
||||
echo '%wheel ALL=(ALL) ALL' | tee /etc/sudoers.d/wheel
|
||||
useradd -m -G users,wheel,audio -s /bin/bash mek
|
||||
passwd mek
|
||||
useradd -m -G users,wheel,audio -s /bin/bash user
|
||||
passwd user
|
||||
passwd -l root
|
||||
|
||||
emerge \
|
||||
|
||||
@@ -27,7 +27,7 @@ emerge \
|
||||
kde-plasma/plasma-meta
|
||||
rc-update add dbus default
|
||||
rc-update add elogind default
|
||||
cat > /home/mek/.xinitrc <<EOF
|
||||
cat > /home/user/.xinitrc <<EOF
|
||||
#!/bin/sh
|
||||
exec dbus-launch --exit-with-session startplasma-wayland
|
||||
EOF
|
||||
|
||||
@@ -13,6 +13,6 @@ envsubst < input.file > output.file
|
||||
$ cat hello.file
|
||||
hello $NAME
|
||||
|
||||
$ NAME='mek' envsubst < hello.file
|
||||
hello mek
|
||||
$ NAME='Johnny' envsubst < hello.file
|
||||
hello Johnny
|
||||
```
|
||||
|
||||
@@ -25,7 +25,7 @@ PID | PPID | UID | User | Command | Service
|
||||
731 | 1 | 488 | avahi | avahi-daemon | avahi-daemon
|
||||
736 | 1 | 490 | messagebus | dbus-daemon | dbus
|
||||
…
|
||||
6260 | 1756 | 1000 | mek | kdeinit5 |
|
||||
6260 | 1756 | 1000 | user | kdeinit5 |
|
||||
|
||||
You may wish to restart these processes.
|
||||
See 'man zypper' for information about the meaning of values in the above table.
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
# SSH
|
||||
|
||||
1. [TL;DR](#tldr)
|
||||
2. [Key Management](#key-management)
|
||||
3. [Configuration](#configuration)
|
||||
1. [Key Management](#key-management)
|
||||
1. [Configuration](#configuration)
|
||||
1. [Append domains to a hostname before attempting to check if they exist](#append-domains-to-a-hostname-before-attempting-to-check-if-they-exist)
|
||||
2. [Optimize connection handling](#optimize-connection-handling)
|
||||
4. [SSHFS](#sshfs)
|
||||
1. [Optimize connection handling](#optimize-connection-handling)
|
||||
1. [SSHFS](#sshfs)
|
||||
1. [Installation](#installation)
|
||||
5. [Troubleshooting](#troubleshooting)
|
||||
1. [Troubleshooting](#troubleshooting)
|
||||
1. [No matching host key type found](#no-matching-host-key-type-found)
|
||||
6. [Further readings](#further-readings)
|
||||
7. [Sources](#sources)
|
||||
1. [Further readings](#further-readings)
|
||||
1. [Sources](#sources)
|
||||
|
||||
## TL;DR
|
||||
|
||||
@@ -90,8 +90,8 @@ ssh-keygen -R 'raspberrypi.lan' -f '.ssh/known_hosts'
|
||||
|
||||
```plaintext
|
||||
Host pi4.lan found: line 5
|
||||
/home/mek/.ssh/known_hosts updated.
|
||||
Original contents retained as /home/mek/.ssh/known_hosts.old
|
||||
/home/user/.ssh/known_hosts updated.
|
||||
Original contents retained as /home/user/.ssh/known_hosts.old
|
||||
```
|
||||
|
||||
Change password of a key file
|
||||
|
||||
@@ -4,7 +4,7 @@ sudo zypper install --no-confirm \
|
||||
boinc-client \
|
||||
boinc-manager
|
||||
|
||||
sudo usermod --append --groups boinc mek
|
||||
sudo usermod --append --groups boinc "$USER"
|
||||
|
||||
# stop computation when user active
|
||||
xhost +SI:localuser:boinc
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
: "${USER_FULL_NAME:='Mek'}"
|
||||
: "${USER_NAME:='mek'}"
|
||||
: "${USER_FULL_NAME:?'not set'}"
|
||||
: "${USER_NAME:?'not set'}"
|
||||
: "${USER_PASSWORD:?'not set'}"
|
||||
: "${USER_TYPE:='local'}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user