Mir

Merge lp:~kgunn72/mir/instructional_updates into lp:~mir-team/mir/trunk

Proposed by kevin gunn
Status: Merged
Approved by: Robert Ancell
Approved revision: no longer in the source branch.
Merged at revision: 781
Proposed branch: lp:~kgunn72/mir/instructional_updates
Merge into: lp:~mir-team/mir/trunk
Diff against target: 126 lines (+36/-25)
2 files modified
doc/installing_prebuilt_on_pc.md (+8/-9)
doc/using_mir_on_pc.md (+28/-16)
To merge this branch: bzr merge lp:~kgunn72/mir/instructional_updates
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Robert Ancell Approve
Review via email: mp+171654@code.launchpad.net

Commit message

update to xmir instructions

Description of the change

updates to instructions for running based on some feedback

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Some fixed in lp:~robert-ancell/mir/instructional_updates, otherwise looks good.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/installing_prebuilt_on_pc.md'
--- doc/installing_prebuilt_on_pc.md 2013-06-25 13:37:19 +0000
+++ doc/installing_prebuilt_on_pc.md 2013-06-26 22:18:24 +0000
@@ -1,21 +1,20 @@
1Installing pre-built packages on a PC {#installing_prebuilt_on_pc}1Installing pre-built packages on a PC {#installing_prebuilt_on_pc}
2=====================================2=====================================
33
41. Install raring if you haven' t done so already. Uninstall any proprietary4Install raring if you haven' t done so already. Uninstall any proprietary
5 drivers (-nvidia, -fglrx) and reboot on the FOSS drivers.5drivers (-nvidia, -fglrx) and reboot on the FOSS drivers.
66
72. Add the ppa:mir-team/system-compositor-testing. Note that besides mir7Add the ppa:mir-team/system-compositor-testing. Note that besides Mir itself,
8itself, the PPA includes8the PPA includes custom builds of Mesa and Xorg drivers with support for Mir:
9 custom builds of Mesa and Xorg drivers with support for mir:
109
11 sudo add-apt-repository ppa:mir-team/system-compositor-testing10 sudo add-apt-repository ppa:mir-team/system-compositor-testing
1211
133. Update your package list:12Update your package list:
1413
15 sudo apt-get update14 sudo apt-get update
1615
174. Create the `/etc/apt/preferences.d/50-pin-mir.pref` file with the16Create the `/etc/apt/preferences.d/50-pin-mir.pref` file with the following
18following contents:17contents:
1918
20 Package: *19 Package: *
21 Pin: origin "private-ppa.launchpad.net"20 Pin: origin "private-ppa.launchpad.net"
@@ -25,7 +24,7 @@
25 Pin: release o=LP-PPA-mir-team-system-compositor-testing24 Pin: release o=LP-PPA-mir-team-system-compositor-testing
26 Pin-Priority: 100225 Pin-Priority: 1002
2726
285. Install mir and dist-upgrade:27Install Mir and dist-upgrade:
2928
30 sudo apt-get install mir-demos29 sudo apt-get install mir-demos
31 sudo apt-get dist-upgrade30 sudo apt-get dist-upgrade
3231
=== modified file 'doc/using_mir_on_pc.md'
--- doc/using_mir_on_pc.md 2013-06-25 13:37:19 +0000
+++ doc/using_mir_on_pc.md 2013-06-26 22:18:24 +0000
@@ -5,9 +5,8 @@
5----------------5----------------
66
7Make sure your hardware is supported. That means you're using a Mesa driver,7Make sure your hardware is supported. That means you're using a Mesa driver,
8of which intel, radeon, and nouveau families are supported. If you're8of which intel, radeon, and nouveau families are supported. If you're logged
9logged in to X then run this command to verify an appropriate DRI driver9in to X then run this command to verify an appropriate DRI driver is active:
10is active:
1110
12 sudo pmap `pidof X` | grep dri.so11 sudo pmap `pidof X` | grep dri.so
1312
@@ -15,17 +14,16 @@
1514
16 lsmod | grep drm15 lsmod | grep drm
1716
18Before you can use Mir you need to ensure you have the proper custom Mesa build17Before you can use Mir you need to ensure you have the proper custom Mesa
19installed. If you installed Mir using the packages from mir-team18build installed. If you installed Mir using the packages from mir-team
20system-compositor-testing PPA19system-compositor-testing PPA (see \ref installing_prebuilt_on_pc), you
21(see \ref installing_prebuilt_on_pc), you should be good to go.20should be good to go.
2221
23If you built Mir from source code (see \ref building_source_for_pc), you need22If you built Mir from source code (see \ref building_source_for_pc), you
24to ensure you are using the proper Mesa at runtime. You can do that by23nee to ensure you are using the proper Mesa at runtime. You can do that by
25installing the Mesa packages manually from the system-compositor-testing PPA,24installing the Mesa packages manually from the system-compositor-testing PPA,
26or by building the25or by building the custom Mesa yourself and ensuring it can be found by Mir,
27custom Mesa yourself and ensuring it can be found by Mir, e.g., by using26e.g., by using LD_LIBRARY_PATH.
28LD_LIBRARY_PATH.
2927
30Using Mir as system compositor with X28Using Mir as system compositor with X
31-------------------------------------29-------------------------------------
@@ -34,18 +32,23 @@
34include lightdm, Mesa and the Xorg drivers). The easiest way is to install32include lightdm, Mesa and the Xorg drivers). The easiest way is to install
35pre-built packages from the system-compositor-testing PPA.33pre-built packages from the system-compositor-testing PPA.
3634
37To run X sessions under Mir, with Mir acting as the system compositor, edit35If you have installed the unity-system-compositor from
38your /etc/lightdm/lightdm.conf to look to look like this:36the system-compositor-testing PPA, it will have created a file in
37/etc/lightdm/lightdm.conf.d/10-unity-system-compositor.conf to run XMir. If you
38have build from source, to run X sessions under Mir, with Mir acting as the
39system compositor, create the file
40/etc/lightdm/lightdm.conf.d/10-unity-system-compositor.conf to look to look like
41this:
3942
40 [SeatDefaults]43 [SeatDefaults]
41 type=unity44 type=unity
42 user-session=ubuntu
43 greeter-session=unity-greeter
4445
45Now restart lightdm:46Now restart lightdm:
4647
47 $ sudo restart lightdm48 $ sudo restart lightdm
4849
50Or you may simply reboot.
51
49In theory, you should now find yourself back in Ubuntu and not notice52In theory, you should now find yourself back in Ubuntu and not notice
50anything different. You can verify you're in Mir several ways:53anything different. You can verify you're in Mir several ways:
5154
@@ -53,6 +56,15 @@
53 $ grep -i xmir /var/log/Xorg.0.log56 $ grep -i xmir /var/log/Xorg.0.log
54 $ ls -l /var/log/lightdm/unity-system-compositor.log57 $ ls -l /var/log/lightdm/unity-system-compositor.log
5558
59
60In any case, if you wish to deactivate XMir upon boot, simply comment out
61the type=unity line from
62/etc/lightdm/lightdm.conf.d10-unity-system-compositor.conf, like this:
63
64 [SeatDefaults]
65 #type=unity
66
67
56Running Mir natively68Running Mir natively
57--------------------69--------------------
5870

Subscribers

People subscribed via source and target branches