Using cli_wallet and steemd natively in Windows 10!

3 months ago
68 in steemhelp

For investigating how to delegate SP, getting it done in Windows was a key ingredient. @clayop's guide to using cli_wallet with Docker for Windows was the best solution. Docker works, but it's a bit clunky, let's say. Same applies for a VM.

I knew that with Anniversary Update (1607) in mid-2016, Windows 10 introduced a Windows Subsystem for Linux (WSL). Basically, you have an Ubuntu subsystem within Windows 10. With Creators Update (1703), this has further been improved. (Shameless plug - check out my recent review for Creators Update) If Windows 10's WSL really worked as it was intended, there would be no reason why it wouldn't work with cli_wallet or steemd, right?

As it turns out, that's exactly right. cli_wallet works just fine on Windows 10!

Requirements

You need a 64-bit CPU running on 64-bit Windows 10. Minimum version required is Windows 10 1607, though I tested only on Windows 10 1703.

To be clear, I haven't yet tried building steemd or cli_wallet, but pre-compiled Linux executables work just fine. To get you started, you can download cli_wallet from here - http://wikisend.com/download/735872/cli_wallet.zip

Steps to enable WSL

  1. Type in "features" into Search, open Windows Features.

  2. One of the few old style setting interfaces still left in Windows 10. Look for "Windows Subsystem for Linux (Beta)" and enable it.

  3. Type bash into Search and run.

  4. This will install the Ubuntu subsystem. Follow the instructions - it's done within minutes.

  5. That's all there is to it! Much easier than any VM or Docker setup, and a one time thing too. You can now use a Windows command prompt like you do Linux. Run "Bash on Ubuntu on Windows" or type in bash and run.

  6. Type in cd /mnt - this gives it access to your PC's drives. The usual Linux commands like ls work just fine. Here, I've copied cli_wallet to C: and run it successfully.

I've been playing around with it and it works just fine.

And here is steemd running, though I haven't synched the chain etc. yet.

What's more, in running some benchmarks, performance is better than with Ubuntu on VM. Impressed by what Microsoft and Canonical has achieved here, though remember this is still beta. For more details, check out MSDN's sub-site on WSL - https://msdn.microsoft.com/en-us/commandline/wsl/about

PS: You might need to enable Developer Mode. I didn't do it, but seeing some reports online that is required. You can find this setting here -

Authors get paid when people like you upvote their post.
Join our amazing community to comment and reward others.
Sort Order:  trending
65
  ·  3 months ago

Thank you for this Tutorial!

64
  ·  3 months ago

Very nice ~.~ thank you for sharing

57
  ·  3 months ago

Thanks for sharing

66
  ·  3 months ago

thanks. very helpful for many . i re-steemed it

77
  ·  3 months ago

Hey. that's helpful. I was looking into cli for steem. thanks

77
  ·  3 months ago

./cli_wallet: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by ./cli_wallet) ./cli_wallet: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: versionGLIBCXX_3.4.21' not found (required by ./cli_wallet)

any idea how to add that?

·
68
  ·  3 months ago

Seems like that's a Linux error. I don't know what it is, but plenty of results online - there might be a solution.

·
·
77
  ·  3 months ago

just followed your steps ;) is not working for me.. hmm

·
·
77
  ·  3 months ago

tried a lot already. nothing works...

·
·
·
68
  ·  3 months ago

No idea what it may be... Might want to post about it here - https://github.com/Microsoft/BashOnWindows/issues

63
  ·  2 months ago

Good post, BTW I upvote almost everything with the tag #steemdev . You should add this tag.

·
68
  ·  2 months ago

Thanks for the heads up. This was more a guide for the regular user as I'm not a developer myself, but I can see how it could benefit developers too. Done.

·
·
56
  ·  2 months ago

The link http://wikisend.com/download/735872/cli_wallet.zip is dead, is there an updated link ?

·
·
·
68
  ·  2 months ago

Here you go - http://wikisend.com/download/496090/cli_wallet.zip

·
·
·
·
56
  ·  2 months ago

Thanks, where do you get it from ?

·
·
·
·
·
68
  ·  2 months ago

Built it myself in Linux. This is a pretty good guide for that - https://steemit.com/witness-category/@bitcalm/how-to-become-a-witness

You should be able to build in Bash on Ubuntu for Windows too, but I haven't tried it... Already had this one built in Ubuntu.

·
·
·
·
51
  ·  last month

Link is down again :( Can you post a new link please?
If I unzip this in Ubuntu instead of Windows 10 it will work too?