-
Notifications
You must be signed in to change notification settings - Fork 25
DistributedChaffin - Alternate Win10 Method #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bwmetz
wants to merge
1
commit into
superpermutators:master
Choose a base branch
from
bwmetz:Instructions
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
92 changes: 92 additions & 0 deletions
92
DistributedChaffinMethod/Win10_-_Using_Windows_Subsystem_for_Linux.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| Win10_-_Using_Windows_Subsytem_for_Linux.txt | ||
| ============================================ | ||
|
|
||
| Author: Bobby Metz | ||
| Date: 17 May 2019 | ||
|
|
||
| This document covers a simple method to add Linux and associated tooling under Windows 10, 64-bit | ||
| in order to download, create & execute DistributedChaffinMethod. For additional questions about | ||
| the tool itself, please refer to the readme.txt instead of this document. | ||
|
|
||
| Building and testing | ||
| -------------------- | ||
|
|
||
| 1. Follow instructions on this website to enable Windows Subsystem for Linux on Windows 10. | ||
| *** Must have 64-bit Windows10 *** | ||
| *** Requires Windows10 reboot before step 2 *** | ||
|
|
||
| https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/ | ||
|
|
||
| 2. Open the Windows Store app; find Ubuntu; Click Get, then Click Install as outlined on website above. | ||
|
|
||
| 3. Once Ubuntu download/install finished, complete the install by setting a username/password. That's all there is to do! | ||
|
|
||
| Enter new UNIX username: user | ||
| Enter new UNIX password: | ||
| Retype new UNIX password: | ||
|
|
||
| 4. Update packages [enter password if requested] | ||
|
|
||
| sudo apt-get update | ||
| [sudo] password for user: | ||
|
|
||
| 5. Install gcc [enter password if requested] | ||
|
|
||
| sudo apt install gcc | ||
|
|
||
| 6. Agree to download packages is prompted. | ||
|
|
||
| Do you want to continue? [Y/n] y | ||
|
|
||
| 7. Install make | ||
|
|
||
| sudo apt install make | ||
|
|
||
| 8. Obtain DistributedChaffinMethod.c and its Makefile in your current directory | ||
|
|
||
| + git is already installed, so clone the entire superpermutators repo if that is your wish: | ||
|
|
||
| git clone https://github.com/superpermutators/superperm | ||
| cp superperm/DistributedChaffinMethod/DistributedChaffinMethod.c . | ||
| cp superperm/DistributedChaffinMethod/Makefile . | ||
|
|
||
| + wget/curl is already installed, so simply grab the two specific files you need if that is your wish: | ||
|
|
||
| wget https://raw.githubusercontent.com/superpermutators/superperm/master/DistributedChaffinMethod/DistributedChaffinMethod.c | ||
| wget https://raw.githubusercontent.com/superpermutators/superperm/master/DistributedChaffinMethod/Makefile | ||
|
|
||
| + If in doubt, validate the file content | ||
|
|
||
| $ file DistributedChaffinMethod.c | ||
| DistributedChaffinMethod.c: C source, ASCII text, with very long lines | ||
| $ file Makefile | ||
| Makefile: makefile script, ASCII text | ||
|
|
||
| + If you used the wrong github URL, you might see this instead | ||
|
|
||
| $ file Makefile | ||
| Makefile: HTML document, UTF-8 Unicode text, with very long lines | ||
|
|
||
| 9. Compile the program | ||
|
|
||
| $ make | ||
| gcc -O3 DistributedChaffinMethod.c -o DistributedChaffinMethod | ||
|
|
||
| 10. Test the program | ||
|
|
||
| $ ./DistributedChaffinMethod test | ||
| Random seed is: 1558087104 | ||
| Fri May 17 01:43:33 2019 Program instance number: 1932335239 | ||
| Fri May 17 01:43:33 2019 Team name: anonymous | ||
| Fri May 17 01:43:33 2019 To server: action=hello | ||
| Fri May 17 01:43:41 2019 Server: Hello world. | ||
|
|
||
| Bonus | ||
| ----- | ||
|
|
||
| Python3 is also installed by default, should you wish to play with other content from the superpermutators github repo. | ||
|
|
||
| $ python3 -V | ||
| Python 3.6.5 | ||
|
|
||
| Installation of additional Python modules may be necessary, but are outside the scope of this document. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're currently only using core Python modules, but there are a few places where we're using Python 2 syntax in the code (mostly
printstatements). We should probably fix that.