C2110 UNIX and programming

Similar documents
13.1 Backup virtual machines running on VMware ESXi / ESX Server

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

Overview. Remote access and file transfer. SSH clients by platform. Logging in remotely

MobaXTerm: A good gnome-terminal like tabbed SSH client for Windows / Windows Putty Tabs Alternative

Table of Contents. Online backup Manager User s Guide

Week Overview. Running Live Linux Sending from command line scp and sftp utilities

Miami University RedHawk Cluster Connecting to the Cluster Using Windows

Secure Shell. The Protocol

File Transfers. Contents

WinSCP Tutorial 01/28/09: Y. Liow

File Transfer Examples. Running commands on other computers and transferring files between computers

Virtualization Technology (or how my Windows computer gave birth to a bunch of Linux computers)

1. Install a Virtual Machine Download Ubuntu Ubuntu LTS Create a New Virtual Machine... 2

Connecting to the School of Computing Servers and Transferring Files

HPCC - Hrothgar Getting Started User Guide

1. Install a Virtual Machine Download Ubuntu Ubuntu LTS Create a New Virtual Machine... 2

MATLAB on EC2 Instructions Guide

Parallels. for your Linux or Windows Server. Small Business Panel. Getting Started Guide. Parallels Small Business Panel // Linux & Windows Server

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

Remote Access to Unix Machines

Bitrix Site Manager. VMBitrix Virtual Machine. Quick Start And Usage Guide

User's Guide. Product Version: Publication Date: 7/25/2011

WinSCP PuTTY as an alternative to F-Secure July 11, 2006

SSH Connections MACs the MAC XTerm application can be used to create an ssh connection, no utility is needed.

VCL Access. VCL provides access to Linux and Windows 7 Virtual Machines. Users will only see those images that they are authorized to access.

OCS Virtual image. User guide. Version: Viking Edition

XFTP 5 User Guide. The Powerful SFTP/FTP File Transfer Program. NetSarang Computer Inc.

Export & Backup Guide

How to Use Remote Desktop over a Secure Connection (SSH)

Installing the SSH Client v3.2.2 For Microsoft Windows

There are many different ways in which we can connect to a remote machine over the Internet. These include (but are not limited to):

OPERATING SYSTEM SERVICES

There s a variety of software that can be used, but the approach described here uses freely available Cygwin software: (1) Cygwin/X (2) Cygwin/openssh

Quick Start Guide for VMware and Windows 7

Getting Started Guide. Getting Started With Your Dedicated Server. Setting up and hosting a domain on your Linux Dedicated Server using Plesk 8.0.

Virtualization: Know your options on Ubuntu. Nick Barcet. Ubuntu Server Product Manager

Working With Your FTP Site

vnas Series All-in-one NAS with virtualization platform

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

Tips for getting started! with! Virtual Data Center!

Accessing VirtualBox Guests from Host using SSH, WinSCP and Tunnelling

NYU-Poly VLAB Introduction LAB 0

IT-ADVENTURES PLAYGROUND (ISERINK) Remote Setup Guide IOWA STATE UNIVERSITY INFORMATION ASSURANCE CENTER

How To Run Linux On Windows 7 (For A Non-Privileged User) On A Windows 7 Computer (For Non-Patty) On Your Computer (Windows) On An Unix Computer (Unix) On Windows) On The Same

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

Remote access. Contents

Access Instructions for United Stationers ECDB (ecommerce Database) 2.0

VMware Server 2.0 Essentials. Virtualization Deployment and Management

Simple. Control Panel. for your Linux Server. Getting Started Guide. Simple Control Panel // Linux Server

A SHORT INTRODUCTION TO BITNAMI WITH CLOUD & HEAT. Version

HP SDN VM and Ubuntu Setup

Quick Start Guide for Parallels Virtuozzo

Testing New Applications In The DMZ Using VMware ESX. Ivan Dell Era Software Engineer IBM

PENN. Social Sciences Computing a division of SAS Computing. SAS Computing SSC. Remote Computing. John Marcotte Director of SSC.

