aboutsummaryrefslogtreecommitdiffstats
path: root/docs/docs/stable/mcc-help/sv/draknetprofile.xml
blob: b6890edb8a12f409d86730cb0d689294549875a7 (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?xml version='1.0' encoding='utf-8'?>

<section xmlns='http://docbook.org/ns/docbook'
  xmlns:ns5='http://www.w3.org/1998/Math/MathML'
  xmlns:ns4='http://www.w3.org/2000/svg'
  xmlns:ns3='http://www.w3.org/1999/xhtml'
  xmlns:ns2='http://www.w3.org/1999/xlink'
  xmlns:ns='http://docbook.org/ns/docbook'
  xml:id='draknetprofile' version='5.0'>

  <info>
    <title xml:id='draknetprofile-ti1'>Hantera olika nätverksprofiler</title>
    <subtitle>Draknetprofile</subtitle>
  </info>

  <section>
    <title>Presentation</title>

    <para>Each network interface of a Mageia system is initially configured with a fix
set of parameters. This corresponds to what is expected by a user of a
desktop computer, but may not be adequate when the system is moved between
various network environments: having the system run in different network
environments will require that multiple configurations co-exist for a given
network device - otherwise the interface might need to be re-configured each
time the network environment changes.</para>

    <section>
      <title>Profiler</title>

      <para>Linux provides support for multiple configurations of network devices as a
standard feature. The notion of a <emphasis role='bold'>"network
profile"</emphasis> refers to a set of configurations of network devices,
defined for a specific network environment. Each network profile has a
<emphasis role='bold'>name</emphasis> - the initial configuration that comes
out of system generation has the name <emphasis>"default"</emphasis>; when a
new profile is created, a name must be specified which is different from all
already existing profile names.</para>
    </section>

    <section>
      <title>Draknetprofile</title>

      <para>Draknetprofile is a - very simple - component of the Mageia Control Center
(MCC), it provides a Graphical User Interface (GUI) for managing
profiles. This GUI allows to

        <itemizedlist>

          <listitem>
            <para>switch between profiles - i.e. activate a target profile to become the
"current profile",</para>
          </listitem>

          <listitem>
            <para>skapa en ny eller ytterligare profil,</para>
          </listitem>

          <listitem>
            <para>Radera en profil i listan över fastställda profiler.</para>
          </listitem>
        </itemizedlist>
      </para>
    </section>
  </section>

  <section>
    <title>Kör draknetprofile</title>

    <section>
      <title>Fastställda profiler, ändra profil</title>

      <para>Defining/modifying profiles concerns the entire Linux system and all its
users. Running draknetprofile therefore requires root privileges. Normally,
launching is achieved from within MCC (which already runs as root):</para>

      <mediaobject>
        <imageobject>
          <imagedata xml:id='draknetprofile-im1'
            fileref='./draknetprofile_mcc.png' format='PNG' align='center'
            revision='1'/>
        </imageobject>
        <caption>
          <para><emphasis role='bold'>Figur 1: Mageia kontrollcentral: Nätverk &amp;
Internet-fliken</emphasis></para>
        </caption>
      </mediaobject>

      <orderedlist>

        <listitem>
          <para>starta MCC genom att klicka på MCC-ikonen i någon av panelerna på din
desktop,</para>
        </listitem>

        <listitem>
          <para>välj "Nätverk &amp; Internet"-fliken,</para>
        </listitem>

        <listitem>
          <para>hit "Manage different network profiles" in the "Personalize and Secure your
network" Section (solid red contour in Figure 1).</para>
        </listitem>
      </orderedlist>

      <para>Draknetprofile can also be launched by a command-line instruction from a
terminal emulator with root privileges (this may be helpful when
standard-output or error-output from draknetprofile needs to be consulted -
for instance for debugging). Simply type:</para>

      <informaltable frame='all' colsep='1' rowsep='1'>
        <tgroup cols='1'>
          <?dbhtml cellpadding='4' ?>
          <tbody>
            <row><?dbhtml bgcolor='#DDDDDD' ?><?dbfo bgcolor='#DDDDDD' ?>
              <entry><literal>&#x2002;draknetprofile&#x2002;</literal></entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>

      <para>När Draknetprofile har startats så visas startsidan:</para>

      <mediaobject>
        <imageobject>
          <imagedata xml:id='draknetprofile-im2'
            fileref='./draknetprofile_main.png' format='PNG'
            align='center' revision='1'/>
        </imageobject>
        <caption>
          <para><emphasis role='bold'>Figur 2: Hanteringar i Draknetprofile</emphasis></para>
        </caption>
      </mediaobject>

      <para>The upper zone of the window contains the list of the names of all presently
defined profiles. The bottom zone presents a series of buttons:</para>

      <itemizedlist>

        <listitem>
          <para>"Activate" ... establish the selected profile (top zone of the window) as
the current profile (and save the properties of the old profile);</para>
        </listitem>

        <listitem>
          <para>"Ny" ... skapa en ny profil;</para>
        </listitem>

        <listitem>
          <para>"Radera" ... radera vald profil från listan över fastställda profiler;</para>
        </listitem>

        <listitem>
          <para>"Avsluta" ... avsluta Draknetprofile.</para>
        </listitem>
      </itemizedlist>

      <para>Before hitting the "Activate" or the "Delete" button, you have to select a
profile from the list: select it by a left-button click on the name of the
target profile.</para>

      <para>Hitting the "New" button will launch an auxiliary window where you can type
the name of the profile you want to create; this name must be different from
any already existing profile. This profile will be created as a precise copy
of the currently active profile and immediately activated as the current
profile. You will probably then need to specify its properties (modify the
automatically created configuration) in a second, independent action:</para>

      <itemizedlist>

        <listitem>
          <para>avsluta Draknetprofile (tryck på avsluta-knappen),</para>
        </listitem>

        <listitem>
          <para>back in the "Network &amp; Internet" tab, you select the tab "Set up a new
network interface (...)" (marked with dashed red contour in Figure 1),</para>
        </listitem>

        <listitem>
          <para>you then go through the steps for configuring the interface; they are
similar to those you did for configuring the original interface during
system generation - as documented in the <link
linkend='drakconnect-ti1'>Drakconnect manual</link>.</para>
        </listitem>
      </itemizedlist>

      <para>The middle zone of the window is normally hidden, hit the "Advanced" button
to make it visible. It should display the list of names of Draknetprofile
<emphasis role='bold'>"modules"</emphasis> (such as "network", "firewall",
"urpmi"), each with a check-button next to the name; these check-buttons
determine whether the properties controlled by that module are included into
the profile or not.</para>
    </section>

    <section>
      <title>Använda ett system som har mer än en profil</title>

      <para>In a system where several profiles are defined, an additional user
interaction is required when the system boots: at the very end of the
bootstrapping activities - just before the Desktop Environment starts - you
will get a message like</para>

      <informaltable frame='all' colsep='1' rowsep='1'>
        <tgroup cols='1'>
          <?dbhtml cellpadding='4' ?>
          <tbody>
            <row><?dbhtml bgcolor='#DDDDDD' ?><?dbfo bgcolor='#DDDDDD' ?>
              <entry><literal>&#x2002;Select network profile: (1) default (2)
roaming*&#x2002;</literal></entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>

      <para>Type 1 or 2 to select the "default", respectively the "roaming" profile, or
carriage-return to select the profile that is marked with an asterisk (the
profile that was active when the system had been shut down).</para>

      <para>Presently (Mageia-5) there appears to be an intermittent problem: it happens
that the system becomes unresponsive after soliciting the user to select a
profile. The only way out of this situation is to launch another boot.  This
problem is under investigation.</para>
    </section>
  </section>

  <section>
    <title>Appendix: Files relevant to Draknetprofile</title>

    <para>The configuration data of network interfaces are stored in the directory
<emphasis>/etc/sysconfig/network-scripts/</emphasis>, in files with names
like <emphasis>ifcfg-xxx</emphasis>.</para>

    <para>The name of the currently active profile is maintained in the file
<emphasis>/etc/netprofile/current</emphasis> .
    </para>
  </section>
</section>