Weston: Difference between revisions

From Alpine Linux
(Removed redirect to Wayland)
Tag: Removed redirect
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://wayland.pages.freedesktop.org/weston/ Weston] is the reference implementation of a [[Wayland]] compositor, as well as a useful environment in and of itself.
Out of the box, Weston provides a very basic desktop, or a full-featured environment for non-desktop uses such as automotive, embedded, in-flight, industrial, kiosks, set-top boxes and TVs.
== Prerequisites ==
{{:Include:Desktop prerequisites}}
* Wayland compositors need raw access to input and output devices, typically mediated by a [[seat manager]]. Either [[seatd]] or [[elogind]] work fine, but installing both leads to conflicts.
* Installing [[Alpine_setup_scripts#setup-wayland-base|wayland-base]] enables [[elogind]] as [[Seat manager|seat manager]], enables [[Repositories#Community|community repository]] and enables [[eudev]].
== Installation ==
== Installation ==


Steps to install Weston on Alpine 3.20
Steps to install [https://gitlab.freedesktop.org/wayland/weston/ Weston]
 
* Install weston and necessary dependencies:
 
{{Cmd|# apk add weston weston-backend-drm seatd weston-backend-wayland weston-shell-desktop weston-terminal font-dejavu}}
 
== Starting weston ==
 
You can launch <Code>weston</Code> by issuing the command sway from TTY. {{Cmd|$ weston}}


# doas apk add weston weston-backend-drm seatd weston-backend-wayland weston-shell-desktop weston-terminal font-dejavu
== Configuration ==
# doas rc-update add seatd
# doas adduser $USER seat
# doas setup-devd udev
# ~/.profile add:
if [ -z "$XDG_RUNTIME_DIR" ]; then
XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir"


mkdir -pm 0700 "$XDG_RUNTIME_DIR"
== Troubleshooting ==
export XDG_RUNTIME_DIR
fi
# reboot
# Start weston with: weston


== See also ==
* [https://wayland.pages.freedesktop.org/weston/ Weston]


==== References ====
[[Category:Compositor]]
https://github.com/crftbt/OpenSourcedMe/blob/main/alpine/weston.md

Latest revision as of 15:30, 25 May 2025

Weston is the reference implementation of a Wayland compositor, as well as a useful environment in and of itself.

Out of the box, Weston provides a very basic desktop, or a full-featured environment for non-desktop uses such as automotive, embedded, in-flight, industrial, kiosks, set-top boxes and TVs.

Prerequisites

Installation

Steps to install Weston

  • Install weston and necessary dependencies:

# apk add weston weston-backend-drm seatd weston-backend-wayland weston-shell-desktop weston-terminal font-dejavu

Starting weston

You can launch weston by issuing the command sway from TTY.

$ weston

Configuration

Troubleshooting

See also