Portable VeraCrypt - how to run

Questions about applications and software
Forum rules
Before you post please read how to get help
MarshalM
Level 1
Level 1
Posts: 19
Joined: Wed Dec 24, 2014 6:44 am

Portable VeraCrypt - how to run

Postby MarshalM » Thu Nov 16, 2017 7:49 am

Hello,
I'd like to run VeraCrypt portable.
So far I already did:
1) Downloaded VeraCrypt Linux Setup 1.21 from https://veracrypt.codeplex.com/releases/view/631440
2) Extracted install scripts from veracrypt-1.21-setup.tar.bz2
3) Run veracrypt-1.21-setup-gui-x86
4) Extracted .tar Package FIle to run wihtout instalation
5) Extracted veracrypt_1.21_i386.tar.gz
6) Try to few different way to run portable VeraCrypt
Unfortunetly it wan't to starts and I have no idea how to run VC wihtout instalation.
Can anyone help me?

User avatar
administrollaattori
Level 12
Level 12
Posts: 4391
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Portable VeraCrypt - how to run

Postby administrollaattori » Thu Nov 16, 2017 9:01 am

./veracrypt-1.21-setup-gui-x64 ?

MarshalM
Level 1
Level 1
Posts: 19
Joined: Wed Dec 24, 2014 6:44 am

Re: Portable VeraCrypt - how to run

Postby MarshalM » Mon Nov 20, 2017 10:57 am

I run % x86 because of the version of my OS.
So what should I do if my OS is 32-bit and not 64?

User avatar
administrollaattori
Level 12
Level 12
Posts: 4391
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Portable VeraCrypt - how to run

Postby administrollaattori » Mon Nov 20, 2017 2:05 pm

MarshalM wrote:I run % x86 because of the version of my OS.
So what should I do if my OS is 32-bit and not 64?

Code: Select all

./veracrypt-1.21-setup-gui-x86

MarshalM
Level 1
Level 1
Posts: 19
Joined: Wed Dec 24, 2014 6:44 am

Re: Portable VeraCrypt - how to run

Postby MarshalM » Tue Nov 21, 2017 7:42 am

In my first post I wrote in 3), that I already "Run veracrypt-1.21-setup-gui-x86", so why You telling me to ./veracrypt-1.21-setup-gui-x86?
I really don't understand what You want to tell me this way.

377Ohms
Level 1
Level 1
Posts: 34
Joined: Mon Nov 09, 2015 10:49 pm

Re: Portable VeraCrypt - how to run

Postby 377Ohms » Tue Nov 21, 2017 10:10 am

MarshalM wrote:Hello,
I'd like to run VeraCrypt portable.
So far I already did:
1) Downloaded VeraCrypt Linux Setup 1.21 from https://veracrypt.codeplex.com/releases/view/631440
2) Extracted install scripts from veracrypt-1.21-setup.tar.bz2
3) Run veracrypt-1.21-setup-gui-x86
4) Extracted .tar Package FIle to run wihtout instalation
5) Extracted veracrypt_1.21_i386.tar.gz
6) Try to few different way to run portable VeraCrypt
Unfortunetly it wan't to starts and I have no idea how to run VC wihtout instalation.
Can anyone help me?

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

@MarshalM,

Unlike in VeraCrypt for Windows, as of my post time there is no "Tools -> Traveler Disk Setup" for setting up a "Portable Mode" disk in VeraCrypt for Linux. Also, I have never been able to get a VeraCrypt for Windows Traveler Disk to work in Linux under Wine. The Linux VeraCrypt binaries are expecting a full install in a working system.

So...

I looked at VeraCrypt and saw the Linux installation is driven by an install script, plus there's a complete uninstall script provided in the install which makes upgrading/uninstall simple. There is no package manager involved, and no adding/managing of repositories is required.

The VeraCrypt install I did a few months ago was for the stable GUI version of VeraCrypt v1.18a in Mint Cinnamon v17.2 (32-bit). At my post time the current stable version of VeraCrypt for Linux is now v1.21.

FWIW I took verbose step-by-step install notes. See below. Good luck, David...

* Installing VeraCrypt (Linux):

Ref: How To Install VeraCrypt 1.0e On The Most Popular Linux Systems

http://linuxg.net/how-to-install-veracr ... x-systems/

1. Download the Setup .tar.bz2 archive to anywhere.

2. Make a subdirectory and extract the .tar.bz2 to it while preserving the file structure (the built-in Archive Manager app included in Mint works OK). Four new subdirectories will be ectracted withing the subdirectory you just created, two for the 64 & 32-bit command line versions, and two for the 64 & 32-bit GUI line versions.

$ ~/My_Pgms/VeraCrypt $ ls -ahlgs
total 44M
4.0K drwxr-xr-x 2 drone 4.0K Sep 11 19:43 v1.18
17M -rw-r--r-- 1 drone 17M Sep 11 19:31 veracrypt-1.18-setup.tar.bz2

$ ~/My_Pgms/VeraCrypt/v1.18 $ ls -ahlgs
total 17M
4.0K drwxr-xr-x 2 drone 4.0K Sep 11 19:43 .
4.0K drwxr-xr-x 3 drone 4.0K Sep 11 19:58 ..
3.5M -r-xr-xr-x 1 drone 3.5M Aug 18 04:12 veracrypt-1.18-setup-console-x64
3.5M -r-xr-xr-x 1 drone 3.5M Aug 18 03:59 veracrypt-1.18-setup-console-x86
4.7M -r-xr-xr-x 1 drone 4.7M Aug 18 04:11 veracrypt-1.18-setup-gui-x64
4.7M -r-xr-xr-x 1 drone 4.7M Aug 18 03:57 veracrypt-1.18-setup-gui-x86

