Difference between revisions of "IT-OS-Admin-Winodws"
Jump to navigation
Jump to search
Samerhijazi (talk | contribs) (→WSL) |
Samerhijazi (talk | contribs) (→Mix) |
||
| Line 1: | Line 1: | ||
=Mix= | =Mix= | ||
| + | ==Activating Windows== | ||
| + | <pre class="code"> | ||
| + | slmgr.vbs -xpr | ||
| + | wmic path SoftwareLicensingService get OA3xOriginalProductKey | ||
| + | </pre> | ||
| + | |||
==RegEdit== | ==RegEdit== | ||
* https://www.wintools.info/index.php/classic-color-panel | * https://www.wintools.info/index.php/classic-color-panel | ||
Revision as of 19:29, 12 November 2021
Contents
Mix
Activating Windows
slmgr.vbs -xpr wmic path SoftwareLicensingService get OA3xOriginalProductKey
RegEdit
- https://www.wintools.info/index.php/classic-color-panel
- Background: 212 208 200
- https://www.neowin.net/forum/topic/624901-windows-colors-explained/
- HKEY_CURRENT_USER\Control Panel\Colors
- HKEY_CURRENT_USER\Control Panel\Desktop\Colors
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion # RegisteredOwner
Resetting & Update to Pro
- https://consumer.huawei.com/en/support/content/en-us00729833/
- https://consumer.huawei.com/en/support/content/en-us00770088/
Admin Config/tools
- HOSTs: C:\Windows\System32\Drivers\etc\hosts
- https://dev.to/bowmanjd/install-fedora-on-windows-subsystem-for-linux-wsl-4b26
- https://docs.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2
- REG: https://www.howtogeek.com/222057/how-to-remove-the-folders-from-%E2%80%9Cthis-pc%E2%80%9D-on-windows-10/
C:\> net use # List mapped network drives. C:\> netsh winhttp show proxy # lists system-proxy C:\> doskey np=notepad++.exe $* C:\> netstat -ano | find "5005" C:\> taskkill /F /PID 1196 C:\> mklink /J "C:\Link To Folder" "C:\Users\Name\Original Folder" # Symbolic Links
Windows-Terminal
- https://docs.microsoft.com/en-us/windows/terminal/
- https://github.com/microsoft/cascadia-code
- https://windowsloop.com/add-open-windows-terminal-here-option-to-right-click-menu/
- https://github.com/dracula/windows-terminal
Hyper-V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor
WSL
Ref.
- https://docs.microsoft.com/en-us/windows/wsl/
- https://fedoramagazine.org/wsl-fedora-33/
- https://github.com/sirredbeard/Awesome-WSL
- https://dev.to/bowmanjd/install-fedora-on-windows-subsystem-for-linux-wsl-4b26
- https://www.kali.org/docs/wsl/win-kex/
Mix
- Reset wsl: Settings -> Apps -> Apps & features
cli
$ wsl -l # Lists distributions. $ wsl -s distro-name # Sets the distribution as the default. $ wsl -d distro-name # Run the specified distribution. $ wsl -u user # Run as the specified user. $ wsl --unregister distro-name # Unregisters the distribution. $ wsl --export distro-name file-name # Exports the distribution to a tar file. $ wsl --import distro-name location file-name # Imports the specified tar file as a new distribution.
/etc/wls.conf
$ echo 'appendWindowsPath=False' > /etc/wsl.conf $ /mnt/c/Windows/System32/wsl.exe --shutdown or c:> Restart-Service LxssManager ----------------------------------------------------- sudo bash -c "echo 'source /etc/environment' >> /etc/profile"
Distros
https://aka.ms/wslubuntu2004 https://aka.ms/wsl-ubuntu-1804 https://aka.ms/wsl-ubuntu-1604 https://aka.ms/wsl-debian-gnulinux ---------------------------------------------------------------- $ curl.exe -L -o ubuntu-1604.appx https://aka.ms/wsl-ubuntu-1604 $ Add-AppxPackage .\ubuntu-1604.appx
Ubuntu
wsl --unregister Ubuntu-18.04 wsl --export Ubuntu-18.04 Ubuntu-18.04.tar wsl --import Ubuntu-Fabric ./Ubuntu-Fabric ./Ubuntu-18.04.tar wsl -d Ubuntu-Fabric
Fedora
- https://fedoramagazine.org/wsl-fedora-33/
- https://dev.to/bowmanjd/install-fedora-on-windows-subsystem-for-linux-wsl-4b26
wget https://github.com/fedora-cloud/docker-brew-fedora/blob/33/x86_64/fedora-33.20201230-x86_64.tar.xz wget https://github.com/fedora-cloud/docker-brew-fedora/raw/34/x86_64/fedora-34.20210424-x86_64.tar.xz wget https://raw.githubusercontent.com/fedora-cloud/docker-brew-fedora/34/x86_64/fedora-34.20210424-x86_64.tar.xz xz --decompress fedora-33.20201230-x86_64.tar.xz wsl --import Fedora-33 ./Fedora-33 ./fedora-33.tar wsl -d Fedora-33
dnf update dnf install wget curl sudo ncurses dnf-plugins-core dnf-utils passwd findutils useradd -G irbid samer passwd samer exit
wsl -d Fedora-33 -u samer ----------------------------------------------------------- $id -u 1000 $ sudo cat /etc/shadow
Get-ItemProperty Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\*\ DistributionName | Where-Object -Property DistributionName -eq Fedora-33 | Set-ItemProperty -Name DefaultUid -Value 1000 wsl -d Fedora-33 ----------------------------------------------------------- sudo dnf copr enable trustywolf/wslu