Skip to content

Commit 4c12147

Browse files
committed
Added a proper LTS upgrader.
* Before this, LTS versions had to be upgraded to the latest release of them just like non-LTS. Now, simply run lts-upgrade.bat and it downloads the files of the latest release of the specific LTS version.
1 parent 017838b commit 4c12147

File tree

10 files changed

+76
-20
lines changed

10 files changed

+76
-20
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ KIB in Batch is a batch script-based environment that runs a bash shell with man
66

77
[![CI/CD](https://github.com/KIB-in-Batch/kib-in-batch/actions/workflows/cicd.yml/badge.svg)](https://github.com/KIB-in-Batch/kib-in-batch/actions/workflows/cicd.yml)
88

9+
## Upgrading an LTS version to the latest release of it
10+
11+
To do this, download [./lts-upgrade.bat](./lts-upgrade.bat) and run the file. This file will ask you for the LTS version and download the latest release of it.
12+
913
## Installation
1014

1115
* Download a source code archive from the [latest release](https://github.com/KIB-in-Batch/kib-in-batch/releases/latest).
@@ -142,7 +146,7 @@ $ kibdock deploy
142146
Enter container name: mycontainer
143147
Deploying container "mycontainer"...
144148
Enter drive letter for container: X:
145-
Welcome to KIBDock on KIB in Batch 10.2.5. Image: ubuntu
149+
Welcome to KIBDock on KIB in Batch 10.2.6. Image: ubuntu
146150
If you see this message and a command shell, it means your container has successfully been deployed
147151
wsl: Failed to translate 'Z:\home\benja'
148152
Welcome to Ubuntu 24.04.3 LTS (GNU/Linux 6.6.87.2-microsoft-standard-WSL2 x86_64)
@@ -181,7 +185,7 @@ $ kibdock deploy
181185
Enter container name: mycontainer_win
182186
Deploying container "mycontainer_win"...
183187
Enter drive letter for container: X:
184-
Welcome to KIBDock on KIB in Batch 10.2.5. Image: windows_minimal
188+
Welcome to KIBDock on KIB in Batch 10.2.6. Image: windows_minimal
185189
If you see this message and a command shell, it means your container has successfully been deployed
186190
Microsoft Windows [Versión 10.0.26100.4946]
187191
(c) Microsoft Corporation. Todos los derechos reservados.

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The following versions of KIB in Batch are supported:
66

77
* 9.9.2 LTS (Supported until August 3 2027)
8-
* 10.2.5
8+
* 10.2.6
99

1010
## EOL Cycles
1111

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.2.5
1+
10.2.6

lts-upgrade.bat

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
@echo off
2+
3+
rem lts-upgrade.bat
4+
rem * LTS upgrader for the KIB in Batch project.
5+
rem * Upgrades an LTS version to the latest release of it.
6+
rem * Licensed under the GPL-2.0-only.
7+
rem Copyright (C) 2025 benja2998
8+
rem
9+
rem This program is free software; you can redistribute it and/or modify
10+
rem it under the terms of the GNU General Public License as published by
11+
rem the Free Software Foundation; ONLY version 2 of the License.
12+
rem
13+
rem This program is distributed in the hope that it will be useful,
14+
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
rem GNU General Public License for more details.
17+
rem
18+
rem You should have received a copy of the GNU General Public License
19+
rem along with this program; if not, write to the Free Software
20+
rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21+
22+
curl --version >nul 2>&1
23+
if errorlevel 1 (
24+
echo Curl not found
25+
pause >nul
26+
exit /b 1
27+
)
28+
29+
echo Choose a version to upgrade.
30+
echo.
31+
echo 1 - 9.9.2 LTS
32+
echo.
33+
choice /c 1 /n /m ""
34+
35+
if errorlevel 1 goto one
36+
37+
:one
38+
39+
set "URL=https://github.com/KIB-in-Batch/kib-in-batch/releases/download/9.9.2-lts-13/kali_in_batch.zip"
40+
41+
del /q /f "%TEMP%\kib.zip" & rem We don't need old files
42+
curl -L -# %URL% -o "%TEMP%\kib.zip"
43+
44+
powershell.exe -nologo -noprofile -command "Expand-Archive -Path \"%TEMP%\kib.zip\" -DestinationPath \"%USERPROFILE%\Desktop\kib_installer\" -Force"
45+
46+
if errorlevel 0 (
47+
echo Extraction successful!
48+
) else (
49+
echo Error during extraction!
50+
)
51+
52+
echo The files have been placed in "%USERPROFILE%\Desktop\kib_installer". Please find kali_in_batch.bat there in the src directory.

src/bin/kibfetch.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ set /p kibroot=<"%APPDATA%\kib_in_batch\kibroot.txt"
8686

8787
echo ██ ██ ██ ██████ %COLOR_DEBUG%%USER%%COLOR_RESET%@%COLOR_DEBUG%%COMPUTERNAME%%COLOR_RESET%
8888
echo ██ ██ ██ ██ ██ -------------------------------
89-
echo █████ ██ ██████ %COLOR_DEBUG%OS%COLOR_RESET%: KIB in Batch 10.2.5
89+
echo █████ ██ ██████ %COLOR_DEBUG%OS%COLOR_RESET%: KIB in Batch 10.2.6
9090
echo ██ ██ ██ ██ ██ %COLOR_DEBUG%Kernel%COLOR_RESET%: KIB_%OS%
9191
echo ██ ██ ██ ██████ %COLOR_DEBUG%KIB in Batch Root%COLOR_RESET%: %kibroot%/
9292
echo %COLOR_DEBUG%CPU Architecture%COLOR_RESET%: %PROCESSOR_ARCHITECTURE%

src/bin/uname.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ goto :eof
102102

103103
:version
104104

105-
echo Uname for KIB in Batch 10.2.5
105+
echo Uname for KIB in Batch 10.2.6
106106
echo This is GPL-2.0-only licensed free software. There is NO WARRANTY.
107107
goto :eof
108108

src/bin/which.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ for %%a in (%*) do (
4646
echo Consider contributing to this project as this is an incomplete which implementation.
4747
exit /b 0
4848
) else if "!arg!"=="--version" (
49-
echo which for KIB in Batch 10.2.5
49+
echo which for KIB in Batch 10.2.6
5050
echo This is GPL-2.0-only licensed free software. There is NO WARRANTY.
5151
) else if "!arg!"=="-v" (
52-
echo which for KIB in Batch 10.2.5
52+
echo which for KIB in Batch 10.2.6
5353
echo This is GPL-2.0-only licensed free software. There is NO WARRANTY.
5454
) else if "!arg!"=="-V" (
55-
echo which for KIB in Batch 10.2.5
55+
echo which for KIB in Batch 10.2.6
5656
echo This is GPL-2.0-only licensed free software. There is NO WARRANTY.
5757
)
5858
)

src/kib_in_batch.bat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ if not exist "%USERPROFILE%\kib" (
594594
for /f "delims=" %%i in ('powershell -command "[System.Environment]::OSVersion.Version.ToString()"') do set kernelversion=%%i
595595

596596
echo.
597-
echo Welcome to KIB in Batch 10.2.5 ^(%PROCESSOR_ARCHITECTURE%^)
597+
echo Welcome to KIB in Batch 10.2.6 ^(%PROCESSOR_ARCHITECTURE%^)
598598
echo Booting system...
599599
echo ------------------------------------------------
600600
if not exist "%APPDATA%\kib_in_batch\kibroot.txt" goto live_shell
@@ -861,11 +861,11 @@ echo.
861861

862862
(
863863
echo NAME="KIB in Batch"
864-
echo VERSION="10.2.5"
864+
echo VERSION="10.2.6"
865865
echo ID=kibbatch
866866
echo ID_LIKE=linux
867-
echo VERSION_ID="10.2.5"
868-
echo PRETTY_NAME="KIB in Batch 10.2.5"
867+
echo VERSION_ID="10.2.6"
868+
echo PRETTY_NAME="KIB in Batch 10.2.6"
869869
echo ANSI_COLOR="0;36"
870870
echo HOME_URL="https://kib-in-batch.github.io"
871871
echo SUPPORT_URL="https://github.com/KIB-in-Batch/kib-in-batch/discussions"
@@ -893,7 +893,7 @@ if exist "%APPDATA%\kib_in_batch\VERSION.txt" (
893893
del "%APPDATA%\kib_in_batch\VERSION.txt"
894894
)
895895
rem Create VERSION.txt
896-
echo 10.2.5>"%APPDATA%\kib_in_batch\VERSION.txt"
896+
echo 10.2.6>"%APPDATA%\kib_in_batch\VERSION.txt"
897897

898898
:: |
899899
<nul set /p "=Starting Nmap service... "
@@ -992,7 +992,7 @@ if "%~1"=="automated" (
992992
:login
993993

994994
echo.
995-
echo KIB in Batch 10.2.5
995+
echo KIB in Batch 10.2.6
996996
echo Kernel !kernelversion! on an %PROCESSOR_ARCHITECTURE%
997997
echo.
998998
echo Users on this system: !username!, root

src/libexec/kibdock-init.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ mkdir "%USERPROFILE%\.kibdock\images\windows_minimal" >nul 2>&1
244244
echo.
245245
echo # Run the cmd.exe.
246246
echo.
247-
echo echo "Welcome to KIBDock on KIB in Batch 10.2.5. Image: windows_minimal"
247+
echo echo "Welcome to KIBDock on KIB in Batch 10.2.6. Image: windows_minimal"
248248
echo echo "If you see this message and a command shell, it means your container has successfully been deployed!"
249249
echo cd "$USERPROFILE"
250250
echo "$SUBSTDRIVELETTER\Windows\System32\cmd.exe"
@@ -307,7 +307,7 @@ rem Create start script
307307
echo # DESCRIPTION: The Ubuntu image is a Ubuntu image.
308308
echo # Ubuntu is a trademark of Canonical Ltd.
309309
echo.
310-
echo echo "Welcome to KIBDock on KIB in Batch 10.2.5. Image: ubuntu"
310+
echo echo "Welcome to KIBDock on KIB in Batch 10.2.6. Image: ubuntu"
311311
echo echo "If you see this message and a command shell, it means your container has successfully been deployed!"
312312
echo wsl -d "${CTNRNAME}_ubuntu_kib"
313313
) > "%USERPROFILE%\.kibdock\images\ubuntu\start.sh"
@@ -492,7 +492,7 @@ mkdir "%USERPROFILE%\.kibdock\images\windows_functional" >nul 2>&1
492492
echo.
493493
echo # Run the cmd.exe.
494494
echo.
495-
echo echo "Welcome to KIBDock on KIB in Batch 10.2.5. Image: windows_functional"
495+
echo echo "Welcome to KIBDock on KIB in Batch 10.2.6. Image: windows_functional"
496496
echo echo "If you see this message and a command shell, it means your container has successfully been deployed!"
497497
echo cd "$USERPROFILE"
498498
echo export SYSTEMDRIVE="$SUBSTDRIVELETTER"

src/share/guide/usingkiboutsidekib.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ drwxrwxr-x 2 benja benja 0 Jul 21 17:19 var/
9797
Z:\>\bin\kibfetch.bat
9898
██ ██ ██ ██████ benja@ACERB
9999
██ ██ ██ ██ ██ -------------------------------
100-
█████ ██ ██████ OS: KIB in Batch 10.2.5
100+
█████ ██ ██████ OS: KIB in Batch 10.2.6
101101
██ ██ ██ ██ ██ Kernel: KIB_Windows_NT
102102
██ ██ ██ ██████ KIB in Batch Root: Z:/
103103
CPU Architecture: AMD64
@@ -145,7 +145,7 @@ After that, you can just run things like:
145145
C:\Users\benja>kibfetch
146146
██ ██ ██ ██████ benja@ACERB
147147
██ ██ ██ ██ ██ -------------------------------
148-
█████ ██ ██████ OS: KIB in Batch 10.2.5
148+
█████ ██ ██████ OS: KIB in Batch 10.2.6
149149
██ ██ ██ ██ ██ Kernel: KIB_Windows_NT
150150
██ ██ ██ ██████ KIB in Batch Root: Z:/
151151
CPU Architecture: AMD64

0 commit comments

Comments
 (0)