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