Jump to content

Weston: Difference between revisions

From postmarketOS Wiki
Drebrez (talk | contribs)
m typo
m wikify
Line 8: Line 8:


Weston is the reference implementation of a [https://wayland.freedesktop.org/ Wayland] compositor.
Weston is the reference implementation of a [https://wayland.freedesktop.org/ Wayland] compositor.


=== Installation ===
=== Installation ===
Line 18: Line 17:
Weston is started at shell autologin init time by <code>/etc/profile.d/start_weston.sh</code> script
Weston is started at shell autologin init time by <code>/etc/profile.d/start_weston.sh</code> script


 
=== [https://en.wikipedia.org/wiki/Remote_Desktop_Protocol RDP] (Remote Desktop Protocol) ===
=== [https://en.wikipedia.org/wiki/Remote_Desktop_Protocol RDP] ===
 
 
Prerequisite:
Prerequisite:


Line 29: Line 25:
Create a Self-Signed SSL Certificate:
Create a Self-Signed SSL Certificate:
* <code>sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mypublic.key -out mycrt.crt</code>
* <code>sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mypublic.key -out mycrt.crt</code>


Start weston with RDP backend:
Start weston with RDP backend:
Line 36: Line 31:
On host:
On host:
* <code>xfreerdp /v:172.16.42.1 /sec:tls</code>
* <code>xfreerdp /v:172.16.42.1 /sec:tls</code>
more info here about using Weston

Revision as of 16:41, 30 March 2018

Weston
Name Weston
In postmarketOS
Package postmarketos-ui-weston
Status Available

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 is started at shell autologin init time by /etc/profile.d/start_weston.sh script

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