Windows

WSL 2 or How I Brought my Linux and Windows Installs Together

A while back I bought a mini PC to replace my old, tired and non-functional Linux box. 16G RAM, 512GB SSD, 11th Gen Intel Celeron and it included a license for Windows 11 Pro. Now I haven’t been happy with Windows since Windows 10 would drain my laptop’s battery by deciding it needed to install updates in the middle of the night. I’d pick up my laptop after a few days and the battery would be exhausted! So, I swore off Windows, opting instead for Linux (usually Ubuntu) and Chromebooks. But I got a Windows 11 Pro sitting in front of me on my new PC. Being the packrat that I am, I didn’t wipe the Windows partition but split the SSD into another partition and installed Ubuntu (which happily recognized the bootable Windows partition and set things up so I could boot to either Windows or Linux.

Curiosity eventually got the better of me and I started fooling around with Windows. I recalled messing with Window Subsystem for Linux (WSL) on my Windows 10 machines so I did some searches and found that Microsoft had come up with WSL 2. Futher, there were many distros available from the Windows Store. So I fired up WSL2 and loaded Ubuntu 22.04. Yup, looks pretty nice! Hmmm…I’ve got this external drive that’s formatted at ext4 and holds a bunch of the stuff I was using on my Linux box (media library, precious files and photos, backups, etc). Can I use that on Windows? Well, not without adding some “stuff” to Windows but I CAN attach the drive to my running WSL2 Ubuntu! So I did.

Now I can run some Windows-only services that I’ve been wanting to try out (Channels DVR server, for one) alongside my Linux services (JR Media Center for one, not to mention the Samba server which makes my backups, files and pictures available to my other machines.

The only thing that’s missing is an automated way of attaching that disk to my Linux WSL2 instance and redirecting the appropriate ports to the Linux instance. I managed to get that done with a PowerShell script that I had ChatGPT write for me. That’s right, ChatGPT wrote a PowerShell script for me! For a couple of weeks I had been trying to figure out what I could use ChatGPT for when it occurred to me to give it this task. I don’t know PowerShell. Sure I’m familiar with the basic concepts but the object model and the commands themselves are largely unknown to me. ChatGPT spit out the script in about 10 seconds and, while it wasn’t 100% right, it only took a hour or so of fiddling to get it to work just perfectly! ChatGPT to the rescue! But its not a panacea – I’ll do another blog post about that later.

WSL 2 or How I Brought my Linux and Windows Installs Together Read More »

Buh-bye Google Keep, OneNote, Evernote!

Open source Notesnook (https://github.com/streetwriters/notesnook) aims to be THE replacement for all your note taking needs. Fully encrypted on your device before storing on their cloud service (self-hosted option coming), it’s a zero knowledge service meaning they can’t decrypt your notes. With a web app (https://app.notesnook.com) and apps for iOS, Android, MacOS, Windows, and Linux you’re pretty much guaranteed to be able to use it wherever you need or want with full synchronization across all platforms. It’s still in its relative infancy and updates generally make it to the web app before other platforms. Roadmap at https://notesnook.com/roadmap/

Buh-bye Google Keep, OneNote, Evernote! Read More »

Tailscale for your Docker containers!

At DockerCon, Tailscale announced and launched their Docker extension. What does this mean? You can put your containers on your Tailscale VPN! Yeah, that’s a BIG deal! The announcement is at https://tailscale.com/blog/docker/ and the instructions to install and use it are at https://tailscale.com/kb/1184/docker-desktop/. While the documentation only addresses Docker Desktop, https://docs.docker.com/desktop/extensions-sdk/dev/cli/build-test-install-extension/ gives instructions for installing extensions through the CLI, and downloads are at https://github.com/docker/extensions-sdk/releases/tag/v0.2.4, which is currently in beta.

Tailscale for your Docker containers! Read More »

Finally, a point-to-point VPN!

I’ve set up a VPN at home and, honestly, in my config, it’s a PAIN! I have 3 routers that need to have ports opened and then I need to make sure that certificates and passwords are all secure.

Then I found Tailscale.com! What a breath of fresh air. Why didn’t anyone think of this before? Create an account on tailscale.com then install the tailscale service on the machine you want to be a part of the VPN and run it. The service connects to the tailscale server and it becomes an immediately available VPN target, complete with its own hostname (which you can change) and its VPN IP address. If you enable their “MagicDNS” in your settings then the hostnames all resolve to their VPN IP addresses (i.e. the hostname is first checked against the hostnames on the VPN before being checked against other DNS resolvers). Voila! No config, no ports to open, no firewall rules to manage! Now, when you’re away from home, you can get to your home server with confidence.

It’s free for a single hobby/personal user. There are a few restrictions as to how many subnets you have available but, honestly, if you’re a home user, the restrictions probably won’t bother you. It’s multi-platform with binaries for Android, MacOS, iOS, Windows, and Linux so you can connect just about anything you want. They’re on github at https://github.com/tailscale and a place to discuss it at https://forum.tailscale.com/. And, yes, you can use tailscale to act as a subnet router – https://tailscale.com/kb/1019/subnets/ – to get to those devices (e.g. printers) on which you can’t install tailscale.

Apologies for the delay between postings but I prefer to try the things before I post about them and tailscale took a while.

Finally, a point-to-point VPN! Read More »

3 new (to me) linux (mac, android,windows) tools

I’ll cut right to the chase, Copyq, syncthing, and tldr.

Copyq, at https://hluk.github.io/CopyQ/, is a clipboard manager for Linux, Windows, MacOS, AND ChromeOS in the Linux environment! It has a GUI as well as a command-line interface and in the ChromeOS environment, captures clips from BOTH Linux and ChomeOS! CHeck out the docs.

Tldr, at https://github.com/tldr-pages/tldr, provides a cheat-sheet-like summary of command options. It’s not as full function as a man page but can often provide just that one bit of info you need. It provides info on Android, Linux, MacOS, Windows, Sun OS(!), and a set of common commands like 2to3 (convert python 2 code to python 3), adb (Android Debug Bridge which can be installed on many different platforms), and atom (a cross-platform editor).

Syncthing, at https://syncthing.net/, is an open source, multi-platform, authenticated, continuous file synchronization program with communications secured by TLS. It works on MacOS, Windows, Linux, Android among many others.

3 new (to me) linux (mac, android,windows) tools Read More »

Google is bringing full on KVM to Android 13

Yeah! Now, you’ve gotta wonder how well it’ll perform but someone has already run Windows 11 on their Pixel 6 running the Android 13 preview. Here’s the tweets https://twitter.com/kdrag0n/status/1492754683445669893 and here’s a link to an asrticle that goes into more detail about the KVM implementation https://blog.esper.io/android-dessert-bites-5-virtualization-in-android-13-351789/ if you want more info.

https://www.androidauthority.com/windows-11-android-13-3107906 is the source article with some higher level info

Google is bringing full on KVM to Android 13 Read More »

Photoshop Express is up

Adobe’s opened shop on their Photoshop Express site and, if you can’t guess what it is, think Photoshop Elements on the web with 2GB of storage for free. You can publish your galleries/photos for others to see. They have links to Facebook, PhotoBucket and Picasa so you can get to the photos you’ve stored there. Haven’t seen a way to upload photos from your phone or email photos to the service yet but I imagine they’ll add that feature. And you don’t have to actually sign up for an account if you don’t want as they’ve got a try-me feature.

Photoshop Express is up Read More »