diff --git a/README.md b/README.md index 244f8e3..16b02ca 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ git submodule update --init ### add a new page ```bash -hugo new content post/linux/jq-command.md +hugo new content posts/linux/jq-command.md ``` ### preview diff --git a/content/posts/dev-tools/vscode-extensions.md b/content/posts/dev-tools/vscode-extensions.md new file mode 100644 index 0000000..5d9c325 --- /dev/null +++ b/content/posts/dev-tools/vscode-extensions.md @@ -0,0 +1,20 @@ +--- +title: "Vscode Extensions" +date: 2023-09-25T21:27:06+08:00 +draft: true +tags: [vscode] +--- + +### 记录我的vscode使用的扩展插件 + +持续补充中 + +- vscode-icons-mac +- GitLens +- Go + +### 一些配置 + +```json +"workbench.tree.indent": 16 +``` \ No newline at end of file diff --git a/content/posts/hypervisor/virt-manager.md b/content/posts/hypervisor/virt-manager.md index 6a94c2c..5630038 100644 --- a/content/posts/hypervisor/virt-manager.md +++ b/content/posts/hypervisor/virt-manager.md @@ -31,6 +31,10 @@ UBUNTU_CODENAME=jammy sudo apt install virt-manager qemu bridge-utils -y ``` +#### 配置 `bridge` 类型网络 + +TODO + #### 修改`libvirtd`配置文件并重启 `sudo vim /etc/libvirt/qemu.conf` diff --git a/content/posts/linux/ubuntu-config.md b/content/posts/linux/ubuntu-config.md index d776357..ecf856d 100644 --- a/content/posts/linux/ubuntu-config.md +++ b/content/posts/linux/ubuntu-config.md @@ -73,4 +73,21 @@ vim ~/.zshrc ```bash ➜ ~ hugo version hugo v0.118.2+extended linux/amd64 BuildDate=unknown +``` + +### 安装 openssh-server + +```bash +sudo apt install openssh-server +``` + +sudo vim /etc/ssh/sshd_config + +```diff +- #PermitRootLogin prohibit-password ++ PermitRootLogin yes +``` + +```bash +sudo systemctl restart ssh ``` \ No newline at end of file