Skip to content

Commit c9e2a34

Browse files
committed
Minor fixes
1 parent 8bb5e65 commit c9e2a34

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

_posts/2023-11-01-linux_cheatsheet.markdown

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
layout: post
33
title: "My current linux cheatsheet/setup"
44
date: 2023-11-01 19:47:20 +0200
5-
categories: linux
5+
tags: linux windows bitlocker
6+
categories: tech
67
---
78

89
Since I've joined [Worklytics](https://www.worklytics.co/) I'm using Linux as operanting system for my daily work there. I've used Linux first time
@@ -12,15 +13,20 @@ rest of .NET things.
1213
The purpose of this post is for me, as a note for the future with the links I've found useful for setup and using Ubuntu since then.
1314
All credits belongs to the author of the related posts, I've just put there as a compilation.
1415

15-
## Dual boot with Bitlocker
16+
- [Dual boot with Bitlocker and LUKS](#dual-boot-with-bitlocker-and-luks)
17+
- [Git colors in terminal](#git-coloured-current-branch-in-terminal)
18+
- [Noise when connecting the speakers](#speaker-issues-not-solved)
19+
- [Low space on boot partition](#low-space-in-boot-partition)
1620

17-
First time I've installed Linux it was a like a pain. Since the release of Kubuntu (yeah I'm not as younger as I'd like to be) and Ubuntu the installation process, updates and package manager have improved a lot. Now just downloading the ISO of Ubuntu and put it in a USB pen is enough to setup the whole Linux system. The installation provides all the partition setup required for that.
21+
## Dual boot with Bitlocker and LUKS
22+
23+
First time I've installed Linux it was a like a pain. Since the release of Kubuntu (yeah I'm not as younger as I'd like to be) and Ubuntu the installation process, updates and package manager have improved a lot. Now just downloading the ISO of Ubuntu and put it in a USB stick is enough to setup the whole Linux system. The installation provides all the partition setup required for that.
1824

1925
But for sure this is more complicated if you want to keep two SOs (Windows and Linux) over the same computer, having both with disk encryption features enabled.
2026

2127
**NOTE**: This is only when two features are enabled. If Bitlocker/encryption are not enabled (and you SHOULD use it!) this post is not useful.
2228

23-
I've follow the detailed description of steps from [Mike Kasberg dual boot ubuntu and linux](https://www.mikekasberg.com/blog/2020/04/08/dual-boot-ubuntu-and-windows-with-encryption.html) which describe the following steps (leaving steps here in case of the post is removed/lost):
29+
I've followed the detailed description of steps from [Mike Kasberg dual boot ubuntu and linux](https://www.mikekasberg.com/blog/2020/04/08/dual-boot-ubuntu-and-windows-with-encryption.html) which describe the following things to do (even present in his blog, I'm leaving them here in case of the post is removed/lost):
2430
1. As a prerequisite, we are going to do a clean installation of both systems.
2531
2. Make a USB pen with Ubuntu installation
2632
3. Create the partitions from Ubuntu live installation:
@@ -95,7 +101,7 @@ Logical volume "root" created.
95101
11. [Setup the password to decrypt](https://www.mikekasberg.com/blog/2020/04/08/dual-boot-ubuntu-and-windows-with-encryption.html#phase-4-install-ubuntu) the disk
96102

97103

98-
Now the computer is setup with dual boot, Bitlocker and LUKS. Note at this point, *any* change done by updates (for example, updating firmware from Ubuntu updates) may modify the boot partition causing that Bilocker *detects* that a change has been done in the disk, requesting you your key to allow you to unblock your computer on next reboot. This is why I've try to update the main stuff from Windows and *not* from Ubuntu.
104+
Now the computer is setup with dual boot, Bitlocker and LUKS. Note at this point, *any* change done by updates (for example, updating firmware from Ubuntu updates) may modify the boot partition causing that Bilocker *detects* that a change has been done in the disk, requesting you your key to allow you to unblock your computer on next reboot. This is why I'll try to update the main stuff from Windows and *not* from Ubuntu.
99105

100106
## Git coloured current branch in terminal
101107

@@ -115,16 +121,16 @@ parse_git_branch() {
115121
export PS1="\u@\h \w\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
116122
```
117123

118-
And close terminals and reopen them again.
124+
Finally, just close any terminals and reopen them again.
119125

120126
## Speaker issues (not solved!)
121127

122-
Still not solved. Sound drivers still are a nightmare in Linux and in my case, if I connect a set of speakers from the 3.5 mm jack I heard an electrical noise as sound. It is not a computer issue because that is not happening in Windows.
128+
Still not solved. Sound drivers still are a nightmare in Linux and in my case, if I connect a set of speakers from the 3.5 mm jack I heard an electrical noise as sound. It is not a physical computer issue because that is not happening in Windows.
123129

124130
This is the [post](https://askubuntu.com/questions/1230833/annoying-click-popping-sound-on-ubuntu-20-04) where some solutions are present; I've read that the one to
125131
enable the [auto-mute](https://askubuntu.com/a/1351408) from alsamixer works for some people, but not in my case.
126132

127-
On my computer, it seems like the headset input (but it is selected headphones when plugged in) is producing the internal input sound, colliding with the microphone. Weird, but if I disable it there are no noise (and no sound!). However with a bluetooth headset there is no problem.
133+
On my computer, it seems like the headset input (but it is selected headphones when plugged in) is producing the internal input sound, colliding with the microphone. Weird, but if I disable it there is no noise (and no sound!). However with a bluetooth headset there is no problem.
128134

129135
There is another [post](https://askubuntu.com/questions/1241617/ubuntu-20-04-after-last-update-speakers-are-buzzing-unless-i-open-the-sound-s) with more details; playing with internal mic volume and gain improved the noise but still is there.
130136

0 commit comments

Comments
 (0)