[kinda solved] truecrypt V7 and Porteus V0.8

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[kinda solved] truecrypt V7 and Porteus V0.8

Post#1 by Rava » 01 Apr 2011, 03:24

I created a module for Porteus V0.8 (PAE version) by using tgz2lzm truecrypt-7.0-i486-1alien.tgz.
So far truecrypt seems to run okay as non-root-user, but it fails to format the container file - it gives an error message "sudo not found".

Has anyone experienced similar with truecrypt?

I currently cannot start Porteus V1.0 beta (since I only have it on the same machine that runs the V08 PAE :pardon: ) but I am quite sure the 1.0 beta also only has su and no sudo, or am I mistaken?

So far I just re-start it all as root and I will put in here an update if that helps the issue, but it is not the solution I would like... :bad:

//edit
Okay, according to http://en.gentoo-wiki.com/wiki/TrueCrypt
Truecrypt needs root privileges to work: this procedure will allow normal users to use it, also giving writing permissions to mounted volumes.
First of all, you must have sudo installed.
So it seems, for now I either need to add sudo to Porteus or run truecrypt as root... :crazy:
Cheers!
Yours Rava

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#2 by brokenman » 01 Apr 2011, 11:21

Have you tried adding a symlink sudo to point to su?
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#3 by Rava » 01 Apr 2011, 14:30

brokenman wrote:Have you tried adding a symlink sudo to point to su?

Code: Select all

# apropos symlink
symlink: nothing appropriate
You mean more than a simple "ln -s su sudo" I presume?

Code: Select all

[as root: ]
# cd /bin/
bash-4.1# ln -s su sudo

[as quest:]
# sudo konqeror
Unknown id: konqeror
Cheers!
Yours Rava

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#4 by brokenman » 01 Apr 2011, 22:21

nope. if you can't modify the part that looks for sudo ... just point it to su. ln -s /bin/su /usr/bin/sudo
Might be worth a try. Here are some other options.

Edit the kmenu item that starts it with one of these:
su - -c "truecrypt"
kdesu truecrypt
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#5 by Rava » 01 Apr 2011, 22:28

brokenman wrote:nope. if you can't modify the part that looks for sudo ... just point it to su. ln -s /bin/su /usr/bin/sudo
What is the difference to my version?

Syntax is ln -s target link-name...

Your link is in another folder while mine is in the same, but that should not make the difference?
Or does it?

Currently I run Slax 6.1.2 and so cannot try the other suggestion, but I will when I am back to either Porteus V08 or 1.0 beta. :)
Cheers!
Yours Rava

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#6 by brokenman » 01 Apr 2011, 23:07

What is the difference to my version?
It will depend on what directory you issue the command from. If you are in /root for example and issue your version then no programs will recognize them. My version ensures that both su and sudo are in your current $PATH. (echo $PATH)

Shouldn't matter what OS you are in ... just activate your truecrypt module then right click on kmenu and edit the item, changing it's command to kdesudo truecrypt. When you start it up, it should require root password and then you will be good to go.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#7 by Rava » 02 Apr 2011, 22:44

brokenman wrote:Shouldn't matter what OS you are in ... just activate your truecrypt module then right click on kmenu and edit the item, changing it's command to kdesudo truecrypt. When you start it up, it should require root password and then you will be good to go.
When I run 1.0 beta again I will create a version with most of the KDE stuff removed (a revamped version for 1.0 with the changed modules so you can more easily cut out all KDE stuff and still have all dependencies and such for LXDE still in it would be neat, but it seems that will take some time...

At least I presume fanthom already created such a version fro himself since he told us about the changed module orders and logic...
Cheers!
Yours Rava

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#8 by Hamza » 03 Apr 2011, 13:02

Please respect the rules with [Solved] part in the title.
NjVFQzY2Rg==

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#9 by Rava » 03 Apr 2011, 22:45

Hamza wrote:Please respect the rules with [Solved] part in the title.
Then I either have to remove the "solved"... since ut is not really solved so far. Or I keep it like that.

Since it is not solved like it should.

Any suggestions?
Cheers!
Yours Rava

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#10 by brokenman » 03 Apr 2011, 23:50

I think Ahau is creating a 'skin and bones' version of beta ... maybe you could wait for that and then add lxde requirements.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#11 by Rava » 04 Apr 2011, 11:15

brokenman wrote:I think Ahau is creating a 'skin and bones' version of beta ... maybe you could wait for that and then add lxde requirements.
Skin and bones version sounds great...

Anyhow, slightly off topic: I created a fix for SP1 for V1.0 beta - fixing 2 errors in activate script.
Now I wonder if I should upload that and put an info in the 1.0beta 64 bit thread?
Cheers!
Yours Rava

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#12 by Ahau » 04 Apr 2011, 14:23

brokenman wrote:
I think Ahau is creating a 'skin and bones' version of beta ... maybe you could wait for that and then add lxde requirements.
What I have right now would be pretty painful for daily use, unless your hardware is more than a decade old. I've eliminated xorg, and am using Xvesa instead, which is a self-contained X-server. It has no accelleration, so scrolling through text and internet pages is rather jumpy. The good news is that it loads to icewm in 10 seconds on my machine :D Adding LXDE would be relatively easy, I'd just add the module from beta and run slackyd -u and slackyd -d to find missing dependencies.

That said, if your machine is newer than 10 years, you'd probably be better off leaving xorg in place, pulling KDE, and finding any missing dependencies, as you suggested. If I continue my project (uncertain for now, it's mostly a sandbox for me to learn linux), I plan on adding a lightweight xorg server, but I really don't know if I'll be able to make something light enough to warrant dropping the standard porteus module.
Anyhow, slightly off topic: I created a fix for SP1 for V1.0 beta - fixing 2 errors in activate script.
Now I wonder if I should upload that and put an info in the 1.0beta 64 bit thread?
Yes, please do.
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#13 by brokenman » 09 Apr 2011, 00:24

Please pass the fix onto fanthom or myself. I believe fanthom is making a change in activate script to combat an aufs bug. The fixes are welcome (very), i'd just like to make sure they don't cross the same ground as eachother.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#14 by Rava » 09 Apr 2011, 06:52

brokenman wrote:Please pass the fix onto fanthom or myself. I believe fanthom is making a change in activate script to combat an aufs bug. The fixes are welcome (very), i'd just like to make sure they don't cross the same ground as eachother.
Okay... I uploaded the SP1b in the "Porteus-v1.0-beta-x86_64 is ready :)" thread... Then fanthom uploaded SP2 just shortly after. :wink:
But I could PM you the lines I changed anyway, but I not found the same error in SP2 and therefore not created a SP2b...
Cheers!
Yours Rava

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: [kinda solved] truecrypt V7 and Porteus V0.8

Post#15 by brokenman » 12 Apr 2011, 00:01

Ok, all sorted. I thought it would be the case that SP2 fixed the activate prob.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply