mirror of
https://git.adityakumar.xyz/blog.git
synced 2024-11-21 15:22:52 +00:00
add a bunch of posts
This commit is contained in:
parent
297ff10f3b
commit
01158ca74a
7 changed files with 174 additions and 0 deletions
48
content/post/ethernet-does-not-work-in-linux.md
Normal file
48
content/post/ethernet-does-not-work-in-linux.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
title: "Ethernet Does Not Work in Linux"
|
||||
date: 2022-03-17T23:59:14+05:30
|
||||
lastmod: 2022-03-17T23:59:14+05:30
|
||||
draft: false
|
||||
keywords: [ethernet, dhcpcd, networkmanager]
|
||||
description: ""
|
||||
tags: [ethernet]
|
||||
categories: [linux]
|
||||
author: ""
|
||||
|
||||
# You can also close(false) or open(true) something for this content.
|
||||
# P.S. comment can only be closed
|
||||
comment: false
|
||||
toc: true
|
||||
autoCollapseToc: false
|
||||
postMetaInFooter: true
|
||||
hiddenFromHomePage: false
|
||||
# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright."
|
||||
contentCopyright: false
|
||||
reward: false
|
||||
mathjax: false
|
||||
mathjaxEnableSingleDollar: false
|
||||
mathjaxEnableAutoNumber: false
|
||||
|
||||
# You unlisted posts you might want not want the header or footer to show
|
||||
hideHeaderAndFooter: false
|
||||
|
||||
# You can enable or disable out-of-date content warning for individual post.
|
||||
# Comment this out to use the global config.
|
||||
#enableOutdatedInfoWarning: false
|
||||
|
||||
flowchartDiagrams:
|
||||
enable: false
|
||||
options: ""
|
||||
|
||||
sequenceDiagrams:
|
||||
enable: false
|
||||
options: ""
|
||||
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
## The problem
|
||||
There is a bit of a story here. I had both `dhcpcd` and `NetworkManager` running simultaneously. After wasting a good chunk of my time I found that you are not supposed to run both at a given time.
|
||||
|
||||
## The solution
|
||||
Disable either `dhcpcd` or `NetworkManager` and it should be working again after a reboot.
|
48
content/post/fix-headset-microphone-issue-in-linux.md
Normal file
48
content/post/fix-headset-microphone-issue-in-linux.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
title: "Fix Headset Microphone Issue in Linux"
|
||||
date: 2022-03-17T23:48:49+05:30
|
||||
lastmod: 2022-03-17T23:48:49+05:30
|
||||
draft: false
|
||||
keywords: [headset, unplugged]
|
||||
description: ""
|
||||
tags: [driver]
|
||||
categories: [linux]
|
||||
author: ""
|
||||
|
||||
# You can also close(false) or open(true) something for this content.
|
||||
# P.S. comment can only be closed
|
||||
comment: false
|
||||
toc: false
|
||||
autoCollapseToc: false
|
||||
postMetaInFooter: true
|
||||
hiddenFromHomePage: false
|
||||
# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright."
|
||||
contentCopyright: false
|
||||
reward: false
|
||||
mathjax: false
|
||||
mathjaxEnableSingleDollar: false
|
||||
mathjaxEnableAutoNumber: false
|
||||
|
||||
# You unlisted posts you might want not want the header or footer to show
|
||||
hideHeaderAndFooter: false
|
||||
|
||||
# You can enable or disable out-of-date content warning for individual post.
|
||||
# Comment this out to use the global config.
|
||||
#enableOutdatedInfoWarning: false
|
||||
|
||||
flowchartDiagrams:
|
||||
enable: false
|
||||
options: ""
|
||||
|
||||
sequenceDiagrams:
|
||||
enable: false
|
||||
options: ""
|
||||
|
||||
---
|
||||
|
||||
You may have noticed your plugged in headset shows up as "Headset (unplugged)" in Pavucontrol and it does not take audio input. Your computer is probably missing on some kernel modules for audio capture to work properly. Put the following in `/etc/modprobe.d/alsa-base.conf`
|
||||
```
|
||||
options snd-hda-intel model=alc255-acer,dell-headset-multi
|
||||
```
|
||||
|
||||
These modules work even when your device is not from the said OEMs. Additionally, there might already exist a module specifically for your machine. In that case, put that in the file and reboot.
|
78
content/post/open-an-unlisted-removable-drive-in-windows.md
Normal file
78
content/post/open-an-unlisted-removable-drive-in-windows.md
Normal file
|
@ -0,0 +1,78 @@
|
|||
---
|
||||
title: "Open an Unlisted Removable Drive in Windows"
|
||||
date: 2020-03-23T06:57:45+05:30
|
||||
lastmod: 2022-03-17T22:58:45+05:30
|
||||
draft: false
|
||||
keywords: [diskpart, removable-drive]
|
||||
description: ""
|
||||
tags: [diskpart]
|
||||
categories: [windows]
|
||||
author: ""
|
||||
|
||||
# You can also close(false) or open(true) something for this content.
|
||||
# P.S. comment can only be closed
|
||||
comment: false
|
||||
toc: true
|
||||
autoCollapseToc: false
|
||||
postMetaInFooter: true
|
||||
hiddenFromHomePage: false
|
||||
# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright."
|
||||
contentCopyright: false
|
||||
reward: false
|
||||
mathjax: false
|
||||
mathjaxEnableSingleDollar: false
|
||||
mathjaxEnableAutoNumber: false
|
||||
|
||||
# You unlisted posts you might want not want the header or footer to show
|
||||
hideHeaderAndFooter: false
|
||||
|
||||
# You can enable or disable out-of-date content warning for individual post.
|
||||
# Comment this out to use the global config.
|
||||
#enableOutdatedInfoWarning: false
|
||||
|
||||
flowchartDiagrams:
|
||||
enable: false
|
||||
options: ""
|
||||
|
||||
sequenceDiagrams:
|
||||
enable: false
|
||||
options: ""
|
||||
|
||||
---
|
||||
|
||||
<!--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.
|
||||
|
||||
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
|
||||
|
||||
Once there, enter `diskpart`
|
||||
|
||||
The [DiskPart](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart) commands help you to manage your PC's drives (disks, partitions ,volumes, or virtual hard disks).
|
||||
|
||||
Now type `list vol` and hit enter. It wil list the volumes installed in your computer.
|
||||
{{% center %}}
|
||||
{{% figure src="/img/diskpart-list-vol-1.png" title="It was initially a bootable USB drive containing Manjaro 17.06 and I was too lazy to change the label before formatting" alt="Screenshot of the command `list vol`" %}}
|
||||
{{% /center %}}
|
||||
|
||||
Luckily, in my vase all filesystems are recognised by Windows.
|
||||
|
||||
Next, enter `sel vol #`, where `#` is the volume number of the removable drive, which in my case is `Volume 6`. So mine looks like this:
|
||||
{{% center %}}
|
||||
{{% figure src="/img/dispkart-set-vol-2.png" alt="Screenshot of the command `set vol`" %}}
|
||||
{{% /center %}}
|
||||
|
||||
Now, it is time to assign the removable drive a drive letter so that it can show up in File Explorer. To do that, choose any letter that is not in use except `A` and `B`. They are reserved for floppy drives for historical reasons (and alsi to prevent any unwanted potential issue). So enter `assign letter $`, where `$` is the letter. In my case, it looks like:
|
||||
{{% center %}}
|
||||
{{% figure src="/img/diskpart-assign-letter.png" alt="Screenshot of the command `assign letter`" %}}
|
||||
{{% /center %}}
|
||||
|
||||
Enter `list vol` again just to be sure or alternatively you can check in File Explorer.
|
||||
{{% center %}}
|
||||
{{% figure src="/img/dispkart-set-vol-2.png" alt="Screenshot of the command `list vol` to confirm our actions" %}}
|
||||
{{% /center %}}
|
||||
|
||||
To exit `DISKPART`, type in `exit` and hit enter.
|
||||
|
||||
Now you can work normally witht the removable drive. If your issue is still unfixed maybe it is time to ask in forums and get data recovery tool in action.
|
BIN
static/img/diskpart-assign-letter.png
Normal file
BIN
static/img/diskpart-assign-letter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
BIN
static/img/diskpart-list-vol-1.png
Normal file
BIN
static/img/diskpart-list-vol-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
static/img/diskpart-set-vol.png
Normal file
BIN
static/img/diskpart-set-vol.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
BIN
static/img/dispkart-set-vol-2.png
Normal file
BIN
static/img/dispkart-set-vol-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Loading…
Reference in a new issue