more commands and scripts
This commit is contained in:
27
_CONFIGS/docker config.md
Normal file
27
_CONFIGS/docker config.md
Normal file
@ -0,0 +1,27 @@
|
||||
# /etc/docker/daemon.json at .10
|
||||
{
|
||||
"runtimes": {
|
||||
"nvidia": {
|
||||
"args": [],
|
||||
"path": "/usr/bin/nvidia-container-runtime"
|
||||
}
|
||||
},
|
||||
"storage-driver": "overlay2",
|
||||
"data-root": "/mnt/appx/docker_host"
|
||||
}
|
||||
|
||||
|
||||
# /etc/docker/daemon.json at .11
|
||||
|
||||
"runtimes": {
|
||||
"nvidia": {
|
||||
"args": [],
|
||||
"path": "nvidia-container-runtime"
|
||||
}
|
||||
},
|
||||
"data-root": "/mnt/apps/docker"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
27
linux/tasks/rsync local folders.sh
Normal file
27
linux/tasks/rsync local folders.sh
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
source_dir="/mnt/storage/nextcloud/popov/files/PORTABLE/"
|
||||
destination_dir="/mnt/nas4T/DOBY/Portable/"
|
||||
|
||||
# Check if the source directory exists
|
||||
if [ ! -d "$source_dir" ]; then
|
||||
echo "Source directory not found: $source_dir"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if the destination directory exists
|
||||
if [ ! -d "$destination_dir" ]; then
|
||||
echo "Destination directory not found: $destination_dir"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Loop through the subdirectories in the source directory
|
||||
for subdir in "$source_dir"/*; do
|
||||
if [ -d "$subdir" ]; then
|
||||
subfolder=$(basename "$subdir")
|
||||
echo "Syncing $subfolder..."
|
||||
rsync -ah --info=progress2 --relative --rsync-path="mkdir -p '$destination_dir' && rsync" "$source_dir$subfolder/" "$destination_dir"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "All subfolders synced."
|
7
linux/tasks/start_vnc.sh
Normal file
7
linux/tasks/start_vnc.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
vncserver :1 -geometry 1920x1080
|
||||
|
||||
#and novnc:
|
||||
/usr/share/novnc/utils/launch.sh --vnc localhost:5901
|
||||
|
||||
|
Reference in New Issue
Block a user