Building Onionshare in Leap

Has anyone tried to build Onionshare in Leap?

https://onionshare.org/

Dependencies and build commands:

sudo sudo dnf install -y rpm-build python3-flask python3-stem python3-qt5 nautilus-python
./install/build_rpm.sh
sudo yum install -y dist/onionshare-*.rpm

There were no exact matches for the dependencies and there was no candidate for python3-stem. Also, openSUSE uses zypper not yum. The above are the only .rpm based instructions available on the site. I’d really love to see this added to the 1-click repos.

Here’s the output from my attempt; I didn’t see any obvious compile errors:

sophie@linux-2t4v:~> cd onionshare
sophie@linux-2t4v:~/onionshare> ./install/build_rpm.sh

[compiler output too long for forum software]

To install, run:
sudo dnf install dist/onionshare-0.9-1.noarch.rpm
sophie@linux-2t4v:~/onionshare> 

----------------------------------------------------------------------------------------------

To install, run:
sudo dnf install dist/onionshare-0.9-1.noarch.rpm
sophie@linux-2t4v:~/onionshare> 

----------------------------------------------------------------------------------------------

It choked here:

sophie@linux-2t4v:~/onionshare> sudo dnf install dist/onionshare-0.9-1.noarch.rpm
root's password:
sudo: dnf: command not found
sophie@linux-2t4v:~/onionshare> 

Apparently it’s looking for something called “dnf.” I couldn’t find a candidate. Also, I couldn’t locate an rpm; so maybe the compile did fail?

bump please

See any errors in that compiler output you did not show?

Unfortunately no. The output is about 40k charachters, so I couldn’t post it anyway. I do still have it though!

(Each post is limited to about 15k)

Is there any other way I can get this too you?

You can use Susepaste and give us the link

http://paste.opensuse.org/

But to look for errors just look for error in the output

can redirect ouptput to a file using > file name

or pipe it to grep using | grep error or | grep ERROR

Then you see only lines with error in it

It choked here:

sophie@linux-2t4v:~/onionshare> sudo dnf install dist/onionshare-0.9-1.noarch.rpm
root’s password:
sudo: dnf: command not found
sophie@linux-2t4v:~/onionshare>

Try zypper or rpm?

Hi
So have built onionshare for you in my home testing repo (Don’t add as a repo!!), but first you need to install the tor browser, eg;

Download tor browser from Tor Project | Download
Extract the tarball as you user in the desired location, eg ~/;


cd
mv Downloads/tor-browser-linux64-6.0.1_en-US.tar.xz .
zx -dq tor-browser-linux64-6.0.1_en-US.tar.xz
tar xf tor-browser-linux64-6.0.1_en-US.tar
cd tor-browser_en-US/
./start-tor-browser.desktop --register-app
Launching './Browser/start-tor-browser --detach --register-app'...
Tor Browser has been registered as a desktop app for this user in ~/.local/share/applications/

This should add the desktop menu entry for you…

Now we need a few apps and add a repository temporarily;
wget -c http://download.opensuse.org/repositories/home:/malcolmlewis:/TESTING/devel_languages_python3_Leap_42.1/noarch/python3-stem-1.4.1-1.1.noarch.rpm
wget -c http://download.opensuse.org/repositories/home:/malcolmlewis:/TESTING/devel_languages_python3_Leap_42.1/noarch/python3-onionshare-0.9-1.1.noarch.rpm

Now switch to root user and run;


zypper ar -f http://download.opensuse.org/repositories/devel:/languages:/python3/openSUSE_Leap_42.1/ devel:languages:python3
Adding repository 'devel:languages:python3' ....................................................................................................................[done]
Repository 'devel:languages:python3' successfully added
Enabled     : Yes                                                                                    
Autorefresh : Yes                                                                                    
GPG Check   : Yes                                                                                    
Priority    : 99                                                                                     
URI         : http://download.opensuse.org/repositories/devel:/languages:/python3/openSUSE_Leap_42.1/

zypper ref

New repository or package signing key received:

  Repository:       devel:languages:python3                                                         
  Key Name:         devel:languages:python3 OBS Project <devel:languages:python3@build.opensuse.org>
  Key Fingerprint:  1F7CB4A0 5E055767 F8560A62 9EE155E4 628F16E3                                    
  Key Created:      Tue May 17 05:53:22 2016                                                        
  Key Expires:      Thu Jul 26 05:53:22 2018                                                        
  Rpm Name:         gpg-pubkey-628f16e3-573af822                                                    


Do you want to reject the key, trust temporarily, or trust always? [r/t/a/? shows all options] (r): a
Retrieving repository 'devel:languages:python3' metadata .......................................................................................................[done]
Building repository 'devel:languages:python3' cache ............................................................................................................[done]
zypper lr (and identify the repo number so we can disable later)

Now still as root user cd to the directory the onionshare and stem packages where downloaded;


cd <your user download location>
zypper in python3-stem-1.4.1-1.1.noarch.rpm python3-onionshare-0.9-1.1.noarch.rpm

This will pull in all the additional packages from the python3 repo, once done now disable the repo via the number found in zypper lr eg 7;


zypper mr -d -R -p 101 7
exit

Now, all you need to do is start the tor browser, let it connect etc and the start onionshare-gui from the desktop menu, add your files and share etc;

http://thumbnails115.imagebam.com/48953/25da2f489525673.jpg](ImageBam)