Configuring a Linux machine
Configuring a Linux machine
This guide also goes through how to domain join the Linux system (Ubuntu, Debian, etc.) to the UNR network.
Install OS and necessary tools
- Install OS using live disk (When asked for user, make ecc-admin account using the credentials normally used).
- Log in as ecc-admin.
- Become root user.
$ sudo -i
- Copy pbis.sh script from Steamboat (need to edit this step later)
- Grant execution permission for the script.
$ chmod +x pbis.sh
- Run the script.
$ .\pbis.sh
Domain join the machine
- Run the domainjoin-cli command and authenticate using NetID credentials.
$ domainjoin-cli join RD.UNR.EDU $NETID@unr.edu
If you run into a Kerberos Error LW_ERROR_KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN run the following command:
$ sudo /opt/pbis/bin/lwsm restart lwreg
- Add the machine to the correct OU (Organizational Unit) using AD (Active Directory). Ask one of the admins to assist with this.
- When command finishes, reboot the machine.
Confirm NetID login works
- Click on "Not listed?" at the login screen. (If it doesn't work at first, wait a few minutes and try again)
- Type in NetID, hit enter, then enter password. If you're able to log in, then the machine has successfully been domain joined.
Set up OpenSSH Server
The following steps will allow users to SSH into the new PC as the root user using the coen-ansible key.
- Login as ecc-admin
- Become root user
- Copy contents of /srv/ansible/.ssh/coen-ansible.pub to /root/.ssh/authorized_keys
Tags
None
Subscribers
None
- Last Author
- • amcintyre
- Last Edited
- Nov 5 2020, 4:09 PM