diff --git a/_drafts/2021-08-04-template.md b/_drafts/2021-08-04-template.md new file mode 100644 index 0000000..56e6a76 --- /dev/null +++ b/_drafts/2021-08-04-template.md @@ -0,0 +1,10 @@ +--- +layout: post +title: "PostTemplate" +description: "PostTemplate" +author: sthope +image: "pic.png" +categories: [ Docker, Portainer, Stack, LinuxServer ] +comments: true +--- + diff --git a/_posts/2021-08-04-doublecommander-docker-container.md b/_posts/2021-08-04-doublecommander-docker-container.md new file mode 100644 index 0000000..a0662fd --- /dev/null +++ b/_posts/2021-08-04-doublecommander-docker-container.md @@ -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" +--- +![logo]({{page.logo}}) + +

Portainer Stack

+``` +--- +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 +``` +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
PUIDuserID check with: ID $USER
PGIDgroupID check with: ID $USER
TZyour TimeZone
Volume /configDoubleCommander configs folder
Volume /dataFolder you want to access with DoubleCommander
Port 52486http port where the container is running
+
+Create folder with e.g.: +```mkdir -p /docker/doublecommander``` +
+
+
+
+![dark]({{page.doublecmd_dark}}) +
+
+
+
+![normal]({{page.doublecmd_normal}}) +
+
+
+
\ No newline at end of file diff --git a/_posts/2021-08-04-doublecommander.md b/_posts/2021-08-04-doublecommander.md deleted file mode 100644 index c2a6978..0000000 --- a/_posts/2021-08-04-doublecommander.md +++ /dev/null @@ -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" ---- -![logo]({{page.logo}}) - - -![dark]({{page.doublecmd_dark}}) - -![normal]({{page.doublecmd_normal}}) - -![]({{page.wikiscrnsht}}) diff --git a/_posts/2021-08-04-firefox-docker-container.md b/_posts/2021-08-04-firefox-docker-container.md new file mode 100644 index 0000000..4577459 --- /dev/null +++ b/_posts/2021-08-04-firefox-docker-container.md @@ -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" +--- + +

Portainer Stack

+``` +--- +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 +``` +
+
+### Deploy directly from Git Repository +
+Use `Repository URL`: +``` +https://git.sthope.dev/sthope/docker_portainer_stacks/src/branch/master/firefox.yml +``` +
+
+And `Compose path`: +``` +firefox.yml +``` +
+
+![stack](/assets/images/firefox_stack.png) +
+
+Firefox should now be available at: +``` +http://firefox_IP:48313 +``` \ No newline at end of file diff --git a/_posts/2021-09-01-how-to-create-a-newuser-in-debian.md b/_posts/2021-09-01-how-to-create-a-newuser-in-debian.md new file mode 100644 index 0000000..fd37ff8 --- /dev/null +++ b/_posts/2021-09-01-how-to-create-a-newuser-in-debian.md @@ -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 +![result example]({{page.pic01}}) + +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 +
+
+
+
+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. \ No newline at end of file diff --git a/assets/images/adduser_result.png b/assets/images/adduser_result.png new file mode 100644 index 0000000..685bd4d Binary files /dev/null and b/assets/images/adduser_result.png differ diff --git a/assets/images/firefox.png b/assets/images/firefox.png new file mode 100644 index 0000000..6ae562f Binary files /dev/null and b/assets/images/firefox.png differ diff --git a/assets/images/firefox_stack.png b/assets/images/firefox_stack.png new file mode 100644 index 0000000..3ebf106 Binary files /dev/null and b/assets/images/firefox_stack.png differ