Posts

Showing posts from January, 2022

QEMU: Installation of QEMU VMs on Mac OS

QEMU: Installation of QEMU VMs on Mac OS Credit Goes to : Gist GitHub Install QEMU on OSX QEMU requires brew in OSX, so we need to install brew first. Installing Brew To install brew we need to have the developer tools enabled in our system. In order to install those tools, we have two options. Download Xcode form the AppStore In your terminal run the following command: xcode-select --install Once you have the developer tools, run the following command in your terminal to install brew: $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Once the installation is finished, we can test the brew installation in our terminal with the command $ brew doctor Installing QEMU Now that we have brew on the system we can proceed to the QEMU installation. To do that we use a simple command: $ brew install qemu When the installation is finished, we can run the following command to test if the installation was succe

Python FastAPI: Notes

Python FastAPI: Notes My FastAPI notes. Installation pip install "fastapi[all]" Basic App: Assume filename main.py from typing import Optional from fastapi import FastAPI app = FastAPI ( ) @app . get ( "/" ) def read_root ( ) : return { "Hello" : "World" } @app . get ( "/items/{item_id}" ) def read_item ( item_id : int , q : Optional [ str ] = None ) : return { "item_id" : item_id , "q" : q } To start the API service uvicorn main : app - - reload To access API Documentation, http://ip.port/docs

How to resolve InitializeSandbox() called with multiple threads in process gpu-process. Error in Linux with Google Chrome ?

How to resolve InitializeSandbox() called with multiple threads in process gpu-process. Error in Linux with Google Chrome ? Hello Everyone, While launching google chrome browser, if you are getting below error in Linux, remove Google Chrome config directory from your home folder. ❯❯ ~ 18:03 google-chrome-stable [ 45359:45359:0125/180542.953317:ERROR:sandbox_linux.cc ( 378 ) ] InitializeSandbox ( ) called with multiple threads in process gpu-process. Note : Doing below command will delete your chrome data, hope you have enabled cloud sync. So remove config directory of google chrome from your home directory ❯❯ ~  18:07 rm -rf ~/.config/google-chrome Then launch google chrome again Hope it helps. Thanks Raaz

NodeJS: Important NodeJS Modules and URLs

This post is a on going article of important NodeJS Modules with thier usage.

Linux: How to validate /etc/fstab post changes ?

If You have done any changes to `/etc/fstab` file, and would like to check for any errors, then you can use the command `sudo findmnt --verify`.

Linux: How to generate self-signed certificate in Linux using openssl ?

Make sure openssl installed in your server/machine Process includes 3 steps as below {{ step.description }} {{ step.command }} Execution and output ❯❯ cert 23:03 openssl genrsa -out ca.key 2048 Generating RSA private key, 2048 bit long modulus (2 primes) ............+++++ ...........................+++++ e is 65537 (0x010001) ❯❯ cert 23:03 openssl req -new -key ca.key -subj "/CN=THELINUXNMEN-BLOG-CA" -out ca.csr ❯❯ cert 23:03 ls ca.csr ca.key ❯❯ cert 23:03 openssl x509 -req -in ca.csr -signkey ca.key -out ca.crt Signature ok subject=CN = THELINUXNMEN-BLOG-CA Getting Private key ❯❯ cert 23:04 ls ca.crt ca.csr ca.key ❯❯ cert