The officially official Devuan Forum!

You are not logged in.

#1 2023-06-28 17:55:57

mclien
Member
Registered: 2020-02-29
Posts: 99  

VeraCrypt installation method?

as I need a usb stick, which should be encrypted and be usable on Linux and Windows my search came up with VeraCrypt.

I read some here in the forum, too. But I'm missing what the method for installation should be.
I didn't find it with apt, so according to the VeraCrypt website it leaves me with the tar.gz installation or deb-packages.

Has anyone experience to share on that?

Offline

#2 2023-06-28 18:18:39

tomec
Member
Registered: 2023-06-22
Posts: 7  

Re: VeraCrypt installation method?

All the .deb packages give dependency errors, the only functional one was the generic tar archive: I unpacked it and successfully ran the x64 gtk binary inside.

Offline

#3 2023-06-28 19:17:11

mclien
Member
Registered: 2020-02-29
Posts: 99  

Re: VeraCrypt installation method?

Thanks, will do it that way then

Offline

#4 2023-06-28 19:38:27

mclien
Member
Registered: 2020-02-29
Posts: 99  

Re: VeraCrypt installation method?

Hm, I got something wrong, I guess.
Tried the ..-gtk3-gui and was asked for admin rights. Does this work only with sudo rights? So do I need to have the user in sudoers?
EDIT:
Still missing something.
I change in the dir

./veracryp-..-setup-gtk3-gui

I get a (gtk) popup, which asks my pw,
I get an ok for uncompressing the installer
While the 2nd terminal just gives a "Press retun to exit"

That's all. No idea where I'm lost here..

Last edited by mclien (2023-06-28 20:01:48)

Offline

#5 2023-06-28 21:22:36

tylerdurden
Member
From: /home
Registered: 2018-07-16
Posts: 39  

Re: VeraCrypt installation method?

Hi mclien,

Have you tried zulucrypt-gui? It's only an apt-get away.

It may also be worth learning how to do this manually with LUKS+LVM. This can come in quite handy if you don't have a GUI available and applies to encrypted volumes on regular hard drives as well.

Here's an example for a USB stick, assuming the drive is on /dev/sdb:

# set up encryption
sudo cryptsetup -s 512 -y luksFormat /dev/sdb1

# open encrypted volume
sudo cryptsetup luksOpen /dev/sdb1 data

# create physical volume
pvcreate /dev/mapper/data

# create volume group
vgcreate usb-vg /dev/mapper/data 

# create logical volume
lvcreate -l 100%FREE -n mydata usb-vg

# make nodes
sudo vgscan --mknodes

# activate logical volume
sudo vgchange -ay

# create FS (e.g. XFS)
sudo mkfs.xfs -L USBSTICK /dev/usb-vg/mydata
 
# mount 
sudo mount /dev/usb-vg/mydata /mnt

# umount
sudo umount /mnt

# deactivate logical volume
sudo lvchange -an usb-vg/mydata

# close LUKS partition
sudo cryptsetup close data

# eject drive
sudo eject /dev/sdb

Hope this helps.

Offline

#6 2023-06-28 23:54:37

tomec
Member
Registered: 2023-06-22
Posts: 7  

Re: VeraCrypt installation method?

mclien wrote:

Hm, I got something wrong, I guess.
Tried the ..-gtk3-gui and was asked for admin rights. Does this work only with sudo rights? So do I need to have the user in sudoers?

Yes, it will do a system-wide installation so it definitely needs the admin password.

Offline

#7 2023-06-29 19:57:01

rolfie
Member
Registered: 2017-11-25
Posts: 1,171  

Re: VeraCrypt installation method?

As a long time user: TC and Veracrypt before 1.24 were .tar.bz2 files. Extracted to /tmp, always used the gui versions. From 1.24 onward Veracrypt offers .deb packages.

Installation was like:

# ./veracrypt-1.19-setup-gui-x64

From 1.24 onward use

# dpkg -i *.deb

Missing dependencies were easily fixe with

# apt --fix-broken install

Using TC/VC as user requires sudo and an entry in the sudoers:

user  ALL=(root) NOPASSWD: /usr/bin/veracrypt

Add the correct username for "user".

Offline

Board footer