initial commit
This commit is contained in:
parent
ca643c7546
commit
8d6f0be3a9
10
_drafts/2021-08-04-template.md
Normal file
10
_drafts/2021-08-04-template.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
layout: post
|
||||
title: "PostTemplate"
|
||||
description: "PostTemplate"
|
||||
author: sthope
|
||||
image: "pic.png"
|
||||
categories: [ Docker, Portainer, Stack, LinuxServer ]
|
||||
comments: true
|
||||
---
|
||||
|
78
_posts/2021-08-04-doublecommander-docker-container.md
Normal file
78
_posts/2021-08-04-doublecommander-docker-container.md
Normal file
@ -0,0 +1,78 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Double Commander"
|
||||
description: "Double Commander is a free and open-source multi-platform two-panel orthodox file manager that is inspired by the Microsoft Windows-only Total Commander."
|
||||
author: sthope
|
||||
image: ""
|
||||
categories: [ Docker, Portainer, Stack, LinuxServer ]
|
||||
comments: true
|
||||
logo: "/assets/images/doublecommander.png"
|
||||
doublecmd_normal: "https://doublecmd.sourceforge.io/gallery/images/MainWindow.png"
|
||||
doublecmd_dark: "https://doublecmd.sourceforge.io/gallery/images/MainWindowDark.png"
|
||||
---
|
||||

|
||||
|
||||
<h2><a href="https://git.sthope.dev/sthope/docker_portainer_stacks/src/branch/master/doublecommander.yml" target="_blank">Portainer Stack</a></h2>
|
||||
```
|
||||
---
|
||||
version: "3.8"
|
||||
services:
|
||||
doublecommander:
|
||||
image: ghcr.io/linuxserver/doublecommander:latest
|
||||
container_name: doublecommander
|
||||
network_mode: bridge
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Amsterdam
|
||||
volumes:
|
||||
- /docker/doublecommander:/config
|
||||
- /docker:/data
|
||||
ports:
|
||||
- 52486:3000
|
||||
restart: unless-stopped
|
||||
```
|
||||
<br>
|
||||
<table>
|
||||
<tr>
|
||||
<td>PUID</td>
|
||||
<td>userID check with: ID $USER</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PGID</td>
|
||||
<td>groupID check with: ID $USER</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TZ</td>
|
||||
<td>your TimeZone</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Volume /config</td>
|
||||
<td>DoubleCommander configs folder </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Volume /data</td>
|
||||
<td>Folder you want to access with DoubleCommander</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Port 52486</td>
|
||||
<td>http port where the container is running</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
Create folder with e.g.:
|
||||
```mkdir -p /docker/doublecommander```
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||

|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||

|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
@ -1,21 +0,0 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Double Commander"
|
||||
description: "Double Commander is a free and open-source multi-platform two-panel orthodox file manager that is inspired by the Microsoft Windows-only Total Commander."
|
||||
author: sthope
|
||||
image: ""
|
||||
categories: [ Docker, Portainer, Stack, LinuxServer ]
|
||||
comments: true
|
||||
logo: "/assets/images/doublecommander.png"
|
||||
doublecmd_normal: "https://doublecmd.sourceforge.io/gallery/images/MainWindow.png"
|
||||
doublecmd_dark: "https://doublecmd.sourceforge.io/gallery/images/MainWindowDark.png"
|
||||
wikiscrnsht: "https://en.wikipedia.org/wiki/Double_Commander#/media/File:Double_Commander_0.7.2_GTK.png"
|
||||
---
|
||||

