XFig is a menu-driven tool that allows the user to draw and manipulate objects interactively in an X window. The resulting pictures can be saved, printed on postscript printers, or converted to a variety of other formats (e.g. to allow inclusion in LaTeX documents).
For More info about Xfig check out the YouTube video.
Welcome to our Scaffolding Project with xFig! Here you will be able to develop functions inside a big project. You will see the results of your work and how it can influence the main program.
Before starting, you need to follow the steps below to access a virtual machine previously prepared to help you.
Using AWS (Amazon Web Services) to set up Xfig
Requirments
Remote Desktop Connection app, Credit/Debit Card, Phone number (for Verification), Internet Browser.
-
Setting Up AWS (Video Tutorial)
-
The first thing to do is to create a personal account on AWS. This can be done by simply navigating to AWS Console (Note this might take more time to set-up).
-
After Signing in, go to the menu 'Services' and click on 'Compute', then click on 'EC2 (Virtual Servers in the Cloud)'.
-
Check that your server location is N.Virginia and not Ohio. You can change it at the top right corner on most web pages inside AWS.
-
Once you select the server, go to 'Instances', then click on 'Launch Instances'. The page 'Launch an instance will open'.
-
Give a name for your instance. In the section Applications and OS Images, click on Browse more AMIs. Then, paste ami-0c577f1417b7969a2 to the search bar. In the Community AMIs, "Ubuntu Linux with Xfig" should appear. Press on select.
- For the Instance type, select 't2.medium', the one that 2 vCPUs and 4 GiB of memory or higher (Check if you are eligible for free storage of 30Gb or 27.9GiB of gp2 or gp3 storage).
- In the section Key pair (login) choose the option 'Proceed without a key pair' (If you want, you can click on Create new key pair and use it instead).
- Go to the section Configure storage and increase the value from 8 GiB to 14 Gib.
- At the end, click on 'Launch instance'.
-
-
Configuring your machine network
- Go to your AWS Instance page then click on connect on the top right corner
- On the connect to instance page click on connect
- Once launched copy and paste "sudo passwd -d ubuntu" to the terminal or if you want to set your own password paste "sudo passwd ubuntu"
- Go to your AWS Instance page. Select your instance and click on the button 'Connect' on the top right corner. (You also can use the button 'Actions -> Connect').
- On the Connect to instance page click on 'Connect'.
- Go back to your instance page and select your instance. Find the tab 'Security' and click on the blue 'Security groups'.
- On the top right page, click on the button 'Actions' and select the option 'Edit inbound rules'.
- Click on the 'Type' and change it from 'SSH' to 'RDP', then click on the button 'Save rules'.
-
Connecting the machine to your computer
- Go to your AWS instance page and select your instance. Find the 'Public IP' and copy it.
(Just For Mac | Video Tutorial) Open the 'App Store' and install 'Microsoft Remote Desktop'.
- Open the aplication 'Remote desktop connection' and past the public IP to 'Computer' box.
- A security pop-up will appear. Click on Yes.
- On the login page, write the username "ubuntu" and password "ubuntu", then log in.
Notes
Every time you start and stop an instance, the IP address changes. you need to copy the new IP address to connect to your VM.
Always stop your session after you are done, or else you would be charged money as if you were using the machine. You can set a rule for the time limit. For more Check here. If you leave you machine running 24/7, you will be billed anywhere between 30-50 dollars per month.
You should be Stopping your instance and not Terminating it, as this will delete your instance and you will need to complete these steps again.
-
Accessing Tasks
- Open the 'GitHub Desktop'. Go to 'Current branch' and click on the task's name. (The first one is 'Project-1-Enhanced-Rotation').
- In the section Open the repository in your external editor, click on 'Open in Visual Studio Code'.
- Open the file Assignment Information.txt and follow the instructions.
-
Switching Branches
- When you switch to a different project using the branch manager, a pop-up appears. Choose the first option 'Leave my changes on Project_Name', and then click on the button 'Switch Branch'.
- A pop-up will appear. Click on the button 'Overwrite'.
-
Re-accessing Edited Branches
- To re-access edited projects, use the branch manager. Select 'View stash' and 'Restore'.
2. Continue to Visual Studio Code and the project should be re-opened.
For more info about managing, accessing, or compiling your projects on GitHub: Video Tutorial.