Posts

Showing posts with the label ubuntu

Rescuing old laptops with the help of Linux

Image
I spent the weekend reviving 2 old laptops. Both  have more than 10 years on them. The Compaq one had recently been upgraded to Windows 11 from Windows 7. Big mistake! It resulted in a sluggish barely useable laptop. The second was an old Dell XPS 15 from my Uni days. It was running Windows 11 well but it would randomly blue screen so it was pretty useless. Enter LXLE OS . This is an Ubuntu based distro using the lightweight Lubuntu LTS distro but with some improved UI elements. I downloaded the image which was about 2GB and created a bootable USB driving using Rufus . Plugged it into the laptops and it did its thing. Both laptops are working very smoothly. Wifi, bluetooth, graphics and audio work fine. I was even able to set them up for coding using Docker and Vscode. The Dell XPS has not blue screened since switching.  LXLE comes preinstalled with a lightweight browser (I installed Firefox anyway), Libre Office, some simple games and other useful apps. The UI takes some gett...

Deploying Laravel Jetstream Inertia based app on LEMP stack and Ubuntu 22

Image
Today I deployed a Laravel 10 Jetstream Inertia based app on LEMP stack and Ubuntu 22. Here is the gist of what I went through. Deploy server with Ubuntu 22 I deployed a private Github repo so I needed to generate a public ssh key for your user . ssh-keygen -t ed25519-sk -C "YOUR_EMAIL" . Next add that key to your Github repo deploy tokens. Clone repo to /var/www/[your-site] git clone [myrepo] . Install Basic Laravel with LEMP stack and Composer with this tutorial . Also handy to refer to Laravel's recommended Nginx config Used strong (level 2) password for mysql setup which required logging in using sudo mysql and setting the root password before continuing with the usual sudo mysql_secure_installation process. Also needed additional php plugins for my app php-gd, php-zip My public folder was not in the root so I have to set it to ./laravel/public for my vhost file. In order to mock my production domain (which does not have DNS records yet). I edited my local...