|
||||
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
61
_posts/2021-08-04-firefox-docker-container.md
Normal file
61
_posts/2021-08-04-firefox-docker-container.md
Normal file
@ -0,0 +1,61 @@
|
||||
---
|
||||
layout: post
|
||||
title: "FireFox Docker Container"
|
||||
description: ""
|
||||
author: sthope
|
||||
image: "firefox.png"
|
||||
categories: [ Docker, Portainer, Stack, LinuxServer ]
|
||||
comments: true
|
||||
logo: "/assets/images/doublecommander.png"
|
||||
stack: "https://git.sthope.dev/sthope/docker_portainer_stacks/src/branch/master/firefox.yml"
|
||||
---
|
||||
|
||||
<h2><a href="{{page.stack}}" target="_blank">Portainer Stack</a></h2>
|
||||
```
|
||||
---
|
||||
version: "3.8"
|
||||
services:
|
||||
firefox:
|
||||
image: ghcr.io/linuxserver/firefox:latest
|
||||
container_name: firefox
|
||||
network_mode: bridge
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Amsterdam
|
||||
volumes:
|
||||
- firefox_config:/config
|
||||
ports:
|
||||
- 48313:3000
|
||||
shm_size: "1gb"
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- com.centurylinklabs.watchtower.enable=true
|
||||
|
||||
volumes:
|
||||
firefox_config:
|
||||
external: false
|
||||
```
|
||||
<br>
|
||||
<br>
|
||||
### Deploy directly from Git Repository
|
||||
<br>
|
||||
Use `Repository URL`:
|
||||
```
|
||||
https://git.sthope.dev/sthope/docker_portainer_stacks/src/branch/master/firefox.yml
|
||||
```
|
||||
<br>
|
||||
<br>
|
||||
And `Compose path`:
|
||||
```
|
||||
firefox.yml
|
||||
```
|
||||
<br>
|
||||
<br>
|
||||

|
||||
<br>
|
||||
<br>
|
||||
Firefox should now be available at:
|
||||
```
|
||||
http://firefox_IP:48313
|
||||
```
|
59
_posts/2021-09-01-how-to-create-a-newuser-in-debian.md
Normal file
59
_posts/2021-09-01-how-to-create-a-newuser-in-debian.md
Normal file
@ -0,0 +1,59 @@
|
||||
---
|
||||
layout: post
|
||||
title: "How to create a new User in Debian"
|
||||
description: ""
|
||||
author: sthope
|
||||
image:
|
||||
categories: [ Docker, Portainer, Stack, LinuxServer ]
|
||||
comments: true
|
||||
pic01: /assets/images/adduser_result.png
|
||||
---
|
||||
|
||||
*Should also work on most Linux distros*
|
||||
|
||||
```
|
||||
adduser sthope
|
||||
```
|
||||
|
||||
It will then ask to assign a password to the new username and some unnecessary questions
|
||||

|
||||
|
||||
Make sure `sudo` is installed:
|
||||
```
|
||||
apt-get update;apt-get upgrade -y; apt-get install -y sudo
|
||||
```
|
||||
It will update, upgrade the system if necessary then install sudo.
|
||||
|
||||
You can now give sudo permissions to the new user created:
|
||||
```
|
||||
usermod -aG sudo sthope
|
||||
```
|
||||
|
||||
If you have Docker also installed and want to also give permissions to the new created user, use this instead:
|
||||
```
|
||||
usermod -aG sudo sthope;usermod -aG docker sthope
|
||||
|
||||
```
|
||||
|
||||
Finally test the new user, either reboot system or enter:
|
||||
```
|
||||
su -l sthope
|
||||
```
|
||||
|
||||
In case Debian is running on Proxmox installed via my scripts LXC will automatically login into root user, to change that edit the file (remember to user sudo is editing with the new created user, not necessary if using the root user)
|
||||
```
|
||||
nano /etc/systemd/system/container-getty@1.service.d/override.conf
|
||||
```
|
||||
|
||||
And search for `--autologin root` and replace root with your new username create, e.g. `--autologin sthope`
|
||||
Save and reboot, system should now automatically login into the new user instead of root
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
1-Line command, replace Username and Password with your details and run:
|
||||
```
|
||||
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope_website_examples/raw/branch/master/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser)" Username Password
|
||||
```
|
||||
|
||||
It will Update & Upgrade system, install sudo, create Username with Password provided and give new created User `sudo` and `docker` permissions.
|
BIN
assets/images/adduser_result.png
Normal file
BIN
assets/images/adduser_result.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
assets/images/firefox.png
Normal file
BIN
assets/images/firefox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 169 KiB |
BIN
assets/images/firefox_stack.png
Normal file
BIN
assets/images/firefox_stack.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
Loading…
x
Reference in New Issue
Block a user