Sysadmin:Setting up Lovelace Lab Machines

From Earlham CS Department
Jump to navigation Jump to search

Current Installation Procedure

  1. Install Operating System (Ubuntu 20 in this example)
    1. Use provided USB drive to boot ubuntu from the computers boot menu.
    2. Choose English keyboard layout and language
    3. Choose Minimal installation - web browser and basic utilities
    4. Choose Erase disk and install Ubuntu
    5. Enter details:
      1. Your Name: sysadmin
      2. Computer's name: (we usually name these machines after a famous computer scientist.)
      3. Pick a username: sysadmin
      4. Choose a password: ******* (Use the regular sysadmin password)
  2. Set up network
    1. Go to Settings > Network > Wired Settings [gear button]
    2. Go to the IPv4 tab and select manual then fill out the follow fields:
      1. Addresses
        1. Address = Look at the other lab machines in DNS on net and choose one that follows the trend, and is not in use.
        2. Netmask = 255.255.255.0
        3. Gateway = 159.28.22.254
      2. DNS = 159.28.22.1
      3. Routes
        1. Address = Same as above
        2. Netmask = 255.255.255.0
        3. Gateway = 159.28.22.254
    3. Go back to the Settings > Network page, you should be able to turn off wired, then turn it back on, and see it connect properly. Test this with a browser or a ping 8.8.8.8 command.
  3. Install some packages
    1. sudo apt-get update - this updates ubuntus package list.
    2. sudo apt-get install nfs-common - needed for drive mounts.
    3. sudo apt-get install git - needed for gitlab/github.
    4. sudo apt-get install openssh-server - needed to be able to ssh to the machine.
  4. Configure Drive mounts (you will need root or sudo for this)
    1. Create /eccs and /clients directories in /
    2. sudo nano /etc/fstab
    3. Edit the file to include these two lines:
      1. 159.28.22.5:/earlhamcs/clients /clients nfs auto 0 2
      2. 159.28.22.5:/earlhamcs/eccs /eccs nfs auto 0 2
    4. Use sudo mount -a to reload the configuration. It should run quickly. You can make sure it worked by checking that /eccs now has files/folders in it.
  5. Configure LDAP
    1. sudo apt-get install libnss-ldap libpam-ldap ldap-utils nscd - needed for user authentication.
    2. Configuring LDAP - Note: /etc/ldap.conf is the configuration file for LDAP on Ubuntu
    3. Comment out all the lines in the file /etc/xdg/user-dirs.defaults so that default folders aren't created for users logging in.
  6. Tests
    1. Login to the machine with your CS account. Check if all your ECCS files are available.
    2. SSH to the machine from Hopper (Cluster)
    3. SSH to the machine from Bowie (CS)