BitShares Forum

Main => General Discussion => Topic started by: maqifrnswa on July 23, 2014, 10:19:21 pm

Title: Ubuntu BitShares PPA
Post by: maqifrnswa on July 23, 2014, 10:19:21 pm
Hello all, to make it easier for people, this is all you need to install bitshares:

Code: [Select]
$ sudo apt-add-repository ppa:showard314/bitshares
$ sudo apt-get update
$ sudo apt-get install bitshares

If you want the command line interface only (CLI, e.g. if you are running a headless server):
Code: [Select]
$ sudo apt-get install bitshares-cliinstead of
Code: [Select]
$ sudo apt-get install bitshares
You will then have a bitshares icon in your application search (dash) or from command line:
Code: [Select]
$ BitSharesand/or the CLI:
Code: [Select]
$ bitshares_client
all the utilities are installed as well, but if they're not needed I can cut them out for space later.

Service of:
https://bitsharestalk.org/index.php?topic=5938
15% delegate: wallet_approve_delegate maqifrnswa
50% delegate: wallet_approve_delegate delegate1.maqifrnswa
(I have two since we're not allowed to raise payrates to remain competitive in the market, which I mistakenly did not know when I made the first one)

Please post bugs/problems here.

Note:
Since there are no such thing as "official" binaries any more [1], the PPA is as official as you can get. They were uploaded by a delegate, the source code used to build the packages is signed with a GPG key in the debian-keyring and is inspectable on the launchpad site. The binaries built from the GPG code are signed by with the PPA key and will be verified by apt when you download and install. This is the same system bitcoin uses for distribution, as well as mozilla, libreoffice, wine, and several others.

[1] https://bitsharestalk.org/index.php?topic=7067.msg148186#msg148186
Title: Re: Ubuntu BitSharesX PPA
Post by: merockstar on July 23, 2014, 10:26:52 pm
yay thank you!

this requires trust right? is it possible for BM or toast to take a gander at it and make sure it's okay?

either way i'll be giving it a shot.
Title: Re: Ubuntu BitSharesX PPA
Post by: bytemaster on July 23, 2014, 10:29:16 pm
yay thank you!

this requires trust right? is it possible for BM or toast to take a gander at it and make sure it's okay?

either way i'll be giving it a shot.

All binaries require trust and there is nothing I can do to verify it.
Title: Re: Ubuntu BitSharesX PPA
Post by: alt on July 23, 2014, 11:27:17 pm
Hello all, to make it easier for people, this is all you need to install bitshares:

Code: [Select]
$ sudo apt-add-repository ppa:showard314/ppa
$ sudo apt-get update
$ sudo apt-get install bitsharesx

You will then have a bitshares icon in your application search (dash) or from command line:
Code: [Select]
$ BitSharesX
all the utilities are installed as well, but if they're not needed I can cut them out for space later.

Service of:
https://bitsharestalk.org/index.php?topic=5938
wallet_approve_delegate maqifrnswa

Please post bugs/problems here. I tested it and it works, but still treat this as testing for a little bit.
u
Can you offer a tool to generate the ppa from source code automatic?
so I3 or DACSunlimited can manage this directly?
Title: Re: Ubuntu BitSharesX PPA
Post by: maqifrnswa on July 24, 2014, 01:10:44 am
Hello all, to make it easier for people, this is all you need to install bitshares:

Code: [Select]
$ sudo apt-add-repository ppa:showard314/ppa
$ sudo apt-get update
$ sudo apt-get install bitsharesx

You will then have a bitshares icon in your application search (dash) or from command line:
Code: [Select]
$ BitSharesX
all the utilities are installed as well, but if they're not needed I can cut them out for space later.

Service of:
https://bitsharestalk.org/index.php?topic=5938
wallet_approve_delegate maqifrnswa

Please post bugs/problems here. I tested it and it works, but still treat this as testing for a little bit.
u
Can you offer a tool to generate the ppa from source code automatic?
so I3 or DACSunlimited can manage this directly?

The binaries were built by canonical, you can check the sources out with
$ apt-get sources bitsharesx

to see what I used. You can build yourself if you do a "dpkg-buildpackage" in the source tree after apt-getting sources.

I have set up automated build scripts for other projects, unfortunately all the git submodules, nodejs, and lineman stuff makes it harder. I'm definietely offering to help I3 or DACs Unlimited manage their own, that's why I just called it "Bitshares PPA by showard" to make it clear it was just a community contributed PPA.

The easiest thing would be if the repos could build without submodules and without having to generate htdocs. If they then could set up a bzr branch in launchpad that syncs with their github, you can make a daily build recipe - or an "on demand" recipe where they just hit a button on a web interface and it will build.
Title: Re: Ubuntu BitSharesX PPA
Post by: bytemaster on July 24, 2014, 01:16:18 am
I think you would have to work with dacsunlimited to host those binaries....  I agree it would be nice if there were an easier process.
Title: Re: Ubuntu BitSharesX PPA
Post by: alt on July 24, 2014, 01:21:59 am
Hello all, to make it easier for people, this is all you need to install bitshares:

Code: [Select]
$ sudo apt-add-repository ppa:showard314/ppa
$ sudo apt-get update
$ sudo apt-get install bitsharesx

You will then have a bitshares icon in your application search (dash) or from command line:
Code: [Select]
$ BitSharesX
all the utilities are installed as well, but if they're not needed I can cut them out for space later.

Service of:
https://bitsharestalk.org/index.php?topic=5938
wallet_approve_delegate maqifrnswa

Please post bugs/problems here. I tested it and it works, but still treat this as testing for a little bit.
u
Can you offer a tool to generate the ppa from source code automatic?
so I3 or DACSunlimited can manage this directly?

The binaries were built by canonical, you can check the sources out with
$ apt-get sources bitsharesx

to see what I used. You can build yourself if you do a "dpkg-buildpackage" in the source tree after apt-getting sources.

I have set up automated build scripts for other projects, unfortunately all the git submodules, nodejs, and lineman stuff makes it harder. I'm definietely offering to help I3 or DACs Unlimited manage their own, that's why I just called it "Bitshares PPA by showard" to make it clear it was just a community contributed PPA.

The easiest thing would be if the repos could build without submodules and without having to generate htdocs. If they then could set up a bzr branch in launchpad that syncs with their github, you can make a daily build recipe - or an "on demand" recipe where they just hit a button on a web interface and it will build.
+5% +5%
Title: Re: Ubuntu BitSharesX PPA
Post by: maqifrnswa on July 24, 2014, 03:21:20 am
version 0.2.2 is up. Users will get a warning on installation with a link to:
https://bitsharestalk.org/index.php?topic=6116.msg0;topicseen#new
and warning them to back up their wallet (they would have to choose "do not continue with installation" to stop installation and use their old wallet)

I also included a get-orig-sources target to debian/rules, so users can do:
$ ./debian/rules get-orig-source

and rebuild their own sources if you don't trust mine, then you can build with dpkg-buildpackage.

Again, it would be so much easier if there was a self-contained source tarball release that just builds without having to tweak. Once bitshares is out of heavy and active development, perhaps then it can work.
Title: Re: Ubuntu BitSharesX PPA
Post by: th4o on July 26, 2014, 02:17:09 pm
$ sudo apt-get install bitsharesx
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
E: Paket bitsharesx kann nicht gefunden werden.



Package not found :'(
Title: Re: Ubuntu BitSharesX PPA
Post by: merockstar on July 26, 2014, 02:56:37 pm
$ sudo apt-get install bitsharesx
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
E: Paket bitsharesx kann nicht gefunden werden.



Package not found :'(

hast du das getan?

Code: [Select]
$ sudo apt-add-repository ppa:showard314/ppa
$ sudo apt-get update
$ sudo apt-get install bitsharesx

vorsichtig sein, die Installation von ppa.

meine Intuition sagt, dieser Kerl ist ehrlich, aber es ist am besten, ein Passwort, die Sie nicht verwenden, für alles andere, und vielleicht eine virtuelle Box und nicht Ihr ganzes Geld hinterlegen, bis Sie den Client für eine lange Zeit verwendet haben, zu verwenden. auch auf eine virtuelle Box

auch ich bin mit Google Translate, bitte entschuldigen Sie meine schlechte Deutsch
Title: Re: Ubuntu BitSharesX PPA
Post by: th4o on July 26, 2014, 03:08:23 pm
yes I added the repository and updated the packages, but there seems to be no package called "bitsharesx" inside

I just wanted to install and test the client, I don have imported any old wallets for now :)
Title: Re: Ubuntu BitSharesX PPA
Post by: merockstar on July 26, 2014, 03:18:58 pm
yes I added the repository and updated the packages, but there seems to be no package called "bitsharesx" inside

