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
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
#
# 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
--- adb starting (pid 7120) ---
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63 Android Debug Bridge version 1.0.41
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63 Version 34.0.4-android-tools
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63 Installed as /usr/bin/adb
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63 Running on Linux 6.6.17-0-lts (x86_64)
02-25 18:29:28.205 7120 7120 I adb : main.cpp:63
02-25 18:29:28.706 7120 7120 F adb : main.cpp:160 could not install *smartsocket* listener: Address not available
--- adb starting (pid 19887) ---
02-25 18:32:18.768 19887 19887 I adb : main.cpp:63 Android Debug Bridge version 1.0.41
02-25 18:32:18.768 19887 19887 I adb : main.cpp:63 Version 34.0.4-android-tools
diff --git a/src/examples/srm-multi-session/main.c b/src/examples/srm-multi-session/main.c
index 66114b6..c4217cb 100644
--- a/src/examples/srm-multi-session/main.c
+++ b/src/examples/srm-multi-session/main.c
@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/poll.h>
+#include <poll.h>