Assignment 1. Setting up your tools. CS102 Programming 1 LIU 1 of 8. 6 September 2012

Similar documents
Using VirtualBox ACHOTL1 Virtual Machines

Introduction. Installation of SE S AM E BARCODE virtual machine distribution. (Windows / Mac / Linux)

Changing Your Cameleon Server IP

Download and Install the Citrix Receiver for Mac/Linux

owncloud Configuration and Usage Guide

DPMS2 McAfee Endpoint Encryption New Installation

Vess A2000 Series. NVR Storage Appliance. Windows Recovery Instructions. Version PROMISE Technology, Inc. All Rights Reserved.

VMware Horizon FLEX User Guide

Citrix Client Install Instructions

WINDOWS 64-BIT INSTALLATION NOTES ORACLE VIRTUALBOX Micro Planner X-Pert V3.5.1 Digital Download Edition

Check current version of Remote Desktop Connection for Mac.. Page 2. Remove Old Version Remote Desktop Connection..Page 8

Using Remote Web Workplace Version 1.01

TM Online Storage: StorageSync

Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials

Creating a Linux Virtual Machine using Virtual Box

How to install and use the File Sharing Outlook Plugin

VMware Horizon FLEX User Guide

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Optimal Browser Settings for Internet Explorer Running on Microsoft Windows

LogMeIn Network Console Version 8 Getting Started Guide

How to use FTP Commander

Required Virtual Interface Maps to... mgmt0. bridge network interface = mgmt0 wan0. bridge network interface = wan0 mgmt1

Installing Microsoft Outlook on a Macintosh. This document explains how to download, install and configure Microsoft Outlook on a Macintosh.

Signup instructions for the End User

ECT362 Installing Linux Virtual Machine in KL322

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

Using SSH Secure Shell Client for FTP

PigCHAMP Knowledge Software. Enterprise Edition Installation Guide

Virtual Office Remote Installation Guide

MAC OSX INSTALLATION NOTES ORACLE VIRTUALBOX Micro Planner X-Pert V3.5.1 Digital Download Edition

Remote Access Services Microsoft Windows - Installation Guide

Using. Microsoft Virtual PC. Page 1

What is WS_FTP? How WS_FTP Works

Disabling Microsoft SharePoint in order to install the OneDrive for Business Client

MiraCosta College now offers two ways to access your student virtual desktop.

How to Use? SKALICLOUD DEMO

How to Use Remote Access Using Internet Explorer

Accessing vlabs using the VMware Horizon View Client for OSX

1. Navigate to Control Panel and click on User Accounts and Family Safety. 2. Click on User Accounts

Seagate NAS OS 4 Reviewers Guide: NAS / NAS Pro / Business Storage Rackmounts

FTP Over SSL (FTPS) Core FTP LE. Installing Core FTP LE"

Installing an open source version of MateCat

Installing and Configuring vcloud Connector

Frequently Asked Questions

How to connect to VUWiFi

Using Virtual Machines

Installing and Using No Machine to connect to the Redhawk Cluster. Mac version

How To Sync Google Drive On A Mac Computer With A Gmail Account On A Gcd (For A Student) On A Pc Or Mac Or Mac (For An Older Person) On An Ipad Or Ipad (For Older People) On

DreamMapper Connection Guide for SD Card, Bluetooth, and Modem. December 23, 2015

VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.

Aventail Connect Client with Smart Tunneling

How to Use JCWHosting Reseller Cloud Storage Solution

1 Your wireless setup guide

These instructions were tested on OS X Earlier or later versions may have slight or major differences in how things work and appear.

Getting Started with VMware Fusion

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

You may have been given a download link on your trial software . Use this link to download the software.

CTERA Agent for Linux

STATISTICA VERSION 11 CONCURRENT NETWORK LICENSE WITH BORROWING INSTALLATION INSTRUCTIONS

Installation Instruction STATISTICA. Concurrent Network License with Borrowing Domain Based Registration

PC Agent Quick Start. Open the Agent. Autonomy Connected Backup. Version 8.8. Revision 0

How to remotely access your Virtual Desktop from outside the college using VMware View Client. How to guide

Hallpass Instructions for Connecting to Mac with a Mac

QuickStart Guide for Client Management. Version 8.7

Parallels Desktop for Mac

BaseManager & BACnet Manager VM Server Configuration Guide

