Creates a /boot/grml folder.
sudo mkdir -p /boot/gmrl
sudo nemo /boot/gmrl
# copy bootable iso to grml
sudo apt-get install grml-rescueboot
sudo update-grub
CREATE FOLDER TO SHARE AND ADD PERMISSIONS
cd ~/Documents
mkdir sambaPublicShare
chmod 777 sambaPublicShare
INSTALL SAMBA
sudo apt-get install samba
#!/bin/bash | |
echo "install tftp and dhcp server" | |
sudo apt install isc-dhcp-server tftpd-hpa samba cifs-utils samba-client -y | |
sudo systemctl start isc-dhcp-server | |
sudo systemctl enable isc-dhcp-server | |
sudo systemctl start tftpd-hpa |
configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
# location ~/.TeXworks/configuration/syntax-patterns.txt | |
# TeXworks: Patterns for syntax coloring | |
# Each entry consists of three whitespace-separated fields: | |
# <style> <spell?> <regex> | |
# <style> is a combination of color and style flags | |
# Valid syntax: | |
# <fgcolor> | |
# <fgcolor>/<bgcolor> |
Thought I should post my guide on how to do this, as I've struggled with this for quite some time now. I wanted something to bypass the NAT/router as I did not have the option of port-forwarding. I will also be moving quite some in the upcoming year, so dynamic IP was almost a given. And obviously I wanted it to be cheap. This does it all.
This is free, no port-forwarding required and no static IP required. Wildcard domain and SSL certificate supported. It works with Cloudflare tunnels, Cloudflare DNS, Nginx Proxy Manager and obviously TrueNAS SCALE.
I am not a professional, if you see a flaw in this design, please let me know!