Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using ubuntu guest on virtualbox.

follwing this tutorial http://wayland.freedesktop.org/building.html

when I command weston, response is:

fatal: environment variable XDG_RUNTIME_DIR is not set

But in tutorial say this

$XDG_RUNTIME_DIR Weston creates its unix socket file (for example, wayland-0) in the directory specified by the required environment variable $XDG_RUNTIME_DIR . Clients use the same variable to find that socket. This is provided by Fedora using systemd. Ubuntu began providing it in Quantal. Arch began providing it with systemd in June 2012. It is not provided by Gentoo. If you are using a distro that does not set $XDG_RUNTIME_DIR for you, do:

mkdir /tmp/wayland
chmod 0700 /tmp/wayland
su -c 'echo XDG_RUNTIME_DIR=/tmp/wayland >> /etc/environment'**

So I doesn't command su -c 'echo XDG_RUNTIME_DIR=/tmp/wayland >> /etc/environment'

As a result is fatal: environment variable XDG_RUNTIME_DIR is not set

What am I supposed to do? Thanks.


Oh I got new error:

initializing x11backend
error: failed to add default include path /usr/share/x11/xkb

How can I solve this error?

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.