A complete rewrite of the Linux scripts

Re: A complete rewrite of the Linux scripts

Postby Dalai » 19.07.2017, 18:55

lindesbs wrote:So, this directory will grow larger than 30GB.

I need bigger USB sticks

You can use whatever type of storage you want. Within the same network - including VMs - a network share is the most simple and comfortable one IMO. You can also skip directories you don't need on the target system when copying the wsusoffline\client directory, if so required. If you don't have any MS Office installed on the target machine, then skip wsusoffline\client\ofc directory; if you don't have Win8.x/Server 2012 on the target machine, then skip wsusoffline\client\w62 and w63 directories, and so on.

I only use network shares myself, so I don't have to mess around with storage media or worry about how to get the update files to the target machine(s).

Posts: 417
Joined: 12.07.2016, 21:00

Re: A complete rewrite of the Linux scripts

Postby udo2toni » 20.07.2017, 21:16

How do I have to configure Samba to do this?

I'm using User/Password authentification for Samba shares.

If starting the UpdateInstaller.exe as a normal User it will ask for Superuser Permission, but then there is no Access to the Samba Share anymore. If trying to start the Software as a Superuser, this will fail for the same reason, so the only way is to copy the whole set of files to the client...

Obviously, I made some mistakes in Samba Configuration?
Posts: 1
Joined: 20.07.2017, 21:06

Re: A complete rewrite of the Linux scripts

Postby aker » 20.07.2017, 22:51

No, that's caused by the Network drive management of Windows.
I'd suggest you to run UpdateInstaller.exeusing the UNC-path. When using an auth-free path, wsusou (just UpdateInstaller.exe, none of the CMD-files) is able to auto-mount it.
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to sell it.
Posts: 2811
Joined: 02.03.2011, 15:32

Re: A complete rewrite of the Linux scripts

Postby boco » 22.07.2017, 01:13

Running normally vs. running with elevated rights, that's technically like two different users for network shares. If you use a mapped resource, you need to assign it two times: Once as normal user and once as Superuser. Otherwise, the share is simply gone after the user context switch.
Microsoft update catalog: http://catalog.update.microsoft.com/v7/site/
Windows Install media creator: https://support.microsoft.com/en-us/help/15088/windows-create-installation-media
Posts: 1834
Joined: 24.11.2009, 17:00
Location: Germany

Release Notes for Version 1.0-beta-5

Postby hbuhrmester » 26.08.2017, 08:52

Release Notes for Version 1.0-beta-5

Release date: 2017-08-25
Intended compatibility: WSUS Offline Update Version 11.0.1 and newer

This version offers the following changes:

  • The documentation files Quick_installation_guide.txt and Kurzinstallationsanleitung.txt were renamed in version 1.0-beta-4. If the old files are still present, they are removed now.

  • The environment variables $LINES and $COLUMNS are set to 24x80, if the script runs as a cron job.

    If the script runs within a terminal emulator window, it should get the real window dimensions with tput.

    This was reported by "mani" in viewtopic.php?f=9&t=6180&start=20#p23381

  • The calculation of the file ExcludeList-superseded-seconly.txt was simplified.

    This calculation now respects the additional configuration files for security only updates of the .NET Frameworks.

  • A new function seconly_safety_guard tries to make sure, that the configuration files for security only updates are updated after the official patch day.

    The download and installation of security only updates depends on the configuration files:

    Code: Select all

    These files must be updated after each official patch day, which is the second Tuesday each month. They are needed to prevent WSUS Offline Update from downloading and installing full quality update rollups as well.

    The function seconly_safety_guard compares the modification dates of the configuration files to the date of the official patch day, to make sure, that the files have been updated. Otherwise, the download will be postponed.

    This problem is discussed in the forum at viewtopic.php?f=4&t=6897

