adb – Why is suggested to OEM unlock when LinageOS can be installed without it

I have a “LENOVO Tab 2 A10-30” which got frozen after the update in the startup loop – did not start after displaying the Lenovo logo.
I decided to reinstall it with the LineageOS, and for that I needed (according the articles) to do oem unlock.
According articles I should get the OEM unlock key from settings or allow it in the settings – which I can’t access as the device won’t boot up.

So I tried bunch of commands from the commandline (ubuntu 20.04), I could not OEM unlock, but I was able to install LineageOS just fine.
My question is – how come that it worked, even though it should not be able to unlock the OEM? What happened there?

Started device with holding vol up:

$ adb devices
List of devices attached
0123456789ABCDEF    sideload

Then I am not sure now what I selected in the menu, but then I went:

$ fastboot devices
84afc61e    fastboot

$ fastboot oem unlock
...
FAILED (remote: oem unlock is not allowed)
finished. total time: 0.002s

$ fastboot oem unlock-go
...
FAILED (remote: oem unlock is not allowed)
finished. total time: 0.002s

$ fastboot oem get_unlock_data
...
FAILED (remote: unknown command)
finished. total time: 0.002s

fastboot oem device-info
...
(bootloader)    Device tampered: false
(bootloader)    Device unlocked: false
(bootloader)    Device critical unlocked: true
(bootloader)    Charger screen enabled: true
(bootloader)    Display panel: 
OKAY (  0.007s)
finished. total time: 0.007s

But I tried to flash in the TWRP recovery image anyhow:

$ fastboot flash recovery recovery.img
target reported max download size of 262144000 bytes
sending 'recovery' (11700 KB)...
OKAY (  0.446s)
writing 'recovery'...
OKAY (  0.947s)
finished. total time: 1.393s

$ fastboot boot recovery.img
downloading 'boot.img'...
OKAY (  0.449s)
booting...
OKAY (  0.023s)
finished. total time: 0.471s

After that, with volume up on boot I got in to TWRP menu; where I installed gaps and LineageOS zips, and after reboot it was just there.

My research links:

I installed Ubuntu on an USB flash drive but it resets after every reboot

I recently installed Ubuntu on an USB flash drive to get some experience with it and also have a portable OS with my personal files. I used this Tutorial but when I reboot the system it resets back to how it was after the fresh installation. Do I need to use a different method to install Ubuntu on the flash drive or did I do something wrong?

6.0 marshmallow – How to block any app from being installed apart from one app?

I want to restrict the phone to install (Android 6) any app including all existing network apps (chrom, facebook etc) apart from one specific application.

I am thinking of editing the operating system, but I do not know which files to edit?

I would be happy to help.

virtualization – If Linux is installed in a virtual environment on my mac can I open apps that big sur blocks?

I’m trying open this application: http://www1.icsi.berkeley.edu/~lucag/ (It’s a research tool might might be great for my work so I really want to access it).

When I try and open the app I get the message: “You do not have permission to open the application “ECGWorkbench’. Contact your computer or network administrator for assistance.”

If I installed Linux in a virtual environment on my mac could I then open the the Linux version of the app?

linux – Operation Not Permitted on /usr/local/, Homebrew cannot be installed

Looking for some guidance on how to fix my permissions on my /usr/bin directory. I actually recently had a data recovery on my machine where I had to have my whole home directory copied to a new mac.

Upon this I noticed that my old binaries I had in my /usr/local folder prior to my migrating my data are no longer able to be ran.

I also do not have brew, and I am unable to install it.

Attempting to chown /usr/local also fails

% sudo chown -R "$USER":admin /usr/local
chown: /usr/local: Operation not permitted

This first started happening when I noticed brew is not installed. When I try to install brew, I get the following:

% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password).
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/bin
/usr/local/sbin

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/bin /usr/local/sbin
mkdir: /usr/local/bin: Not a directory
mkdir: /usr/local/sbin: Not a directory
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/bin /usr/local/sbin

Here is my ls -aleO@ /usr/local

total 52960
drwxr-xr-x  14 root             wheel  sunlnk                 448 Feb 24 19:19 .
drwxr-xr-x@ 11 root             wheel  restricted,hidden      352 Feb 18 16:51 ..
    com.apple.rootless         0 
drwxr-xr-x   2 myuser.user  admin  -                       64 Feb 24 19:19 Caskroom
drwxr-xr-x   2 myuser.user  admin  -                       64 Feb 24 19:19 Cellar
drwxrwxr-x   2 myuser.user  admin  -                       64 Feb 24 19:19 Frameworks
-rwxrwxr-x@  1 myuser.user  admin  -                 12434524 Feb 23 21:11 bin
    com.apple.quarantine          57 
drwxrwxr-x   2 myuser.user  admin  -                       64 Feb 24 19:19 etc
drwxr-xr-x  20 myuser.user  admin  -                      640 Feb 16 11:12 go
drwxrwxr-x   2 myuser.user  admin  -                       64 Feb 24 19:19 include
drwxrwxr-x   2 myuser.user  admin  -                       64 Feb 24 19:19 lib
drwxrwxr-x   2 myuser.user  admin  -                       64 Feb 24 19:19 opt
-rwxrwxr-x@  1 myuser.user  admin  -                 14033312 Feb 23 21:44 sbin
    com.apple.quarantine          57 
drwxrwxr-x   3 myuser.user  admin  -                       96 Feb 24 19:19 share
drwxrwxr-x   3 myuser.user  admin  -                       96 Feb 24 19:19 var```

apt – Download/Export installed Packages on Ubuntu Server (local, without repo)

i’m trying to save the installed Packages on my Ubuntu Server in order to add them to a repository.
I can download the installed packages with apt-get download but this will attempt to download the packages from the official repositories.

Is it possible to export/save the installed packages without redownloading them from an official repo?
I’ve seen some solutions with –upgrade –no-download but they do not really for work for me.

sharepoint online – Can i know which site collections and App Permision is installed on

I have many App Permissions which are showing inside my App Permission page, as follow:-

enter image description here

as follow:-

enter image description here

but is there a way to know the site/s where this app is registered? i need this because i want to remove unwanted App Permissions which were created for testing. And to delete those app permissions from the app catalog i need to first UN-install them from the related site collection/s.

Thanks in advance for any help.
Regards

automator – brew: create install script for all installed packages/casks

I am currently planning to reinstall my OS from scratch. Over the years, I installed a LOT OF packages via brew. Obviously, I’d like to reinstall those after setting up the system again, and I want to automate this as much as possible.

Hence my question: How do I list all packages installed via brew, including casks, and how do I create an “install script” from those that will add all added casks for me and then install all packages again?”

How do you search for specific apps installed on android

How do you search for specific apps from installed apps on android and the list them out? I need to search all apps installed on the device to check if three specific apps are among them. If yes, then I need to list all/ any found installed.

system installation – Is the windows 10 installed on pre-built desktop lost if I choose to erase disk when installing ubuntu?

I have just bought a new HP 290 G3 Small Form Factor pre-built Desktop. Instead of dual-booting, I would like to erase the disk to install Ubuntu as the hard disk is not that big and I would like to save the space for storing a Windows OS. Have used Ubuntu for a few years, from 14.04 to 20.04 and I have never needed to switch back to Windows although I have dual-boot settings in my previous PC.

The only concern is that with new hardware, I am not 100% sure if Ubuntu supports all the hardware and just in case if I need to switch back to windows, is there a way I can reinstall the windows that come with the pre-built PC? If yes, any preparation I will need to do before I install the ubuntu?