Loading docker-compose.yml +2 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ services: windows: image: dockurr/windows container_name: windows environment: VERSION: "win11" devices: - /dev/kvm cap_add: Loading readme.md +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ services: windows: image: dockurr/windows container_name: windows environment: VERSION: "win11" devices: - /dev/kvm cap_add: Loading src/samba.sh +20 −4 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ SAMBA="/etc/samba/smb.conf" echo " security = user" echo " guest account = nobody" echo " map to guest = Bad User" echo " server min protocol = SMB2" echo " server min protocol = NT1" echo "" echo " # disable printing services" echo " load printers = no" Loading Loading @@ -61,7 +61,23 @@ SAMBA="/etc/samba/smb.conf" echo "" } | unix2dos > "$SHARE/readme.txt" smbd -D ! smbd && smbd --debug-stdout isXP="N" if [ -f "$STORAGE/windows.old" ]; then MT=$(<"$STORAGE/windows.old") if [[ "${MT,,}" == "pc-q35-2"* ]]; then isXP="Y" fi fi if [[ "$isXP" == [Yy1]* ]]; then # Enable NetBIOS on Windows XP ! nmbd && nmbd --debug-stdout else # Enable Web Service Discovery wsdd -i dockerbridge -p -n "host.lan" & fi return 0 Loading
docker-compose.yml +2 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ services: windows: image: dockurr/windows container_name: windows environment: VERSION: "win11" devices: - /dev/kvm cap_add: Loading
readme.md +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ services: windows: image: dockurr/windows container_name: windows environment: VERSION: "win11" devices: - /dev/kvm cap_add: Loading
src/samba.sh +20 −4 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ SAMBA="/etc/samba/smb.conf" echo " security = user" echo " guest account = nobody" echo " map to guest = Bad User" echo " server min protocol = SMB2" echo " server min protocol = NT1" echo "" echo " # disable printing services" echo " load printers = no" Loading Loading @@ -61,7 +61,23 @@ SAMBA="/etc/samba/smb.conf" echo "" } | unix2dos > "$SHARE/readme.txt" smbd -D ! smbd && smbd --debug-stdout isXP="N" if [ -f "$STORAGE/windows.old" ]; then MT=$(<"$STORAGE/windows.old") if [[ "${MT,,}" == "pc-q35-2"* ]]; then isXP="Y" fi fi if [[ "$isXP" == [Yy1]* ]]; then # Enable NetBIOS on Windows XP ! nmbd && nmbd --debug-stdout else # Enable Web Service Discovery wsdd -i dockerbridge -p -n "host.lan" & fi return 0