Installing Proview on an Windows XP machine

Using WinSCP to Transfer Data with Florida SHOTS

Parallels Plesk Panel 11 for your Linux server

INSTALLING KAAZING WEBSOCKET GATEWAY - HTML5 EDITION ON AN AMAZON EC2 CLOUD SERVER

Installing the Operating System or Hypervisor

Installing & Using KVM with Virtual Machine Manager COSC 495

Introductory Note 711 & 811. Remote Access to Computer Science Linux Files Using Secure Shell Protocols

Running an X-terminal via Windows RDC. Author: Special Guest, Brett Brennan. Published: Ed (July 16, 2014)

Experimental Techniques 8

How to Tunnel Remote Desktop Through SSH on a Windows Computer

NAS 253 Introduction to Backup Plan

Author A.Kishore/Sachin VNC Background

ECT362 Installing Linux Virtual Machine in KL322

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

Personal Virtual Server (PVS) Quick Start Guide

Lab 8: Configuring Backups

RETRIEVING NMR DATA JB Stothers NMR Facility Materials Science Addition 0216 Department of Chemistry Western University

Shellshock Security Patch for X86

Virtualization & Cloud Computing (2W-VnCC)

How. to: Connect Remotely. Updated by

sftp - secure file transfer program - how to transfer files to and from nrs-labs

The Einstein Depot server

CS197U: A Hands on Introduction to Unix

CASHNet Secure File Transfer Instructions

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

2X ApplicationServer & LoadBalancer & VirtualDesktopServer Manual

Download Virtualization Software Download a Linux-based OS Creating a Virtual Machine using VirtualBox: VM name

FEEG Applied Programming 6 - Working Remotely on Linux Server

Easy Setup Guide 1&1 CLOUD SERVER. Creating Backups. for Linux

Upgrading Redwood Engine Software. Version 2.0.x to 3.1.0

Evaluating the Balabit Shell Control Box

OnCommand Performance Manager 1.1

Week Overview. Installing Linux Linux on your Desktop Virtualization Basic Linux system administration

Introduction to UNIX and SFTP

Backing Up and Restoring Data

Security Configuration Guide P/N Rev A05

Tutorial. Reference for more thorough Mininet walkthrough if desired

Freshservice Discovery Probe User Guide

INASP: Effective Network Management Workshops

Accessing RCS IBM Console in Windows Using Linux Virtual Machine

An Oracle White Paper July Oracle Linux and Oracle VM Remote Lab User Guide

Introweb Remote Backup Client for Mac OS X User Manual. Version 3.20

Parallels Plesk Panel 9.2

Alinto Mail Server Pro

Getting Started Guide for FTP

VT Technology Management Utilities for Hyper-V (vtutilities)

Transcription:

C2110 UNIX and programming 3 rd Lesson Petr Kulhánek, Jakub Štěpán kulhanek@chemi.muni.cz National Centre for Biomolecular Research, Faculty of Science Masaryk University, Kotlářská 2, CZ-61137 Brno CZ.1.07/2.2.00/15.0233 C2110 UNIX and programming 3 rd lesson -1-

Contents Scientific-technical applications Module Remote file transfer scp, wget Remote graphical applications Display export Virtualization What is virtualization, typical usage, hypervisor overview MS Windows in VirtualBox, instalation of Ubuntu OS MS Windows as client Putty, WinSCP Text file transfer C2110 UNIX and programming 3 rd lesson -2-

Scientific-technical applications module C2110 UNIX and programming 3 rd lesson -3-

Scientific technical applications Scientific-technical applications are installed in multiple versions (application version, compilation type, parallel version), these are available through module system. Before running application, particular module has to be activated. Available modules list: $ module Available versions of module: $ module versions vmd Module version is separated by colon Module activation: $ module add vmd Running application from module vmd $ vmd $ module add vmd:1.9.0 Activates default version C2110 UNIX and programming 3 rd lesson -4-

