Linux

Embracing Linux for Daily Development: Building a Dedicated Machine with Intel NUC 12 Pro

As a front-end developer, my daily tasks revolve around running a development server using Node.js. Previously, I relied on PowerShell or the Windows Subsystem for Linux (WSL). However, a recent encounter with Docker, where I struggled with handling aliased hosts and experienced slow performance within the containers, led me to reconsider my options. Driven by the desire for a more efficient workflow, I decided to dual-boot Ubuntu Linux alongside Windows 11. My initial plan was to spend my workday in the Linux environment and switch back to Windows in the evenings for gaming and other activities that Linux might not support as effectively.

Building an Affordable Dedicated Linux Machine Using Intel NUC

I have been dual-booting Ubuntu Linux on my main desktop PC for development. Docker on macOS and Windows with WSL suffers from severe I/O performance issues for “reasons”. Docker is infuriating to use outside of Linux, so I started looking for alternative builds. My primary 3900x gaming PC feels a little sacrilegious to use as a dedicated Linux machine to run some virtual machines and a Webpack server. I am not solving cryptographic problems here, so I just primarily need storage and ram; a decent CPU helps.

How To Copy A Public and Private Key From Windows Linux Subsystem Terminal

In WSL (Windows Subsystem for Linux) you get access to a Linux terminal right inside of Windows 10. For the most part, it works great. However, when it comes to copying and pasting the contents of files from Linux into Windows, the option is obscured. You can right-click the toolbar on the WSL terminal window, go to properties and enable the copy and paste features if you’re on one of the latest versions of it.

How To Generate An SSH Key and Add The Public Key To A Remote Server

The thing with SSH authentication is I can never remember the steps to generate an SSH key, and then add that SSH public key to the remote server so SSH authentication works. I had all of this in a text file, but honestly, I reference my own blog for knowledge on how to do things all of the time, I thought I’d write up a quick post. You can find numerous blog posts on this, but I always seem to find a straightforward explanation to give me what I need, that I just consulted my text file on my desktop.

Freeing Up Space on Ubuntu When You Unexpectedly Run Out of Disk Space

Recently, whilst working on an open-source project I work on we found ourselves running out of space on the server. The weird thing is the projects on the server themselves were barely 100mb in total file size, but we had run out nonetheless. After a little investigation to see what is using up the majority of space, the search led to the /usr/src folder which contains source header files for Ubuntu’s APT package manager. A trove of files in here weighing around 100mb seemed to add up to 4 gigabytes of used space.

Bulk Linux Chmod Commands For Files & Directories

Recently in Ubuntu which I use for my hosting operating system of choice I needed to bulk change permissions on a bunch of folders and files. I needed to set permissions on folders within a WordPress installation to 755 and all files in theme, plugin and asset directories to 644. While my command line-fu is not very strong, I was able to work it out and I thought I would share my findings here for others.