Note: The first post with the introduction and the download links ( viewtopic.php?f=9&t=6180#p21327 ), and the installation guides in English ( viewtopic.php?f=9&t=6180#p21449 ) and German ( viewtopic.php?f=9&t=6180#p21450 ) have been updated to point to the new release.
Posts: 253
Joined: 11.10.2013, 20:59

Release Notes for Version 1.0

Postby hbuhrmester » 19.01.2018, 18:11

Release Notes for Version 1.0

Release date: 2018-01-19
Intended compatibility: WSUS Offline Update Version 11.1 and later

Changes in this version:

  • After about one year in beta status, this version is now designated version 1.0.

  • Bugfix: The function download_single_file_failsafe was revised to delete partial files between tries.

    The function download_single_file_failsafe is used to download the four virus definition files mpam-fe.exe, mpam-fex64.exe, mpas-fe.exe, and mpas-feX64.exe and the WSUS catalog file wsusscn2.cab in one pass. If the download fails, it is started new from scratch. This is necessary, because there are often different versions of the same file in the Microsoft content delivery network. Partial files must be removed between tries, but a bug caused them to persist.

    This was reported by 8marti in viewtopic.php?f=9&t=7069 .

  • Bugfix: The declaration of indexed arrays with "declare -ag" was removed.

    The declaration of arrays with "declare -ag" can lead to "unbound variable" errors in old versions of the bash, e.g. GNU bash, version 4.2.25, from Ubuntu 12.04 LTS. This error does not happen in more recent versions of the bash.

    But, since this declaration with "declare -ag" is not really necessary, it was removed now.

    This was reported by ede70 in viewtopic.php?f=9&t=7402 .

  • The Wget option --unlink was removed.

    The option --unlink is useful, if hard links are used to create local snapshots or backups, but this option is not available in old versions of GNU Wget.

  • A new standalone script rebuild-integrity-database.bash was added.

    The integrity database consists of hashdeep checksum files in the directory wsusoffline/client/md. They are accessed twice during each run:

    1. Before each download, the existing files are verified by recalculating their hashes and comparing them to the values in the integrity database.
    2. After each download, the hashes files are deleted and rebuilt with the new folder contents. This allows a simple integrity test: Most security downloads include the SHA-1 hash in the filename, as a hexadecimal number of 40 digits length. After calculating the hashes with hashdeep, the SHA-1 hashes can be compared to the expected values.

    Recalculating all hashes twice during each run causes a lot of processing. For convenience, the usage of the integrity database can be disabled in the preferences files. The new script rebuild-integrity-database.bash allows to recreate all checksum files at a later time.

    However, this script is optional – you can just keep the regular schedule, as it was established by the Windows script DownloadUpdates.cmd.

    This was requested by AlBundy in viewtopic.php?f=9&t=7338 ; see also the discussion in viewtopic.php?f=9&t=7331 .

  • Support for .NET Framework 4.7.1 was added.

  • Support for Office 2007 was removed.

  • Internal Changes

    The functions remove_german_language_support and remove_english_language_support now keep the file modification date.

    The new filter function todos_line_endings changes the output of hashdeep to DOS line endings on the fly.

    The functions trash_file and unpack_wsus_catalog_file were revised to produce more output.

  • The copyright was updated to 2018.

    Source files are still licensed on a per-file basis, since this is often recommended, e.g. by the GPL itself (see the section "How to Apply These Terms to Your New Programs" at the end of the GPL).

    The version information, release date and intended compatibility are removed from most files. They are now only in the scripts update-generator.bash and download-updates.bash, in the files version-history.txt and installed-version.txt, and in this file.

    This should allow smaller, incremental updates in the future.

Note: The first post with the introduction and the download links ( viewtopic.php?f=9&t=6180#p21327 ), and the installation guides in English ( viewtopic.php?f=9&t=6180#p21449 ) and German ( viewtopic.php?f=9&t=6180#p21450 ) have been updated to point to the new release.
Posts: 253
Joined: 11.10.2013, 20:59


Return to Linux

Who is online

Users browsing this forum: No registered users and 3 guests