I just wanted to install and test the client, I don have imported any old wallets for now :)

that's odd. it looks like he hasn't updated to 0.2.3 yet though.

try typing sudo apt-get install bitsh[tab][tab] and see if anything comes up.

you could also try compiling from source (https://bitsharestalk.org/index.php?topic=6008.msg80548#msg80548)
its not as scary as it sounds, but it could throw you alot of errors. which you could then post here and somebody smart can help.

for example I had to symlink my nodejs to node (https://bitsharestalk.org/index.php?topic=6187.msg83009#msg83009)

i found this thread useful (https://bitsharestalk.org/index.php?topic=5951.0) too
Title: Re: Ubuntu BitSharesX PPA
Post by: th4o on July 27, 2014, 12:26:38 pm
Thank you for your help!

$ sudo apt-get install bit[TAB][TAB]
bitlbee             bitmap-mule         bittornado
bitlbee-common      bitmeter            bittornado-gui
bitlbee-dev         bitpim              bittorrent
bitlbee-libpurple   bitpim-lib          bittorrent-gui
bitlbee-plugin-otr  bitstormlite        bittwist

no bitshares package found  ;)

I tried to compile it from source already, but that did not work.


I´m going to try the windows client until there are some packages available I think  ::)
Title: Re: Ubuntu BitSharesX PPA
Post by: merockstar on July 27, 2014, 05:40:19 pm
when you have time, you should reproduce the error you get when you try to compile, and post the steps you took to make it.
Title: Re: Ubuntu BitSharesX PPA
Post by: maqifrnswa on July 27, 2014, 08:08:46 pm
Sorry, I moved it to showard314/bitshares but forgot to update this forum link!
see below:
Code: [Select]
$ sudo apt-add-repository ppa:showard314/bitshares
$ sudo apt-get update
$ sudo apt-get install bitsharesx

version 0.2.4 has been posted as well
Title: Re: Ubuntu BitSharesX PPA
Post by: bitcoinerS on July 27, 2014, 11:58:40 pm
dacsunlimited should create a ppa and host it in their name. It should be made available along with other download links.
Title: Re: Ubuntu BitSharesX PPA
Post by: maqifrnswa on July 28, 2014, 01:09:52 am
dacsunlimited should create a ppa and host it in their name. It should be made available along with other download links.

that would be great
Title: Re: Ubuntu BitSharesX PPA
Post by: maqifrnswa on September 22, 2014, 01:53:20 pm
updates:
1) there are now two packages:
bitsharesx
bitsharesx-cli

