Difference between revisions of "Base Linux"

From PSC IT Wiki
Jump to navigation Jump to search
Line 21: Line 21:
<pre>sudo apt-get install realmd sssd samba-common samba-common-bin samba-libs sssd-tools krb5-user adcli packagekit vim -y</pre>
<pre>sudo apt-get install realmd sssd samba-common samba-common-bin samba-libs sssd-tools krb5-user adcli packagekit vim -y</pre>
*If sssd fails to start due to /etc/sssd/sssd.conf does not exist run the command <pre>sudo cp /usr/share/doc/sssd-common/examples/sssd-example.conf /etc/sssd/sssd.conf</pre>
*If sssd fails to start due to /etc/sssd/sssd.conf does not exist run the command <pre>sudo cp /usr/share/doc/sssd-common/examples/sssd-example.conf /etc/sssd/sssd.conf</pre>
*Next run <code>kinit -V '''USERNAME'''</code>
*Next run <code>sudo kinit -V '''USERNAME'''</code> Replacing USERNAME with a domain admin account.
**This should prompt for a password, enter the password.  Which should return '''Authenticated to Kerberos v5'''
*From here we will now actually join the domain. <code>sudo realm --verbose join -U '''USERNAME''' psc.horiozn.com</code>  Replace USERNAME with the same domain admin account.

Revision as of 17:05, 25 May 2016

  • Install the latest LTS from Ubuntu
  • During Software Selection Make sure to select the OpenSSH server
  • After the install is done update the repos and make sure all the apps are up to date.
sudo apt-get update && sudo apt-get upgrade
  • Make sure you have a static IP set.
    cat /etc/network/interfaces
  • Below is what the end of the file should look similar too. Please any Xs with correct information for this server. You may have to change DHCP to static
    • That includes the information to get DNS information from PSC DNSes servers.
iface ensXX inet static
        address 192.168.2.XXX
        netmask 255.255.255.0
        gateway 192.168.2.244
        dns-search psc.horizon.com pscnaturalfoods.com
        dns-nameservers 192.168.2.225 192.168.2.226 8.8.8.8
  • If its not a VM its more likely using ethX You shouldn't need to change that part just the DHCP to static.
iface ethX inet static

Adding to Domain

So the idea here, is to add the server to the domain. The point being you will be able to login using AD credentials.

sudo apt-get install realmd sssd samba-common samba-common-bin samba-libs sssd-tools krb5-user adcli packagekit vim -y
  • If sssd fails to start due to /etc/sssd/sssd.conf does not exist run the command
    sudo cp /usr/share/doc/sssd-common/examples/sssd-example.conf /etc/sssd/sssd.conf
  • Next run sudo kinit -V USERNAME Replacing USERNAME with a domain admin account.
    • This should prompt for a password, enter the password. Which should return Authenticated to Kerberos v5
  • From here we will now actually join the domain. sudo realm --verbose join -U USERNAME psc.horiozn.com Replace USERNAME with the same domain admin account.