Difference between revisions of "Weston"

From postmarketOS
Jump to: navigation, search
(added "interface" infobox)
m (Installation)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{Infobox interface
 
{{Infobox interface
 
| name = Weston
 
| name = Weston
| image =  
+
| image = File:Sony yuga weston.jpg
 
| imagecaption =  
 
| imagecaption =  
 
| graphics =
 
| graphics =
Line 7: Line 7:
 
}}
 
}}
  
Weston is the reference implementation of a Wayland compositor.
+
Weston is the reference implementation of a [https://wayland.freedesktop.org/ Wayland] compositor.
  
info here about using Weston
+
=== Installation ===
 +
* <code>pmbootstrap init</code>
 +
* <code>User interface: weston</code>
 +
 
 +
This will package weston libraries as well as demos for your device, see <code>weston*</code> commands.
 +
 
 +
Weston will be launched automatically on boot by LightDM.
 +
 
 +
=== [https://en.wikipedia.org/wiki/Remote_Desktop_Protocol RDP] (Remote Desktop Protocol) ===
 +
Prerequisite:
 +
 
 +
* <code>apk add weston-backend-rdp</code>
 +
* <code>apk add openssl</code>
 +
 
 +
Create a Self-Signed SSL Certificate:
 +
* <code>sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mypublic.key -out mycrt.crt</code>
 +
 
 +
Start weston with RDP backend:
 +
* <code>weston --backend=rdp-backend.so --rdp-tls-cert=/path/to/mycrt.crt --rdp-tls-key=/path/to/mypublic.key --socket=wayland-1 --width=540 --height=600</code>
 +
 
 +
On host:
 +
* <code>xfreerdp /v:172.16.42.1 /sec:tls</code>
 +
 
 +
== Guide ==
 +
 
 +
Follow the [https://wiki.postmarketos.org/wiki/Display Display] guide to change and fix display related issues.

Latest revision as of 10:36, 7 June 2019

Weston
Name Weston

Weston is the reference implementation of a Wayland compositor.

Installation

  • pmbootstrap init
  • User interface: weston

This will package weston libraries as well as demos for your device, see weston* commands.

Weston will be launched automatically on boot by LightDM.

RDP (Remote Desktop Protocol)

Prerequisite:

  • apk add weston-backend-rdp
  • apk add openssl

Create a Self-Signed SSL Certificate:

  • sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mypublic.key -out mycrt.crt

Start weston with RDP backend:

  • weston --backend=rdp-backend.so --rdp-tls-cert=/path/to/mycrt.crt --rdp-tls-key=/path/to/mypublic.key --socket=wayland-1 --width=540 --height=600

On host:

  • xfreerdp /v:172.16.42.1 /sec:tls

Guide

Follow the Display guide to change and fix display related issues.