#StackBounty: #windows #installation #updates #reboot #windows-2000 What happens if you install 2 updates that update the same file wit…

Bounty: 50

I have an old Windows 2000 computer whose hard drive crashed, and I would like to restore it. I have the original Windows 2000 CD plus backups of all the Windows service packs, individual Windows updates, and other programs that I downloaded.

Once I get Windows 2000 reinstalled from the CD, I can install Windows 2000 Service Pack 4 (which includes SP1, SP2, and SP3) followed by the Windows 2000 SP4 Update Rollup 1. But I still have around 150 individual Windows updates, most of which came after Update Rollup 1, that I will need to install.

I remember that many times after I installed an individual Windows update, it told me that I needed to reboot the system to finish the update. But with around 150 individual updates that I will need to install, plus a 20 year old computer that takes around 4 minutes to boot up, I’d rather not have to reboot 150 times to install all those individual updates.

So I’d like to know how the Windows 2000 update system works.

Question 1: What happens if I install 2 Windows updates that update the same file without rebooting between the updates?

Let’s say the system has xyz.dll version 1.0.0 on it. I install a Windows update that contains xyz.dll version 1.2.0, and it tells me I have to reboot the system to finish the update. But instead of rebooting, I want to save time and I try to install another Windows update that happens to contain xyz.dll version 1.3.0. Will that even work, or will the first update put a lock on xyz.dll so that no subsequent update can change it unless I reboot first? Basically what happens when I finally reboot the system in this scenario – will the computer have xyz.dll version 1.2.0 or 1.3.0 installed?

Question 2: What happens if I install an update out of order?

Same situation as Question 1, except let’s say the second update I try to install happens to contain xyz.dll version 1.1.0, which is older than the first update (1.2.0) but newer than what was originally on the system (1.0.0). I guess if the first update puts a lock on xyz.dll, then that means the second update will fail regardless of whether it contains a newer or older version of xyz.dll. But if Windows 2000 allows the second update to update xyz.dll without a reboot, then will Windows 2000 still allow the second update’s older version of xyz.dll to override the first update’s newer version? Basically what happens when I finally reboot the system in this scenario – will the computer have xyz.dll version 1.1.0 or 1.2.0 installed?


Get this bounty!!!

#StackBounty: #linux #ubuntu #installation #crash Ubuntu setup crashes and random points during and before setup

Bounty: 100

I bought a brand new ThinkCentre M920x Tiny (which is a mini computer) and wanted to install Ubuntu on it.
I flahed a USB stick useing Etcher on my Windowas 10 machine.

Then I started the setup on my new ThinkCenter.
Then at random points during my the setup most of the time after selecting "Ubuntu" from the grub menu.
Sometimes I can made it to selecting the keyboard layout. But the install process never starts.

The "crash" usualy looks like this.
Keyboard an mouse freeze, fan of the computer turns on and after about 3 seconds it just reboots.

I started with the usual things:

  1. Using another memory stick, using yet another memory stick
  2. Disabled UEFI, Enables Legacy BIOS
  3. Disabled Secureboot
  4. Tried the Dayli build from Ubuntu 21.04
  5. Tried to disable logging using pci=noaer in grub (why ubuntu 18.04LTS installer crashes after detecting hardware)
  6. Did a hardwaretest (memtest)

And all this in various combinations.

Now I am done with my knowldege and have to ask for help here 🙂
Maybe one of you encountered similiar problems and push me into the right direction to solve this.

//update
After fiddeling around with various bios settings and an Arch Linux – Live test enviroment I figured out more.
After a few minutes the kernel throws an MCE exception:
mce: [Hardware Error]: CPU 2: Machine Check: 0 Bank 0:
Screen: https://imgur.com/GOf2i3a

But that error occures ONLY when I multi CPU (not hyperthreading) is enabled in BIOS. When I disable multi CPU in bios the system runs stable.
Unfortunately then only one CPU is available to the OS.


Get this bounty!!!

#StackBounty: #python #r #installation #anaconda #reticulate Problems in configuration/installation with reticulate [R]

Bounty: 50

I’m trying to work with reticulate for integrating Python modules inside R and, despite following the tutorial (miniconda is already installed), nothing seems to work properly. I tried with the default way and specifying conda and virtual environments:

