Files
home-docs/docs/labdocs/rclone.md

51 lines
1.2 KiB
Markdown

# 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)