Changes between Version 3 and Version 4 of install_debian


Ignore:
Timestamp:
Aug 22, 2007, 5:41:43 PM (18 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • install_debian

    v3 v4  
    33Assumptions: The server has two identically sized hard drives
    44
    5 Ideally - you should boot using a Debian installer that uses the serial
    6 console. If you can't - just install the normal way.
     5Ideally - you should boot using a Debian installer that uses the serial console. If you can't - just install the normal way.
    76
    87=== Prepare your laptop - Screen ===
     
    1413}}}
    1514
    16  * Connect your serial cable (or USB - serial cable) from your laptop to the
    17 server.
    18 
    19  You may want to check dmesg after plugging in the cable to see which device
    20 is being used. You should have a line along the lines of:
    21 
    22  usb 3-1: PL-2303 converter now attached to ttyUSB0
     15 * Connect your serial cable (or USB - serial cable) from your laptop to the server. You may want to check dmesg after plugging in the cable to see which device is being used. You should have a line along the lines of: usb 3-1: PL-2303 converter now attached to ttyUSB0
    2316
    2417 * Start screen with:
     
    3124=== Install Linux ===
    3225
     26==== Initial steps ====
     27
    3328 * Put in Daniel's Serial Console debian installer and boot (note - if you don't have a serial installer, use a normal installer and a keyboard and monitor attached to the server).
    3429
    3530 * At the boot prompt hit enter to install the 2.6 kernel
    36 
    37 ==== Initial steps ====
    3831
    3932 * [Skipping easy steps]
     
    9184 * After returning to the main disk config menu, click on the LVM #1 and configure it to use ext3 and /.
    9285 * Click on the #2 lvm disk and configure it as swap
    93 
    9486
    9587==== Afer reboot ====
     
    229221 * Configure ssh to only accept connections with auth keys (unless this is a server that should be accessible by members). Edit /etc/ssh/sshd_config.
    230222
    231   * Uncomment and change the !ChallengeResponseAuthentication line to match the following:
     223 * Uncomment and change the !ChallengeResponseAuthentication line to match the following:
    232224
    233225{{{
     
    235227}}}
    236228
    237   * Reload ssh:
     229 * Reload ssh:
    238230
    239231{{{
     
    241233}}}
    242234
    243  * Serial console login: If you did not use the serial console installer, then perform the following:
    244 
    245   * Edit the /etc/inittab file.
    246 
    247   Uncomment the line that reads:
     235 * Uninstall unecesary packages:
     236
     237{{{
     238$ sudo apt-get remove --purge portmap lpr nfs-common ppp
     239}}}
     240
     241 * Make sure no uneeded services are running. Look through /etc/rc2.d. Move
     242from S to K any services that are not needed (e.g. rsync and inetd).
     243
     244==== Serial console login ====
     245
     246If you did not use the serial console installer, then perform the following:
     247
     248 * Edit the /etc/inittab file. Uncomment the line that reads:
    248249
    249250{{{
     
    257258}}}
    258259
    259   * Refresh:
     260 * Refresh:
    260261
    261262{{{
     
    263264}}}
    264265
    265   * Add the following lines after the timeout line in /boot/grub/menu.1st
     266 * Add the following lines after the timeout line in /boot/grub/menu.1st
    266267
    267268{{{
     
    270271}}}
    271272
    272   * Add the following lies to the Start Default Options
     273 * Add the following lies to the Start Default Options
    273274You should already have a line such as:
    274275
     
    277278}}}
    278279
    279   add to it, so that your final line says:
     280 add to it, so that your final line says:
    280281
    281282{{{
     
    283284}}}
    284285
    285   Refresh grub:
     286 Refresh grub:
    286287
    287288{{{
     
    289290}}}
    290291
    291 
    292  * Uninstall unecesary packages:
    293 
    294 {{{
    295 $ sudo apt-get remove --purge portmap lpr nfs-common ppp
    296 }}}
    297 
    298  * Make sure no uneeded services are running. Look through /etc/rc2.d. Move
    299 from S to K any services that are not needed (e.g. rsync and inetd).
    300 
    301  * Encrypted File system
    302 
    303   * Install programs:
     292==== Encrypted File system ====
     293
     294 * Install programs:
    304295
    305296{{{
     
    307298}}}
    308299
    309   * Create an encrypted file system for members:
    310 
    311   * Now, unmount the partition (make sure there is no data on it that you care about).
     300 * Create an encrypted file system for members:
     301
     302 * Now, unmount the partition (make sure there is no data on it that you care about).
    312303
    313304{{{
     
    315306}}}
    316307
    317   * Create the encrypted filesystem:
     308 * Create the encrypted filesystem:
    318309
    319310{{{
     
    323314You will be prompted for a password. Put password in resource db!
    324315
    325   * Add to crypttab
     316 * Add to crypttab
    326317
    327318{{{
     
    329320}}}
    330321
    331   * Start it
     322 * Start it
    332323
    333324{{{
     
    335326}}}
    336327
    337   * Create a file system on the partition:
     328 * Create a file system on the partition:
    338329
    339330{{{
     
    341332}}}
    342333
    343   * Remove cryptdisks from the rc2.d directory - we do not want this to start automatically on boot! Instead we want to start it manually so the boot process doesn't hang waiting for a password.
     334 * Remove cryptdisks from the rc2.d directory - we do not want this to start automatically on boot! Instead we want to start it manually so the boot process doesn't hang waiting for a password.