> library(reticulate)
> py_config()
# python:         C:/Users/juanj/AppData/Local/r-miniconda/envs/r-reticulate/python.exe
# libpython:      C:/Users/juanj/AppData/Local/r-miniconda/envs/r-reticulate/python36.dll
# pythonhome:     C:/Users/juanj/AppData/Local/r-miniconda/envs/r-reticulate
# version:        3.6.12 (default, Dec  9 2020, 00:11:44) [MSC v.1916 64 bit (AMD64)]
# Architecture:   64bit
# numpy:          C:/Users/juanj/AppData/Local/r-miniconda/envs/r-reticulate/Lib/site-packages/numpy
# numpy_version:  1.19.2

> py_install("python-igraph")
# Collecting package metadata (current_repodata.json): ...working... done
# Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
# Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
# Collecting package metadata (repodata.json): ...working... done
# Solving environment: ...working... done
# 
# ## Package Plan ##
# 
#   environment location: C:UsersjuanjAppDataLocalr-minicondaenvsr-reticulate
# 
#   added / updated specs:
#     - python
#     - python-igraph
# [...]
# python-igraph-0.8.3  | 1.4 MB    | ########## | 100% 
# Preparing transaction: ...working... done
# Verifying transaction: ...working... done
# Executing transaction: ...working... done

> py_module_available("python-igraph")
# [1] FALSE

## virtual environment
> virtualenv_create("r-reticulate")
# Using Python: C:/Users/juanj/AppData/Local/r-miniconda/envs/r-reticulate/python.exe
# Creating virtual environment "r-reticulate" ... Done!
# Installing packages: "pip", "wheel", "setuptools", "numpy"
# Collecting pip
# [...]
# Successfully installed numpy-1.19.5 pip-21.0.1 setuptools-53.0.0 wheel-0.36.2
# Virtual environment 'r-reticulate' successfully created.

> virtualenv_install("r-reticulate", "python-igraph")
# Using virtual environment "r-reticulate" ...
# Collecting python-igraph
#   Downloading python_igraph-0.8.3-cp36-cp36m-win_amd64.whl (1.4 MB)
# Collecting texttable>=1.6.2
#   Downloading texttable-1.6.3-py2.py3-none-any.whl (10 kB)
# Installing collected packages: texttable, python-igraph
# Successfully installed python-igraph-0.8.3 texttable-1.6.3

> py_module_available("python-igraph")
# [1] FALSE

## conda
> conda_create("r-reticulate.conda")
# Collecting package metadata (current_repodata.json): ...working... done
# Solving environment: ...working... done
# 
# ## Package Plan ##
# 
#   environment location: C:UsersjuanjAppDataLocalR-MINI~1envsr-reticulate.conda
# [...]
# Preparing transaction: ...working... done
# Verifying transaction: ...working... done
# Executing transaction: ...working... done
# #
# # To activate this environment, use
# #
# #     $ conda activate r-reticulate.conda
# #
# # To deactivate an active environment, use
# #
# #     $ conda deactivate
# 
# [1] "C:\Users\juanj\AppData\Local\r-miniconda\envs\r-reticulate.conda\python.exe"

> conda_install("r-reticulate.conda", "python-igraph")
# Collecting package metadata (current_repodata.json): ...working... done
# Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
# Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
# Collecting package metadata (repodata.json): ...working... done
# Solving environment: ...working... done
# 
# ## Package Plan ##
# 
#   environment location: C:UsersjuanjAppDataLocalR-MINI~1envsr-reticulate.conda
# [...]
# python-igraph-0.8.3  | 1.4 MB    | ########## | 100% 
# Preparing transaction: ...working... done
# Verifying transaction: ...working... done
# Executing transaction: ...working... done

> py_module_available("python-igraph")
# [1] FALSE

Any idea what I’m missing, please? Thanks.


Get this bounty!!!

#StackBounty: #linux #ubuntu #boot #installation #bios Ubuntu(Or any other linux distro) stuck on retrieving clocksource

Bounty: 50

The past few days I have been trying to install linux on my laptop(Asus UX430) with no luck. I have tried elementaryOs,PopOS,Manjaro and Ubuntu but they all gave me the same error:
my problem

