Hyprland on ArchLinux 2024 in Hyper-V and VirtualBox on wayland with SDDM



Just a quick “speedrun installation” and more versatile way to setup SDDM with Hyprland to run on wayland in Hyper-V or VirtualBox.

To install Hyper-V on Windows11-Home save and run this batchfile as administrator. IMPORTANT as Youtube does not allow greater signs in the descriptions, EXCHANGE the two @ with greater sign in this script:
REM —————————– Start batchscript —————————————–
pushd “%~dp0″
dir /b %SystemRoot%servicingPackages*Hyper-V*.mum @hyper-v.txt
for /f %%i in (‘findstr /i . hyper-v.txt 2^@nul’) do dism /online /norestart /add-package:”%SystemRoot%servicingPackages%%i”
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause
REM —————————– End batchscript —————————————–

Here is the transkript of the whole installation:
1. Install Hyper-V with Script in Windows11
(Added in Video-Description)
2. Create VM in Hyper-V + deactivate SecureBoot in the Config
3. Install with archinstall + add at install: weston foot
(add virtualbox-guest-utils-nox for VirtualBox and enable 3D in the VM in VirtualBox)
4. Take a new TTY and configure SDDM
sudo mkdir -p /etc/sddm.conf.d
sudo cp /usr/lib/sddm/sddm.conf.d/default.conf /etc/sddm.conf.d
sudo nano /etc/sddm.conf.d/default.conf
DisplayServer=wayland
CompositorCommand=~/.startWeston.sh

Create startWeston.sh in ~ and add:
#!/bin/env sh
export XDG_CURRENT_DESKTOP=weston
export XDG_SESSION_DESKTOP=weston
export XDG_SESSION_TYPE=wayland
export WLR_NO_HARDWARE_CURSORS=1
export WLR_RENDERER_ALLOW_SOFTWARE=1
exec weston –shell=fullscreen-shell.so

Create startHyprland.sh in ~ and add:
#!/bin/env sh
export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_DESKTOP=Hyprland
export XDG_SESSION_TYPE=wayland
export WLR_NO_HARDWARE_CURSORS=1
export WLR_RENDERER_ALLOW_SOFTWARE=1
exec Hyprland

sudo nano /usr/share/wayland-sessions
Rename the Entry and add:
exec ~./startHyprland.sh

chmod +x ~/startWeston.sh
chmod +x ~/startHyprland.sh

5. Configure Hyprland
mkdir -p /.config/hypr
sudo cp /usr/share/hyprland/hyprland.conf ~/.config/hypr/hyprland.conf
nano ~/.config/hypr/hyprland.conf
Comment or remove: autogenerated = 1
$terminal = foot
In animations set:
enabled = false

6. reboot



source

Exit mobile version