Home

What is Room 1001B?
Linux Lab – Room 1001B: This lab is primarily for general use by Hunter students who are completing computer science assignments. There are a small number of computer science courses scheduled in this lab, including this one. However, given that this course will be taught synchronously online this semester, we will need to remote into the lab machines, using the process below:

What is eniac?
Eniac is our gateway server to access the labs and machines remotely. The DNS entry is eniac.cs.hunter.cuny.edu. Both students and professors log in with their Linux account information.

Linux Account Access
A request for access has already been sent on your behalf if you are on the roster for this course. Within 1-2 days, you will receive an email from root@biocs.cs.hunter.cuny.edu. Please follow the instructions in that email to set up your account.

If you have not received access by Friday August 27th, please email cstechsp@hunter.cuny.edu for further assistance, and cc me.

A reminder that once you have access to your Linux account, you also will need to claim your account by logging in and issuing the command touch fall.2021. Otherwise, your account may be deleted after a few weeks.

ssh utility
If you are a Windows user, you might find that, by default, you cannot ssh into eniac. You will need to install a ssh utility client first. The most commonly recommended utility is PuTTY, although if you are already using Git, Git Bash is another alternative.

Accessing Postgres SQL Server
With all of above resolved, here is a step by step on how to access the Postgres SQL server installed on our lab machines. We will be using this heavily for this course:

  1. Log into eniac using ssh:
    • ssh user_name@eniac.cs.hunter.cuny.edu
    • Enter the password you reset, since receiving the email from root@biocs.cs.hunter.cuny.edu. Your password will not echo on the screen.
    • Reminder that both user name and passwords are case sensitive. If you have too many incorrect login attemps, your IP address will be blocked (e.g. connection reset by peer). If this happens, please reach out to cstechsp@hunter.cuny.edu for further assistance and cc me.

  2. Log into a lab machine in 1001B from eniac using ssh:
    • e.g. ssh cslab1
    • There are multiple labs (cslab1 … cslab26) and all are available for logging in.

  3. Access the Postgres SQL server via the psql client installed on the lab machines, use the following command:
  psql -d [database] -U [username] -W -h [PSQL server]

Option flag explanation:

  -d for database
  -u for username
  -W for password which you can put, otherwise it will prompt.
  -h PSQL server you are trying to access

Important: The student access credentials will be given on the first day of lecture.

Further Resources