the first is the GUI and the cli
the second is cli only

2) we've kept up to date, usually updated within minutes (or at least hours) of release.

However, there is a problem with out-of-tree builds in 0.4.16-RC2 and later:
https://github.com/BitShares/bitshares_toolkit/issues/801

I'm still working on it. Worst case scenario is I'll just upload bitsharesx-cli and not build the gui until it is fixed.
Title: Re: Ubuntu BitSharesX PPA
Post by: maqifrnswa on September 29, 2014, 03:33:09 pm
UPDATE: The cli has always been kept up to date, but the GUI has been giving us problems lately since out of tree builds are still a little difficult.

First there was an issue with the Russian translations. The russian translation is built after it is needed (see below)

Code: [Select]
[ 96%] Generating qrc_bitshares.cpp
cd /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet && /usr/lib/x86_64-linux-gnu/qt5/bin/rcc -name bitshares -o /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/qrc_bitshares.cpp /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/bitshares.qrc
RCC: Error in '/build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/bitshares.qrc': Cannot find file 'ru_RU.qm'
make[5]: *** [programs/qt_wallet/qrc_bitshares.cpp] Error 1
make[5]: *** Waiting for unfinished jobs....
Updating '/build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/ru_RU.qm'...
    Generated 90 translation(s) (90 finished and 0 unfinished)

however, I think I finally fixed it by manually building the translations before the build starts.

