Jump to content
Not connected, Your IP: 3.144.235.138
politas

ANSWERED Ok, I compiled the source code, now what?

Recommended Posts

I've followed the instructions for building the AirVPN client here, and it seems to run just fine. The downloaded copy doesn't seem to like the newer version of Mono I'm running, but building it on my machine seems to work ok when I run it (so far).

 

How do I make a .deb package or otherwise install it? I've tried the Tools|Build Package, but that gets me a tar.gz file which I'm really not sure about, and I'm also unsure as to exactly which segments I need to select anyway.

Share this post


Link to post

After building, run the project "Deploy" to generate .deb files (will be placed in /repository/ directory).

Why you need to compile and rebuild? You have special needs (like patch) or error with standard AirVPN files ?

Share this post


Link to post

The UI keeps freezing when I click on a checkbox or a button in a dialog box when I use the portable version, and trying to install the .deb file leaves apt-get complaining about a broken package (airvpn wants a lower Mono version that I'm using).

Share this post


Link to post

I don't get a .deb file when I run the "Deploy" item (though I do get "mono" and "portable" tarballs). Here's the results I do get:

 

 -- AirVPN Team <info@airvpn.org>  Fri, 16 May 2014 23:26:39 +0000
 
airvpn (2.0) stable; urgency=low
 
  * [new] First Beta Release
 
 -- AirVPN Team <info@airvpn.org>  Fri, 09 May 2014 00:00:00 +0000
 
 
vim: et
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 11897    0 11897    0     0   7300      0 --:--:--  0:00:01 --:--:--  7298
Shell: gzip -9 "/tmp/airvpn_deploy/airvpn_linux_x64_debian/usr/share/doc/airvpn/changelog"
Shell: chmod 644 "/tmp/airvpn_deploy/airvpn_linux_x64_debian/usr/share/doc/airvpn/changelog.gz"
Shell: mono "/tmp/airvpn_deploy/airvpn_linux_x64_debian/usr/lib/AirVPN/AirVPN.exe" -cli -help
Output: You need root access for this program (to alter routing table)
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
 
Unhandled Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path "/tmp/airvpn_deploy/airvpn_linux_x64_debian/usr/share/man/man1/airvpn.1".
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, System.String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamWriter.CreateFile (System.String path, Boolean append, Boolean checkHost) [0x00000] in <filename unknown>:0 
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize, Boolean checkHost) [0x00000] in <filename unknown>:0 
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0 
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool,System.Text.Encoding)
  at System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0 
  at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0 
  at Deploy.Program.Main (System.String[] args) [0x00d5c] in /home/politas/Projects/AirVPN/airvpn-client.git/trunk/src/Deploy/Program.cs:351 
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path "/tmp/airvpn_deploy/airvpn_linux_x64_debian/usr/share/man/man1/airvpn.1".
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, System.String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamWriter.CreateFile (System.String path, Boolean append, Boolean checkHost) [0x00000] in <filename unknown>:0 
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize, Boolean checkHost) [0x00000] in <filename unknown>:0 
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0 
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool,System.Text.Encoding)
  at System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0 
  at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0 
  at Deploy.Program.Main (System.String[] args) [0x00d5c] in /home/politas/Projects/AirVPN/airvpn-client.git/trunk/src/Deploy/Program.cs:351 
The application was terminated by a signal: SIGHUP

Share this post


Link to post

It does appear to have given me a working portable version, so I can reliably connect again, at least.

 

It would be nice to have a menu item, though.

Share this post


Link to post

To get a menu item for your compiled portable version, create a text file called AirVPN.desktop and place it in

~/.local/share/applications/

or:

/usr/share/applications/

 

Here are the contents of AirVPN.desktop as it is found in the Git repo (resources/debian/usr/share/applications/AirVPN.desktop)

 

[Desktop Entry]
Name=AirVPN
Comment=AirVPN
Exec=/usr/bin/airvpn
Icon=/usr/share/pixmaps/AirVPN.png
Terminal=false
Type=Application
Categories=GNOME;Network
 

You would only need to change Exec= and Icon= to your custom paths.

The icon AirVPN.png can also be found in your cloned Git repo, resources/debian/usr/share/pixmaps/AirVPN.png


all of my content is released under CC-BY-SA 2.0

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...