This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Brady Shea - 18SEP2020 - conversion of system_update alias to bash script | |
| # https://www.holylinux.net/ | |
| # | |
| # Place this script in "/usr/local/sbin/system_update" or similar location under your $PATH | |
| # It needs root permissions (SUDO) to execute. | |
| # | |
| # Change these settings to your liking: | |
| ################################# |
Inspiration: https://www.most-useful.com/kde-plasma-on-wsl.html
- Update WSL
- In windows command prompt run:
wsl --update
- In windows command prompt run:
- Add systemd to ubuntu
- In ubuntu prompt run:
sudo nano /etc/wsl.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # USAGE: ./tmux-new.sh SESSION_NAME | |
| # | |
| # Credit to Keon Woortman | |
| # URL: https://koenwoortman.com/tmux-sessions-should-be-nested-with-care-unset-tmux-to-force/ | |
| session_name="$1" | |
| # 1. First you check if a tmux session exists with a given name. | |
| tmux has-session -t=$session_name 2> /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/profile | |
| # Set our umask | |
| umask 022 | |
| # Append "$1" to $PATH when not already in. | |
| # This function API is accessible to scripts in /etc/profile.d | |
| append_path () { | |
| case ":$PATH:" in | |
| *:"$1":*) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /db | |
| /plugins | |
| /uploads | |
| /logs |
Install latest stable release of Windows Terminal from GitHub:
Install latest stable release of PowerShell from GitHub:
✅ Open Windows Terminal and verify new PowerShell is integrated
Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active.
The root cause seems to be that WSL2 and the VPN use the same IP address block, and the VPN routing clobbers WSL2's network routing.
This problem is tracked in multiple microsoft/WSL issues including, but not limited to:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resolution_type: GETDNS_RESOLUTION_STUB | |
| round_robin_upstreams: 1 | |
| tls_authentication: GETDNS_AUTHENTICATION_REQUIRED | |
| tls_query_padding_blocksize: 256 | |
| edns_client_subnet_private: 1 | |
| idle_timeout: 9000 | |
| listen_addresses: | |
| - 127.0.0.1@8053 | |
| - 0::1@8053 | |
| dns_transport_list: |