Using cli_wallet and steemd natively in Windows 10!steemCreated with Sketch.

in #steemhelp7 years ago (edited)

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 -

Sort:  

Can you show me how to build a cli_wallet.zip? I wanna try to build by myself. Thanks

./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?

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

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

tried a lot already. nothing works...

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

Thanks for sharing

Thank you for the tutorial! Useful tip: If You can't enable Developer mode (error code 0x80004005), you can ignore that and go to the next step.
Source: link

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

Thank you for this Tutorial!

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

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.

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

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

Thanks, where do you get it from ?

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.

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?

Very nice ~.~ thank you for sharing

Coin Marketplace

STEEM 0.21
TRX 0.14
JST 0.030
BTC 67873.49
ETH 3528.53
USDT 1.00
SBD 2.80