forked from dnschneid/crouton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xephyr
44 lines (38 loc) · 1.56 KB
/
xephyr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh -e
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
REQUIRES='core audio'
PROVIDES='x11'
DESCRIPTION='Nested X11 backend. Improves compatibility but lacks GPU accel.'
CHROOTBIN='brightness croutoncycle croutonpowerd croutonwheel croutonxinitrc-wrapper xinit'
CHROOTETC='xbindkeysrc.scm xserverrc-xephyr xserverrc-local.example'
. "${TARGETSDIR:="$PWD"}/common"
### Append to prepare.sh:
XMETHOD="${XMETHOD:-xephyr}"
if release -eq quantal; then
# As of 2013-01-08, Quantal's Xephyr lacks GLX. Download one manually.
install_mirror_package 'xserver-xephyr' 'pool/universe/x/xorg-server' \
'1\.11\.4-0ubuntu[0-9][0-9]\.[0-9]*'
# Add the apt preference to avoid immediate upgrade
cat > /etc/apt/preferences.d/xserver-xephyr <<EOF
Package: xserver-xephyr
Pin: version <1.13.3-0ubuntu4
Pin-Priority: -1
EOF
elif release -gt quantal; then
# Remove apt preference (needed after an upgrade from quantal)
rm -f /etc/apt/preferences.d/xserver-xephyr
fi
# xserver-xephyr won't auto replace the manually-downloaded version.
install --minimal \
xserver-xephyr xinit dmz-cursor-theme libgl1-mesa-dri \
x11-utils x11-xserver-utils xinput xterm
# Compile croutoncursor
compile cursor '-lX11 -lXfixes -lXrender' \
libx11-dev libxfixes-dev libxrender-dev
TIPS="$TIPS
You can flip through your running chroot desktops and Chromium OS by hitting
Ctrl+Alt+Shift+Back and Ctrl+Alt+Shift+Forward.
"
### append x11-common