-
Notifications
You must be signed in to change notification settings - Fork 71
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
Linux Support? #120
Comments
I guess you have to download the package. Something like cloning this repository and then:
Second step is running the project:
And if everything works you have to build for your OS... But I don't expect it works if there are some kind of library that doesn't work on linux. From a fast check it should work. But I don't know if it could be a great idea put a lot of money if you don't know how it works.... Right? I have to test... |
I'll give a try, Thanks! |
I've tried to install on Ubuntu 18.04. |
yarn
yarn package-linux builds linux binaries deb, snap, appimage, but they all seg fault |
I've just tried again on Ubuntu 18.04. |
Interested in this as well |
to install on Linux, download the source code and build it from the CLI https://github.com/blockstack/stacks-wallet/releases/tag/v3.0.0 cc @yknl |
@ryanarndtcm
|
thanks Nazsam. @yknl will need to take a look as the wallet engineer. I have tagged him on this post. |
I have no issue getting a build and several binaries,but none of them work. As I mentioned above The release deb segfaults,
AppImage does the same
snap doesnt show up in user menu, and segfaults
|
Linux is not officially supported currently. You can try running it in development if the default electron builds aren't working. This is however very much at your own risk.
|
Whose ears do we have to pull to get it supported? Every craptastic crypto project out there has a linux wallet but Stacks. We continue to support closed-source, proprietary operating systems as first class citizens for a public, open source crypto project. Seems outta whack from my perspective. @jeffdomke ? |
@dantrevino if the community wants it, we'd more than welcome help and PRs! PBC bandwidth is limited and there are always important things we're unable to prioritize -- does not mean we don't care about them. |
I've tried once and failed, so I thought I would throw up some notes as I go along. I would be very happy to be able to run a Stacks wallet on Linux (specifically, Ubuntu/Debian)! @naszam You are missing a dependency, I was able to resolve it with
I ran into some other issues on my system (LM19) because I already had curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install --no-install-recommends yarn I am running some additional tests as I go along, and if I can get it resolved, I will post a walk-through on how I got there and/or additional details here if relevant. I also want to look at this from the perspective of a clean install (on a VM) if I can get it running, so we can hash out exactly what's missing for dependencies and settings. |
After a (long) day of testing, I finally figured it out and have the Stacks wallet running on Linux Mint 19. The instructions below should work for any Ubuntu / Debian installation but I have not tested it any further. Please follow the instructions below at your own risk, I am not responsible for anything, just a guy who got it to work and documented the process. 😎 Proof or it didn't happenPrerequisitesThere was one package I needed to resolve an error during build, install the sudo apt-get install libudev-dev You should have node -v
npm -v
yarn -v If you do not have node/npm installed, then please follow the relevant documentation. If you do not have yarn installed, first make sure you do not have the curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install --no-install-recommends yarn With yarn add electron-builder --dev Fork and clone the repoupdate: added this step to be thorough
Package.json changesThere were three main changes I made so this would work for me, based on:
Based on those criteria, I updated the following: "author": {
"name": "Blockstack PBC",
"url": "https://www.blockstack.org",
"email": "[email protected]"
}, "linux": {
"target": [
"deb"
], "license": "GPL-3.0-only", This way I am only targeting a .deb package which is my goal on Ubuntu/Debian. I also think it's worth looking at separating the builds by package rather than distro, i.e. The actual buildyarn
yarn package-linux For me these finished in 3676.34s and 1508.43s respectively, so maybe plan something else to do while waiting? (~86min total if you don't like math) Running the programIt's on my menu with a default Electron icon, and it runs as expected. I walked through all of ths screens and set it up without a hardware wallet, so someone else will have to test using one for new creation and/or restoring a wallet. Resourcesyarn install: https://classic.yarnpkg.com/en/docs/install/#debian-stable Final thoughtsI can push some of these changes into a PR, but I'd love to see if it works for others first, so test it out and let me know if any issues! |
@whoabuddy Just tried following your instructions. cloning your bks-wallet, I get the following error:
Tried also with node v12.14 |
Now, I'm trying to fix it following the issue: probably is due to a version of protagonist |
Nope! same Error, any idea? |
Using node v10 seems to work fine regarding that error but I get the following:
|
Hey @naszam, sorry my instructions weren't clear, the working one on linux mint is under a diff branch than master from my repo, and then the PR is a third branch. You would be better off to clone your own and make the suggest changes. I also plan on testing this from a VM with nothing installed as these were the dependencies I needed to make it work but YMMV. My node version is 12.something (not sure off the top of my head). Was there a longer error message generated than what you posted? I feel like that error doesn't give me something to act on (and my node-gyp issues turned out to be something diff anyway). |
Ok, no worries. |
@whoabuddy I decided to rebuild in a new VM since this is working for others and these instructions mostly worked!!, but some I do not think are needed.
Once again, the build "completed" for me, but initial running of the binary gave me the following error:
This is fixed with After installing libgconf-2-4, the AppImage and 'unpacked' binaries segfault However, I was able to install and run the snap ... with: |
I've just tried now on a new account on Ubuntu 18.04, using node v10.
Both worked!
and in the release folder I found the .deb that didn't work, the .AppImage and .snap that worked! Another dependency that pops up from the package manager relative to stack-wallet-1 (snap) is the following:
|
@naszam and @dantrevino thank you for the valuable feedback, I was hoping my instructions would work for all, but we seem to be running into different issues along the way. I am happy to hear it is working for others, at least! |
I built using a fresh Ubuntu 19.10 VM with the below actions. Everything built but none of the binaries run. They all core-dumped. stepssudo apt-get install libudev-dev
|
@fluidvoice Thanks for giving this another go! So after building it, the wallet did not work as expected? |
as I said above "They all core-dumped." so no it did not run at all. Core-dumped means it crashed. |
@dantrevino do you have any ideas here?
|
I haven't been able to consistently get a successful build. When i did have success it was on Ubuntu 18.04. I haven't tried in a while. |
For those who haven't heard elsewhere already: the UserX team at PBC is working on a whole new Stacks Wallet with Linux support, and we'd love get your eyes on it during pre-release testing against Stacks 2.0 Testnet: https://www.blockstack.org/p/stacks-wallet You can find instructions for installing and using the build on Linux at the above link. If you have a chance, please try it out and let me know whether you run into any problems (either here or in newly submitted issues). 🙏 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I would like to know when the Stacks Wallet version for Linux will be released, or if there is a way to install the wallet on linux (ubuntu) already.
The text was updated successfully, but these errors were encountered: