Difference between revisions of "IT-OS-Admin-Winodws"
Jump to navigation
Jump to search
Samerhijazi (talk | contribs) (→WSL) |
Samerhijazi (talk | contribs) (→WSL) |
||
| Line 31: | Line 31: | ||
wsl --unregister Ubuntu-18.04 | wsl --unregister Ubuntu-18.04 | ||
wsl --export Ubuntu-18.04 Ubuntu-18.04.tar | wsl --export Ubuntu-18.04 Ubuntu-18.04.tar | ||
| − | wsl --import Ubuntu-Fabric . | + | wsl --import Ubuntu-Fabric ./Ubuntu-Fabric ./Ubuntu-18.04.tar |
wsl -d Ubuntu-Fabric | wsl -d Ubuntu-Fabric | ||
</pre> | </pre> | ||
| Line 37: | Line 37: | ||
# Fedora | # Fedora | ||
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/blob/33/x86_64/fedora-33.20201230-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 wheel yourusername | ||
| + | passwd yourusername | ||
| + | exit | ||
| + | --- | ||
| + | wsl -d Fedora-33 -u yourusername | ||
| + | $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 | ||
| + | --- | ||
| + | dnf copr enable trustywolf/wslu | ||
</pre> | </pre> | ||
Revision as of 18:48, 3 January 2021
Contents
Mix
Theming
- 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
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:\> netsh winhttp show proxy ==> lists system-proxy C:\> doskey np=notepad++.exe $*
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
WSL
# Multi-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 wget https://github.com/fedora-cloud/docker-brew-fedora/blob/33/x86_64/fedora-33.20201230-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 wheel yourusername passwd yourusername exit --- wsl -d Fedora-33 -u yourusername $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 --- dnf copr enable trustywolf/wslu