Core Protection for Virtual Machines 1

HOW TO SILENTLY INSTALL CLOUD LINK REMOTELY WITHOUT SUPERVISION

WS_FTP Professional 12 and WS_FTP Home 12. Getting Started Guide

UP L18 Enhanced MDM and Updated Protection Hands-On Lab

NAS 208 WebDAV A Secure File Sharing Alternative to FTP

Sendspace Wizard Desktop Tool Step-By-Step Guide

How To Connect To A Wireless Network On Windows 7 (Windows 7) On A Pc Or Mac Or Ipad (Windows) On Pc Or Ipa (Windows 8) On Your Computer Or Mac (Windows). (Windows.7) On An

Basic Web Fullerton College

Secure Global Desktop (SGD)

Anchor End-User Guide

A Tool must be configured to allow for CMISSync, see below for more information.

BRIC VPN Setup Instructions

How To Use Senior Systems Cloud Services

CONNECT-TO-CHOP USER GUIDE

VPS Hosting. The Guide to Bet Angel VPS. Getting started with Bet Angel VPS. Revised August Page 1

To install the "Microsoft Remote Desktop Client" on OS X "Tiger" or above:

LRDC Computing Services

Making a system recovery disc

Instructions for installing Citrix Receiver

PhoneCrypt Desktop. Phone Encryption Software. PhoneCrypt Manual Mobile phone encryption for Windows Platforms

Installing Your Multifunction to Additional Computers on Your Network. PIXMA MX340/ PIXMA MX350/ PIXMA MX870 Mac OS

Welcome to EMP Monitor (Employee monitoring system):

Freshservice Discovery Probe User Guide

Installation and Troubleshooting Guide for SSL-VPN CONNECTIONS Access

Verizon Remote Access User Guide

2X ApplicationServer & LoadBalancer Manual

How to use the VMware Workstation / Player to create an ISaGRAF (Ver. 3.55) development environment?

DESKTOP CLIENT CONFIGURATION GUIDE BUSINESS

Mechanics Bank Mobile Banking Mobile Finance Manager (MFM) Application Palm Treo Installation

SOS SO S O n O lin n e lin e Bac Ba kup cku ck p u USER MANUAL

What is OneDrive for Business at University of Greenwich? Accessing OneDrive from Office 365

pcanywhere Advanced Configuration Guide

Remote Desktop Web Access. Using Remote Desktop Web Access

Transcription:

CS102 Programming 1 LIU 1 of 8 Assignment 1 6 September 2012 e purpose of this assignment is to help you set up some tools that we will use for assignments the rest of the semester. Due Monday 10 September at 1 am Setting up your tools Install VirtualBox 4 We will use virtual machine so ware for this course. is allows us to have a consistent environment across all operating systems. I have already configured a VM image with all the so ware we ll need for this course. 1. Download my VM image (about 780 MiB) from https://s3.amazonaws.com/ liucs.net/debian-fall-12.ova 2. Download VirtualBox for your host OS (Windows or OS X Mac) from https: //www.virtualbox.org/wiki/downloads 3. Install VirtualBox. If the installer gives you any trouble, try rebooting. 4. Run the VirtualBox application. You may just cancel the registration form. Configure & boot the VM 1. From the File menu, select Import Appliance. Push the Choose button, navigate to your Downloads folder, and select the Debian-Fall-12.ova file that you downloaded. 2. Click Next, then Finish. e import process can take some time. Once it has finished, you can delete the.ova file, and the VirtualBox installer. 3. Now you should have a Debian Fall 12 Linux VM in the le panel of VirtualBox. Before you start it, select it and click the Settings button on the tool bar. In the System section, you may have to reduce the base memory of the virtual machine. It should be no more than 75% of the memory of the host machine. For example, if you have 2G RAM, set the VM base memory to 1024MB (1G). If you have only 1G RAM, set the VM base memory to just below 768M. 4. Apply the settings and start the Linux VM. You may have to dismiss a dialog about capturing the keyboard or mouse; these things should resolve themselves once the VM is running. You should see the Debian start-up screen on a black background, wait a few seconds and then it will proceed with booting.

2 of 8 Prof. League Fall 2012 Assignment 1 Figure 1: Debian boot screen Figure 2: Debian boot process

