View | Details | Raw Unified | Return to bug 181353
Collapse All | Expand All

(-)books/handbook/x11/chapter.xml (-42 / +9 lines)
Lines 1581-1595 Link Here
1581
	  <application>KDE</application>, consult the <ulink
1581
	  <application>KDE</application>, consult the <ulink
1582
	  url="http://freebsd.kde.org/">KDE/FreeBSD
1582
	  url="http://freebsd.kde.org/">KDE/FreeBSD
1583
	  initiative</ulink>'s website.</para>
1583
	  initiative</ulink>'s website.</para>
1584
1585
	<para>There are two versions of
1586
	  <application>KDE</application> available on FreeBSD.
1587
	  Version 3 has been around for a long time, and is still
1588
	  available in the Ports Collection though it's now
1589
	  unmaintained and partially broken.  Version 4 is
1590
	  punctually updated and is the default choice for
1591
	  <application>KDE</application> users.  They can even be
1592
	  installed side by side.</para>
1593
      </sect3>
1584
      </sect3>
1594
1585
1595
      <sect3 id="x11-wm-kde-install">
1586
      <sect3 id="x11-wm-kde-install">
Lines 1599-1628 Link Here
1599
	  other desktop environment, the software can be easily
1590
	  other desktop environment, the software can be easily
1600
	  installed from a package or the Ports Collection:</para>
1591
	  installed from a package or the Ports Collection:</para>
1601
1592
1602
	<para>To install the <application>KDE 3</application> package
1603
	  from the network, type:</para>
1604
1605
	<screen>&prompt.root; <userinput>pkg_add -r kde</userinput></screen>
1606
1607
	<para>To install the <application>KDE 4</application> package
1608
	  from the network, type:</para>
1609
1610
	<screen>&prompt.root; <userinput>pkg_add -r kde4</userinput></screen>
1593
	<screen>&prompt.root; <userinput>pkg_add -r kde4</userinput></screen>
1611
1594
1612
	<para>&man.pkg.add.1; will automatically fetch the latest
1595
	<para>&man.pkg.add.1; will automatically fetch the latest
1613
	  version of the application.</para>
1596
	  version of the application.</para>
1597
  	<para>Or if you use <application>pkgng</application>:
1598
	</para>
1599
	<screen>&prompt.root; <userinput>pkg install kde4</userinput></screen>
1614
1600
1615
	<para>To build <application>KDE 3</application> from source,
1601
	<para>To build <application>KDE</application> from source,
1616
	  use the ports tree:</para>
1602
	  use the ports tree:</para>
1617
1603
1618
	<screen>&prompt.root; <userinput>cd /usr/ports/x11/kde3</userinput>
1619
&prompt.root; <userinput>make install clean</userinput></screen>
1620
1621
	<para>To build <application>KDE 4</application> from source,
1622
	  use the ports tree:</para>
1623
1624
	<screen>&prompt.root; <userinput>cd /usr/ports/x11/kde4</userinput>
1604
	<screen>&prompt.root; <userinput>cd /usr/ports/x11/kde4</userinput>
1625
&prompt.root; <userinput>make install clean</userinput></screen>
1605
&prompt.root; <userinput>make install clean</userinput></screen>
1606
	<para>This will pop up a curses based menu that let you choose
1607
		which modules to install. Note that it is a very large port 
1608
		and will take quite some time to compile.
1609
	</para>
1626
1610
1627
	<para>After <application>KDE</application> has been installed,
1611
	<para>After <application>KDE</application> has been installed,
1628
	  the X server must be told to launch this application
1612
	  the X server must be told to launch this application
Lines 1629-1640 Link Here
1629
	  instead of the default window manager.  This is accomplished
1613
	  instead of the default window manager.  This is accomplished
1630
	  by editing the <filename>.xinitrc</filename> file:</para>
1614
	  by editing the <filename>.xinitrc</filename> file:</para>
1631
1615
1632
	<para>For <application>KDE 3</application>:</para>
1633
1634
	<screen>&prompt.user; <userinput>echo "exec startkde" &gt; ~/.xinitrc</userinput></screen>
1635
1636
	<para>For <application>KDE 4</application>:</para>
1637
1638
	<screen>&prompt.user; <userinput>echo "exec /usr/local/kde4/bin/startkde" &gt; ~/.xinitrc</userinput></screen>
1616
	<screen>&prompt.user; <userinput>echo "exec /usr/local/kde4/bin/startkde" &gt; ~/.xinitrc</userinput></screen>
1639
1617
1640
	<para>Now, whenever the X Window System is invoked with
1618
	<para>Now, whenever the X Window System is invoked with
Lines 1684-1701 Link Here
1684
	  <application>GNOME</application>, or something else) to
1662
	  <application>GNOME</application>, or something else) to
1685
	  run after logging on.</para>
1663
	  run after logging on.</para>
1686
1664
1687
	<para>To enable <application>KDM</application>, different
1665
  <para>For <application>KDE 4</application>, you have to mount
1688
	  files need to be edited depending on the version of
1689
	  <application>KDE</application>.</para>
1690
1691
	<para>For <application>KDE 3</application>, the
1692
	  <literal>ttyv8</literal> entry in
1693
	  <filename>/etc/ttys</filename> has to be adapted as
1694
	  follows:</para>
1695
1696
	 <programlisting>ttyv8 "/usr/local/bin/kdm -nodaemon" xterm on secure</programlisting>
1697
1698
	<para>For <application>KDE 4</application>, you have to mount
1699
	  &man.procfs.5; and add the following line to
1666
	  &man.procfs.5; and add the following line to
1700
	  <filename>/etc/rc.conf</filename>:</para>
1667
	  <filename>/etc/rc.conf</filename>:</para>

Return to bug 181353