Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Tutorial: fabmodules_windows10 #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions week2_computer_aided_design/fabmodules_windows10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Fabmodules: Install on Windows10
**Original tutorial by:**
* Antonio Grillo - [ntngrillo@gmail.com](mailto:ntngrillo@gmail.com) - Last updated 2017-07-24
* FabLab Napoli - Naples, IT
* License: MIT

## Step_1
Navigate to ````Settings````. You can get there by clicking on the gear icon in the Start menu.

Click ````Update & security```` and go to ````Select For Developers```` in the left column.

Select ````Developer Mode```` under ````Use developer features```` if it's not already enabled.

![Image of DEVMODE](/fabmodules_windows10_img/devmode-pc-options.png)

## Step_2
Navigate to the ````Control Panel```` (the old Windows control panel). You can get there by hitting ````Windows Key + X```` and selecting Control panel from the pop-up menu that appears.

Select ````Programs and Features````. If it's not visible, make sure you select "Large icons" from the "View by" menu.


Click ````Turn Windows features on or off.````

Toggle ````Windows Subsystem for Linux (Beta)```` to on and click Ok and reboot your computer.

![](fabmodules_windows10_img/turn-features-on.png)

## Step_3
Search for Command Prompt (cmd.exe) in the Cortana / Search box and click its icon.
Type ````bash```` and hit ````Enter````
Type ````y```` and hit ````Enter```` when promoted to install Ubuntu. The system will then take a few minutes to install Ubuntu in the command prompt window.

## Step_4
At this point you can follow the guide @ http://kokompe.cba.mit.edu/downloads.html

Dependencies: Ubuntu 12.04

- Python
- wxPython
- NumPy
- GCC and G++
- libpng
- GIFLIB
- Make
- BASH
- Okular
- Boost (headers, thread, and system library)
- cmake

You can install all of the dependencies with the command:

sudo apt-get install python python-wxgtk2.8 python-dev python-pip gcc g++ libpng12-dev libgif-dev make bash okular libboost-thread-dev libboost-system-dev cmake

[DOWNLOAD](http://kokompe.cba.mit.edu/fab_src.zip) All Modules

After downloading the source above, unzip ````fab_src.zip```` and cd to the folder it's in.

Type ````make fab````, which should compile all executables and copy scripts into bin.

At this point, ````make install```` will copy all executables and scripts to ````/usr/local/bin````

## Step_5
You need to install an **"X server"** to provide that graphical interface which is yet not there on a typical Ubuntu subsystem on windows 10.

If you install an X server application on your Windows desktop and change a setting in the Bash shell, applications will send their graphical output to the X server application and they’ll appear on your Windows desktop.

You can install [Xming](https://sourceforge.net/projects/xming/) a good X server for Windows. Just accept the default settings. It will then automatically launch and run in your system tray, waiting for you to run graphical programs.

----
After installation you’ll need to set the **DISPLAY** environment variable to point at the X server already running on your system.

First run the following command in the Bash environment to set the DISPLAY variable:

export DISPLAY=:0

And then ***run the application:***

fab



[![FABModulesonWindows10](fabmodules_windows10_img/capture.JPG)](https://youtu.be/hwmLH4IqZVI)

:tada: Enjoy your **Fabmodules for Windows**!! :tada:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.