1-DAV-202 Data Management 2023/24
Previously 2-INF-185 Data Source Integration

Materials · Introduction · Rules · Contact
· Grades from marked homeworks are on the server in file /grades/userid.txt
· Dates of project submission and oral exams:
Early: submit project May 24 9:00am, oral exams May 27 1:00pm (limit 5 students).
Otherwise submit project June 11, 9:00am, oral exams June 18 and 21 (estimated 9:00am-1:00pm, schedule will be published before exam).
Sign up for one the exam days in AIS before June 11.
Remedial exams will take place in the last week of the exam period. Beware, there will not be much time to prepare a better project. Projects should be submitted as homeworks to /submit/project.
· Cloud homework is due on May 20 9:00am.


Difference between revisions of "Connecting to server"

From MAD
Jump to navigation Jump to search
Line 1: Line 1:
This page describes how to connect to our sever from a Windows computer.
+
In the course, you will be working on a Linux server. You can connect to this server via ssh, using the same username and password as for AIS2. In the computer classroom at the faculty, we recommend working from Linux.
  
 
== Connection through ssh ==
 
== Connection through ssh ==
  
You can use ssh client available in Windows 10. On the command line use:
+
If connecting '''from a Linux computer''', open a console (command-line window) and run:
  
ssh your_username@vyuka.compbio.fmph.uniba.sk
+
<pre>
 +
ssh your_username@vyuka.compbio.fmph.uniba.sk -XC
 +
</pre>
  
This will allow text-only connection and should be sufficient for most of the course.  
+
The server will prompt you for '''password''', but it will not display anything while you type. Just type your password and press Enter.
  
See also more detailed instructions here [https://support.cci.drexel.edu/cci-virtual-lab-resources/scp-or-ssh-or-sftp-gui-or-cli/scp-windows-10-powershell-cli-command-line-interface/]
+
If connecting from a '''Windows 10 computer''', open command-line window in Ubuntu subsystem for Windows or Powershell and run
 +
<pre>
 +
ssh your_username@vyuka.compbio.fmph.uniba.sk
 +
</pre>
  
However, if you want more configurable client with a capability of tunneling application GUIs, you can install [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html putty client] instead.
+
When prompted, type your password and press Enter, as for Linux. See also more detailed instructions here [https://support.cci.drexel.edu/cci-virtual-lab-resources/scp-or-ssh-or-sftp-gui-or-cli/scp-windows-10-powershell-cli-command-line-interface/]
  
 +
For Windows, this command allows text-only connection, which is sufficient for most of the course. To support for graphics applications, follow instructions in the next section.
  
== Installation of X server ==
+
== Installation of X server on Windows ==
 +
 
 +
This is not needed for Linux, just use -XC option in ssh.
  
 
To use applications with GUIs, you need to tunnel X-server commands from the server to your local machine (this is accomplished by your ssh client), and you need a program that can interpret these commands on you local machine (this is called X server).
 
To use applications with GUIs, you need to tunnel X-server commands from the server to your local machine (this is accomplished by your ssh client), and you need a program that can interpret these commands on you local machine (this is called X server).
  
 +
* Install [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html putty client] which you will use instead of ssh.
 
* Install X server, such as [https://sourceforge.net/projects/xming/ xming]
 
* Install X server, such as [https://sourceforge.net/projects/xming/ xming]
 
* Make sure that X server is running (you should have "X" icon in your app control bar)
 
* Make sure that X server is running (you should have "X" icon in your app control bar)
 
* Run putty, connect using ssh connection type and in your settings choose Connection->SSH->X11 and check "Enable X11 forwarding" box
 
* Run putty, connect using ssh connection type and in your settings choose Connection->SSH->X11 and check "Enable X11 forwarding" box
* Login to the vyuka.compbio.fmph.uniba.sk server
+
* Login to the vyuka.compbio.fmph.uniba.sk server in putty
* <tt>echo $DISPLAY</tt> command should show a non-empty string (i.e. localhost:11.0)
+
* <tt>echo $DISPLAY</tt> command on the server should show a non-empty string (e.g. localhost:11.0)
* Try running <tt>xeyes &</tt>
+
* Try running <tt>xeyes &</tt>: this simple testing application should display a pair of eyes tracking your mouse cursor
  
== Copying files to/from the server==
+
== Copying files to/from the server via scp==
* You can copy files using <tt>scp</tt> command on the command line
+
* You can copy files using <tt>scp</tt> command on the command line, both in Windows and Linux
* Alternatively use the graphical [https://winscp.net/eng/downloads.php WinSCP program]
+
* Alternatively use the graphical [https://winscp.net/eng/downloads.php WinSCP program] for Windows
 +
* On Linux, you can mount the filesystem from the server as a directory on your machine and then work with it as with local folders, using both command-line and graphical file managers.

Revision as of 16:43, 12 February 2023

In the course, you will be working on a Linux server. You can connect to this server via ssh, using the same username and password as for AIS2. In the computer classroom at the faculty, we recommend working from Linux.

Connection through ssh

If connecting from a Linux computer, open a console (command-line window) and run:

ssh your_username@vyuka.compbio.fmph.uniba.sk -XC

The server will prompt you for password, but it will not display anything while you type. Just type your password and press Enter.

If connecting from a Windows 10 computer, open command-line window in Ubuntu subsystem for Windows or Powershell and run

ssh your_username@vyuka.compbio.fmph.uniba.sk

When prompted, type your password and press Enter, as for Linux. See also more detailed instructions here [1]

For Windows, this command allows text-only connection, which is sufficient for most of the course. To support for graphics applications, follow instructions in the next section.

Installation of X server on Windows

This is not needed for Linux, just use -XC option in ssh.

To use applications with GUIs, you need to tunnel X-server commands from the server to your local machine (this is accomplished by your ssh client), and you need a program that can interpret these commands on you local machine (this is called X server).

  • Install putty client which you will use instead of ssh.
  • Install X server, such as xming
  • Make sure that X server is running (you should have "X" icon in your app control bar)
  • Run putty, connect using ssh connection type and in your settings choose Connection->SSH->X11 and check "Enable X11 forwarding" box
  • Login to the vyuka.compbio.fmph.uniba.sk server in putty
  • echo $DISPLAY command on the server should show a non-empty string (e.g. localhost:11.0)
  • Try running xeyes &: this simple testing application should display a pair of eyes tracking your mouse cursor

Copying files to/from the server via scp

  • You can copy files using scp command on the command line, both in Windows and Linux
  • Alternatively use the graphical WinSCP program for Windows
  • On Linux, you can mount the filesystem from the server as a directory on your machine and then work with it as with local folders, using both command-line and graphical file managers.