Skip to content

Instantly share code, notes, and snippets.

View Adhjie's full-sized avatar
🎯
Focusing

Adi Adhjie

🎯
Focusing
View GitHub Profile
@tdcosta100
tdcosta100 / WSL2GUIWSLg-XWayland-en.md
Last active April 21, 2025 12:13
A tutorial to use GUI in WSL2/WSLg replacing original Xorg by Xwayland, allowing WSL to work like native Linux, including login screen

Full desktop shell in WSL2 using WSLg (XWayland)

Note

If you want to use Wayland in WSLg in a simpler setup, you can try the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2. No additional software outside WSL (like VcXsrv or GWSL) is required. You will find this tutorial very similar to the one that replaces Xorg with Xvnc. Indeed, it's pretty much the same tutorial, with some few changes.

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc), and after that, replace the default Xorg by a script that calls Xwayland instead.

For this setup, I will use Ubuntu 24.04, and install GNOME Desktop. Unfortunately older versions of Ubuntu lack some fundamental things, so we cannot reproduce it in older versions (at least not fully). Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample screenshot

@tdcosta100
tdcosta100 / WSL2GUIWSLg-Wayland-en.md
Last active April 8, 2025 20:35
Using full desktop shell in WSL2 using WSLg (Wayland)

Full desktop shell in WSL2 using WSLg (Wayland)

Note

If you want a more complete experience and already tried the Xvnc tutorial, maybe you should try the WSLg (Xwayland) instead.

Warning

This is a work in progress tutorial. Things done here may break existing functionality, so be careful!

In this tutorial, we will install and use a full GNOME Desktop environment in WSL2, without any external software. The only requirement is a working WSLg installation. At the moment, the instructions are only for Ubuntu (20.04, 22.04 and 24.04) distros and GNOME, but you can request me to test other distros and desktop environments.

@dehsilvadeveloper
dehsilvadeveloper / 0_prerequisites.md
Last active April 24, 2025 15:16
Installing Docker on WSL 2 with Ubuntu 22.04

Installing Docker on WSL 2 with Ubuntu 22.04

Instalando Docker em um WSL 2 com Ubuntu 22.04

Prerequisites

Before start the installation process, make sure you meet the following prerequisites:

  • A Windows 10 operating system with WSL 2 support.
  • WSL 2 enabled.
  • Ubuntu 22.04 installed on WSL 2.
@denvernine
denvernine / 1.file-locations.md
Created November 13, 2023 05:51
Firefoxのabout:configを持ち歩きたい

設定ファイルの格納位置

autoconfing.js

Windows

{Firefoxをインストールしたディレクトリ}\defaults\pref\autoconfig.js

e.g.) C:\Program Files\Firefox Developer Edition\defaults\pref\autoconfig.js

@Rapptz
Rapptz / keepass.md
Last active January 29, 2025 17:42
Setting up KeePass

Setting Up KeePass

I frequently see discussions around which password manager to use. I personally use [KeePass][main]. This is an open source program that allows you to have control in your data. The database format is encrypted so as long as you keep your master password secure, the chance of someone getting access to your passwords is practically zero.

This document is just meant as a signpost to steer you in the right direction of how to set up KeePass across multiple operating systems and have your file synced in the cloud all while paying $0 and not having to set up a single server to do so.

Why KeePass?

You can skip this if you don't care

@b23prodtm
b23prodtm / WSL 2 GNOME Desktop.md
Last active March 4, 2025 01:55
Set up a GNOME desktop environment on WSL 2

WSL 2 GNOME Desktop

NOTE: If you want the ultimate Linux desktop experience, I highly recommend installing Linux as your main OS. I no longer use Windows (except in a VM) so I will not be maintaining this guide anymore.

Think Xfce looks dated? Want a conventional Ubuntu experience? This tutorial will guide you through installing Ubuntu's default desktop environment, GNOME.

GNOME is one of the more complex — and that means more difficult to run — desktop environments, so for years people couldn't figure [o

@stolendata
stolendata / firefoxramcache.md
Created December 9, 2022 19:52
Disable disk cache in Firefox

Go to the Privacy & Security configuration panel and clear all cached web content, then go to the advanced configuration panel - by entering about:config in the address bar - and change as follows:

browser.cache.disk.enablefalse

browser.cache.disk.smart_size.enabledfalse

browser.cache.disk_cache_sslfalse

browser.cache.offline.enablefalse

@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active April 14, 2025 01:59 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Last updated: April 2025

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

@dk949
dk949 / comments_of_the_world.md
Last active March 14, 2025 19:59
Comments in different programming languages

Comments in different programming languages

This document lists comment styles and languages (and dialects) that use it. The list is based on the one used in NERD commenter.

Comment types are grouped by the types of symbols used. Each example is organised as a comment block followed by a list of languages.

Note1: the number of languages is quite large, and much of this

@RubenKelevra
RubenKelevra / fast_firefox.md
Last active April 23, 2025 00:00
Make Firefox fast again