mirror of
https://git.adityakumar.xyz/blog.git
synced 2024-11-21 23:22:53 +00:00
change post formatting
This commit is contained in:
parent
4eac2a7efd
commit
832b7a8c45
14 changed files with 27 additions and 27 deletions
|
@ -40,10 +40,10 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
I don't know why would someone want to abort a shutdown or a restart and start working again.
|
||||
|
||||
<!--more-->
|
||||
|
||||
**Prerequisite:** The computer must be in Shutting Down/Restarting screen and be crazy fast before the shutdown/restart process completes.
|
||||
|
||||
## Time to get our hands dirty
|
||||
|
|
|
@ -40,12 +40,12 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
Just a shell script.
|
||||
|
||||
Requirements: curl, jq, GNU Coreutils
|
||||
|
||||
<!--more-->
|
||||
|
||||
```bash
|
||||
#!/bin/sh
|
||||
|
||||
|
|
|
@ -40,10 +40,10 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
Well you might have reasons to use Windows 10 and be without an alternative. In that case it is super important to have it NOT get in your way as should be the case. The biggest issues I see people face are forced updates, telemetry, and the computer slowing down over time. There are third-party solutions to all of these problems but here I will write about the ones you can fix yourself.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## "Fix" automatic updates
|
||||
### Disable automatic updates
|
||||
Microsoft has its own reasons to force an update, mostly for security issues and stuff and honestly, O recommend you to leave it that way if you have zero idea about what you are doing. But I have seen a lot of people stuck with Windows updating itself in a critical moment. Secondly, a lot of updates, as of late, tend to break more stuff than they (intend to) fix.
|
||||
|
|
|
@ -40,10 +40,10 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
Some tips to make your work easier. Believe me, Windows is not as alien thing as you want to beleive. Most of the work can be done form command line (as you usually would on Linux). Applies to regular Windows users as well.
|
||||
|
||||
<!--more-->
|
||||
|
||||
This is essentially one of the four blog posts. Don't worry, you will find the other three as you read.
|
||||
|
||||
## Do not let Windows Update get in your way
|
||||
|
|
|
@ -40,9 +40,9 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
This post is divided into two parts: (i) Install Arch in WSL, (ii) Configure as per your needs. Each part can be followed independently so if you are not a fan of GUI programs in WSL, leaving the part is perfectly fine.
|
||||
|
||||
This article is divided into two parts: (i) Install Arch in WSL, (ii) Configure as per your needs. Each part can be followed independently so if you are not a fan of GUI programs in WSL, leaving the part is perfectly fine.
|
||||
<!--more-->
|
||||
|
||||
## Part 0: FOr those running Windows 10 2004 or above
|
||||
Download and install Linux kernel updae package from [Microsoft's site](https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel). Set default version to WSL2 by running
|
||||
|
|
|
@ -40,10 +40,10 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
Installing Arch Linux on a KVM/QEMU virtual macin eis a fairly startightforward process. We will use command line approach in this post.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Create a virtual machine
|
||||
Here we use `virt-install` to create a virtual machine. Run the following as root:
|
||||
```bash
|
||||
|
|
|
@ -40,10 +40,10 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
If you are here then I assume you already know the purpose of using code-server. So why on phone? Phones these days have become quite powerful. Maybe you have an older laptop lying around. The existence of code-server on Android implies there is at least one use case being fulfilled. So I will not pursue the topic any further.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Install Termux
|
||||
Get it from [F-Droid](https://f-droid.org/packages/com.termux/).
|
||||
|
||||
|
|
|
@ -40,12 +40,12 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
You're probably here because you took fancy to the beauty of dde and want to try it.
|
||||
|
||||
Installing dde on Manjaro shouldn't really be much of an issue as long as Arch supports it.
|
||||
|
||||
<!--more-->
|
||||
|
||||
Now open a terminal and make sure you have the latest and the greatest of Manjaro:
|
||||
```bash
|
||||
sudo pacman -Syu
|
||||
|
|
|
@ -40,10 +40,10 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
`virt-manager` or *Virtual Machine Manager* is a frontend for managing virtual machines through *libvirt*. It primarily targets KVM virtual machines but is also capable of managing Xen and LXC. In this post we will focus on KVM.
|
||||
|
||||
<!--more-->
|
||||
|
||||
*All commands in this post are supposed to be run as root.*
|
||||
|
||||
## Installing necessary tools
|
||||
|
|
|
@ -40,9 +40,9 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
*because why not*
|
||||
|
||||
<!--more-->
|
||||
# Install PowerShell Core
|
||||
Or you can continue using PowerShell 5.1 if you wish.
|
||||
|
||||
|
|
|
@ -40,10 +40,10 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
Open elevated Command Prompt by hitting **Win+R > cmd > Ctrl+Shift+Enter > Yes**.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Using DiskPart
|
||||
Type in `diskpart` and hit Enter.
|
||||
|
||||
|
|
|
@ -40,9 +40,9 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
It might happen that you connected your USB stick but it did not show up in File Explorer. Maybe it is formatted with a filesystem not recognised by Windows or there might be some other reason.
|
||||
|
||||
<!--more-->
|
||||
In my case it was an NTFS formatted USB stick which in theory should be recognised by Windows but it did not or it refused to assign it a drive letter as was in my case. So before you think your removable drive has broken and start with a data recovery tool, follow the instructions here.
|
||||
|
||||
## Open elevated Command Prompt
|
||||
|
|
|
@ -40,10 +40,10 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
In my case it was Windows 10 + Manjaro dual boot but it should work for other distributions with single boot as well.
|
||||
|
||||
<!--more-->
|
||||
|
||||
*P.S.: There may be other ways to fix this but I am writing here what worked for me. Also, I am not responsible if your stuff breaks by following the steps here.*
|
||||
|
||||
*tl;dr: Boot using a live media, `chroot` to your existing installation and install GRUB to your boot partition.*
|
||||
|
|
|
@ -40,12 +40,12 @@ sequenceDiagrams:
|
|||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
This si not the same `sudo` you use in \*nix systems. It just shares the name.
|
||||
|
||||
It is quite tiresome to launch a new instance of the running program with admin privilege.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Install
|
||||
```powershell
|
||||
scoop install gsudo
|
||||
|
|
Loading…
Reference in a new issue