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 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098
|
<div class="document">
<div class="contents topic" id="top-level-contents">
<p class="topic-title"><a name="top-level-contents">Top Level Contents</a></p>
<ul class="simple">
<li><a class="reference" href="#setting-up-a-server" id="id3" name="id3">Setting up a server</a></li>
<li><a class="reference" href="#setting-up-a-terminal" id="id4" name="id4">Setting up a terminal</a></li>
<li><a class="reference" href="#transcripts-of-irc-chats-with-vagrant" id="id5" name="id5">Transcripts of irc chats with vagrant</a></li>
<li><a class="reference" href="#other-tips" id="id6" name="id6">Other Tips</a></li>
<li><a class="reference" href="#web-access-to-a-terminal" id="id7" name="id7">Web access to a terminal</a></li>
<li><a class="reference" href="#more-informtion" id="id8" name="id8">More Informtion</a></li>
<li><a class="reference" href="#glossary" id="id9" name="id9">Glossary</a></li>
<li><a class="reference" href="#installing-debian" id="id10" name="id10">Installing Debian</a></li>
</ul>
</div>
<div class="section" id="setting-up-a-server">
<h2><a class="toc-backref" href="#id3" name="setting-up-a-server">Setting up a server</a></h2>
<div class="contents topic" id="contents">
<ul class="simple">
<li><a class="reference" href="#configure-apt-get" id="id11" name="id11">Configure apt-get</a><ul>
<li><a class="reference" href="#tips" id="id12" name="id12">Tips</a></li>
</ul>
</li>
<li><a class="reference" href="#update-apt-get" id="id13" name="id13">Update apt-get</a></li>
<li><a class="reference" href="#download-lessdisks" id="id14" name="id14">Download lessdisks</a></li>
<li><a class="reference" href="#install-lessdisks" id="id15" name="id15">Install lessdisks</a><ul>
<li><a class="reference" href="#add-user-to-lessdisks-group" id="id16" name="id16">Add user to lessdisks group</a></li>
</ul>
</li>
<li><a class="reference" href="#configure-etc-exports" id="id17" name="id17">Configure /etc/exports</a></li>
<li><a class="reference" href="#install-dhcp" id="id18" name="id18">Install dhcp</a><ul>
<li><a class="reference" href="#configure-etc-dhcpd-conf" id="id19" name="id19">Configure /etc/dhcpd.conf</a></li>
</ul>
</li>
<li><a class="reference" href="#enable-remote-logging" id="id20" name="id20">Enable remote logging</a></li>
<li><a class="reference" href="#install-sdm" id="id21" name="id21">Install sdm</a><ul>
<li><a class="reference" href="#configuring-ssh-dialogs" id="id22" name="id22">Configuring Ssh dialogs</a></li>
<li><a class="reference" href="#configure-ssh" id="id23" name="id23">Configure ssh</a></li>
</ul>
</li>
<li><a class="reference" href="#install-sdm-terminal" id="id24" name="id24">Install sdm-terminal</a><ul>
<li><a class="reference" href="#configure-sdm-terminal" id="id25" name="id25">Configure sdm-terminal</a></li>
</ul>
</li>
<li><a class="reference" href="#install-an-x-server-for-your-video-card" id="id26" name="id26">Install an X server for your video card</a></li>
<li><a class="reference" href="#install-xdialog-on-the-server-and-terminal" id="id27" name="id27">Install xdialog on the server and terminal</a></li>
<li><a class="reference" href="#install-dialog-on-the-terminal" id="id28" name="id28">Install dialog on the terminal</a></li>
<li><a class="reference" href="#install-xdm-instead-of-sdm" id="id29" name="id29">Install xdm (instead of sdm)</a></li>
<li><a class="reference" href="#install-xfs-and-xfonts" id="id30" name="id30">Install xfs and xfonts</a><ul>
<li><a class="reference" href="#configure-xfs" id="id31" name="id31">Configure xfs</a></li>
</ul>
</li>
<li><a class="reference" href="#install-a-window-manager" id="id32" name="id32">Install a window manager</a></li>
<li><a class="reference" href="#install-an-x-terminal-emulator" id="id33" name="id33">Install an X terminal emulator</a></li>
<li><a class="reference" href="#install-swiftx" id="id34" name="id34">Install swiftx</a></li>
</ul>
</div>
<div class="section" id="configure-apt-get">
<h3><a class="toc-backref" href="#id11" name="configure-apt-get">Configure apt-get</a></h3>
<p><a class="reference" href="http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html#s-sources.list">/etc/apt/sources.list</a> contains a list of archives which
contain Debian packages for installing.</p>
<div class="section" id="tips">
<h4><a class="toc-backref" href="#id12" name="tips">Tips</a></h4>
<p>see tips</p>
<p>The following edit is required to allow apt-get
to find the lessdisks archive</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">file:</th><td class="field-body">/etc/apt/sources.list</td>
</tr>
<tr class="field"><th class="field-name">add:</th><td class="field-body">deb <a class="reference" href="http://lessdisks.sourceforge.net/debian/current"><a href="http://lessdisks.sourceforge.net/debian/current">http://lessdisks.sourceforge.net/debian/current</a></a> ./</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="update-apt-get">
<h3><a class="toc-backref" href="#id13" name="update-apt-get">Update <a class="reference" href="http://www.debian.org/doc/manuals/apt-howto/index.en.html#contents">apt</a>-get</a></h3>
<p>The following command will update the local apt-get information</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body"><a class="reference" href="http://www.debian.org/doc/manuals/apt-howto/index.en.html#contents">apt</a>-get update</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="download-lessdisks">
<h3><a class="toc-backref" href="#id14" name="download-lessdisks">Download lessdisks</a></h3>
<p>fetch the <a class="reference" href="http://lessdisks.sourceforge.net/debian/current/Packages">lessdisks package</a> from the archive</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">apt-get install lessdisks</td>
</tr>
</tbody>
</table>
<p>There may be a couple warning dialogs about kernel
linking and statd/tcpwrappers. Read them, or not, and
continue.</p>
</div>
<div class="section" id="install-lessdisks">
<h3><a class="toc-backref" href="#id15" name="install-lessdisks">Install lessdisks</a></h3>
<p>run the script which does the actual install</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">lessdisks-install</td>
</tr>
</tbody>
</table>
<p>You will be shown a menu which allows checking and changing</p>
<ul class="simple">
<li>packages</li>
<li>disk-server</li>
<li>diskserver-ip</li>
<li>ArchiveMenu<a class="new" href="http://longrun.org/wiki/Installing/editform?page=ArchiveMenu" title="create this page">?</a></li>
<li>DisplayValues<a class="new" href="http://longrun.org/wiki/Installing/editform?page=DisplayValues" title="create this page">?</a></li>
<li>BeginInstall<a class="new" href="http://longrun.org/wiki/Installing/editform?page=BeginInstall" title="create this page">?</a></li>
<li>AdvandedMenu<a class="new" href="http://longrun.org/wiki/Installing/editform?page=AdvandedMenu" title="create this page">?</a></li>
<li>Exit</li>
</ul>
<p>The default values should work, check them, change them, or not: select;</p>
<ul class="simple">
<li>BeginInstall<a class="new" href="http://longrun.org/wiki/Installing/editform?page=BeginInstall" title="create this page">?</a></li>
</ul>
<p>You will see a dialog:</p>
<pre class="literal-block">
about to install lessdisks...
</pre>
<p>==ok==</p>
<blockquote>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Dialog:</th><td class="field-body">archive location... what kind of debian archive would you like to install from?</td>
</tr>
<tr class="field"><th class="field-name">select:</th><td class="field-body">web</td>
</tr>
</tbody>
</table>
</blockquote>
<p>message:</p>
<pre class="literal-block">
Installation method chosen as web
setting archive to default: http.us.debian.org/debian
proceeding with installation ...
(this will also check for missing or incomplete files again)
</pre>
<p>Lessdisks is downloading lots of stuff, the messages don't
change for quite a while.</p>
<p>I find it comforting to switch to another terminal (ALT-F2)
and running:</p>
<pre class="literal-block">
$ top
</pre>
<p>top shows running processes. You will see that wget and debootstrap
are busy fetching what you need.</p>
<p>Next will be a report on what packages will be installed, and the prompt:</p>
<pre class="literal-block">
Need to get 13.9MB of archives. After unpacking 42.5MB will be used.
Do you want to continue? [Y/n]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=Y/n" title="create this page">?</a>
</pre>
<p>Might as well.</p>
<p>Another message like the previous:</p>
<pre class="literal-block">
....
Do you want to continue? [Y/n]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=Y/n" title="create this page">?</a>
</pre>
<!-- need a bunch of escapes in the following line to prevent rendering error messages
I'm not sure what kind of backlink the following is generating
"application/*" ? -->
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">dialog:</th><td class="field-body">Add a mime handler for "application/*" ?</td>
</tr>
<tr class="field"><th class="field-name">response:</th><td class="field-body">Default</td>
</tr>
<tr class="field"><th class="field-name">dialog:</th><td class="field-body">Manage X server wrapper configuration with debconf?</td>
</tr>
<tr class="field"><th class="field-name">response:</th><td class="field-body">No</td>
</tr>
<tr class="field"><th class="field-name">dialog:</th><td class="field-body">Manage <a href="http://longrun.org/wiki/XFree86" title="" style="background-color:;">XFree86</a> server configuration file with debconf?</td>
</tr>
<tr class="field"><th class="field-name">response:</th><td class="field-body">No</td>
</tr>
<tr class="field"><th class="field-name">dialog:</th><td class="field-body">Would you like to run thttpd in a chroot 'jail'?</td>
</tr>
<tr class="field"><th class="field-name">response:</th><td class="field-body">Default</td>
</tr>
<tr class="field"><th class="field-name">activity:</th><td class="field-body">lots of progress messages scrolling by</td>
</tr>
</tbody>
</table>
<!-- I get the following warning message during this phase
netstat: no support for `AF INET (tcp)' on this system.
I don't know if that's an issue or not. -->
<div class="section" id="add-user-to-lessdisks-group">
<h4><a class="toc-backref" href="#id16" name="add-user-to-lessdisks-group">Add user to lessdisks group</a></h4>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">adduser $username lessdisks</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="configure-etc-exports">
<h3><a class="toc-backref" href="#id17" name="configure-etc-exports">Configure /etc/exports</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">examine:</th><td class="field-body">/usr/share/doc/lessdisks/examples/exports</td>
</tr>
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">edit:</th><td class="field-body">make required changes and save to /etc/exports</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">/etc/init.d/portmap restart</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">/etc/init.d/nfs-common restart</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">/etc/init.d/nfs-kernel-server restart</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="install-dhcp">
<h3><a class="toc-backref" href="#id18" name="install-dhcp">Install dhcp</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">apt-get install dhcp</td>
</tr>
</tbody>
</table>
<div class="section" id="configure-etc-dhcpd-conf">
<h4><a class="toc-backref" href="#id19" name="configure-etc-dhcpd-conf">Configure /etc/dhcpd.conf</a></h4>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">examine:</th><td class="field-body">/usr/share/doc/lessdisks/examples/dhcpd.conf</td>
</tr>
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">edit:</th><td class="field-body">make required changes and save to /etc/dhcpd.conf</td>
</tr>
<tr class="field"><th class="field-name">restart:</th><td class="field-body">/etc/init.d/dhcp restart</td>
</tr>
</tbody>
</table>
<p>==At this point you should be able to boot a terminal machine==</p>
<p>If you boot a machine on the network from floppy which has
a properly configured <a class="reference" href="http://rom-o-matic.net"><a href="http://rom-o-matic.net">http://rom-o-matic.net</a></a> image, it should
find the server's DHCP server, load the kernel image on the server.</p>
</div>
</div>
<div class="section" id="enable-remote-logging">
<h3><a class="toc-backref" href="#id20" name="enable-remote-logging">Enable remote logging</a></h3>
<p>This would be a good time to <a class="reference" href="#turn-on-remote-syslogging">turn on remote syslogging</a>, so
that the messages generated by terminals will appear in /var/log/syslog</p>
</div>
<div class="section" id="install-sdm">
<h3><a class="toc-backref" href="#id21" name="install-sdm">Install sdm</a></h3>
<p>sdm is a secure login manager, using ssh.
(as an alternative to <a class="reference" href="http://ibiblio.org/pub/Linux/docs/HOWTO/mini/other-formats/html_single/XDM-Xterm.html">xdm</a>/kdm/gdm/wdm or other <a class="reference" href="http://www.tldp.org/HOWTO/XDMCP-HOWTO/">xdmcp</a> server)</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">apt-get install sdm</td>
</tr>
</tbody>
</table>
<div class="section" id="configuring-ssh-dialogs">
<h4><a class="toc-backref" href="#id22" name="configuring-ssh-dialogs">Configuring Ssh dialogs</a></h4>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">dialog:</th><td class="field-body"><p class="first">Configuring Ssh</p>
<table class="last field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">type:</th><td class="field-body">choice, Do you want to allow SSH protocol 2 only</td>
</tr>
<tr class="field"><th class="field-name">response:</th><td class="field-body">Yes</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="field"><th class="field-name">dialog:</th><td class="field-body"><p class="first">Configuring Ssh</p>
<table class="last field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">type:</th><td class="field-body">informative, problems interacting with PAM</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="field"><th class="field-name">dialog:</th><td class="field-body"><p class="first">Configuring Ssh</p>
<table class="last field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">type:</th><td class="field-body">choice, Do you want /usr/lib/ssh-keysigns to be installed SUID root?</td>
</tr>
<tr class="field"><th class="field-name">default:</th><td class="field-body">Yes</td>
</tr>
<tr class="field"><th class="field-name">choice:</th><td class="field-body">Yes</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="field"><th class="field-name">dialog:</th><td class="field-body"><p class="first">Configuring Ssh</p>
<table class="last field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">type:</th><td class="field-body">choice, Do you want to run the sshd server ?</td>
</tr>
<tr class="field"><th class="field-name">default:</th><td class="field-body">Yes</td>
</tr>
<tr class="field"><th class="field-name">choice:</th><td class="field-body">Yes</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>Apt-get now installs sdm, ssh and a few other things.</p>
</div>
<div class="section" id="configure-ssh">
<h4><a class="toc-backref" href="#id23" name="configure-ssh">Configure ssh</a></h4>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">file:</th><td class="field-body">/etc/ssh/sshd_config</td>
</tr>
<tr class="field"><th class="field-name">edit:</th><td class="field-body">X11Forwarding yes</td>
</tr>
<tr class="field"><th class="field-name">restart:</th><td class="field-body">/etc/init.d/ssh restart</td>
</tr>
<tr class="field"><th class="field-name">task:</th><td class="field-body">create /var/lib/lessdisks/root/.ssh/known_hosts <a class="footnote-reference" href="#id2" id="id1" name="id1"><sup>1</sup></a></td>
</tr>
</tbody>
</table>
<p>known_hosts is a file with the following structure:</p>
<pre class="literal-block">
(replace [servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a> with the name of your server)
(<key> is a long string of random characters)
disk ssh-rsa <key>= root@[servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a>
disk ssh-dss <key>= root@[servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a>
xdm1 ssh-rsa <key>= root@[servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a>
xdm1 ssh-dss <key>= root@[servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a>
[<servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=%26lt%3Bservername" title="create this page">?</a> ssh-rsa <key>= root@[servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a>
[servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a> ssh-dsa <key>= root@[servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a>
</pre>
<p>ssh-rsa <key>= root@[servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a> is the contents of the file:</p>
<pre class="literal-block">
/etc/ssh/ssh_host_rsa_key.pub
</pre>
<p>ssh-dss <key>= root@[servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a> is the contents of the file:</p>
<pre class="literal-block">
/etc/ssh/ssh_host_dsa_key.pub
</pre>
<p>Follow these steps to create the required file:</p>
<ul class="simple">
<li>create the directory /var/lib/lessdisks/root/.ssh</li>
<li>create the file /var/lib/lesssisks/root/.ssh/known_hosts</li>
<li>read into the file the contents of /etc/ssh/ssh_host_rsa_key.pub and /etc/ssh/ssh_host_dsa_key.pub</li>
<li>copy these two lines and paste twice so that there are 3 copies of the 2 lines</li>
<li>add to the beginning of the first 2 "disk"</li>
<li>add to the beginning of the second 2 "xdm1"</li>
<li>add to the beginning of the third 2 "<servername>"</li>
<li>save the new /var/lib/lessdisks/root/.ssh/known_hosts</li>
</ul>
<p>One way to do this using the "vi" (or "Vim") editor is as follows:</p>
<pre class="literal-block">
$ mkdir /var/lib/lessdisks/root/.ssh
$ vi /var/lib/lessdisks/root/.ssh/known_hosts
<vi> :r /etc/ssh/ssh_host_rsa_key.pub (the colon puts you in command mode,
the 'r' command reads a file into the current document)
<vi> :r /etc/ssh/ssh_host_dsa_key.pub
<vi> [up arrow]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=up%20arrow" title="create this page">?</a> (put the cursor at the beginning of the file)
<vi> 2dd (the 2 executes the 'dd' (delete line) 2 times, the file should now be empty)
<vi> 3p (the 3 executes the 'p' command (put) 3 times, the file should now contain the
keys repeated 3 times)
<vi> i ('i' puts vi in insert mode, which is regular edit mode)
add disk, xdm1 and [servername]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=servername" title="create this page">?</a> to each set of keys.
<vi> <ESC> (<ESC> returns to normal mode from insert mode)
<vi> :wq (the 'w' writes (saves) the file, the 'q' quits)
</pre>
</div>
</div>
<div class="section" id="install-sdm-terminal">
<h3><a class="toc-backref" href="#id24" name="install-sdm-terminal">Install sdm-terminal</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">chroot /var/lib/lessdisks apt-get install sdm-terminal</td>
</tr>
</tbody>
</table>
<p>displays the <a class="reference" href="#configuring-ssh-dialogs">Configuring Ssh dialogs</a> ...</p>
<div class="section" id="configure-sdm-terminal">
<h4><a class="toc-backref" href="#id25" name="configure-sdm-terminal">Configure sdm-terminal</a></h4>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">note:</th><td class="field-body">this step is not needed for recent version of sdm</td>
</tr>
<tr class="field"><th class="field-name">file:</th><td class="field-body">/var/lib/lessdisks/etc/inittab</td>
</tr>
<tr class="field"><th class="field-name">edit:</th><td class="field-body">comment out x5:5:respawn:/usr/X11R6/bin/X-lessdisks -query xdm2</td>
</tr>
<tr class="field"><th class="field-name">insert:</th><td class="field-body">sdm5:5:respawn:/usr/sbin/sdm</td>
</tr>
</tbody>
</table>
<!-- restart sdm ??? -->
</div>
</div>
<div class="section" id="install-an-x-server-for-your-video-card">
<h3><a class="toc-backref" href="#id26" name="install-an-x-server-for-your-video-card">Install an X server for your video card</a></h3>
<p>In the following example the terminal has a Mach 64 video card installed</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">chroot /var/lib/lessdisks apt-get install xserver-mach64</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="install-xdialog-on-the-server-and-terminal">
<h3><a class="toc-backref" href="#id27" name="install-xdialog-on-the-server-and-terminal">Install xdialog on the server and terminal</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">apt-get install xdialog</td>
</tr>
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">chroot /var/lib/lessdisks apt-get install xdialog</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="install-dialog-on-the-terminal">
<h3><a class="toc-backref" href="#id28" name="install-dialog-on-the-terminal">Install dialog on the terminal</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">chroot /var/lib/lessdisks apt-get install dialog</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="install-xdm-instead-of-sdm">
<h3><a class="toc-backref" href="#id29" name="install-xdm-instead-of-sdm">Install xdm (instead of sdm)</a></h3>
<p>A basic login manager</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">apt-get install xdm</td>
</tr>
<tr class="field"><th class="field-name">edit:</th><td class="field-body">/etc/X11/xdm/Xaccess</td>
</tr>
<tr class="field"><th class="field-name">restart:</th><td class="field-body">/etc/init.d/xdm restart</td>
</tr>
</tbody>
</table>
<p>other alternatives to xdm include kdm, gdm and wdm.</p>
</div>
<div class="section" id="install-xfs-and-xfonts">
<h3><a class="toc-backref" href="#id30" name="install-xfs-and-xfonts">Install xfs and xfonts</a></h3>
<p>the X font server is used to access and maintain fonts in a single place</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">apt-get install xfs xfonts-base xfonts-100dpi xfonts-75dpi xfonts-scalable</td>
</tr>
</tbody>
</table>
<div class="section" id="configure-xfs">
<h4><a class="toc-backref" href="#id31" name="configure-xfs">Configure xfs</a></h4>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">file:</th><td class="field-body">/etc/X11/fs/config</td>
</tr>
<tr class="field"><th class="field-name">edit:</th><td class="field-body">comment out no-listen = tcp</td>
</tr>
<tr class="field"><th class="field-name">restart:</th><td class="field-body">/etc/init.d/xfs restart</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="install-a-window-manager">
<h3><a class="toc-backref" href="#id32" name="install-a-window-manager">Install a window manager</a></h3>
<p>At least 1 window manager is required, icewm is
a nice small one.</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">apt-get install icewm</td>
</tr>
</tbody>
</table>
<p>Other choices for window manager include;</p>
<ul class="simple">
<li>kde</li>
<li>gnome</li>
<li>blackbox</li>
<li>xfce</li>
<li>afterstep</li>
<li>and so many more</li>
</ul>
</div>
<div class="section" id="install-an-x-terminal-emulator">
<h3><a class="toc-backref" href="#id33" name="install-an-x-terminal-emulator">Install an X terminal emulator</a></h3>
<p>Required to get a command line in X</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">apt-get install rxvt</td>
</tr>
</tbody>
</table>
<p>Other choices for terminal programs include:</p>
<ul class="simple">
<li>xterm</li>
<li>others</li>
</ul>
</div>
<div class="section" id="install-swiftx">
<h3><a class="toc-backref" href="#id34" name="install-swiftx">Install swiftx</a></h3>
<p>The intended replacement for freex is called swiftx</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">chroot /var/lib/lessdisks apt-get install swiftx</td>
</tr>
</tbody>
</table>
<p>swiftx is an X configuration script for detecting video and mouse settings. A couple of edits are required when using swiftx from a lessdisks terminal;</p>
<p>edit file /var/lib/lessdisks/etc/swiftx/swiftx.conf</p>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">edit:</th><td class="field-body">change x_config_dir to "/var/state/lessdisks/etc/"</td>
</tr>
</tbody>
</table>
<p>there's a couple lines you'll want to add to the fonts section
in /var/lib/lessdisks/etc/swiftx/XF86Config-*.template:</p>
<pre class="literal-block">
FontPath "tcp/xdm1:7110"
FontPath "tcp/xdm2:7110"
FontPath "tcp/xdm1:7101"
FontPath "tcp/xdm2:7101"
FontPath "tcp/xdm1:7100"
FontPath "tcp/xdm2:7100"
</pre>
<p>if you're just using plain ol' xfs, which uses port 7100,
you'll just need those lines. you probably won't really need
any lines with xdm2, either. the true-type font servers
xfs-xtt and xfstt use ports 7110 and 7101, respectively.
purportedly the true-type fonts are better, but you have to get
true-type fonts installed.</p>
</div>
</div>
<div class="section" id="setting-up-a-terminal">
<h2><a class="toc-backref" href="#id4" name="setting-up-a-terminal">Setting up a terminal</a></h2>
<div class="section" id="identify-nic-card">
<h3><a name="identify-nic-card">Identify NIC card</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">file:</th><td class="field-body">/proc/pci</td>
</tr>
<tr class="field"><th class="field-name">examine:</th><td class="field-body">NIC card info</td>
</tr>
<tr class="field"><th class="field-name" colspan="2">alternate command:</th></tr>
<tr><td> </td><td class="field-body">lspci</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="download-boot-floppy-image">
<h3><a name="download-boot-floppy-image">Download boot floppy image</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">URL:</th><td class="field-body"><a class="reference" href="http://rom-o-matic.org"><a href="http://rom-o-matic.org">http://rom-o-matic.org</a></a></td>
</tr>
<tr class="field"><th class="field-name">download:</th><td class="field-body">boot image for the specific NIC, with
DOWNLOAD_PROTO_NFS specified</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="login-to-terminal">
<h3><a name="login-to-terminal">Login to terminal</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">note:</th><td class="field-body">empty password</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="configure-x">
<h3><a name="configure-x">Configure X</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">freex</td>
</tr>
</tbody>
</table>
<div class="section" id="test-x">
<h4><a name="test-x">Test X</a></h4>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">if sdm: init 5, if xdm/kdm/gdm, init 4</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="configure-terminal-from-x">
<h4><a name="configure-terminal-from-x">Configure Terminal from X</a></h4>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">user added to lessdisks group on server</td>
</tr>
<tr class="field"><th class="field-name" colspan="2">graphical login:</th></tr>
<tr><td> </td><td class="field-body">sdm, xdm, kdm, gdm, etc.</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">/usr/sbin/lessdisks-setup</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="configure-terminal-from-console">
<h3><a name="configure-terminal-from-console">Configure Terminal from console</a></h3>
<table class="field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">user:</th><td class="field-body">root</td>
</tr>
<tr class="field"><th class="field-name">command:</th><td class="field-body">lessdisks-setup</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="transcripts-of-irc-chats-with-vagrant">
<h2><a class="toc-backref" href="#id5" name="transcripts-of-irc-chats-with-vagrant">Transcripts of irc chats with vagrant</a></h2>
<p><a class="reference" href="/wiki/ChatTranscript20030429"><a href="http://longrun.org/wiki/ChatTranscript20030429" title="" style="background-color:;">ChatTranscript20030429</a></a></p>
<p><a class="reference" href="/wiki/ChatTranscript20030508"><a href="http://longrun.org/wiki/ChatTranscript20030508" title="" style="background-color:;">ChatTranscript20030508</a></a></p>
<p><a class="reference" href="/wiki/ChatTranscript20030622"><a href="http://longrun.org/wiki/ChatTranscript20030622" title="" style="background-color:;">ChatTranscript20030622</a></a></p>
<p><a class="reference" href="/wiki/ChatTranscript20031113"><a href="http://longrun.org/wiki/ChatTranscript20031113" title="" style="background-color:;">ChatTranscript20031113</a></a></p>
<table class="footnote" frame="void" id="id2" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id1" name="id2">[1]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=1" title="create this page">?</a></a></td><td>in an email from vagrant</td></tr>
</tbody>
</table>
<pre class="literal-block">
and copy /etc/ssh_host_*.pub to a common file, like so:
#!/bin/sh
# ooooh, i finally got around to writing a script to handle this stuff!
# bugfixes 7/21/03
for name in xdm1 disk $(hostname); do
for type in rsa dsa; do
echo "$name" $(cat /etc/ssh/ssh_host_$type\_key.pub) >> /tmp/known_hosts
done
done
cd /var/lib/lessdisks/root
mkdir -p .ssh
chmod og-rwx .ssh
cp /tmp/known_hosts .ssh/known_hosts
exit $?
</pre>
</div>
<div class="section" id="other-tips">
<h2><a class="toc-backref" href="#id6" name="other-tips">Other Tips</a></h2>
<div class="contents topic" id="id35">
<ul class="simple">
<li><a class="reference" href="#terminal-boot-boot-messages" id="id36" name="id36">terminal boot boot messages</a></li>
<li><a class="reference" href="#turn-on-remote-syslogging" id="id37" name="id37">Turn on remote syslogging</a></li>
<li><a class="reference" href="#configuring-exim" id="id38" name="id38">Configuring Exim</a></li>
</ul>
</div>
<div class="section" id="terminal-boot-boot-messages">
<h3><a class="toc-backref" href="#id36" name="terminal-boot-boot-messages">terminal boot boot messages</a></h3>
<p>Etherboot:</p>
<pre class="literal-block">
.000041.0000 done
ROM sebment 0x0800 length 0x8000 reloc 0x9400
Etherboot 5.0.9 (GPL) Tagged ELF for [Tulip]<a class="new" href="http://longrun.org/wiki/Installing/editform?page=Tulip" title="create this page">?</a>
</pre>
<p>dmesg</p>
<pre class="literal-block">
Linux version 2.4.18ld (root@nero) (gcc version 2.95.4 (Debian prerelease)) #2 Tue Apr 9 11:21:26 PDT 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000008000000 (usable)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
Kernel command line: rw root=/dev/nfs ip=dhcp
Initializing CPU#0
Console: colour VGA+ 80x25
Calibrating delay loop... 119.60 BogoMIPS<a class="new" href="http://longrun.org/wiki/Installing/editform?page=BogoMIPS" title="create this page">?</a>
Memory: 126956k/131072k available (900k kernel code, 3732k reserved, 252k data, 196k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
Enabling CPUID on Cyrix processor.
CPU: Before vendor init, caps: 00000001 00000000 00000000, vendor = 1
CPU: After vendor init, caps: 00000001 00000000 00000000 00000004
CPU: After generic, caps: 00000001 00000000 00000000 00000004
CPU: Common caps: 00000001 00000000 00000000 00000004
CPU: Cyrix 6x86 2x Core/Bus Clock stepping 07
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfb5d0, last bus=0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 1 of device 00:09.0
Limiting direct PCI/PCI transfers.
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.10 (20020120) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.10e
block: 128 slots per queue, batch=32
0 3c515 cards found.
loop: loaded (max 8 devices)
Linux Tulip driver version 0.9.15-pre9 (Nov 6, 2001)
eth0: ADMtek<a class="new" href="http://longrun.org/wiki/Installing/editform?page=ADMtek" title="create this page">?</a> Comet rev 17 at 0x6200, 00:04:E2:3E:25:46, IRQ 10.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 192.168.1.2, my address is 192.168.1.200
IP-Config: Complete:
device=eth0, addr=192.168.1.200, mask=255.255.255.0, gw=192.168.1.1,
host=192.168.1.200, domain=, nis-domain=(none),
bootserver=192.168.1.2, rootserver=192.168.1.2, rootpath=/var/lib/lessdisks/
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/2 on 192.168.1.2
Looking up port of RPC 100005/1 on 192.168.1.2
VFS: Mounted root (nfs filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 196k freed
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS03 at 0x02e8 (irq = 3) is a 16550A
inserting floppy driver for 2.4.18ld
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
</pre>
</div>
<div class="section" id="turn-on-remote-syslogging">
<h3><a class="toc-backref" href="#id37" name="turn-on-remote-syslogging">Turn on remote syslogging</a></h3>
<pre class="literal-block">
one thing that can help a good deal is turning remote
syslogging on...
on the server, edit /etc/init.d/sysklogd
SYSLOGD="-r"
then restart it:
/etc/init.d/sysklogd restart
and then, add to /var/lib/lessdisks/etc/syslog.conf:
*.* @disk
then syslog messages from the terminal should hopefully appear
in the server's log files too, distinguished by ip address or
host name...
</pre>
</div>
<div class="section" id="configuring-exim">
<h3><a class="toc-backref" href="#id38" name="configuring-exim">Configuring Exim</a></h3>
<ul class="simple">
<li>run 'eximconfig'</li>
<li>choose 3, Satellite system, if your ISP handles mail for you.</li>
</ul>
<blockquote>
<ul class="simple">
<li>What is this system's name?</li>
</ul>
<blockquote>
<ul class="simple">
<li>select default, the host name of the computer</li>
</ul>
</blockquote>
<ul class="simple">
<li>Where will your users read their mail?</li>
</ul>
<blockquote>
<ul class="simple">
<li>enter the domain you want to appear after @ in the "From:" field</li>
</ul>
</blockquote>
<ul class="simple">
<li>Which accounts should the system administrator mail go to?</li>
</ul>
<blockquote>
<ul class="simple">
<li>select a user name</li>
</ul>
</blockquote>
<ul class="simple">
<li>You may already have an /etc/aliases file, do you want to replace it?</li>
</ul>
<blockquote>
<ul class="simple">
<li>might as well</li>
</ul>
</blockquote>
<ul class="simple">
<li>Exim lists the changes it will make, and asks for confirmation</li>
</ul>
</blockquote>
</div>
</div>
<div class="section" id="web-access-to-a-terminal">
<h2><a class="toc-backref" href="#id7" name="web-access-to-a-terminal">Web access to a terminal</a></h2>
<p>Each terminal runs a Web server on port 8080</p>
<p><a class="reference" href="http://xxx.xxx.xxx.xxx:8080"><a href="http://xxx.xxx.xxx.xxx:8080">http://xxx.xxx.xxx.xxx:8080</a></a> should list the /var/state/lessdisks/etc directory on the terminal,
where xxx.xxx.xxx.xxx is the IP address of the terminal</p>
</div>
<div class="section" id="more-informtion">
<h2><a class="toc-backref" href="#id8" name="more-informtion">More Informtion</a></h2>
<ul class="simple">
<li><a class="reference" href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/other-formats/html_single/Remote-X-Apps.html">Remote X Apps mini HOWTO</a></li>
<li><a class="reference" href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/unmaintained/mini/Xterminal">Xterminal mini-HOWTO</a></li>
</ul>
</div>
<div class="section" id="glossary">
<h2><a class="toc-backref" href="#id9" name="glossary">Glossary</a></h2>
<dl>
<dt><a class="reference" href="http://www.tldp.org/HOWTO/XDMCP-HOWTO/">xdmcp</a></dt>
<dd>X Display Manager Control Protocol</dd>
</dl>
</div>
<div class="section" id="installing-debian">
<h2><a class="toc-backref" href="#id10" name="installing-debian">Installing Debian</a></h2>
<div class="contents topic" id="id39">
<ul class="simple">
<li><a class="reference" href="#choosing-which-kernel-to-install" id="id40" name="id40">Choosing which kernel to install</a></li>
<li><a class="reference" href="#configuring-network-during-install" id="id41" name="id41">Configuring network during install</a></li>
<li><a class="reference" href="#determining-nic-card" id="id42" name="id42">Determining NIC card</a></li>
<li><a class="reference" href="#other-tips-and-reminders" id="id43" name="id43">Other tips and reminders</a><ul>
<li><a class="reference" href="#debian-base-config-script" id="id44" name="id44">Debian base-config script</a></li>
<li><a class="reference" href="#floppy-drive-configuration" id="id45" name="id45">Floppy drive configuration</a></li>
<li><a class="reference" href="#finding-changed-files" id="id46" name="id46">Finding changed files</a></li>
<li><a class="reference" href="#setting-su-timeout" id="id47" name="id47">Setting su timeout</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="choosing-which-kernel-to-install">
<h3><a class="toc-backref" href="#id40" name="choosing-which-kernel-to-install">Choosing which kernel to install</a></h3>
<p>Using the 'Woody' install disk, I found
that things worked better if I entered:</p>
<pre class="literal-block">
bf24
</pre>
<p>at the original:</p>
<pre class="literal-block">
boot:
</pre>
<p>prompt.</p>
<p>This installs a 2.4 kernel, and offers journaling filesystems,
EXT3 and ReiserFS<a class="new" href="http://longrun.org/wiki/Installing/editform?page=ReiserFS" title="create this page">?</a> in addition to EXT2.</p>
</div>
<div class="section" id="configuring-network-during-install">
<h3><a class="toc-backref" href="#id41" name="configuring-network-during-install">Configuring network during install</a></h3>
<p>Sometimes I neglect to:</p>
<pre class="literal-block">
Configure Device Driver Modules
Configure the Hostname
Configure the Network
</pre>
<p>Which causes:</p>
<pre class="literal-block">
Install the Base System
</pre>
<p>to fail with debootstrap errors. The errors are about configuring,
but not specific about what is causing the failure.</p>
</div>
<div class="section" id="determining-nic-card">
<h3><a class="toc-backref" href="#id42" name="determining-nic-card">Determining NIC card</a></h3>
<p>ALT-F2 will give a console during the install process.
From the ALT-F2 console;</p>
<p>See if you can ping a host:</p>
<pre class="literal-block">
# ping ssc.com
</pre>
<p>If that fails, try:</p>
<pre class="literal-block">
# lsmod
</pre>
<p>and see if there's an ethernet module loaded.</p>
<p>If not, try:</p>
<pre class="literal-block">
# more /proc/pci
or
# dmesg | more
</pre>
<p>and look for mention of a type of NIC card which
was identified at boot time.</p>
<p>Select:</p>
<pre class="literal-block">
Configure Device Driver Modules -> kernel/drivers/net
</pre>
<p>choose the driver which most closely matches the card name
found with:</p>
<pre class="literal-block">
# more /proc/pci
or
# dmesg | more
</pre>
<p>If successful, running:</p>
<pre class="literal-block">
# lsmod
</pre>
<p>from the ALT-F2 console should list the NIC module, and
in the list of modules on the install screen, there will
be a "+" instead of "-" next to the module name.</p>
<p>If the install is unsuccessful, figure out what driver
your card needs.</p>
</div>
<div class="section" id="other-tips-and-reminders">
<h3><a class="toc-backref" href="#id43" name="other-tips-and-reminders">Other tips and reminders</a></h3>
<div class="section" id="debian-base-config-script">
<h4><a class="toc-backref" href="#id44" name="debian-base-config-script">Debian base-config script</a></h4>
<p>The script which runs the first time the new install boots is:</p>
<pre class="literal-block">
/usr/sbin/base-config
</pre>
</div>
<div class="section" id="floppy-drive-configuration">
<h4><a class="toc-backref" href="#id45" name="floppy-drive-configuration">Floppy drive configuration</a></h4>
<p>The command:</p>
<pre class="literal-block">
/usr/sbin/superformat /dev/fd0 hd
</pre>
<p>checks the floppy drive and reports a value to put in:</p>
<pre class="literal-block">
/etc/driveprm
</pre>
<p>such as:</p>
<pre class="literal-block">
drive0: deviation=400
</pre>
</div>
<div class="section" id="finding-changed-files">
<h4><a class="toc-backref" href="#id46" name="finding-changed-files">Finding changed files</a></h4>
<p>I like this trick to determine what what files an operation effects;</p>
<ul class="simple">
<li>create a file which is used as a timestamp</li>
<li>perform an operation</li>
<li>report the files which are newer than the timestamp</li>
</ul>
<p>Example:</p>
<pre class="literal-block">
# touch apt-get_update.pre
# apt-get update
# find / ! -path "/proc*" -newer apt-get_update.pre
</pre>
<p>The <! -path "/proc*"> part of the command is required to prevent all the files
in the /proc tree from being listed, they report their timestamp as current time.</p>
</div>
<div class="section" id="setting-su-timeout">
<h4><a class="toc-backref" href="#id47" name="setting-su-timeout">Setting su timeout</a></h4>
<p>I usually login as myself, then 'su' to do rootly things, and
forget to logout of root.</p>
<p>setting TMOUT in /etc/bash.bashrc to number of seconds of inactivity is a good thing:</p>
<pre class="literal-block">
TMOUT=600 # a su session ends after 10 minutes of inaction
</pre>
<p></p>
</div>
</div>
</div>
</div>
|