summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-August/007310.html
blob: ebfc64cc6c71440bee0d875bb5587f9239eb77ea (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Problems setting up chroot
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Problems%20setting%20up%20chroot&In-Reply-To=%3C4E422D4E.5050009%40laposte.net%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="007293.html">
   <LINK REL="Next"  HREF="007311.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Problems setting up chroot</H1>
    <B>andre999</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Problems%20setting%20up%20chroot&In-Reply-To=%3C4E422D4E.5050009%40laposte.net%3E"
       TITLE="[Mageia-dev] Problems setting up chroot">andr55 at laposte.net
       </A><BR>
    <I>Wed Aug 10 09:03:42 CEST 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="007293.html">[Mageia-dev] Problems setting up chroot
</A></li>
        <LI>Next message: <A HREF="007311.html">[Mageia-dev] Problems setting up chroot
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#7310">[ date ]</a>
              <a href="thread.html#7310">[ thread ]</a>
              <a href="subject.html#7310">[ subject ]</a>
              <a href="author.html#7310">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Thierry Vignaud a &#233;crit :
&gt;<i> On 8 August 2011 06:42, andre999&lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">andr55 at laposte.net</A>&gt;  wrote:
</I>&gt;&gt;<i> Everything seemed to install ok, but when I try to run a gui application
</I>&gt;&gt;<i> (such as rpmdrake) under chroot, I get the message :
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> &quot;No protocol specified
</I>&gt;&gt;<i> Cannot be run in console mode.&quot;
</I>&gt;<i>
</I>&gt;<i> Which is expected
</I>&gt;<i>
</I>&gt;&gt;<i> If anyone has an idea what I might be missing, it would be appreciated :)
</I>&gt;<i>
</I>&gt;<i> One way to run X11 stuff from a chroot is to run:
</I>&gt;<i> CHROOT=/where/is/my/chroot
</I>&gt;<i> xhost +SI:localuser:root
</I>&gt;<i> mount --bind /tmp/.X11-unix/ $CHROOT/tmp/.X11-unix/
</I>&gt;<i> chroot $CHROOT rpmdrake/gedit/firefox/...
</I>&gt;<i>
</I>&gt;<i> If instead you want to allow all local users, you could alternatively
</I>&gt;<i> replace the xhost call by:
</I>&gt;<i> xhost + local:
</I>
Thanks for your detailed response.
It lets me run everything.
(Just chroot $CHROOT
  gives me a terminal in chroot, which is what I wanted.)

How do I restrict a chroot session to non-root privileges, so I can safely do 
things like build packages locally ?
I tried logging into my account, but it doesn't seem to work.

-- 
Andr&#233;
</PRE>














<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="007293.html">[Mageia-dev] Problems setting up chroot
</A></li>
	<LI>Next message: <A HREF="007311.html">[Mageia-dev] Problems setting up chroot
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#7310">[ date ]</a>
              <a href="thread.html#7310">[ thread ]</a>
              <a href="subject.html#7310">[ subject ]</a>
              <a href="author.html#7310">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>