diff --git a/content/notes/linux_utils.md b/content/notes/linux_utils.md index 63014d4..907f8c5 100644 --- a/content/notes/linux_utils.md +++ b/content/notes/linux_utils.md @@ -108,6 +108,33 @@ tar -xzf yourfile.tar.gz ``` ### sync two dirs -``` +```bash unison /path/to/dir/one /path/to/dir/two -``` \ No newline at end of file +``` + +### useradd +```bash +useradd -m -s /bin/bash username +userdel -r username +``` + +### ssh disable password +https://askubuntu.com/questions/1516262/why-is-50-cloud-init-conf-created + +```bash +#/etc/ssh/sshd_config.d/00-only-pubkey-auth.conf +PasswordAuthentication no +ChallengeResponseAuthentication no +UsePam no +``` + +### Network speed monitor +```bash +slurm +``` + +### Pull submodules +```bash +git submodule update --init +``` + diff --git a/content/notes/server/Containers.md b/content/notes/server/Containers.md index ddefd62..74f5882 100644 --- a/content/notes/server/Containers.md +++ b/content/notes/server/Containers.md @@ -59,5 +59,3 @@ Restart=always WantedBy=default.target ``` -## CALENDAR -