[1] http://www.wired.com/wiredenterprise/2013/03/ubuntu-mir/

Summary:

It was very easy, and works perfectly.

Details:

I used Darxus' wayland build script (wayland-build-master.sh):
  http://www.chaosreigns.com/wayland/buildscript/

It is readable (and I assume you'd want to do that before running it).

I've only done the first pass (not GTK/QT/XWAYLAND). I'm on Debian, and
luckily the script knows how to grab Debian packages for the depends
that it doesn't build itself.

I have a fairly slow laptop (/proc/cpuinfo says Intel(R) Core(TM)2 Solo
CPU U3500 @ 1.40GHz), and it chugged along for a little while, but not
too long and then up popped Weston in an X window. Nice! I played around
with it a bit. No problem. The demos are in:
  ~/source/weston/clients/

Next, I went to a virtual terminal 2

$ sudo chown root weston
$ sudo chmod +s weston

and created start-weston script (abstracted from the build script, more
here than necessary):

#!/bin/bash

export WLD=$HOME/install
export SOURCE=$HOME/source
export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/
export ACLOCAL="aclocal -I $WLD/share/aclocal"
export C_INCLUDE_PATH=$WLD/include
export LIBRARY_PATH=$WLD/lib
export PATH=$WLD/bin:$PATH # Needed by gtk for $WLD/bin/gdk-pixbuf-pixdata
# Do *not* put this in your ~/.bashrc, it will break things.
export LD_LIBRARY_PATH=$WLD/lib
if [ "$XDG_RUNTIME_DIR" == "" ]
then
  export XDG_RUNTIME_DIR=/tmp
fi
export GDK_BACKEND=wayland
exec weston

Up it pops with vt1 as my login, vt2 as weston, vt7 as
x.org: Nice!

I did manage to wedge things once, I switched from vt7 to vt2 and it was
unresponsive. I'm not willing to assign blame here, because I might have
tried to shut it down improperly or something, I can't recall precisely.
In any case, I remember the early days of XFree86, so I know the
solution: ssh in and then "sudo chvt 7". Then I killed it with no harm
done. I also looked up the proper way to kill it:
  <ctl>-<alt>-backspace
Shudder. I always disable that binding in X, since it is an important
emacs keybinding, and it is no fun to see your desktop disappear when
you use it.

I think that is everything. Has anyone been down this road? Has anyone
tried programming a client? Good work Wayland team!

Now if Weston only had FFM...

-- 
Anthony Carrico

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to