Posts

wsl 777 permission bold green color remove

  export LS_COLORS= " $LS_COLORS :ow=1;34:tw=1;34:" source ~/.bashrc

Make your wsl 2 Current Distro Run Systemd

By this installation, systemd is enabled in your WSL 2 distro. Download and run the latest installer script. curl -L -O "https://raw.githubusercontent.com/nullpo-head/wsl-distrod/main/install.sh" chmod +x install.sh sudo ./install.sh install This script installs distrod, but doesn't enable it yet. Enable distrod in your distro You have two options. If you want to automatically start your distro on Windows startup, enable distrod by the following command /opt/distrod/bin/distrod enable --start-on-windows-boot Otherwise, /opt/distrod/bin/distrod enable You can run enable with --start-on-windows-boot again if you want to enable autostart later. Restart your distro Close your WSL's terminal. Open a new Command Prompt window, and run the following command. wsl --terminate Distrod After re-opening a new WSL window, your shell runs in a systemd session

Installing Docker in WSL2

While we  could  use Docker Desktop, we can also run the docker daemon (aka Docker Engine) directly within our WSL2 environment. It's faster, and takes up less system resources using this method. Bonus : This method also works for Windows on ARM users, which at the time of this writing, Docker Desktop is x86-64 only. Enable systemd sudo tee /etc/wsl.conf << EOF [boot] systemd=true EOF exit Restart Shutdown WSL wsl --shutdown Prepare the subnets before you begin Set a predictable IP address for the docker bridge network interface and additional docker subnets. This can save you a lot of grief down the road when docker will inevitably conflict with another subnet on your network. I am going to use 192.168.1.1 as the bridge IP, and allocate the remaining 254 IP addresses (192.168.1.*) for additional IPs in this subnet. https://www.ipaddressguide.com/cidr  is a great utility for converting subnets into the CIDR notation. For example: 192.168.1.1 - 192.168.1.255 = 192....

External monitor not detected on Ubuntu 23

Install all recommended drivers: sudo ubuntu-drivers autoinstall Reboot

Send push notifications to your phone or desktop using PUT/POST

https://github.com/binwiederhier/ntfy

Improve Container Image Availability and Speed with Caching in Kubernetes

https://itnext.io/improve-container-image-availability-and-speed-with-caching-in-kubernetes-870fa7bfa1ed

Dockerfile for many programming languages

https://github.com/hoalongnatsu/Dockerfile