Posts

Showing posts from February, 2026

ssh into wsl2

I recently spilled water on my 14 year old Dell Inspiron laptop, which I run Ubuntu on and perform coding on. I also have a Chromebook laptop that does not have a lot of hard drive space or horsepower. I also have a newer laptop, but wife is often using it. So, I wanted to ssh into the newer laptop from the Chromebook. I previously set up wsl2 on the new laptop. It allows me to run Ubuntu from wsl2. I also have docker desktop installed on the new laptop, allowing me to kick off docker container applications. If you google   ssh into wsl2   or use the link below, you'll find instructions to ssh into wsl2: https://share.google/aimode/IRaXwFbkogMS3BjfP I've also included the instructions from google (see below) for your convenience. It was pretty simple to set up and works great. Steps to set up SSH in WSL2 Update and install OpenSSH server in WSL2: Open your WSL terminal. Run the following commands: sudo apt update sudo apt install openssh-server Configure the SSH server ...

SInatra JSON Web Site

I recently updated my code for a Sinata-based web site to use json files instead of data_mapper. The updated code is posted on my github site: https://github.com/edstraus23/sinatra_json1 data_ma pper wo uld only work with Ruby v2.6, which  reached its end-of-life in April 2022. I simplified the gems that are needed to run this application. I also added a simple search feature to the updated version. Before: require 'sinatra' require 'nokogiri' require 'htmlentities' require 'data_mapper' require 'yard' require "yard/sinatra" Now: require 'sinatra' require 'json' I started this project several years ago . The original intent of the project was to post lists of my favorite things (similar to RSS feeds). The project then morphed into a simple content magaement system (CMS) for DITA. The system uses Sinatra (a Ruby-based web framework) to host its forms. It used datamapper as the database for storing the conten...