diff options
| author | Jan Altenberg <jan@linutronix.de> | 2011-02-24 16:03:09 +0100 |
|---|---|---|
| committer | Jan Altenberg <jan@linutronix.de> | 2011-02-24 16:03:09 +0100 |
| commit | 219b9379d173dfc3e091bd8ef6431b26825056f5 (patch) | |
| tree | 89ea12d95ac9760238b316ec7a7ca8cf56197e46 | |
| parent | e32b297c4f2e9635a931e5e0e7649348eedc8e3c (diff) | |
Introduced a basic chapter about the X windows system:
XFree <-> Xorg
The X protocol
What is a Windowmanager?
Starting X
What is a Display Manager?
| -rw-r--r-- | images/x_arch.png | bin | 0 -> 46705 bytes | |||
| -rw-r--r-- | images/x_arch.svg | 491 | ||||
| -rw-r--r-- | images/x_server_client.dia | bin | 0 -> 1532 bytes | |||
| -rw-r--r-- | images/x_server_client.png | bin | 0 -> 25159 bytes | |||
| -rw-r--r-- | linux-basics/xorg-basics/.pres_xorg_en.tex.swp | bin | 0 -> 32768 bytes | |||
| -rw-r--r-- | linux-basics/xorg-basics/Makefile | 9 | ||||
| -rw-r--r-- | linux-basics/xorg-basics/pres_xorg_en.tex | 182 |
7 files changed, 682 insertions, 0 deletions
diff --git a/images/x_arch.png b/images/x_arch.png Binary files differnew file mode 100644 index 0000000..efcb014 --- /dev/null +++ b/images/x_arch.png diff --git a/images/x_arch.svg b/images/x_arch.svg new file mode 100644 index 0000000..fab22ef --- /dev/null +++ b/images/x_arch.svg @@ -0,0 +1,491 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="744.09448819" + height="1052.3622047" + id="svg2" + version="1.1" + inkscape:version="0.47 r22583" + sodipodi:docname="New document 1"> + <defs + id="defs4"> + <marker + inkscape:stockid="Arrow2Lend" + orient="auto" + refY="0.0" + refX="0.0" + id="Arrow2Lend" + style="overflow:visible;"> + <path + id="path3984" + style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;" + d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z " + transform="scale(1.1) rotate(180) translate(1,0)" /> + </marker> + <linearGradient + inkscape:collect="always" + id="linearGradient3862"> + <stop + style="stop-color:#ffe680;stop-opacity:1;" + offset="0" + id="stop3864" /> + <stop + style="stop-color:#ffe680;stop-opacity:0;" + offset="1" + id="stop3866" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + id="linearGradient3720"> + <stop + style="stop-color:#ffcc00;stop-opacity:1;" + offset="0" + id="stop3722" /> + <stop + style="stop-color:#ffcc00;stop-opacity:0;" + offset="1" + id="stop3724" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + id="linearGradient3662"> + <stop + style="stop-color:#ff7f2a;stop-opacity:1;" + offset="0" + id="stop3664" /> + <stop + style="stop-color:#ff7f2a;stop-opacity:0;" + offset="1" + id="stop3666" /> + </linearGradient> + <inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="0 : 526.18109 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="744.09448 : 526.18109 : 1" + inkscape:persp3d-origin="372.04724 : 350.78739 : 1" + id="perspective10" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3662" + id="linearGradient3672" + x1="19.959" + y1="648.86218" + x2="634.04102" + y2="648.86218" + gradientUnits="userSpaceOnUse" /> + <inkscape:perspective + id="perspective3690" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3662-4" + id="linearGradient3672-2" + x1="19.959" + y1="648.86218" + x2="634.04102" + y2="648.86218" + gradientUnits="userSpaceOnUse" /> + <linearGradient + inkscape:collect="always" + id="linearGradient3662-4"> + <stop + style="stop-color:#ff7f2a;stop-opacity:1;" + offset="0" + id="stop3664-9" /> + <stop + style="stop-color:#ff7f2a;stop-opacity:0;" + offset="1" + id="stop3666-9" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3720" + id="linearGradient3726" + x1="286.97471" + y1="499.36219" + x2="625.02532" + y2="499.36219" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.99960401,0,0,1.3920161,0.1805718,-221.758)" /> + <inkscape:perspective + id="perspective3736" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3720-9" + id="linearGradient3726-4" + x1="286.9747" + y1="499.36218" + x2="625.02533" + y2="499.36218" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.99960401,0,0,1.3920161,0.1805718,-221.758)" /> + <linearGradient + inkscape:collect="always" + id="linearGradient3720-9"> + <stop + style="stop-color:#ffcc00;stop-opacity:1;" + offset="0" + id="stop3722-8" /> + <stop + style="stop-color:#ffcc00;stop-opacity:0;" + offset="1" + id="stop3724-1" /> + </linearGradient> + <linearGradient + y2="499.36218" + x2="625.02533" + y1="499.36218" + x1="286.9747" + gradientTransform="matrix(0.62138039,0,0,0.60160048,133.65054,197.44568)" + gradientUnits="userSpaceOnUse" + id="linearGradient3745" + xlink:href="#linearGradient3720-9" + inkscape:collect="always" /> + <inkscape:perspective + id="perspective3774" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3662-9" + id="linearGradient3672-3" + x1="19.959" + y1="648.86218" + x2="634.04102" + y2="648.86218" + gradientUnits="userSpaceOnUse" /> + <linearGradient + inkscape:collect="always" + id="linearGradient3662-9"> + <stop + style="stop-color:#ff7f2a;stop-opacity:1;" + offset="0" + id="stop3664-3" /> + <stop + style="stop-color:#ff7f2a;stop-opacity:0;" + offset="1" + id="stop3666-3" /> + </linearGradient> + <inkscape:perspective + id="perspective3812" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <inkscape:perspective + id="perspective3837" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3862" + id="linearGradient3868" + x1="20.974701" + y1="299.36221" + x2="633.0253" + y2="299.36221" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.99984679,0,0,1.1961853,0.05009951,-71.730454)" /> + <inkscape:perspective + id="perspective3878" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3862-2" + id="linearGradient3868-2" + x1="20.974701" + y1="299.36221" + x2="633.02533" + y2="299.36221" + gradientUnits="userSpaceOnUse" /> + <linearGradient + inkscape:collect="always" + id="linearGradient3862-2"> + <stop + style="stop-color:#ffe680;stop-opacity:1;" + offset="0" + id="stop3864-9" /> + <stop + style="stop-color:#ffe680;stop-opacity:0;" + offset="1" + id="stop3866-2" /> + </linearGradient> + <linearGradient + gradientTransform="matrix(0.36105132,0,0,0.51208107,289.43623,157.56446)" + y2="299.36221" + x2="633.02533" + y1="299.36221" + x1="20.974701" + gradientUnits="userSpaceOnUse" + id="linearGradient3887" + xlink:href="#linearGradient3862-2" + inkscape:collect="always" /> + <inkscape:perspective + id="perspective3916" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <inkscape:perspective + id="perspective3941" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <inkscape:perspective + id="perspective4418" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <marker + inkscape:stockid="Arrow2Lend" + orient="auto" + refY="0" + refX="0" + id="Arrow2Lend-8" + style="overflow:visible"> + <path + id="path3984-6" + style="font-size:12px;fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round" + d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z" + transform="matrix(-1.1,0,0,-1.1,-1.1,0)" /> + </marker> + <inkscape:perspective + id="perspective4446" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <marker + inkscape:stockid="Arrow2Lend" + orient="auto" + refY="0" + refX="0" + id="Arrow2Lend-7" + style="overflow:visible"> + <path + id="path3984-7" + style="font-size:12px;fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round" + d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z" + transform="matrix(-1.1,0,0,-1.1,-1.1,0)" /> + </marker> + <inkscape:perspective + id="perspective4474" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <marker + inkscape:stockid="Arrow2Lend" + orient="auto" + refY="0" + refX="0" + id="Arrow2Lend-3" + style="overflow:visible"> + <path + id="path3984-72" + style="font-size:12px;fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round" + d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z" + transform="matrix(-1.1,0,0,-1.1,-1.1,0)" /> + </marker> + <inkscape:perspective + id="perspective4502" + inkscape:persp3d-origin="0.5 : 0.33333333 : 1" + inkscape:vp_z="1 : 0.5 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 0.5 : 1" + sodipodi:type="inkscape:persp3d" /> + <marker + inkscape:stockid="Arrow2Lend" + orient="auto" + refY="0" + refX="0" + id="Arrow2Lend-37" + style="overflow:visible"> + <path + id="path3984-68" + style="font-size:12px;fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round" + d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z" + transform="matrix(-1.1,0,0,-1.1,-1.1,0)" /> + </marker> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1" + inkscape:cx="404.38106" + inkscape:cy="520" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="false" + inkscape:object-paths="false" + inkscape:window-width="1524" + inkscape:window-height="949" + inkscape:window-x="1680" + inkscape:window-y="0" + inkscape:window-maximized="0" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <rect + style="fill:url(#linearGradient3672);stroke:#000000;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;fill-opacity:1" + id="rect3594" + width="611.0506" + height="132.0506" + x="21.474699" + y="582.83691" + ry="33.129303" /> + <text + xml:space="preserve" + style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Courier 10 Pitch;-inkscape-font-specification:Courier 10 Pitch" + x="191" + y="665.36218" + id="text3678"><tspan + sodipodi:role="line" + id="tspan3680" + x="191" + y="665.36218" + style="font-size:56px">Hardware</tspan></text> + <rect + style="fill:url(#linearGradient3726);fill-opacity:1;stroke:#000000;stroke-width:0.87726581;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + id="rect3594-9" + width="337.17334" + height="184.17332" + x="287.41333" + y="381.27551" + ry="46.206036" /> + <rect + style="fill:url(#linearGradient3745);fill-opacity:1;stroke:#000000;stroke-width:0.45470312;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + id="rect3594-9-6" + width="209.59589" + height="79.595886" + x="312.20206" + y="458.06424" + ry="19.96929" /> + <rect + style="fill:url(#linearGradient3868);fill-opacity:1;stroke:#000000;stroke-width:1.09361875;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + id="rect3594-4" + width="610.95697" + height="157.95699" + x="21.521511" + y="207.38373" + ry="39.628784" /> + <text + xml:space="preserve" + style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Courier 10 Pitch;-inkscape-font-specification:Courier 10 Pitch" + x="415.46173" + y="433.7782" + id="text3678-6"><tspan + sodipodi:role="line" + id="tspan3680-1" + x="415.46173" + y="433.7782" + style="font-size:56px">Linux</tspan></text> + <text + xml:space="preserve" + style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Courier 10 Pitch;-inkscape-font-specification:Courier 10 Pitch" + x="363.93701" + y="515.89819" + id="text3678-6-5"><tspan + sodipodi:role="line" + id="tspan3680-1-6" + x="363.93701" + y="515.89819" + style="font-size:56px">DRM</tspan></text> + <rect + style="fill:url(#linearGradient3887);fill-opacity:1;stroke:#000000;stroke-width:0.42998552;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + id="rect3594-4-8" + width="220.62065" + height="67.620613" + x="297.1897" + y="277.05188" + ry="16.96489" /> + <text + xml:space="preserve" + style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Courier 10 Pitch;-inkscape-font-specification:Courier 10 Pitch" + x="360.71649" + y="328.51819" + id="text3678-6-5-1"><tspan + sodipodi:role="line" + id="tspan3680-1-6-2" + x="360.71649" + y="328.51819" + style="font-size:56px">DRI</tspan></text> + <text + xml:space="preserve" + style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Courier 10 Pitch;-inkscape-font-specification:Courier 10 Pitch" + x="182.46175" + y="256.77817" + id="text3678-4"><tspan + sodipodi:role="line" + id="tspan3680-7" + x="182.46175" + y="256.77817" + style="font-size:56px">X Server</tspan></text> + <path + style="fill:none;stroke:#000000;stroke-width:1.97855663;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)" + d="m 132.00119,365.35146 -1.00137,213.05898" + id="path3958" /> + <path + style="fill:none;stroke:#000000;stroke-width:1.83063698;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)" + d="M 350.92579,344.93951 349.25063,453.9705" + id="path3958-5" /> + <path + style="fill:none;stroke:#000000;stroke-width:1.67888701;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)" + d="m 351.92206,537.91951 0.66988,44.1962" + id="path3958-5-1" /> + </g> +</svg> diff --git a/images/x_server_client.dia b/images/x_server_client.dia Binary files differnew file mode 100644 index 0000000..f449f29 --- /dev/null +++ b/images/x_server_client.dia diff --git a/images/x_server_client.png b/images/x_server_client.png Binary files differnew file mode 100644 index 0000000..173a647 --- /dev/null +++ b/images/x_server_client.png diff --git a/linux-basics/xorg-basics/.pres_xorg_en.tex.swp b/linux-basics/xorg-basics/.pres_xorg_en.tex.swp Binary files differnew file mode 100644 index 0000000..45153e3 --- /dev/null +++ b/linux-basics/xorg-basics/.pres_xorg_en.tex.swp diff --git a/linux-basics/xorg-basics/Makefile b/linux-basics/xorg-basics/Makefile new file mode 100644 index 0000000..d641258 --- /dev/null +++ b/linux-basics/xorg-basics/Makefile @@ -0,0 +1,9 @@ +all: + for pdf in `ls -1 *.tex` ; do \ + TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) pdflatex $$pdf; \ + TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) pdflatex $$pdf; \ + done + +clean: + rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out + diff --git a/linux-basics/xorg-basics/pres_xorg_en.tex b/linux-basics/xorg-basics/pres_xorg_en.tex new file mode 100644 index 0000000..80cd146 --- /dev/null +++ b/linux-basics/xorg-basics/pres_xorg_en.tex @@ -0,0 +1,182 @@ +% on the following slides, include icon in the left sidebar +\def\lximg{/usr/share/lx/icons/fueller.png} + +\input{configpres} + +\section{X Windows} + +\title{The X Window System} +\maketitle + +% stop displaying 'fueller.png' on the following slides +\def\lximg{none} + +\begin{frame} +\frametitle{X / X11 / XFree / Xorg ???} +\begin{itemize} +\item X11 is a graphical environment for UNIX systems (and windows systems...) +\item XFree86 is an open source X11 implementation +\item Xorg is the XServer release by the X.org foundation +\item Xorg was forked from XFree86 4.4 RC2 (due to a license change in XFree) +\item Most of the XFree developers moved to X.org +\end{itemize} +\end{frame} + +\begin{frame} +\frametitle{Client / Server} +\begin{figure}[h] +\centering +\includegraphics[width=10cm]{images/x_server_client.png} +\end{figure} +The X protocol is standardized!!! +\end{frame} + +\begin{frame} +\frametitle{The X protocol} +The X-Server understands four different types of packets: +\begin{itemize} +\item Event +\item Request +\item Reply +\item Error +\end{itemize} +\end{frame} + +\begin{frame}[fragile] +\frametitle{X protocol: Example} +\tiny +1) +\begin{verbatim} +$ xtrace -D:9 -d:0 -k +\end{verbatim} +2) +\begin{verbatim} +$ xclock -display :9 +\end{verbatim} +Then xtrace will show the communication: +\begin{verbatim} +... +000:<:0001: 20: Request(98): QueryExtension name='BIG-REQUESTS' +000:>:0001:32: Reply to QueryExtension: present=true(0x01) major-opcode=145 + first-event=0 first-error=0 +000:<:0002: 4: BIG-REQUESTS-Request(145,0): Enable +.... +\end{verbatim} +\end{frame} + +\begin{frame}[fragile] +\frametitle{X protocol: Forward to a remote machine} +Assuming you DIDN'T start your Xserver using ''-nolisten tcp'': +\begin{verbatim} +# On the host which should display the app +$ xhost +192.168.0.104 +\end{verbatim} +\begin{verbatim} +$ On the machine which starts the app +$ xlock -display 192.168.0.182:0 +\end{verbatim} +\end{frame} + +\begin{frame}[fragile] +\frametitle{X via SSH} +\begin{enumerate} +\item Enable X11 forwarding on the server side: +\begin{verbatim} +# /etc/ssh/sshd_config +X11Forwarding yes +\end{verbatim} +\item Connect from the client side using: +\begin{verbatim} +$ ssh -Y my_server +# In the SSH session +$ xclock +\end{verbatim} +Xclock will be displayed on the client's X server +\end{enumerate} +\end{frame} + +\begin{frame} +\frametitle{What is a Window Manager OR Why do all the systems look different?} +\begin{itemize} +\item A window manager runs on top of the X window system +\item Remember: X is based on a Client / Server infrastructure: +\begin{itemize} +\item The communication between client and server is redirected through the +window manager +\end{itemize} +\end{itemize} +\end{frame} + +\begin{frame} +\frametitle{Architecture: Graphics / Graphics acceleration} +\begin{figure}[h] +\centering +\includegraphics[width=6cm]{images/x_arch.png} +\end{figure} +\end{frame} + +\begin{frame}[fragile] +\frametitle{Configuration} +\begin{verbatim} +# First of all +cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak +# then you can do +$ Xorg -configure +# On debian based systems you can do +$ dpkg-reconfigure xserver-xorg +\end{verbatim} +\end{frame} + +\begin{frame}[fragile] +\frametitle{Starting X} +\begin{verbatim} +# This will evaluate several files (Xsession, ...) +$ startx +# Evaluates xinitrc +$ xinit +# xinit can also explicitely start an application +$ xinit xclock +\end{verbatim} +\end{frame} + +\begin{frame} +\frametitle{The display manager} +\begin{itemize} +\item Managing X sessions (select the window manager, ...) +\item Providing a login prompt +\item Examples: +\begin{itemize} +\item XDM +\item GDM +\item KDM +\item WDM +\item entrance +\end{itemize} +\end{itemize} +\end{frame} + +\begin{frame}[fragile] +\frametitle{X on small systems} +KDrive aka TinyX: +\begin{itemize} +\item Part of the Xorg release since 7.1 +\item Can directly run on on the framebuffer +\item Debian package: \textbf{xserver-xfbdev} +\item Can be built using something like: +\begin{verbatim} +./configure $XORG_OPTS \ + --disable-xorg --disable-kdrive \ + --enable-xfbdev --disable-glx \ + --disable-dri +\end{verbatim} +\end{itemize} +\end{frame} + +\begin{frame} +\begin{thebibliography}{1} +\bibitem{X} http://en.wikibooks.org/wiki/Guide\_to\_X11/Introduction +\bibitem{XFree} http://en.wikipedia.org/wiki/X\_Window\_System +\end{thebibliography} +\end{frame} + +\input{tailpres} |
