Skip to content
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

Fails executing in OpenSuse #6

Open
dotterian opened this issue Aug 16, 2017 · 1 comment
Open

Fails executing in OpenSuse #6

dotterian opened this issue Aug 16, 2017 · 1 comment

Comments

@dotterian
Copy link

dotterian commented Aug 16, 2017

Here's full log of ReQrypt:

$ ~/bin/reqrypt-1.3-linux64.sh
[sudo] password for root: 
ReQrypt 1.3 [linux] Copyright (C) 2017 basil
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

log: creating program directory .reqrypt
log: installing "reqrypt.config"
log: installing "reqrypt.cache"
log: installing "reqrypt.crypt.cache"
log: installing "reqrypt.browser.sh"
log: starting reqrypt user interface http://localhost:40404/
  which: no x-www-browser in (/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/dotty/bin/node-v8.2.1-linux-x64/bin:/home/dotty/.fzf/bin)
reqrypt.browser.sh: error: browser 'x-www-browser' not found
log: [linux] executing iptables command "/sbin/iptables -I OUTPUT -p tcp -m tcp -m owner --uid-owner 1000 -m mark ! --mark 40402 -j NFQUEUE --dport 443 --queue-num 40403"
error: unable to execute iptables command: No such file or directory
error: iptables command returned non-zero exit status 256

Possible solutions for the problems:

  1. Use xdg-open http://localhost:40404/ instead of x-www-browser (xdg-open opens file or url in default application and afaik is default to most Linux systems).
  2. iptables can be located anywhere as long as it in $PATH. In OpenSuse, for example, it's located in /usr/sbin/iptables judging from the which iptables output. Use which to determine iptables location.
@basil00
Copy link
Owner

basil00 commented Aug 16, 2017

Thanks for the report. It seem that you are correct that xdg-open is the most "most cross-distribution" method for opening the default browser (at least from a quick google search), so I will make the change.

For iptables I vaguely recall the hard coded path is for security reasons, especially since it is executed as root. Nevertheless, this is a bug so the code should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants