Skip to content
Snippets Groups Projects
Select Git revision
  • 276eb57b559d09581ff1da2154319e9377745f32
  • main default protected
  • bridge-available
  • quic
  • macos-bitmask
  • qt6.6
  • auto-update
  • fix-915
  • ui-924
  • update-obfsvpn
  • init-error
  • ovpn-status
  • introducer
  • fix-826
  • l10n
  • win-fix
  • rel
  • unix-socket
  • obfsvpn-bug
  • fix-903
  • fix-855
  • 0.24.10
  • 0.24.10-rc.3
  • 0.24.10-rc.2
  • 0.24.10-rc.1
  • 0.24.8
  • 0.24.8-rc.3
  • 0.24.8-rc.2
  • 0.24.8-rc.1
  • 0.24.6-rc.1
  • 0.24.5
  • 0.24.3
  • 0.24.03-rc.1
  • 0.21.11
  • 0.21.6
  • 0.21.2
  • 0.20.4
  • 0.20.1
  • 0.19.11
  • 0.19.6
  • 0.19.2
41 results

bitmask-vpn

  • Clone with SSH
  • Clone with HTTPS
  • Ruben Pollan's avatar
    meskio authored
    Is not uncommon for the systray to be launched without internet access.
    For example in the autostart if the network hasn't come up yet.
    
    Let's fetch the vpn cert when the vpn is starting, instead of in the
    initialization of the standalone bitmask. So if the initialization
    happens when there is no network the systray doesn't fail to start.
    
    - Resolves: #88
    276eb57b
    History

    Install it

    Install dependencies:

      # apt install libgtk-3-dev libappindicator3-dev golang pkg-config

    Build the systray:

      $ git clone 0xacab.org/leap/bitmask-systray
      $ cd bitmask-systray
      $ go get .
      $ go build

    To be able to build the assets you'll need:

      $ go get -u golang.org/x/text/cmd/gotext github.com/cratonica/2goarray

    OSX

    Using homebrew:

      $ brew install golang zmq pkg-config
      $ brew install --default-names gnu-sed
      $ git clone 0xacab.org/leap/bitmask-systray
      $ cd bitmask-systray
      $ go get .
      $ go build
    

    Linux

    Building the systray in linux will produce some -Wdeprecated-declarations warnings, like that:

    cgo-gcc-prolog: In function ‘_cgo_3f9f61f961c9_Cfunc_gtk_font_button_get_font_name’:
    cgo-gcc-prolog:5455:2: warning: ‘gtk_font_button_get_font_name’ is deprecated [-Wdeprecated-declarations]
    In file included from /usr/include/gtk-3.0/gtk/gtk.h:106:0,
                     from ../../../go/src/github.com/gotk3/gotk3/gtk/gtk.go:48:
    /usr/include/gtk-3.0/gtk/gtkfontbutton.h:96:23: note: declared here
     const gchar *         gtk_font_button_get_font_name  (GtkFontButton *font_button);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    They are expected and don't produce any problem on the systray.

    Run it

    The default build is a standalone systray. It still requires a helper and openvpn installed to work. For linux the helper is bitmask-root for windows and OSX there is a helper written in go.

    To build and run it:

      $ go build
      $ ./bitmask-systray

    Bitmaskd

    Is also posible to compile the systray to use bitmask as backend:

      $ go build -tags bitmaskd

    In that case bitmask-systray assumes that you already have bitmaskd running. Run bitmask and the systray:

      $ bitmaskd
      $ ./bitmask-systray

    i18n

    Generate locales/* files:

      $ make generate_locales LANGS="sjn tlh"

    Edit the locales/*/out.gotext.json translations into locales/*/messages.gotext.json.

    To rebuild the locales:

      $ make locales

    Report an issue

    When you report an issue include the following information:

    • what you expected to see
    • what you got
    • the version of the program. You can check the version on the about page.
    • the logs of the program. The location of the logs depends on the OS:
      • linux: /home/<your user>/.config/leap/bitmaskd.log & /home/<your user>/.config/leap/systray.log
      • OSX: /Users/<your user>/Library/Preferences/leap/systray.log, /Applications/RiseupVPN.app/Contents/helper/helper.log & /Applications/RiseupVPN.app/Contents/helper/openvpn.log
      • windows: C:\Users\<your user>\AppData\Local\leap\systray.log, C:\Program Files\RiseupVPN\helper.log & C:\Program Files\RiseupVPN\openvp.log