We all want to work smarter, not harder. (Or at least some of us…) Automating the repetitive tasks was always a huge leap forward even before the “DevOps times” when we wrote shell scripts and Perl code to create automation out of the box. Today we have the luxury of choosing between a lot of automation and orchestration frameworks.
Continue reading “Windows as Ansible control host in WSL2”Tag: wsl
How to run multiple instances of the same distro in WSL?
Microsoft WSL is a very good technology when we want to run Linux applications on our Windows computer. When we install a distro from the Microsoft Store we can only install one instance of it. But with some work we can have multiple instances of the same distro.
Continue reading “How to run multiple instances of the same distro in WSL?”Fixing the “Error connecting…” issue in Kali KeX on WSL (updated: 2023. 01. 12.)
Requirements:
- Kali distro is installed
- KeX is installed
- Kali is WSL version 2
- Coffee is ready for consumption
Time to time the Kali desktop on WSL stops working and spits out the following message:
Error connecting to the KeX server.
Please try "kex start" to start the service.
If the server fails to start, please try "kex kill" or restart your WSL2 session and try again.
Of course the “solution” from the error message does not work.
Continue reading “Fixing the “Error connecting…” issue in Kali KeX on WSL (updated: 2023. 01. 12.)”How to backup and restore a distro on WSL?
Backing up and restoring WSL distros are easy! Simply exporting the stopped distro into an archive file works pretty well. The archive can be moved on an external disk or cloud share. Restoring a backup is importing back the generated archive.
Moreover we can add multiple instances of the same distro with exporting then importing it. With this we can have for example three different Debian boxes in WSL.
Continue reading “How to backup and restore a distro on WSL?”Installing Kali Linux with GUI on WSL
Pre-Installation steps
- WSL must be installed on the host machine prior this task. Microsoft has an extensive documentation on the topic.
- Basic WSL management skills are nice to have, like importing/exporting/removing WSL instances. Use wsl –help for reference.
- Read the Kali documentation about the topic as well.
How to backup and restore a distro in WSL?
Backing up and restoring WSL distros is easier than we think! It is simply an export of the (stopped) distro that can be moved on an external disk as an archive. Restoring a backup is importing the generated tar file.
Moreover we can add multiple instances of the same distro with exporting and then importing it.
Continue reading “How to backup and restore a distro in WSL?”How to use Python virtual environments in Visual Studio Code?
I need both Linux and Windows environments at the same computer. I have been a Linux desktop user for almost 20 years, but some of the tools I use recently require Windows 10. Dual boot was a great solution, but it required double hard disk space and maintenance. One of my daily driver tools is Windows-only and a heavy GPU consumer, thus I changed my primary OS to Windows, and my Linux experience relies on WSL (Windows Subsystem for Linux).
Continue reading “How to use Python virtual environments in Visual Studio Code?”