The things that I already have tried:

  1. Using different kernelparameters like noapic clocksource=... nomodeset compress=gzip
  2. Changing My BIOS(SATA is already set to AHCI, Secure boot and fast boot are disabled and I turned of everything that could be a problem(fingerprint scan etc).
  3. Booting in safe mode, or live mode(same error).
  4. Trying GRUB parameters like setting resolution, compression algorithms.
  5. Upgrading BIOS
  6. Using older versions of ubuntu

I have no clue what to do given that I have the feeling I tried all provided solutions on ubuntu forums and stack overflow. Is there any way to fix this? If you need more info just tell me.


Get this bounty!!!

#StackBounty: #boot #installation #centos-7 #modprobe Boot menu is stopping after selecting media in inst.dd command

Bounty: 50

I’m trying to install CentOS7 into HP Microserver ProLient G8. I need to disable AHCI and change array driver as the following site describes.

http://josafatisai.blogspot.com/2016/01/installing-centos-7-on-hp-proliant.html

I did the following command from boot prompt.

linux modprobe.blacklist=ahci inst.dd

and selected the number for the driver media of kmod-hpvsa-1.2.16-102.rhel7u3.x86_64.rpm

Then pressed ‘c’ to continue after I confirmed the toggle was selected as ‘x’ forkmod-hpvsa-1.2.16-102.rhel7u3.x86_64.rpm.

However, nothing is happen even showing error message.

It seems stopping or waiting something.

Does anyone tell how to continue the boot menu or how to check the system.

My installer is version 7.8.2003 CentOS-7-x86_64-Minimal-2003.iso

Additional information.

I also tried CentOS6.7.x86_64-minimal.iso with driver hpva-1.2.8-140.rhel6ux86.dd

There was an error below.

                  |Error|
No new drivers were fond on this driver disk. This may    
Indicate that this disk has already been loaded or that     
the drivers it contains don't match your hardware. Would     
you like to manually select the driver, continue anyway,    
or load another driver disk? 
|Manually choose|     |Continue|    |Load another disk|

If I press Continue ,installation began and soon show following message.

           |No driver found|
Unable to find any drivers of the type
needed for this installation type.
Would you like to manually select your
driver or use a driver disk?
|Select driver| |Use a driver disk| |back|

Then went back to No new drivers were fond messages and repeating.


Get this bounty!!!

#StackBounty: #c# #installation #permissions #windows-services #user-accounts How to programatically grant a virtual user permission to…

Bounty: 50

I have a service that I wrote that I need to deploy to a number (about 1100) devices. All of these devices are logged in as a regular user, not an administrator.

I can push out the service with our deployment software, which does run as an admin. Our security team does not want this service to run on the Local System account (for obvious reasons). What I’ve come up with is that the service will install as the Local System, but will then change it’s log in account to a virtual user, which then needs access to a folder in Program Files (x86).

What I’ve found is that if I install the service (using remote admin access) via the command line, I can install the service, but it won’t start.

When I look in the event logs, I get an UnauthorizedAccessException error.

This I suspect is because the service is already running under the virtual user which doesn’t have access to start the service. So how can I get around this?

In the main class for the service, I have this method, which is supposed to give the user access to the necessary folder:

    private void GiveDirectoryAccess(string dir, string user)
    {
        try
        {
            DirectoryInfo directoryInfo = new DirectoryInfo(dir);
            DirectorySecurity ds = directoryInfo.GetAccessControl();
            ds.AddAccessRule(new FileSystemAccessRule(user, FileSystemRights.FullControl,
                InheritanceFlags.ObjectInherit | InheritanceFlags.ContainerInherit, PropagationFlags.NoPropagateInherit, AccessControlType.Allow));
            directoryInfo.SetAccessControl(ds);
        }
        catch (Exception e)
        {
            SimpleLog.Log(e);
            throw;
        }

    }

This is called right after the service is initialized:

    public CheckRALVersionService()
    {
        InitializeComponent();
        // Give directory access
        string alhadminPath = System.IO.Path.Combine(pathToFolder, alhadmin);
        GiveDirectoryAccess(alhadminPath, serviceUser);
        string exeName = System.IO.Path.GetFileName(fullExeNameAndPath);
        string tmppath = System.IO.Path.Combine(localdir, tmp);
        SimpleLog.SetLogFile(logDir: tmppath, prefix: "debout." + exeName + "_", extension: "log");
        watcher = new DirectoryWatcher(pathToFolder, alhadmin);
    }

Then, in the ProjectInstaller class, I am changing the user to the virtual user in the serviceInstaller1_Committed method:

    void serviceInstaller1_Committed(object sender, InstallEventArgs e)
    {
        using (ManagementObject service = new ManagementObject(new ManagementPath("Win32_Service.Name='RalConfigUpdate'")))
        {
            object[] wmiParams = new object[11];
            wmiParams[6] = @"NT ServiceRalConfigUpdate";
            service.InvokeMethod("Change", wmiParams);
        }
    }

Do I need a helper service to give the access? Can what I want to do be done all within this service?

Thanks in advance.


Get this bounty!!!

#StackBounty: #sql-server #installation #sql-server-2019 How can Cumulative Updates to SQL Server 2019 be Slipstreamed into a Single In…

Bounty: 50

I’d like to take the latest version of SQL Server (SQL Standard, 15.0.2000.5), and apply the latest CU to it so that I have a single installer, thus reducing the size of the resulting package. The custom installer that I’m developing packages the SQL Server installer, and thus reducing the size by several hundred MB is important.

In previous versions of SQL Server, it was possible to create a single merged media output folder using the /PCUSOURCE and /CUSOURCE parameters, however this seems to have been removed in SQL Server 2014 (See “Slipstream Functionality” here). The alternative provided is to use the /UpdateSource flag, however this approach only allows for the simultaneous application of patches at the time of installation (by bundling the CU media with the original installation media). Further, the /ACTION=PrepareImage facilitates a SysPrep installation, not a slipstreamed update to the install media.

So, is there a way to update the installation media of SQL Server Standard 2019 with CU patches such that there’s a single (reduced-size) installation media bundle?


Get this bounty!!!

#StackBounty: #magento2 #product-attribute #installation #patch-data Create attribute option using Data patch in Magento2

Bounty: 50

I am creating a product attribute with option using Magento 2.3 Data patch.

Used below code.

<?php
declare(strict_types=1);

namespace VendorModuleSetupPatchData;

use MagentoEavModelEntityAttributeScopedAttributeInterface;
use MagentoEavSetupEavSetup;
use MagentoEavSetupEavSetupFactory;
use MagentoFrameworkSetupModuleDataSetupInterface;
use MagentoFrameworkSetupPatchDataPatchInterface;

class AddFeatureAttribute implements DataPatchInterface
{

private $moduleDataSetup;
private $eavSetupFactory;
public $_storeManager;
private $logger;
protected $_dir;
public function __construct(
    ModuleDataSetupInterface $moduleDataSetup,
    EavSetupFactory $eavSetupFactory,
    PsrLogLoggerInterface $logger,
    MagentoStoreModelStoreManagerInterface $storeManager,
    MagentoFrameworkFilesystemDirectoryList $dir
) {
    $this->moduleDataSetup = $moduleDataSetup;
    $this->eavSetupFactory = $eavSetupFactory;
    $this->_storeManager = $storeManager;
    $this->logger = $logger;  
    $this->_dir = $dir;
}

/**
 * {@inheritdoc}
 */
public function apply()
{
    /** @var EavSetup $eavSetup */
    $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]);

    $fileName = 'attributes.csv';
    $pubPath = $this->_dir->getPath('pub');
    $attributeFile = $pubPath.'/'.$fileName;
    $arrResult = array();
    if(($handle = fopen($attributeFile, 'r')) !== FALSE) {
        $row = 1;
        while(($data = fgetcsv($handle, 1000000, ',')) !== FALSE) {
            $col_count = count($data);
            $arrResult[] = $data;               
            $row++;
        }
        fclose($handle);
    } 
    $i = 0;
    foreach ($arrResult as $line) {
        if($i > 0){
            $attributeCode = $line[0];                    
            $attributeName = $line[1];
            $inputType = strtolower($line[2]);
            $options = $line[3];
          $type = 'int';
      $eavSetup->addAttribute(
        MagentoCatalogModelProduct::ENTITY,
           $attributeCode,
           [
             'type' => $type,
             'group' => 'General',
             'backend' => '',
             'frontend' => '',
             'label' => $attributeName,
             'input' => $inputType,
             'class' => '',
             'source' => '',
             'global' => ScopedAttributeInterface::SCOPE_GLOBAL,
             'visible' => true,
             'required' => false,
             'user_defined' => true,
             'searchable' => false,
             'filterable' => true,
             "filterable_in_search" => '1',
             'comparable' => false,
             'visible_on_front' => true,
             'used_in_product_listing' => true,
             'unique' => false,                 
             'option' => [
                'values' => $options,
               ],
             'system' => 1                    
             ]
           );
       }
     $i++;
   }

  }