CS102 Programming 1 LIU 3 of 8 5. Once the system finishes booting, the login screen should appear. Enter the following user credentials (passwords and user names are case-sensitive): Username: liucs Password: LIUcs!@ Figure 3: Debian login screen 6. A er a successful login, you should see the Debian desktop. e buttons across the lower le (highlighted yellow in the image below) are an application menu, account-setup tool, terminal, editor, file manager, and web browser. If your screen has scroll bars or is too small, you can try to select Auto-resize Guest Display from the Machine menu at the top. Your Debian desktop should match the size of the VM window in which it appears. 7. Make sure that networking works by using the browser (within the VM, not on the host!) to do a Google search. If the network seems to be down (but is working on your physical host machine) then you may have to look for the VirtualBox networking setting (right-click on the two-screen icon in the lower right, highlighted green above) and change it from NAT to Bridged. Sometimes it can also help to right-click the Linux network icon (highlighted red above) and reconnect to the wired network. (Even if your host machine s connection is wireless, it will show up to the virtual machine as wired.) Set up your account 1. You should have received an activation code by email to your LIU address. Find that, and then click the Set up account button next to the menu in the lower le. It should open up a terminal like this: 2. Type in your activation code, and follow the other prompts. e entire process should go something like this:

4 of 8 Prof. League Fall 2012 Assignment 1 Figure 4: Debian desktop Figure 5: Set up account

CS102 Programming 1 LIU 5 of 8 This script will help you set up your VM and server accounts. You should have received an activation code at your LIU address. In the prompts that follow, you may use backspace, but not arrow keys. Press control-u to erase and restart the current line. Enter activation code: 0123-4567-89ab-cdef ## (sample) Enter your email address (does not need to be LIU): league@acm.org Fetching key... OK Enter your full name: Chris League 1. Storing your SSH private key 2. Writing git config 3. Writing SSH config 4. Cloning your repositories > git clone liucs.net:cs102-leaguec.git cs102 Cloning into cs102... remote: Counting objects: 518, done. remote: Compressing objects: 100% (499/499), done. remote: Total 518 (delta 218), reused 0 (delta 0) Receiving objects: 100% (518/518), 5.60 MiB 704 KiB/s, done. Resolving deltas: 100% (218/218), done. Success! Your account name is: leaguec Press enter to close this window. 3. Open up the File Manager application. In your home folder, you should see a new folder called cs102. (I have other folders in my account due to other courses I m teaching.) 4. Descend into cs102 and find the README file there. Double-click it to open it with the editor application called gedit. 5. Type your name where indicated in the file, and then save it (Control-S). Next we will try to synchronize the file with the server. In the future, this is how you will submit your assignments and receive code and other resources from me. 6. In the gedit Tools menu, under External Tools, select Sync with git, or press Shi - F9. In the Shell Output pane at the bottom of gedit, you should see a transcript of the operation. It will look something like this, although the numbers will vary: Running tool: Sync with git

6 of 8 Prof. League Fall 2012 Assignment 1 Figure 6: Home folder Figure 7: e README file in gedit

CS102 Programming 1 LIU 7 of 8 Using ~/cs102/.git > git-add > git-commit [master 90a5c61] sync 1 files changed, 0 insertions(+), 2 deletions(-) > git-pull Already up-to-date. > git-push To liucs.net:cs102-student.git 65446eb..90a5c61 master -> master SUCCESS Done. e important part is that it ends with SUCCESS. If you see a different message, copy and paste the whole transcript in an email to me, so I can help you troubleshoot. 7. Check your email at the address you gave when setting up your account. You should receive a message from git version control containing a summary of the changes you made. ink of this email as your receipt! Build & run a program 1. In the file manager, descend into cs102/a01 and open hello.cpp. is is the hello world program that we studied in the first class. 2. From the gedit Tools menu, under External Tools, select Run, or press Alt-F5. If there are errors building the programs, they will appear in the Shell Output pane at the bottom of gedit. If it succeeds, it should open up a new terminal window with the program output. Edit the program 1. Change the program so that it prints out your name and your favorite food onto the screen, on separate lines, something like this: 2. Once you have confirmed that your program works, use Sync with git from the Tools» External Tools menu, as before. If that succeeds, your program has been submitted!

8 of 8 Prof. League Fall 2012 Assignment 1 Figure 8: Result of hello world Figure 9: Modified program output