Initial Server Setup

From Knowledge76

Jump to: navigation, search

Contents

Overview

This article describes the initial setup of your new System76 server including adding your administrative user, IP address setup, hostname, time zone, and additional resources.

Initial Server Settings

Default Username: oem
Default Password: system76
Network Address (eth0): Assigned by DHCP
Network Address (eth1): Assigned by DHCP

Initial Server Setup

Connect your server to a monitor to determine the IP addresses assigned to your server. Afterwards you can configure and manage your server from any other computer on your network.

Run the following command to determine the server's IP address:

ifconfig

In the directions below replace $IPADDRESS with the server's IP address.

Remotely Administer Your Server

From a Linux client terminal:

ssh oem@$IPADDRESS

From a Windows computer:

Download PuTTY from here. Connect to the server using the username oem and $IPAddress.

Add Your Administrative User

  • From your client computers terminal type:
    • ssh oem@$IPADDRESS
    • enter the default password - system76
  • Create Your Administrator User
    • sudo adduser [new username]
      • Enter the oem user password - system76
      • Enter your new users password
      • Re-enter your new users password
      • Enter user info (Full Name, etc.)
      • Accept the Parameters by pressing y then return
  • Add your new user to the Admin group
    • sudo adduser [new username] admin
  • Remove the OEM User
    • Logout by typing exit
    • Log back in by typing ssh [new username]@$IPADDRESS
    • sudo deluser oem

Configure the Server's IP Addresses

  • sudo nano /etc/network/interfaces
    • Adjust as necessary
    • Press Ctrl + X > y > enter to save
  • sudo nano /etc/resolve.conf
    • Adjust as necessary
    • Press Ctrl + X > y > enter to save


Restart network services (this will drop your ssh connection):

sudo /etc/init.d/networking restart

Example /etc/network/interfaces file.

# This is the loopback interface - Do not adjust
auto lo
iface lo inet loopback

# Primary Network Interface
auto eth0
iface eth0 inet static
address 10.13.15.10
netmask 255.255.255.0
gateway 10.13.15.254

# The Secondary Network Interface
auto eth1
iface eth1 inet static
address 10.13.15.11
netmask 255.255.255.0
gateway 10.13.15.254

Example /etc/resolve.conf file.

nameserver 10.13.15.1
nameserver 10.13.15.2

Configure the Server's Hostname and Domain

sudo nano /etc/hosts

Example /etc/hosts file:

127.0.0.1       localhost
10.120.150.5    fileserver.mydomain.com fileserver

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
sudo nano /etc/hostname

Example /etc/hostname file:

fileserver

Verify the correct hostname and domain:

hostname -f

Reboot may be required for the changes to take effect:

sudo reboot

Update Your Server

Download and install Ubuntu updates:

sudo aptitude update && sudo aptitude dist-upgrade

Configure the Server's Time Zone

sudo dpkg-reconfigure tzdata

Additional Server Resources

Ubuntu Server How To's: http://knowledge76.com/index.php/Category:HowToServer
Ubuntu Server Information: http://www.ubuntu.com/server
Ubuntu Server Documentation: https://help.ubuntu.com/ubuntu/serverguide/C/index.html

Personal tools