Posts tagged linux
Kill process listening on a specific port
- 09 June 2024
Possible title underline, too short for the title. Treating it as ordinary text because it’s so short.
Connect to the host from a docker container
- 01 September 2023
Use the extra_hosts option in docker-compose:
VS Code and Copilot on Debian
- 04 July 2023
Run the daemons and export the env variables for dbus and the keyring:
Install Debian
- 24 September 2022
Download the complete iso from: https://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-dvd/
Dual boot (UEFI)
- 24 September 2022
update-grub automatically takes care of this by probing the EFI directory.
Debugging external monitor issues in Linux
- 02 August 2022
Sometimes when I connect the external monitor using usb-c, it gives the following error:
Get installed packages in Arch Linux
- 25 June 2022
Get all the installed packages. Use the query -Q switch:
Virtual Machine
- 30 December 2020
I’ve tried virtual box before. I’ve heard that KVM is faster so I want to give it a try:
Track Memory Usage of a Process
- 30 December 2020
Image that you want to track the memory usage of dotnet, use the watch command with ps to get an overview of the memory usage:
Domain name resolution
- 30 December 2020
Information is stored in the form of DNS records. There are different types of records and some of them required for our discussion are mentioned below:
Bind mount
- 30 December 2020
Using a bind mount might seem to accomplish what a symlink does but it happens at a lower level and changes the underlying topology of the filesystem (and hence it requires root privileges).
Configuring External Monitors
- 30 November 2019
xrandr is a popular lib. For a GUI version, use arandr which lets you create a screen layout and save it as a bash script.
Use the swap partition instead of the swap file
- 16 October 2019
To persist these changes across reboots, update the fstab file and edit /swapfile to /dev/nvme0n1p3
Resize the mounted parition
- 16 October 2019
Start the machine using a ‘recovery’ usb. This makes it possible to work with the partition as it is not mounted.
Displaylink on Ubuntu 18.04
- 14 May 2019
I want to use additional monitors and I got a ThinkPad Hybrid USB-C with USB-A Dock It looks like this: