#!/bin/sh # simple script to setup x basic org server # you will still need a window manager and login manager or xinit base_pkgs="xorg-server xf86-input-libinput eudev" apk add pciutils vgaline=$(lspci | grep -w VGA) case "$vgaline" in *Intel*) videodrv="xf86-video-intel";; *AMD*) videodrv="xf86-video-amdgpu";; *NVIDIA*) videodrv="xf86-video-nouveau";; *VMware*) videodrv="xf86-video-vmware";; *QXL*) videodrv="xf86-video-qxl";; esac # fallback driver videodrv="$videodrv xf86-video-modesetting" # install packages apk add $base_pkgs $videodrv $@ setup-udev