Skip to content

Instantly share code, notes, and snippets.

@darkfrank-it
darkfrank-it / wslview_wsl.md
Last active October 9, 2025 11:43
Set wslu as default file manager (open explorer.exe) on WSL

Setting wslview.desktop as the Default File Manager on WSL

Process of setting wslview.desktop as the default file manager on Windows Subsystem for Linux (WSL). wslview.desktop is a part of the WSL Utilities (wslu) package, which is a collection of utilities for Windows 10 Linux Subsystem, such as converting WSL path to Windows path or creating your favorite Linux GUI application shortcuts on Windows 10 Desktop.

Step 1: Check the Current Default File Manager

Before we make any changes, it's always a good idea to check the current settings. You can check the current default file manager using the following command:

@darkfrank-it
darkfrank-it / Resolving_USB_HDD_Disappearance.md
Created August 3, 2024 09:29
Resolving USB Hard Drive Disappearance on Raspberry Pi 3 with Ubuntu Server 22.04

Resolving USB Hard Drive Disappearance on Raspberry Pi 3 with Ubuntu Server 22.04

Problem

Sometime the USB Hard Drive with ntfs file system, shared with samba, on my Raspberry Pi 3 running Ubuntu Server 22.04, disappears.

Solution

To solve this problem without rebooting the entire system, I followed these steps:

Step 1: Enable Predictable Network Interface Names

When the USB power is cycled, the network interface name changes from eth0 to enx[mac address], causing network issues. To ensure the network interface retains the name eth0, I created a udev rule.

@darkfrank-it
darkfrank-it / xfce_rdp.md
Last active July 25, 2024 15:06
Transforming Xubuntu/Xfce for Remote Access via RDP

Transforming Xubuntu/Xfce for Remote Access via RDP

Remote Desktop Protocol (RDP) is a powerful tool that allows you to access your desktop environment from anywhere. If you’re using XUbuntu or Xfce, you can easily set up RDP by following these steps:

Step 1: Install XRDP

First, you need to install XRDP, an open-source implementation of the RDP server. Open your terminal and run the following command:

sudo apt install xrdp
@darkfrank-it
darkfrank-it / mic-toggle.sh
Created August 11, 2022 15:14
Toggle microphone + Toggle Microsoft Team mic. To select correct source use 'pactl subscribe' and then mute the target mic to get the correct id.
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-only
# Copyright (C) 2022 darkfrank-it
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the
# Free Software Foundation, version 3.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of