Hartman Lab Server Manual

© 2021 Bryan C. Roessler

Last updated: 2021-10-22

Table of Contents

Important information

If UAB restricts direct ssh access to the Hartman Lab Server, users will need to first connect to the UAB VPN using the UAB AnyConnect VPN. Once the VPN connection is established, follow the rest of the manual to connect to the server.

For users that do not have UAB VPN credentials, a whitelist exception for the user's IP address will need to be added to the UAB firewall. Requests to UAB IT can be made here using your UAB credentials, and should resemble the following:

Type: Permit Application Name: ssh Firewall: UAB Internet Border Source IP Addresses: User address(es) Destination IP address: 138.26.17.151 TCP Port: 22 UDP Port: N/A Other Protocols: N/A Reason: Outside collaboration/(Other reason)

For users

First time login

  1. Ensure admin has enabled your user account.
  2. Login via ssh client (ssh or PuTTY): ssh username@hartmanlab.genetics.uab.edu
  3. Default password is identical to the username
  4. System will prompt you to create a new password
  5. System will log user out after successful password generation
  6. Re-login: ssh blazerid@hartmanlab.genetics.uab.edu using the new password
  7. Optional: Change Samba password (default password is your username): smbpasswd

File server

SSH/SFTP

Files can be transferred to/from the server using sftp.

Users can access the server directly through a terminal (text-based) ssh client (ssh in OSX/Linux, or PuTTY in Windows) or via a GUI SFTP program such as Filezilla or WinSCP. Linux users can access and mount the SFTP share directly within most file managers or by using sshfs.

Samba file shares

Samba file shares can be mounted cross-platform as if the data existed locally. The server provides two shares:

  1. The shared data array (/mnt/data): \\username\data
  2. The user's home directory ($HOME): \\username\username

The default Samba credentials are the same as your server username and password. Users can change their Samba password using smbpasswd.

X2Go remote desktop

X2Go provides a remote virtual desktop over vnc secured with ssh. X2Go clients are provided for Windows, OSX, and Linux systems on the X2Go website or from your package manager (x2goclient).

X2Go sessions can be paused or closed from the X2Go client window. Multiple sessions can be saved in the client, making it easy to select alternate quality settings based on location/bandwidth or to provide multiple user login sessions on the same machine.

Note: Some programs do not continue to run at full speed when an X2Go session is paused. In these cases, the program should be run via remote SSH (ideally in a tmux or screen session).

Session tab

Connection tab

Input/output tab

Media tab

Disable sound support. This will prevent pulseaudio from spamming the server logs.

Shared folders

Native X forwarding

It is possible to launch graphical server programs directly on a client.

Linux, OSX

Windows

Windows 10 Virtual Machines

The virtualized Windows 10 instances require logging in with your UAB email address and password.

Once you are finished using the Windows virtual machine, remember to log out of your UAB Windows account so that other users do not have access to your session. Windows will perform an automatic logoff after 30 minutes of inactivity for security.

Robot computer access

Webcam robot monitoring

The robot webcam is viewable in a web page within an X2Go session at: localhost:8888

RStudio Server

Newer versions of RStudio do not support IDE access via X2Go. The IDE can be accessed via web browser at http://localhost:8787 in an X2Go session or via an SSH tunnel, ex. ssh -f username@hartmanlab.genetics.uab.edu -L 8787:localhost:8787 -N

Recommendations

Backing up data

The rsync, rsnapshot, and syncthing tools are installed on the server to facilitate user backups.

rsync is recommended for users that would just like to periodically backup their $HOME directory to a local machine over ssh: rsync -azH --delete username@hartmanlab.genetics.uab.edu:~/* ~/backup/

A GUI alternative, syncthing (Applications>Internet>Syncthing) syncs folders and files between machines automatically and is accessible at http://localhost:8384

Passwordless (public-private key) authentication

Public-private key authentication is more secure than passwords and can be configured for passwordless login.

Most popular SFTP programs support using public-private keys for passwordless authentication. Windows/OSX users may need to add their key pair to PuTTy/Filezilla/WinSCP manually.

Once configured, the user will no longer need to enter their password to access the SFTP or X2Go server, which simplifies login and enhances security.

For administrators

Adding a user

Resetting a user password

Removing a user

Reset a buggy or corrupt X2Go user session

Unban a user

Fix or repair user file permissions

Services

Virtual Machines

Allow access to the samba share within the Windows VM (Windows bug workaround)

  1. Open C:\Windows\system32\drivers\etc\hosts file and copy contents.
  2. Open new text document, paste contents of existing hosts file and add appropriate blazerid and server IP line (see existing entries).
  3. Save as “hosts” (no extension).
  4. Copy new hosts file to C:\Windows\system32\drivers\etc\ (allow it to overwrite existing hosts file).
  5. The new user will be able to map/access their samba shares at \\blazerid\data and \\blazerid\blazerid.

Make an existing Windows 10 account user an administrator

  1. Login to the PC as the Azure AD user you want to make a local admin.
  2. Log out as that user and login as a local admin.
  3. In elevated Powershell, add the user to the administrators group: net localgroup administrators AzureAD\\blazerid@uab.edu /add

Creating more VM disk space

Updating all software

Scheduling a restart

Adding a drive

Logging

Resources

Contact