23.04.2014, 08:01 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
Luisss
Titel: Truecrypt 4.2a  BeitragVerfasst am: 21.11.2006, 07:21 Uhr



Anmeldung: 21. Nov 2006
Beiträge: 8

I'm struggling in installing truecrypt 4.2a on kanotix with the latest update-dist from Kanotix-Easter 2006.
My kernel is 2.6.18.

I've got issues with dm.h and module not ok for kernel.



Could anyone provide me step by step instuction and (would be wonderful) precompiled deb binaries for that kernel -2.6.18- ?

Thank you so much.

Luisss
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Luisss
Titel: RE: Truecrypt 4.2a  BeitragVerfasst am: 23.11.2006, 19:27 Uhr



Anmeldung: 21. Nov 2006
Beiträge: 8

Ok, almost done (learning some german too) Auf den Arm nehmen :

What you need:

- download http://www.kanotix.com/files/install-ke ... vanilla.sh
- download truecrypt source code from http://www.truecrypt.org/downloads.php


STEPS:
A) install kernel sources
cd /usr/src/
sudo install-kernel-source-vanilla.sh #to install the kernel sources and patches for kanotix

B) build and compile truecrypt
tar xvfz truecrypt-4.2a-source-code.tar.gz
cd truecrypt-4.2a/Linux/
mcedit Kernel/Dm-target.c
after the lines
--------------------------
#endif

int trace_level = 0;

#define MSG_PREFIX "truecrypt: "
---------------------------
insert:
#define DM_MSG_PREFIX MSG_PREFIX
--------------------------------------

