Initial set of documents for home

This commit is contained in:
2022-04-27 21:32:11 -04:00
parent c1fd962603
commit d97b1a1c76
10 changed files with 1586 additions and 2 deletions

50
docs/labdocs/rclone.md Normal file
View File

@@ -0,0 +1,50 @@
# Setup RClone on Proxmox
## Create CT
- Create the CT
- Using Ubuntu
- Small HDD space, just mounting
- 2 CPUs
- 1024 MB of memory
- Edit `/etc/pve/nodes/proxmox/lxc<id>.conf` and add the following lines
- `lxc.cgroup.devices.allow: c 10:200 rwm`
- `lxc.mount.entry: /dev/net dev/net none bind,create=dir`
## Basic Setup
- `apt update && apt upgrade -y`
- `adduser <name>`
- `usermod -aG sudo <name>`
- Now you can SSH in
## Setup Network
### SMB Mount
- `sudo apt install vim cifs-utils openvpn`
- Modify `/etc/fstab` with the following line
- `//<ip>/<path> /<localpath> cifs uid=<name>,credentials=/etc/smbcreds,iocharset=utf8,vers=3.0,ro 0 0`
- Create `/etc/smbcreds`
- ```
username=<user>
password=<password>
domain=WORKGROUP
```
- Test with `sudo mount -a`
- Reboot to test
### OpenVPN Config
- Copy config to `/etc/openvpn/client/<name>.conf`
- Edit the conf file to use DNS name instead of IP
- Test with `sudo openvpn /etc/openvpn/client/<name>.conf`
- If it works run `sudo systemctl start openvpn-client@<name>`
- If that works run `sudo systemctl enable openvpn-client@<name>`
- Reboot to test
## Setup rclone
- `sudo apt install rclone`
- `rclone config` (see attached for my current config)