SENS maintains several Linux timeshare systems, where users can establish interactive connections between a timeshare system and their computers. SENS users can access these timeshares from any computers that have an SSH client installed, including Microsoft Windows PCs, Macintosh computers, and Unix/Linux systems.
These systems are mainly intended for:
We ask that users not run more than one CPU intensive process on the timeshares at the same time. Also, the timeshares will be rebooted on occasion, usually the first week of the month, to install updates.
The policies for these systems are described on our timeshare policies page. We urge you to read that document prior to using our timeshare services.
The following instructions assume that the computer you are using is on campus and connected to the University network. Direct connections from computers outside of the local UB network are blocked. However, UB supports the Virtual Private Network (VPN) protocol, which allows for secure access from off-site systems. The UBIT Cisco Secure Client page has instructions on how to configure your computer to use the AnyConnect VPN software.
Microsoft Windows 11 comes with an implementation of OpenSSH that is installed by default. Please refer to the SENS Windows OpenSSH software guide for more information.
The PuTTY and VcXsrv software packages allow users of Microsoft Windows systems to use applications from remote Unix or Linux systems that use the X Window Protocol. Please see the PuTTY and VcXsrv software guides for more information on installing them.
Launch the PuTTY program from your program list (or desktop icon if you created it). When the following PuTTY Configuration screen appears do the following:
You can repeat this process for the UB Unix timeshares. The process will be the same for that session but will contain the following changes:
You should now be able to remotely run graphical software (such as MATLAB) on your system. If you wish to test the connection you can type "xeyes &" and a pair of eyes should appear on the screen (if they don't appear see if an icon is flashing in the taskbar or a window is minimized as it is probably hidden behind the window). Be sure to use the file menus of the programs to properly exit them and be sure to type exit at the prompt when you are done using the server.
The Terminal client and XQuartz software packages allow users of Apple Macintosh systems to use applications from remote Unix or Linux systems that use the X Window Protocol. The instructions below will help you install and configure the appropriate free software in order to use the SENS and UB Linux timeshares.
XQuartz is automatically installed on all SENS-supported Macintosh computers. For personally-owned and non-SENS-supported Macintosh computers, please refer to the SENS XQuartz software guide for information on installing it.
You should now be able to remotely run graphical software (such as MATLAB) on your system. If you wish to test the connection you can type "xeyes &" and a pair of eyes should appear on the screen (if they don't appear see if an icon is flashing in the taskbar as they are probably hidden behind the window). Be sure to use the file menus of the programs to properly exit them and be sure to type exit at the prompt when you are done using the server.
If you wish to connect to the UBUnix timeshares the process will be the same, except that in step 3 you should use "-Y" instead of "-X" and "ubunix.buffalo.edu" as the host name:
$ ssh -Y username@ubunix.buffalo.edu
To establish a standard command line connection from a Unix or Unix-like system, including Linux and macOS, type:
$ ssh linux.sens.buffalo.edu
If you intend to use X Window System graphical applications, use this command instead:
$ ssh -X linux.sens.buffalo.edu
You should now be able to run X Window applications. For a simple test, type "xcalc" at the timeshare prompt and a calculator should appear.
For some software applications, such as MATLAB, the above command line may not work; in such cases, use this line instead:
$ ssh -Y linux.sens.buffalo.edu
If neither of those methods work, you will need to set the X Window display settings manually. First, determine the network name or the network (IP) address of your computer. Then, on the timeshare, type a command such this, replacing "computername.somedomain.buffalo.edu" with the name or network address of the computer you are using:
setenv DISPLAY computername.somedomain.buffalo.edu:0.0
Next, find out the name of the timeshare you are using:
$ uname -n
You must now tell your computer's X Window server that it is allowed to reply to connection requests from the timeshare. If you are on a Unix, Linux, or macOS system, open a new command window and type the following (replace "dracula" with the name of the timeshare to which you are connected):
$ xhost +dracula.sens.buffalo.edu
You should now be able to run graphical software such as MATLAB using commands such as "use matlab".