TO AVOID THE ISSUE AT *)
mcedit Kernel/Cli/Cli.c
change
if (!Execute (TRUE, "modprobe", "truecrypt", NULL)

to
if (!Execute (TRUE, "modprobe", "--force-vermagic","truecrypt", NULL)

(not good solution but works)

then:
sudo ./build.sh
sudo ./install.sh


END

*)
Without forcing vermagic you can use truecrypt but...Geschockt

you will receive the message:
insmod: error inserting '/usr/share/truecrypt/kernel/truecrypt-2.6.18.ko': -1 Invalid module format
FATAL: Error inserting truecrypt (/lib/modules/2.6.18.1-kanotix-1/extra/truecrypt.ko): Invalid module format
truecrypt: Failed to load TrueCrypt kernel module

That is due to the following reason:

sudo modinfo fuse
filename: /lib/modules/2.6.18.1-kanotix-1/kernel/fs/fuse/fuse.ko
alias: char-major-10-229
author: Miklos Szeredi <miklos@szeredi.hu>
description: Filesystem in Userspace
license: GPL
vermagic: 2.6.18.1-kanotix-1 SMP preempt mod_unload 586 gcc-4.1
depends:

sudo modinfo truecrypt
filename: /lib/modules/2.6.18.1-kanotix-1/extra/truecrypt.ko
author: TrueCrypt Foundation
description: device-mapper target for encryption and decryption of TrueCrypt volumes
license: GPL and additional rights
vermagic: 2.6.18 SMP preempt mod_unload 586 gcc-4.1
depends:
parm: trace:Trace level (int)

REASON: vermagic IS DIFFERENT

to overcame the issue,
before launching truecrypt,
use

modprobe -f truecrypt

that will force module insertion


Zuletzt bearbeitet von Luisss am 24.11.2006, 13:11 Uhr, insgesamt ein Mal bearbeitet
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
josk
Titel: RE: Truecrypt 4.2a  BeitragVerfasst am: 23.11.2006, 20:35 Uhr



Anmeldung: 30. Mar 2006
Beiträge: 43
Wohnort: HELSINKI
I hope somedays there will be deb-package but now I'll try to compile it by myself

_________________
Kanotix wallpapers
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Luisss
Titel:   BeitragVerfasst am: 24.11.2006, 06:59 Uhr



Anmeldung: 21. Nov 2006
Beiträge: 8

----


Zuletzt bearbeitet von Luisss am 24.11.2006, 16:43 Uhr, insgesamt ein Mal bearbeitet
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Luisss
Titel:   BeitragVerfasst am: 24.11.2006, 10:29 Uhr



Anmeldung: 21. Nov 2006
Beiträge: 8

----


Zuletzt bearbeitet von Luisss am 24.11.2006, 16:43 Uhr, insgesamt ein Mal bearbeitet
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
hifi25nl
Titel:   BeitragVerfasst am: 24.11.2006, 16:15 Uhr



Anmeldung: 16. Jun 2005
Beiträge: 72

I have tried your suggestions, however...:
Zitat:

modprobe truecrypt
FATAL: Error inserting truecrypt (/lib/modules/2.6.18-mz-rt5/extra/truecrypt.ko): Invalid module format
modprobe -f truecrypt
FATAL: Error inserting truecrypt (/lib/modules/2.6.18-mz-rt5/extra/truecrypt.ko): Unknown symbol in module, or unknown parameter (see dmesg)


Dmesg output:
Zitat:

truecrypt: version magic '2.6.18 preempt mod_unload 586 gcc-4.1' should be '2.6.18-mz-rt5 preempt mod_unload 586 gcc-4.1'
truecrypt: no version magic, tainting kernel.
truecrypt: Unknown symbol kmap_atomic
truecrypt: Unknown symbol kunmap_atomic


Piero
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Luisss
Titel:   BeitragVerfasst am: 24.11.2006, 16:45 Uhr



Anmeldung: 21. Nov 2006
Beiträge: 8

Piero, I'm not sure but can be linked to the kernel source.

Have you downloaded it with

http://www.kanotix.com/files/install-ke ... vanilla.sh

?
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
hifi25nl
Titel:   BeitragVerfasst am: 24.11.2006, 16:48 Uhr



Anmeldung: 16. Jun 2005
Beiträge: 72

Yes!

Piero
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
hifi25nl
Titel:   BeitragVerfasst am: 24.11.2006, 17:18 Uhr



Anmeldung: 16. Jun 2005
Beiträge: 72

I have some error messages during compilation, but the module is compiled at last.
Zitat:

Configuring kernel source in /usr/src/linux-2.6.18-mz-rt5... .config:99:warning: trying to assign nonexistent symbol HIGH_RES_TIMERS
.config:151:warning: trying to assign nonexistent symbol PREEMPT_DESKTOP
.config:152:warning: trying to assign nonexistent symbol PREEMPT_RT
.config:154:warning: trying to assign nonexistent symbol PREEMPT_SOFTIRQS
.config:155:warning: trying to assign nonexistent symbol PREEMPT_HARDIRQS
.config:157:warning: trying to assign nonexistent symbol CLASSIC_RCU
.config:158:warning: trying to assign nonexistent symbol PREEMPT_RCU
.config:159:warning: trying to assign nonexistent symbol RCU_TRACE
.config:160:warning: trying to assign nonexistent symbol ASM_SEMAPHORES
.config:211:warning: trying to assign nonexistent symbol GENERIC_TIME_VSYSCALL
.config:2058:warning: trying to assign nonexistent symbol RTC_HISTOGRAM
.config:2059:warning: trying to assign nonexistent symbol BLOCKER
.config:2060:warning: trying to assign nonexistent symbol LPPTEST
.config:3359:warning: trying to assign nonexistent symbol PROFILE_NMI
.config:3373:warning: trying to assign nonexistent symbol TIMER_STATS
.config:3384:warning: trying to assign nonexistent symbol WAKEUP_TIMING
.config:3385:warning: trying to assign nonexistent symbol WAKEUP_LATENCY_HIST
.config:3386:warning: trying to assign nonexistent symbol CRITICAL_PREEMPT_TIMING
.config:3387:warning: trying to assign nonexistent symbol CRITICAL_IRQSOFF_TIMING
.config:3388:warning: trying to assign nonexistent symbol LATENCY_TIMING
.config:3389:warning: trying to assign nonexistent symbol LATENCY_TRACE
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
makke
Titel:   BeitragVerfasst am: 24.11.2006, 17:35 Uhr
Team Member
Team Member


Anmeldung: 02. Jan 2005
Beiträge: 904
Wohnort: Hagen
There is no way to support realtime-kernels.
If you need support try a kernel from http://debian.tu-bs.de/project/kanotix/kernel/
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Luisss
Titel:   BeitragVerfasst am: 17.12.2006, 15:22 Uhr



Anmeldung: 21. Nov 2006
Beiträge: 8

After some tests of truecrypt (both compiled for kernel 2.6.16 and 2.6.1Cool with "containers" shared between Linux and Windows I started using tcmount.sh.

tcmount.sh Logic by Frank.Jacobsen (http://hack-o-master.de.vu) integrates in kde, contextual menus for Truecrypt making easier the basic Truecrypt operations.

In order to let any user use truecrypt I did the following:
- when installing truecrypt I've choosen the option "allow all users Y"
- I made the following modifications to /usr/local/sbin/tcmount.sh:

A) I commented out the following lines to let every user to use tcmount.sh:
(take care just of the ones that are not already commented out)

VERSION="v0.0030d, 20060709-3"

# Only Root can use this ('stolen' from directcrypt)
#################### All next lines commented out by LP20061125 to allow user mount
####### in add, instead of media is used *probably* default tc file directory to create mount point
#if (($UID)); then
# ARGS="$0"
# if (($#)); then
# ARGS="$ARGS $1 \"$2\"" # (!!!) sonnst nix mit Leerzeichenübergabe im 2ten Parameter
# else
# ARGS="$ARGS -u \"$(whoami)\""
# fi
#
#
# if [ -x /usr/bin/kanotix-su ]; then
# sudo kanotix-su "$ARGS"
# elif [ -x /usr/bin/kdesu ]; then
# kdesu "$ARGS"
# else
# su -c "$ARGS"
# fi
#
# exit 0
#fi
############################

B) commented out as following to let the mounting directory to be created in
/home/user/

(take care just of the ones that are not already commented out)

# KDE-Media Pfad (media:) zu Filesystem-Pfad (/media)
FULL_FILE="${FULL_FILE/media:/\/media}"
# Ändere '/' im Pfad zu '_' (und ' ' zu '_')
#MOUNTPOINT="/media/${FULL_FILE//\//_}"; MOUNTPOINT="${MOUNTPOINT//\ /_}" #LP20061125
MOUNTPOINT="${FULL_FILE//\//_}"; MOUNTPOINT="${MOUNTPOINT//\ /_}"

Finally I thought that it could be useful to have a command to go through each mounted volume and ask to eventually umount it (to leave a cleaner home dir)

So I added the following option at the end of tcmount (just before the word "esac"):

*** WARNING, USE AT YOUR OWN RISK: It worked for me, but be careful because you could loose your data since I haven't tested completely***


C) In add, I've made the following modifications to the tc_umount portion:

