Gharke
7 months ago
14 changed files with 567 additions and 149 deletions
@ -0,0 +1,30 @@ |
|||||||
|
{ |
||||||
|
"file-explorer": true, |
||||||
|
"global-search": true, |
||||||
|
"switcher": true, |
||||||
|
"graph": true, |
||||||
|
"backlink": true, |
||||||
|
"canvas": true, |
||||||
|
"outgoing-link": true, |
||||||
|
"tag-pane": true, |
||||||
|
"properties": false, |
||||||
|
"page-preview": true, |
||||||
|
"daily-notes": true, |
||||||
|
"templates": true, |
||||||
|
"note-composer": true, |
||||||
|
"command-palette": true, |
||||||
|
"slash-command": false, |
||||||
|
"editor-status": true, |
||||||
|
"bookmarks": true, |
||||||
|
"markdown-importer": false, |
||||||
|
"zk-prefixer": false, |
||||||
|
"random-note": false, |
||||||
|
"outline": true, |
||||||
|
"word-count": true, |
||||||
|
"slides": false, |
||||||
|
"audio-recorder": false, |
||||||
|
"workspaces": false, |
||||||
|
"file-recovery": true, |
||||||
|
"publish": false, |
||||||
|
"sync": false |
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
[ |
||||||
|
"file-explorer", |
||||||
|
"global-search", |
||||||
|
"switcher", |
||||||
|
"graph", |
||||||
|
"backlink", |
||||||
|
"canvas", |
||||||
|
"outgoing-link", |
||||||
|
"tag-pane", |
||||||
|
"page-preview", |
||||||
|
"daily-notes", |
||||||
|
"templates", |
||||||
|
"note-composer", |
||||||
|
"command-palette", |
||||||
|
"editor-status", |
||||||
|
"bookmarks", |
||||||
|
"outline", |
||||||
|
"word-count", |
||||||
|
"file-recovery" |
||||||
|
] |
@ -0,0 +1,160 @@ |
|||||||
|
{ |
||||||
|
"main": { |
||||||
|
"id": "c25544db87a8a7c0", |
||||||
|
"type": "split", |
||||||
|
"children": [ |
||||||
|
{ |
||||||
|
"id": "1b2d65b5a78a5614", |
||||||
|
"type": "tabs", |
||||||
|
"children": [ |
||||||
|
{ |
||||||
|
"id": "5d2a67ec854cad2d", |
||||||
|
"type": "leaf", |
||||||
|
"state": { |
||||||
|
"type": "empty", |
||||||
|
"state": {} |
||||||
|
} |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
], |
||||||
|
"direction": "vertical" |
||||||
|
}, |
||||||
|
"left": { |
||||||
|
"id": "32906295cceee2a6", |
||||||
|
"type": "split", |
||||||
|
"children": [ |
||||||
|
{ |
||||||
|
"id": "1eb5274bb2a6aa60", |
||||||
|
"type": "tabs", |
||||||
|
"children": [ |
||||||
|
{ |
||||||
|
"id": "361dbb7b2261d3c5", |
||||||
|
"type": "leaf", |
||||||
|
"state": { |
||||||
|
"type": "file-explorer", |
||||||
|
"state": { |
||||||
|
"sortOrder": "alphabetical" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": "29ed2969d0abc83f", |
||||||
|
"type": "leaf", |
||||||
|
"state": { |
||||||
|
"type": "search", |
||||||
|
"state": { |
||||||
|
"query": "", |
||||||
|
"matchingCase": false, |
||||||
|
"explainSearch": false, |
||||||
|
"collapseAll": false, |
||||||
|
"extraContext": false, |
||||||
|
"sortOrder": "alphabetical" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": "81799efee2f3eb2b", |
||||||
|
"type": "leaf", |
||||||
|
"state": { |
||||||
|
"type": "bookmarks", |
||||||
|
"state": {} |
||||||
|
} |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
], |
||||||
|
"direction": "horizontal", |
||||||
|
"width": 300 |
||||||
|
}, |
||||||
|
"right": { |
||||||
|
"id": "10e5d151cc735035", |
||||||
|
"type": "split", |
||||||
|
"children": [ |
||||||
|
{ |
||||||
|
"id": "c1ff032b3010bcb5", |
||||||
|
"type": "tabs", |
||||||
|
"children": [ |
||||||
|
{ |
||||||
|
"id": "6e82f906bf19d638", |
||||||
|
"type": "leaf", |
||||||
|
"state": { |
||||||
|
"type": "backlink", |
||||||
|
"state": { |
||||||
|
"collapseAll": false, |
||||||
|
"extraContext": false, |
||||||
|
"sortOrder": "alphabetical", |
||||||
|
"showSearch": false, |
||||||
|
"searchQuery": "", |
||||||
|
"backlinkCollapsed": false, |
||||||
|
"unlinkedCollapsed": true |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": "e7c74e549dffa78e", |
||||||
|
"type": "leaf", |
||||||
|
"state": { |
||||||
|
"type": "outgoing-link", |
||||||
|
"state": { |
||||||
|
"linksCollapsed": false, |
||||||
|
"unlinkedCollapsed": true |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": "8e17d49678bad978", |
||||||
|
"type": "leaf", |
||||||
|
"state": { |
||||||
|
"type": "tag", |
||||||
|
"state": { |
||||||
|
"sortOrder": "frequency", |
||||||
|
"useHierarchy": true |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": "e46494571e0d3029", |
||||||
|
"type": "leaf", |
||||||
|
"state": { |
||||||
|
"type": "outline", |
||||||
|
"state": {} |
||||||
|
} |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
], |
||||||
|
"direction": "horizontal", |
||||||
|
"width": 300, |
||||||
|
"collapsed": true |
||||||
|
}, |
||||||
|
"left-ribbon": { |
||||||
|
"hiddenItems": { |
||||||
|
"switcher:Open quick switcher": false, |
||||||
|
"graph:Open graph view": false, |
||||||
|
"canvas:Create new canvas": false, |
||||||
|
"daily-notes:Open today's daily note": false, |
||||||
|
"templates:Insert template": false, |
||||||
|
"command-palette:Open command palette": false |
||||||
|
} |
||||||
|
}, |
||||||
|
"active": "5d2a67ec854cad2d", |
||||||
|
"lastOpenFiles": [ |
||||||
|
"Generative AI/How to Run LLama3 Locally with Ollama and OpenwebUI.md", |
||||||
|
"Docker/docker.md", |
||||||
|
"Linux/linux-commands.md", |
||||||
|
"Linux/ubuntu-server.md", |
||||||
|
"Linux/Stand-up a Linux Server.md", |
||||||
|
"Linux/Other Linux based servers.md", |
||||||
|
"Linux/Install Docker on Ubuntu.md", |
||||||
|
"Networking/NGINX Proxy Manager.md", |
||||||
|
"Linux/ssh.md", |
||||||
|
"Generative AI/Speech to Text with Whisper AI.md", |
||||||
|
"Generative AI/Setup Local LLM.md", |
||||||
|
"README.md", |
||||||
|
"Generative AI/Setup Local LLM", |
||||||
|
"Generative AI", |
||||||
|
"Networking/Self Hosting Web Sites.md", |
||||||
|
"Networking" |
||||||
|
] |
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
|
||||||
|
## Prereqs |
||||||
|
|
||||||
|
1. |
||||||
|
2. Docker, [Install Docker Desktop on Windows | Docker Docs](https://docs.docker.com/desktop/install/windows-install/) |
||||||
|
1. [Install WSL | Microsoft Learn](https://learn.microsoft.com/en-us/windows/wsl/install) |
||||||
|
3. Ollama [Download Ollama on Windows](https://ollama.com/download) |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## References |
||||||
|
|
||||||
|
[[How to Run Llama 3 Locally with Ollama and Open WebUI]] |
||||||
|
[🏡 Home | Open WebUI](https://docs.openwebui.com/) |
||||||
|
[Ollama](https://ollama.com/) |
||||||
|
[open-webui/open-webui: User-friendly WebUI for LLMs (Formerly Ollama WebUI) (github.com)](https://github.com/open-webui/open-webui) |
||||||
|
[Install Docker Desktop on Windows | Docker Docs](https://docs.docker.com/desktop/install/windows-install/) |
@ -0,0 +1,5 @@ |
|||||||
|
## References |
||||||
|
[How to Turn Audio to Text using OpenAI Whisper (freecodecamp.org)](https://www.freecodecamp.org/news/how-to-turn-audio-to-text-using-openai-whisper/) |
||||||
|
[Introducing Whisper (openai.com)](https://openai.com/research/whisper) |
||||||
|
[openai/whisper: Robust Speech Recognition via Large-Scale Weak Supervision (github.com)](https://github.com/openai/whisper) |
||||||
|
[WhisperDO/Whisper Install (Offline).md at main · nicholasgcotton/WhisperDO (github.com)](https://github.com/nicholasgcotton/WhisperDO/blob/main/Whisper%20Install%20(Offline).md) |
@ -0,0 +1,4 @@ |
|||||||
|
[Install Docker Engine on Ubuntu | Docker Docs](https://docs.docker.com/engine/install/ubuntu/) |
||||||
|
|
||||||
|
[Install the Compose plugin | Docker Docs](https://docs.docker.com/compose/install/linux/) |
||||||
|
|
@ -0,0 +1,132 @@ |
|||||||
|
Optional Maintenance |
||||||
|
|
||||||
|
### Create new sudo account |
||||||
|
Ubuntu Server does this by default |
||||||
|
``` |
||||||
|
sudo adduser {username} |
||||||
|
sudo usermod -aG sudo {username} |
||||||
|
``` |
||||||
|
|
||||||
|
### Disable root |
||||||
|
Ubuntu Server does this by default |
||||||
|
``` |
||||||
|
sudo passwd -l root |
||||||
|
``` |
||||||
|
|
||||||
|
### Change HOSTNAME |
||||||
|
``` |
||||||
|
sudo hostnamectl set-hostname {hostname} |
||||||
|
hostnamectl |
||||||
|
|
||||||
|
sudo nano /etc/hosts |
||||||
|
/* change hostname in hosts file */ |
||||||
|
``` |
||||||
|
|
||||||
|
## Optional Services |
||||||
|
|
||||||
|
### Install xRDP |
||||||
|
If you need to use RDP to access a desktop environment |
||||||
|
``` |
||||||
|
sudo apt install xrdp |
||||||
|
sudo systemctl enable xrdp |
||||||
|
``` |
||||||
|
|
||||||
|
### Install GIT |
||||||
|
``` |
||||||
|
sudo apt install git |
||||||
|
``` |
||||||
|
|
||||||
|
### Install Guest Agent for Proxmox |
||||||
|
Applies only if this box is in a Proxmox server |
||||||
|
|
||||||
|
1. Open Proxmox |
||||||
|
2. Click Options |
||||||
|
3. Turn on QEMU Agent |
||||||
|
|
||||||
|
``` |
||||||
|
sudo apt install qemu-guest-agent |
||||||
|
sudo shutdown |
||||||
|
``` |
||||||
|
|
||||||
|
### Install Webmin |
||||||
|
``` |
||||||
|
sudo apt install software-properties-common apt-transport-https |
||||||
|
sudo wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add - |
||||||
|
sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib" |
||||||
|
sudo apt install webmin |
||||||
|
sudo ufw allow 10000/tcp |
||||||
|
sudo ufw reload |
||||||
|
``` |
||||||
|
|
||||||
|
### bind9 DNS |
||||||
|
``` |
||||||
|
sudo apt install -y bind9 bind9utils bind9-doc dnsutils |
||||||
|
sudo systemctl start named |
||||||
|
sudo systemctl enable named |
||||||
|
sudo ufw allow 53 |
||||||
|
sudo ufw reload |
||||||
|
``` |
||||||
|
|
||||||
|
### Gitea (GitHub alternative) |
||||||
|
``` |
||||||
|
sudo apt install git |
||||||
|
sudo apt install mariadb-server |
||||||
|
|
||||||
|
# Login to MySQL |
||||||
|
sudo mysql -u root -p |
||||||
|
|
||||||
|
# Add the git database |
||||||
|
CREATE DATABASE gitea; |
||||||
|
GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'localhost' IDENTIFIED BY "Root"; |
||||||
|
FLUSH PRIVILEGES; |
||||||
|
QUIT; |
||||||
|
|
||||||
|
# Install gitea |
||||||
|
sudo wget -O /usr/local/bin/gitea https://dl.gitea.io/gitea/1.16.7/gitea-1.16.7-linux-amd64 |
||||||
|
sudo chmod +x /usr/local/bin/gitea |
||||||
|
gitea --version |
||||||
|
|
||||||
|
# Create gitea user |
||||||
|
sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git |
||||||
|
sudo mkdir -pv /var/lib/gitea/{custom,data,log} |
||||||
|
sudo chown -Rv git:git /var/lib/gitea |
||||||
|
sudo chown -Rv git:git /var/lib/gitea |
||||||
|
|
||||||
|
sudo mkdir -v /etc/gitea |
||||||
|
sudo chown -Rv root:git /etc/gitea |
||||||
|
sudo chmod -Rv 770 /etc/gitea |
||||||
|
sudo chmod -Rv 770 /etc/gitea |
||||||
|
|
||||||
|
# Append code to the service file |
||||||
|
sudo nano /etc/systemd/system/gitea.service |
||||||
|
|
||||||
|
[Unit] |
||||||
|
Description=Gitea |
||||||
|
After=syslog.target |
||||||
|
After=network.target |
||||||
|
[Service] |
||||||
|
RestartSec=3s |
||||||
|
Type=simple |
||||||
|
User=git |
||||||
|
Group=git |
||||||
|
WorkingDirectory=/var/lib/gitea/ |
||||||
|
|
||||||
|
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini |
||||||
|
Restart=always |
||||||
|
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea |
||||||
|
[Install] |
||||||
|
WantedBy=multi-user.target |
||||||
|
|
||||||
|
# Start gitea |
||||||
|
sudo systemctl start gitea |
||||||
|
sudo systemctl status gitea |
||||||
|
sudo systemctl enable gitea |
||||||
|
|
||||||
|
# Access gitea |
||||||
|
http://localhost:3000 |
||||||
|
|
||||||
|
# If you ever need to change settings like DOMAIN |
||||||
|
sudo nano /etc/gitea/app.ini |
||||||
|
|
||||||
|
``` |
||||||
|
|
@ -0,0 +1,20 @@ |
|||||||
|
## Introduction |
||||||
|
|
||||||
|
This YouTube video is a good step by step to implement Nginx Proxy Manager |
||||||
|
https://youtu.be/P3imFC7GSr0?si=RTv_vYqMfi5VCIdR |
||||||
|
|
||||||
|
Learn about the difference between forward and reverse proxies, and what you would use them for |
||||||
|
[What is a reverse proxy? | Proxy servers explained | Cloudflare](https://www.cloudflare.com/learning/cdn/glossary/reverse-proxy/) |
||||||
|
|
||||||
|
## Prerequisites |
||||||
|
|
||||||
|
[[Stand-up a Linux Server]] with Docker and Docker Compose installed |
||||||
|
|
||||||
|
## Software |
||||||
|
[Nginx Proxy Manager](https://nginxproxymanager.com/) |
||||||
|
|
||||||
|
## References |
||||||
|
|
||||||
|
[Configure port forwarding using FortiGate... - Fortinet Community](https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configure-port-forwarding-using-FortiGate-VIPs/ta-p/196734) |
||||||
|
[Adding SSL certs to NGINX docker container - Stack Overflow](https://stackoverflow.com/questions/51399883/adding-ssl-certs-to-nginx-docker-container) |
||||||
|
[How to Install an SSL Certificate on Nginx - Mister PKI](https://www.misterpki.com/nginx-ssl-certificate/#:~:text=How%20to%20Install%20an%20SSL%20Certificate%20on%20Nginx,SSL%20configuration%20with%20docker%20...%206%20Conclusion%20) |
@ -0,0 +1,9 @@ |
|||||||
|
## Self Hosting Web Sites and Applications |
||||||
|
https://youtu.be/GarMdDTAZJo?si=7kXvIBmJHh-le76I |
||||||
|
|
||||||
|
### Prerequisites |
||||||
|
|
||||||
|
1. Domain Name |
||||||
|
2. Website on a local server |
||||||
|
3. Cloudflare account, transfer nameservers from GoDaddy to Cloudflare |
||||||
|
4. Nginx Proxy Manager |
Loading…
Reference in new issue