We are running Linux-Mint Cinnamon 32-bit, so we will be installing veracrypt-1.18-setup-gui-x86 in this example.

3. Run the setup file then extract only:

$ sudo ./veracrypt-1.18-setup-gui-x86

[sudo] password for drone:
Verifying archive integrity... 100% All good.
Uncompressing VeraCrypt 1.18 Installer 100%

Uninstall veracrypt with 'veracrypt-uninstall.sh'

'veracrypt_1.18_i386.tar.gz' extracted and placed in '/tmp'

Before extraction:

drone@S20-30-01 /tmp $ ls -ahlgs
total 44K
4.0K drwxrwxrwt 10 root 4.0K Sep 16 17:01 .
4.0K drwxr-xr-x 21 root 4.0K Dec 21 2015 ..
0 srwxr-xr-x 1 drone 0 Sep 16 08:06 gedit.drone.1254220834
4.0K drwxr-xr-x 2 mdm 4.0K Sep 16 01:28 hsperfdata_mdm
4.0K drwx------ 2 mdm 4.0K Sep 16 01:28 icedteaplugin-mdm-DWmqrY
4.0K drwxrwxrwt 2 root 4.0K Sep 16 01:28 .ICE-unix
4.0K drwxrwxrwx 2 drone 4.0K Sep 16 01:29 mintUpdate
4.0K drwx------ 2 drone 4.0K Sep 16 11:35 mozilla_drone0
4.0K drwx------ 2 mdm 4.0K Sep 16 01:28 pulse-PKdhtXMmr18n
4.0K drwx------ 2 drone 4.0K Sep 16 01:28 ssh-zkpGEMqQhXAb
4.0K -r--r--r-- 1 root 11 Sep 16 01:28 .X0-lock
4.0K drwxrwxrwt 2 root 4.0K Sep 16 01:28 .X11-unix

After extraction:

drone@S20-30-01 /tmp $ ls -ahlgs
total 4.7M
4.0K drwxrwxrwt 10 root 4.0K Sep 16 17:27 .
4.0K drwxr-xr-x 21 root 4.0K Dec 21 2015 ..
0 srwxr-xr-x 1 drone 0 Sep 16 08:06 gedit.drone.1254220834
4.0K drwxr-xr-x 2 mdm 4.0K Sep 16 01:28 hsperfdata_mdm
4.0K drwx------ 2 mdm 4.0K Sep 16 01:28 icedteaplugin-mdm-DWmqrY
4.0K drwxrwxrwt 2 root 4.0K Sep 16 01:28 .ICE-unix
4.0K drwxrwxrwx 2 drone 4.0K Sep 16 01:29 mintUpdate
4.0K drwx------ 2 drone 4.0K Sep 16 11:35 mozilla_drone0
4.0K drwx------ 2 mdm 4.0K Sep 16 01:28 pulse-PKdhtXMmr18n
4.0K drwx------ 2 drone 4.0K Sep 16 01:28 ssh-zkpGEMqQhXAb
0 -rw------- 1 root 0 Sep 16 17:23 tmp.HjUd3qwnwT
4.7M -rw-r--r-- 1 root 4.7M Sep 16 17:24 veracrypt_1.18_i386.tar.gz
4.0K -r--r--r-- 1 root 11 Sep 16 01:28 .X0-lock
4.0K drwxrwxrwt 2 root 4.0K Sep 16 01:28 .X11-unix

This is the file we're interested in:

veracrypt_1.18_i386.tar.gz

Examining the contents of the above .tar.gz archive, we see it is just a mirror of the entire full install. If one were to untar and unpack this archive, it would be the same as doing a full install of the setup package. In other words: THIS IS NOT A STAND ALONE VERSION OF VERACRYPT. This is unlike the Windows version - it seems.

Regardless, the extracted archive is quite useful for examining what the full install is going to do to your machine eventually. For example we look at the contents of the uninstall script contained within the archive:

/usr/bin/veracrypt-uninstall.sh

This is the uninstall script:

Code: Select all

#!/bin/sh
V="$(mount | grep veracrypt_aux_mnt)"
[ "$V" ] && echo Error: All volumes must be dismounted first. && exit 1
rm -f /usr/bin/veracrypt
rm -f /usr/share/veracrypt/doc/License.txt
rm -f '/usr/share/veracrypt/doc/VeraCrypt User Guide.pdf'
rm -f /usr/share/applications/veracrypt.desktop
rm -f /usr/share/pixmaps/veracrypt.xpm
rmdir /usr/share/veracrypt/doc /usr/share/veracrypt
echo VeraCrypt uninstalled.
rm -f /usr/bin/veracrypt-uninstall.sh

At this point we just delete the extracted archive and proceed with the full installation.

3. Run the setup file then select install:

$ sudo ./veracrypt-1.18-setup-gui-x86

VeraCrypt installs and runs OK, there is a VeraCrypt Menu item automatically installed under Accessories.

4. Uninstalling VeraCrypt:

To uninstall VeraCrypt:

$ sudo /usr/bin/veracrypt-uninstall.sh

Note installing VeraCrypt removes any traces of previously installed or extracted VeraCrypt files from /tmp/

MarshalM
Level 1
Level 1
Posts: 19
Joined: Wed Dec 24, 2014 6:44 am

Re: Portable VeraCrypt - how to run

Postby MarshalM » Wed Nov 22, 2017 3:52 am

What a shame there is no way to run VeraCrypt as portable.
I already install VeraCrypt in few different Linux distro and after install I had no problem to use it.
Unfortunately I wanted to run it in so-called portable mode, but as You said, there is no way to do this.
Anyway I would like to thank You for Your answer. I think this topic will be a valuable for any other who looks for help with run VeraCrypt in Linux.


Return to “Software & Applications”