Steps for Linux post-installation tasks
Jump to navigation
Jump to search
Install Linux
First step is to install Linux. For Hyper-V VMs, 1024 MB of RAM is typically more than enough. Sometimes 512 will be plenty.
Set up the NAS
- Install cifs-utils
sudo apt-get updatesudo apt-get install cifs-utils
- Make directory /mnt/Storage
sudo mkdir /mnt/Storage
- Enter the below into /etc/fstab (
sudo nano /etc/fstab)//10.10.10.20/Storage /mnt/Storage cifs guest,uid=1000,iocharset=utf8 0 0
- Run
sudo mount-a
Set up SSH access
- On cougar, run
ssh-copy-id <ip address>and answer prompts. - SSH into the machine to make sure it works.
- Run
sudo nano /etc/ssh/sshd_config- Change #PasswordAuthentication yes to PasswordAuthentication no
- Reload ssh by running
sudo service ssh restart - To test whether everything is working, ssh into another Linux server and test by attempting to ssh into the server you're setting up. It should fail with a Permission denied (pubkey). If not, then recheck changing the SSH config.
Add the DNS record to the DNS server
- Remote into Zeus (Or launch the DNS Management Console on cougar as an administrator (lbrandt), then proceed to step 3)
- Launch the DNS Management Console
- Expand Forward Lookup Zones.
- Click on lukebrandt.com
- Right-click on lukebrandt.com, then select New Host (A or AAAA)
- Enter the computer name, IP Address, and verify that the PTR checkbox is checked.
- The DNS record should now be added!
Add the server to guacamole
- Navigate to the guacamole web console
- Click on guacadmin in the upper right-hand corner, then click on Settings
- Click on Connections
- Click on any of the existing Linux servers
- Scroll down to the bottom and click Clone
- Change the Name and the Hostname fields to match the new server.
- Click Save.
- The new server is now available in guacamole.
Add the server to landscape
- SSH into the new server
- Run
sudo apt update - Run
sudo apt install landscape-client - Run
sudo landscape-config --computer-title "My Web Server" --account-name standalone --url https://landscape.lukebrandt.com/message-system --ping-url http://landscape.lukebrandt.com/ping, replacing "My Web Server" with the name of the new server.- If you get an error regarding the internet being down, change the
landscape.lukebrandt.compart of the URLs to the IP address of the server.
- If you get an error regarding the internet being down, change the
- Accept most of the defaults. When prompted for script users, enter luke. Use the server name as the tag and
productionas the Access Group. - Once you add as a new registration, there will most likely be an error regarding an
ssl_public_key- To rectify this, run
sudo cp /mnt/Storage/Dropbox/landscape_server_ca.crt /etc/landscape/ - Then run
sudo nano /etc/landscape/client.conf - Change or add the following line:
ssl_public_key = /etc/landscape/landscape_server_ca.crt - Run the registration again, accepting all the defaults. It should now register.
- To rectify this, run
- Once the terminal reports that the registration is successful, navigate to the landscape web console Pending Computers page. There should be an alert waiting for a computer to be registered.
- Click on the computer waiting registration and Accept it.
- The server should now be added to landscape.