Portable VeraCrypt - how to run

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
MarshalM

Portable VeraCrypt - how to run

Post by MarshalM »

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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kukamuumuka

Re: Portable VeraCrypt - how to run

Post by kukamuumuka »

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

Re: Portable VeraCrypt - how to run

Post by MarshalM »

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

Re: Portable VeraCrypt - how to run

Post by kukamuumuka »

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

Re: Portable VeraCrypt - how to run

Post by MarshalM »

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

Re: Portable VeraCrypt - how to run

Post by 377Ohms »

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

Re: Portable VeraCrypt - how to run

Post by MarshalM »

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.
Locked

Return to “Software & Applications”