Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
lidgnulinux / Launch_ubuntu_gnome_wayland_without_display_manager.md
Created May 3, 2024 01:54
Alternative way to launch Ubuntu GNOME without display manager.

How to Launch Ubuntu GNOME (Wayland) without Display Manager.

I'm not a fans of display manager (GDM, Lightdm, SDDM, etc), though for some people they could be usefull. When I'm using debian, slackware, alpine, I can launch GNOME desktop without display manager (I use tbsm / terminal based session manager). Strangely when I move to Ubuntu, I'm kind of forced to use display manager (GDM, in this case). So I tried several commands to launch ubuntu GNOME directly from tty and gladly I found it. I just need to use this command :

network:
wifis:
YOUR_WIRELESS_INTERFACE:
dhcp4: yes
dhcp6: yes
access-points:
"YOUR_SSID":
password: "YOUR_PASSWORD"
version: 2
renderer: networkd

Installing Ubuntu Via Minimal Archive

This is a simple guide for installing Ubuntu using minimal archive. I knew it some days ago, Ubuntu provides a minimal archive / rootfs which we can use to have a minimal Ubuntu system. We will use it to get a minimal and quite usable Ubuntu distro.

Requirements.

We will need some requirements, like :

7427: find library=libgstgl-1.0.so.0 [0]; searching
7427: search path=/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2:/usr/lib/x86_64-linux-gnu (system search path)
7427: trying file=/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/libgstgl-1.0.so.0
7427: trying file=/usr/lib/x86_64-linux-gnu/libgstgl-1.0.so.0
7427:
7427: find library=libgstvideo-1.0.so.0 [0]; searching
7427: search path=/usr/lib/x86_64-linux-gnu (system search path)
7427: trying file=/usr/lib/x86_64-linux-gnu/libgstvideo-1.0.so.0
7427:
7427: find library=libgstreamer-1.0.so.0 [0]; searching
1669: find library=libgstgl-1.0.so.0 [0]; searching
1669: search path=/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2:/usr/lib/x86_64-linux-gnu (system search path)
1669: trying file=/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/libgstgl-1.0.so.0
1669: trying file=/usr/lib/x86_64-linux-gnu/libgstgl-1.0.so.0
1669:
1669: find library=libgstvideo-1.0.so.0 [0]; searching
1669: search path=/usr/lib/x86_64-linux-gnu (system search path)
1669: trying file=/usr/lib/x86_64-linux-gnu/libgstvideo-1.0.so.0
1669:
1669: find library=libgstreamer-1.0.so.0 [0]; searching
@lidgnulinux
lidgnulinux / get_cursor_coordinate_wayland.sh
Created February 5, 2024 02:32
How to get cursor's coordinate on wayland.
#!/bin/bash
# Dependencies :
# - slurp (https://wayland.emersion.fr/slurp/).
# - awk.
# - cut.
# - sed.
# - Wayland compositor with layer_shell support.
# How to use :
import XMonad
import System.Exit
import System.IO
-- import XMonad.Hooks.SetWNName
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Actions.WorkspaceNames
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import qualified XMonad.StackSet as W
#!/usr/bin/bash
grim -g "$(wf-info | grep Geome | awk {'print $2,$3'})"
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.7.3 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 13.2.0-13ubuntu1) 13.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=130200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24200
Feb 26 21:34:07 LIDG lxc-net[1020]: Warning: Extension udp revision 0 not supported, missing kernel module?
Feb 26 21:34:07 LIDG lxc-net[1020]: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
Feb 26 21:34:07 LIDG lxc-net[1000]: Failed to setup lxc-net.
Feb 26 21:34:07 LIDG lxc-net[1031]: Warning: Extension udp revision 0 not supported, missing kernel module?
Feb 26 21:34:07 LIDG lxc-net[1031]: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
Feb 26 21:34:07 LIDG lxc-net[1035]: Warning: Extension tcp revision 0 not supported, missing kernel module?
Feb 26 21:34:07 LIDG lxc-net[1035]: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
Feb 26 21:34:07 LIDG lxc-net[1038]: Warning: Extension udp revision 0 not supported, missing kernel module?
Feb 26 21:34:07 LIDG lxc-net[1038]: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
Feb 26 21:34:07 LIDG lxc-net[1041]: War