Skip to content

Commit

Permalink
feat: add vps.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hotchilipowder committed Aug 4, 2024
1 parent 9a97245 commit c413e96
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/docs/git.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,34 @@ Github Save username and password
Github CheatSheet
-----------------

.. list-table:: Title
:widths: 50 25 25
:header-rows: 1

* - Command
- Meaning
- Note
* - \ :code:`git config --global core.editor "vim"`\
- 修改编辑器
-
* - Row 2, column 1
- Row 2, column 2
- Row 2, column 3

.. tabs::

.. tab:: MacOS

MacOS

.. tab:: Linux

Linux

.. tab:: Windows

Windows

25 changes: 25 additions & 0 deletions docs/docs/vps.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,28 @@
up ip -6 route add default via 2403:71c0:2000:0000:0000:0000:0000:0001
```

### Local Machine

对于Ubuntu, 设置网络的方式和Debian有所区别。

```bash
network:
ethernets:
enp10s0:
dhcp4: true
addresses:
- 192.168.123.x1/24
nameservers:
addresses:
- 1.1.1.1
- 192.168.123.x2
search: []
routes:
- to: default
via: 192.168.123.x2
version: 2
wifis: {}
```

```

0 comments on commit c413e96

Please sign in to comment.