but then it can't find another file, but only in i386 (on amd64 it's fine)
Code: [Select]
[ 95%] /usr/bin/cmake -E cmake_progress_report /build/buildd/bitsharesx-0.4.18/build/CMakeFiles 1
cd /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet && /usr/bin/cmake -E copy_if_different /build/buildd/bitsharesx-0.4.18/programs/qt_wallet/images/splash_screen.jpg /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/images
[ 96%] Generating images/qtapp.ico
cd /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet && /usr/bin/cmake -E make_directory /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/images
Generating qrc_bitshares.cpp
cd /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet && /usr/lib/i386-linux-gnu/qt5/bin/rcc -name bitshares -o /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/qrc_bitshares.cpp /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/bitshares.qrc
cd /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet && /usr/bin/cmake -E copy_if_different /build/buildd/bitsharesx-0.4.18/programs/qt_wallet/images/qtapp.ico /build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/images
RCC: Error in '/build/buildd/bitsharesx-0.4.18/build/programs/qt_wallet/bitshares.qrc': Cannot find file 'images/qtapp.ico'
make[5]: *** [programs/qt_wallet/qrc_bitshares.cpp] Error 1
make[5]: *** Waiting for unfinished jobs....
Title: Re: Ubuntu BitSharesX PPA
Post by: maqifrnswa on October 22, 2014, 02:53:04 pm
We're back! GUI and clients now build on AMD64 and i386 again!
Title: Re: Ubuntu BitSharesX PPA
Post by: maqifrnswa on November 12, 2014, 01:27:57 am
package and binary names have changed. If you installed previously, they will change on their own automatically with the current upgrade that is being built.

NEW package names: bitshares bitshares-cli
NEW commands: BitShares bitshares_client

the old package names are kept for compatibility for now but will be dropped in the future (few months?)

Ee're figuring out how to make these "official" in the future too, hosted or at least under the control of DSL.
Title: Re: Ubuntu BitShares PPA
Post by: maqifrnswa on November 12, 2014, 02:14:00 pm
Since there are no such thing as "official" binaries any more [1], the PPA is as official as you can get. They were uploaded by a delegate, the source code used to build the packages is signed with a GPG key in the debian-keyring and is inspectable on the launchpad site. The binaries built from the GPG signed code are signed by with the PPA GPG key and will be automatically verified by apt when you download and install. This is the same system bitcoin uses for distribution, as well as mozilla, libreoffice, wine, and several others. In fact, this is a more secure distribution method than download links on github since most users won't verify MD5 sums before installing.

I hope you find these useful!

[1] https://bitsharestalk.org/index.php?topic=7067.msg148186#msg148186
Title: Re: Ubuntu BitShares PPA
Post by: bitcoinerS on November 12, 2014, 02:25:43 pm
Since there are no such thing as "official" binaries any more [1], the PPA is as official as you can get. They were uploaded by a delegate, the source code used to build the packages is signed with a GPG key in the debian-keyring and is inspectable on the launchpad site. The binaries built from the GPG signed code are signed by with the PPA GPG key and will be automatically verified by apt when you download and install. This is the same system bitcoin uses for distribution, as well as mozilla, libreoffice, wine, and several others. In fact, this is a more secure distribution method than download links on github since most users won't verify MD5 sums before installing.

I hope you find these useful!

[1] https://bitsharestalk.org/index.php?topic=7067.msg148186#msg148186

This is great. Thanks. Hopefully there will be some "official" support for this repository from BitShares core team.
Title: Re: Ubuntu BitShares PPA
Post by: maqifrnswa on March 24, 2015, 12:05:15 am
PPA is still up and running, usually updated within hours of release.
Here are some statistics on downloads.
https://people.debian.org/~showard/test/
Looks like ~15-20 people are using this (based on the number that downloaded the last release)

If anyone is interested in taking this over by moving this to a team/organization account on launchpad, please respond to this thread. It's all self contained so someone should be able to do releases to their own repository by adding the ppa:showard314/bitshares repository and then:
Code: [Select]
$ apt-get source bitshares
$ cd bitshares
$ dch -i [and update the version number/release target]
$ ./debian/rules get-orig-source [download the newest source, build the GUI]
$ dpkg-buildpackage -S -sa [builds the source package to upload to the PPA]
$ dput ppa:NAME/PPA_NAME ../bitshares_VERSION.changes
$ dch -i [and update release target for utopic/vivd/etc]
$ dpkg-buildpackage -S [builds the source package to upload to the PPA using the previously uploaded source]
$ dput ppa:NAME/PPA_NAME ../bitshares_VERSION.changes

