From a04a1e3195aade7c1078586dc1a38dde20c372d5 Mon Sep 17 00:00:00 2001 From: mertodinlo Date: Sat, 19 Sep 2026 13:27:49 +0200 Subject: [PATCH] Update lxcpost.sh --- lxcpost.sh | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/lxcpost.sh b/lxcpost.sh index 419186b..ea4bbe7 100644 --- a/lxcpost.sh +++ b/lxcpost.sh @@ -1,21 +1,16 @@ -# Script for LXC Post-Procedure with Prompts +#!/bin/bash Below is a script designed to guide you through the post-procedure setup for LXC. This script includes prompts for user inputs such as usernames, passwords, and IP addresses. ## Install Unattended-Upgrades Package -```bash -#!/bin/bash - # Update package list and install unattended-upgrades echo "Updating package list and installing unattended-upgrades..." apt update apt install unattended-upgrades -y -``` ## Edit Configuration -```bash # Open the configuration file for editing echo "Opening configuration file for editing..." nano /etc/apt/apt.conf.d/50unattended-upgrades @@ -35,21 +30,13 @@ echo "Unattended-Upgrade::Mail \"$email\";" >> /etc/apt/apt.conf.d/50unattended- # Save and close the file echo "Save the file by pressing [Ctrl+O] and exit with [Ctrl+X]." -``` -## Enable Automatic Updates - -```bash # Enable automatic updates echo "Enabling automatic updates..." dpkg-reconfigure --priority=low unattended-upgrades -``` - ---- ## Tailscale Installation -```bash # Install Tailscale echo "Installing Tailscale..." curl -fsSL https://tailscale.com/install.sh | sh @@ -61,19 +48,15 @@ tailscale up # Add autoupdate echo "Enabling autoupdate for Tailscale..." tailscale set --auto-update -``` - ---- ## Add CIFS Folder to LXC -```bash # Install cifs-utils echo "Installing cifs-utils..." apt install cifs-utils -y # Create mount folder -echo "Creating mount folder..." +echo "Creating mount folder for Synology Shared folder..." mkdir /media/synolager echo "You can rename the folder as desired, but remember it for the following steps." @@ -111,7 +94,4 @@ echo "//${syno_ip}/${shared_folder} /media/synolager cifs credentials=/etc/synoc # Mount the share echo "Mounting the share..." -sudo mount /media/synolager -``` - -This script will guide you through installing and configuring necessary packages, setting up Tailscale, and adding a CIFS folder to your LXC environment. Be sure to follow the prompts and enter the required information when asked. \ No newline at end of file +sudo mount /media/synolager \ No newline at end of file