# Truecrypt Container aushängen
tc_umount() {
local STATUS
XDIALOG_FORCE_AUTOSIZE="1"

#LP20061216
local VAL
VAL=0
if [ "$FORCE" != "force" ]; then
Xdialog --title "${MSG_FRAGE}" \
--yesno $"Truecrypt-Container\n ${FULL_FILE} unmounten ?" 0 0
VAL=$?
fi
#################LP
if [ $VAL -eq 0 ]; then #was if [ $? -eq 0 ]; then
debug 1 " tc_umount: truecrypt -d ${MOUNTPOINT}"
truecrypt -d "${MOUNTPOINT}"
STATUS=$?
if [ "${STATUS}" != "0" ]; then
Xdialog --title "${MSG_ERROR}" \
--msgbox $"Truecrypt-Container\n ${FULL_FILE} unmounting failed." 0 0
Xdialog --left --wrap --title $"Output of lsof ${MOUNTPOINT}:" \
--msgbox "$(lsof ${MOUNTPOINT})\n" 0 0
else
sleep 1
rmdir -p "${MOUNTPOINT}"
if [ "$FORCE" != "force" ]; then #LP
Xdialog --title "${MSG_STATUS}" \
--msgbox $"Truecrypt-Container\n ${FULL_FILE} unmounted." 0 0
fi #LP
fi
fi
}


So if I have a shortcut to
sudo tcmount.sh umountall
the script cycle through all the opened containers and ask for closing it confirming eventually the result.

Instead a shortcut to
sudo tcmount.sh umountall force
close all the opened containers without warning.

As said, it worked for me but *USE AT YOUR OWN RISK*

Find attached the script modified as said.



tcmount.gz
 Beschreibung:

Download
 Dateiname:  tcmount.gz
 Dateigröße:  3.02 KB
 Heruntergeladen:  284 mal

 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.