Exercise 1. List all applications accessible in module system. 2. Which versions are accessible for module vmd and nemesis. 3. Activate module vmd version 1.9.0 and run program vmd. 4. Activate module nemesis in default version and run program nemesis. C2110 UNIX and programming 3 rd lesson -5-

Remote file transfer scp wget C2110 UNIX and programming 3 rd lesson -6-

Remote copy For remote copy there is command scp. Syntax: [] maybe omitted $ scp [-r] source destination Source and destination can be file or directory. In case of directory copy option r (recursive) has to be used. Remote source or destination is identified by machine hostname separated by colon. [user@]hostname:[path/]file Usage examples: $ scp pokus.txt wolf01.wolf.inet:/scratch/kulhanek $ scp wolf01.wolf.inet:/scratch/kulhanek/pokus.txt. C2110 UNIX and programming 3 rd lesson -7-

Web file download For file download from web command wget can be used. Remote machines has to provide files using protocol ftp, http or https. $ wget [-O output_name] url Upper case O url (uniform resource locator) www file identification Usage examples: $ wget http://www.rcsb.org/pdb/files/1ss9.pdb PDB structure code C2110 UNIX and programming 3 rd lesson -8-

Remote graphical applications Display export C2110 UNIX and programming 3 rd lesson -9-

Running remote GUI application Graphical applications can be run directly in X11 environment (graphical terminal) or with display export to remote desktop X11 environment. Direct run Display export Application wolf01 wolf01 wolf01 Application wolf02 C2110 UNIX and programming 3 rd lesson -10-

Display export wolf01 Command ssh sets all necessities for display export automatically if option -X (uppercase X) is used. [wolf01] $ ssh -X wolf02 [wolf02] $./my_application Application Option -x (lowercase x) disables export. wolf02 Display export can be done also manually, by setting variable DISPLAY and correct calls of commands xhost and xauth. C2110 UNIX and programming 3 rd lesson -11-

Exercise 1. Log to machine of your colleague using command ssh. Check your login mutually (command w or who). 2. Create subdirectory pdb in directory /scratch/your_login 3. Download structure 1SS9 from PDB database using command wget and save it as test.pdb. 4. Open structure in program vmd. Check, that your application runs on remote machine (ps -e). Check that application of your colleague runs on your machine (ps u his_login). 5. Create subdirectory structures in directory /scratch/your_login 6. Copy file 1SS9.pdb to your machine using command scp to directory /scratch/your_login/structures 7. Open structure in program vmd on your machine. Compare program qualitatively response (speed) for remote and local running. Work in pairs. C2110 UNIX and programming 3 rd lesson -12-

Virtualization What is virtualization? Typical usage Hypervisor overview MS Windows in VirtualBox Ubuntu OS installation C2110 UNIX and programming 3 rd lesson -13-

Virtualization Hypervisor Virtualization are procedures and techniques, that enables to approach computer hardware in different way, then they physically exist. Virtualization can be done on different levels, from whole computer (virtual machine), to particular hardware devices (virtual processors, memory etc.) or only software environment (virtualization of operating system). source: www.wikipedia.org Hypervisor virtual machine manager Host OS (in virtual machine) OS 1 OS 2 OS 3 Host OS Hypervisor Hardware C2110 UNIX and programming 3 rd lesson -14-

Virtualization advantages On one physical machine, there may run multiple virtual machines (each with different operating system). Physical hardware performance can be used more efficiently (lower costs). Easier backup. Virtual machine state maybe saved as snapshots, these can be used to restore original state. Teleport. Virtual machines can be transferred in between two physical machines with minimal stop time. Appropriate for hardware updates. Easier testing of OS. C2110 UNIX and programming 3 rd lesson -15-

Virtualization tools overview VirtualBox KVM VMWare www.virtualbox.org supported host OS: MS Windows, Mac OS X, Linux Licence: freeware + proprietary extension for non-commerce usage Linux kernel part Supported host OS: Linux Support programs: virt-manager, qemu Licence: freeware http://www.vmware.com/ Supported host OS: MS Windows, Linux Licence: commerce C2110 UNIX and programming 3 rd lesson -16-