I think this is the only way to get the GUI on linux prebuilt. It also shows some of the problem with the current project set-up, by relying on node-js it is very difficult to package the GUI in a linux-distribution-friendly way (the GUI can never be in debian or ubuntu, the amount of work to package all the node-js stuff would be astronomical).
Title: Re: Ubuntu BitShares PPA
Post by: robrigo on March 24, 2015, 12:14:07 am
PPA is still up and running, usually updated within hours of release.
Here are some statistics on downloads.
https://people.debian.org/~showard/test/
Looks like ~15-20 people are using this (based on the number that downloaded the last release)

If anyone is interested in taking this over by moving this to a team/organization account on launchpad, please respond to this thread. It's all self contained so someone should be able to do releases to their own repository by adding the ppa:showard314/bitshares repository and then:
Code: [Select]
$ apt-get source bitshares
$ cd bitshares
$ dch -i [and update the version number/release target]
$ ./debian/rules get-orig-source [download the newest source, build the GUI]
$ dpkg-buildpackage -S -sa [builds the source package to upload to the PPA]
$ dput ppa:NAME/PPA_NAME ../bitshares_VERSION.changes
$ dch -i [and update release target for utopic/vivd/etc]
$ dpkg-buildpackage -S [builds the source package to upload to the PPA using the previously uploaded source]
$ dput ppa:NAME/PPA_NAME ../bitshares_VERSION.changes

I think this is the only way to get the GUI on linux prebuilt. It also shows some of the problem with the current project set-up, by relying on node-js it is very difficult to package the GUI in a linux-distribution-friendly way (the GUI can never be in debian or ubuntu, the amount of work to package all the node-js stuff would be astronomical).

Hi maqifrnswa. Thanks for running this PPA. If I had ubuntu installed I would definitely be using it.

Quick question (unrelated) about nodejs and the web_wallet code: is it only used for lineman and not required to run the packaged GUI or is each instance of the GUI including a full nodejs dependency? i.e. when I run a packaged version of bitshares (such as the exe or dmg), is there a node instance running?

From what I can tell it is just used for the lineman tool and not actually part of the web wallet operation.
Title: Re: Ubuntu BitShares PPA
Post by: maqifrnswa on March 24, 2015, 01:52:14 am
I think it's just the lineman tool, but it would be needed to build everything from source (can't put pre-compiled js in archives for security reasons). To get lineman in debian, I believe we'd need to do the following packaging:
https://wiki.debian.org/Javascript/Nodejs/Tasks/lineman

which would be dozens of packages
Title: Re: Ubuntu BitShares PPA
Post by: pc on March 24, 2015, 08:27:05 am
In my RPM repo at https://build.opensuse.org/project/show/home:p_conrad:bts I have solved the nodejs/lineman problem by creating a separate lineman package that is used for builds only. For running the GUI you don't need node.js nor lineman.

The lineman package is rather ugly, it combines several hundred node.js modules. But that's not much of a problem because it is not intended for installation, only for building BTS + derivates. Maybe a similar approach is possible for PPA, I'm not familiar with that.
Title: Re: Ubuntu BitShares PPA
Post by: maqifrnswa on March 24, 2015, 02:39:52 pm
In my RPM repo at https://build.opensuse.org/project/show/home:p_conrad:bts I have solved the nodejs/lineman problem by creating a separate lineman package that is used for builds only. For running the GUI you don't need node.js nor lineman.

that's pretty much what I'm doing: I'm just putting lineman into the source code tarball that is only used in builds. So it's not a separate package, but it has several hundred js modules in it. That's the long-term problem, sifting through the licenses and independent packaging of those several hundred js files.
Title: Re: Ubuntu BitShares PPA
Post by: maqifrnswa on September 17, 2015, 01:21:39 pm
0.9.3 updated
I'll be submitting a worker proposal to keep this going BitShares 2.0. Possibly setting up distribution server instead of launchpad.

Would people prefer:
1) a new http://ppa.bitshares.org (or something like that) with builds for Debian, Raspbian, Ubuntu on amd64, i386, ARM
or
2) Just keep using Launchpad for Ubuntu

Advantage of (1): All Debian-based distros and architectures can be supported, we keep bitshares branding. Disadvantage of (2): Slight expense (to be built in to worker proposal), have to maintain technical infrastructure.

Advantage of (2): use Canonical infrastructure, people are familiar with it. Downside to (1): limited to Ubuntu amd64 and i386

I guess I can put up two worker proposals and see which one (or both) gets funded.

Also, if you're experienced with PPAs/Debian Development and want to be a part of my worker proposal, please contact me. Same goes with other distributions, maybe we can have a single worker proposal so we can take advantage of scaling and redundancy.