public static function getDependencies()
 {
    return [];
 }

 /**
 * {@inheritdoc}
 */
 public function getAliases()
  {
     return [];
  }
}

The sample csv file is like below

enter image description here

The above code not creating the options, please someone help me on that how can we create a attribute with options. Thanks!!


Get this bounty!!!

#StackBounty: #installation #magento2.3.3 #nginx #php-7.2 #centos Magento 2.3.3 on Centos 7 with Nginx using composer – Website not wor…

Bounty: 100

Following tutorial : https://devdocs.magento.com/guides/v2.3/install-gde/composer.html

After download magento by using,

composer create-project --repository=https://repo.magento.com/ magento/project-community-edition=2.3.3 magento

Folder path : var/ww/html/magento

I am using centos 7 – Nginx how to run following last 2 commands,

find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chown -R :www-data . # Ubuntu
chmod u+x bin/magento

Finally my installation command,

bin/magento setup:install –base-url=http://127.0.0.1/magento –db-host=localhost –db-name=magento –db-user=root –db-password=P@ssword123 –admin-firstname=mage –admin-lastname=mage --admin-email=mage@gmail.com –admin-user=mage –admin-password=mage@123 –language=en_US –currency=INR –timezone=Asia/Kolkata –use-rewrites=1

How to setup magento.conf in etc/nginx/config.d/ magento.conf?

my magento.conf :

upstream fastcgi_backend {
     server  127.0.0.1:9000;
 }

 server {

     listen 8085;
     server_name 192.168.1.65:8085;
     set $MAGE_ROOT /var/www/html/magento;
     include /var/www/html/magento/nginx.conf.sample;
 }

In url section if i type 192.168.1.65:8085 getting blank page.

FYI – After install magento 2.3.3 not created env.php file under appetc.


Get this bounty!!!

#StackBounty: #installation #magento2.3.3 #nginx #php-7.2 #centos Anyone install Magento 2.3.3 on Centos 7 with Nginx using composer?

Bounty: 100

Following tutorial : https://devdocs.magento.com/guides/v2.3/install-gde/composer.html

After download magento by using,

composer create-project --repository=https://repo.magento.com/ magento/project-community-edition=2.3.3 magento

Folder path : var/ww/html/magento

I am using centos 7 – Nginx how to run following last 2 commands,

find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chown -R :www-data . # Ubuntu
chmod u+x bin/magento

Finally my installation command,

bin/magento setup:install –base-url=http://127.0.0.1/magento –db-host=localhost –db-name=magento –db-user=root –db-password=P@ssword123 –admin-firstname=mage –admin-lastname=mage --admin-email=mage@gmail.com –admin-user=mage –admin-password=mage@123 –language=en_US –currency=INR –timezone=Asia/Kolkata –use-rewrites=1

How to setup magento.conf in etc/nginx/config.d/ magento.conf?

my magento.conf :

upstream fastcgi_backend {
     server  127.0.0.1:9000;
 }

 server {

     listen 8085;
     server_name 192.168.1.65:8085;
     set $MAGE_ROOT /var/www/html/magento;
     include /var/www/html/magento/nginx.conf.sample;
 }

In url section if i type 192.168.1.65:8085 getting blank page.

FYI – After install magento 2.3.3 not created env.php file under appetc.


Get this bounty!!!