MS Windows on WOLF cluster Running MS Windows XP in virtual machine (hypervisor VirtualBox) $ /win/win C2110 UNIX and programming 3 rd lesson -17-

Virtual machine control Full screen on / off switch How to input Ctrl+Alt+Del Host = (right Ctrl key) (MS Windows and Linuxem) C2110 UNIX and programming 3 rd lesson -18-

Virtual machine switch off Wrong switch off Correct switch off way C2110 UNIX and programming 3 rd lesson -19-

Exercise 1. Run virtual machine with MS Windows XP (command /win/win). 2. Open Internet Explorer in virtual machine and find keyword Hypervisor in Wikipedia. 3. On host OS monitor hypervisor using command top. 4. Pause virtual machine. 5. Resume virtual machine. 6. Finish virtual machine. C2110 UNIX and programming 3 rd lesson -20-

Ubuntu 12.04 LTS installation Install program VirtualBox (http://www.virtualbox.org). Download installation image of OS Ubuntu as iso format: http://www.ubuntu.com/ Ubuntu 12.04 LTS (Ubuntu Desktop) Create virtual machine in VirtualBoxu manager: Choose OS Linux and Ubuntu version. Other settings can be left on default values. First virtual machine run: First run prompts for install media input. We attach iso image as installation media (icon on right and select downloaded iso image) System install Then follow installation wizard hints. Homework. C2110 UNIX and programming 3 rd lesson -21-

MS Windows as client Putty WinSCP Text file transfer C2110 UNIX and programming 3 rd lesson -22-

MS Windows as client overview Login to Linuxu from MS Windows (text terminal) putty www.chiark.greenend.org.uk/~sgtatham/putty ssh from Cygwin environment; www.cygwin.com File transfer between Linuxem and MS Windows WinSCP www.winscp.com, twin-panel file manager scp from Cygwin environment; Display export from Linuxu to MS Windows (X11 server) cygwin www.cygwin.com Xming http://sourceforge.net/projects/xming/ Login from Linuxu to MS Windows (remote desktop) rdesktop C2110 UNIX and programming 3 rd lesson -23-

Putty Putty http://www.chiark.greenend.org.uk/~sgtatham/putty/ Implementation of SSH (Secure Shell) for Windows, Putty enables remote connection to SSH servers (machines supporting ssh protocol and login unix/linux type). C2110 UNIX and programming 3 rd lesson -24-

Putty settings Remote machine address wolf.ncbr.muni.cz Backspace key interpretation. C2110 UNIX and programming 3 rd lesson -25-

Putty settings II Unix compatible mouse select / paste system. Non-proportional font (all symbols have same width) C2110 UNIX and programming 3 rd lesson -26-

WinSCP WinSCP http://winscp.net/eng/docs/lang:cs Program for file transfer between MS Windows and computers supporting SFTP or SCP protocols (unix and linux type). Local machine Remote machine C2110 UNIX and programming 3 rd lesson -27-

Text files MS Win Linux Text files created in MS Windows and Linuxem are not totally compatible, Each OS uses different coding of line end. Linux: \n (line feed 0x0A) MS Windows: \r+\n (carriage return 0x0D, line feed 0x0A) For file conversion one can use programs d2u and u2d (on cluster WOLF). 1) Activation of cats module $ module add cats 2) Conversion MS Windows => Linux $ d2u file.com 3) Conversion Linux => MS Windows $ u2d file.log C2110 UNIX and programming 3 rd lesson -28-

Exercise 1. Run virtual machine with MS Windows XP (/win/win). 2. Run application Putty. 3. Using terminal Putty log on machine wolf.ncbr.muni.cz. 4. Monitor who has logged on wolf.ncbr.muni.cz. 5. In terminal Putty try running application vmd. Why does it fail to run? 6. Run application WinSCP. 7. Download file 1SS9.pdb to virtual machine. Open file in program Notepad. Is content shown correctly? 8. Correct line end coding in file 1SS9.pdb and open file again in virtual machine program Notepad. C2110 UNIX and programming 3 rd lesson -29-