![]() |
Permission problems after packaging
Hey guys,
Some time ago I started developing a front-end GUI for the truecrypt commandline util. My program is working pretty well, so I started packaging it for Maemo5. I couldn't find a real good tutorial that worked, so I tried a bit myself. I now have a .deb package (packaged with MADDE), which installs without problems. When I try to run the application from the menu, it never starts. I also tried to run it straight from the /usr/bin, than I get a permission denied error. I also chmodded the program to 755, and root had all the necessary permissions, yet the program doesn't start even with root permissions... I really hope that someone can help me with this problem, because it is becoming pretty annoying xD Because i'm sort of new to the developing on a UNIX system, please let me know what files i need to post, because I have no idea what you guys need as additional info. Thanks in advance, Mark |
Re: Permission problems after packaging
When you do "ls -l /path/to/file" you will see the files permissions.
It should look like this "rxwr-wr-w root root filename" r = read x= executable w= write Do you see the "x" on the file? Edit: Oops.. missed that you chmodded to 755... |
Re: Permission problems after packaging
Yeah, it returns something like:
-rwxr-xr-x 1 root root [date] [file] |
Re: Permission problems after packaging
Did you use python? How are you trying to launch the program?
Did you use /usr/bin/python /path/to/file (I am no expert either) |
Re: Permission problems after packaging
I'm using QT Creator, so it's written in C++. I then packaged it with MADDE. Installed it with admin permissions through XTerm, then tried to launch it using the menu (which only highlights the icon, nothing more), when that didn't work, i tried to launch the program by executing /usr/bin/truecryptgui (the location where the program is installed) as root.
|
Re: Permission problems after packaging
Quote:
Quote:
I hope this helps! |
Re: Permission problems after packaging
Quote:
|
Re: Permission problems after packaging
Quote:
And can you post the output of dpkg -L <your_package> I guess some files are missing in you .deb |
Re: Permission problems after packaging
Quote:
The output is: /usr /usr/bin /usr/bin/truecryptgui /usr/bin/truecryptgui/TruecryptGUI /usr/share /usr/share/applications /usr/share/applications/hildon /usr/share/applications/truecryptgui.desktop /usr/share/doc /usr/share/doc/truecryptgui /usr/share/doc/truecryptgui/copyright |
Re: Permission problems after packaging
and your command is
/usr/bin/truecryptgui/TruecryptGUI or /usr/bin/truecryptgui ? |
Re: Permission problems after packaging
The latter, so my command was not the correct one, I guess. But if I execute the first command I get:
/usr/sh: TruecryptGUI: not found while ls of the directory gives: TruecryptGUI so the file is there... |
Re: Permission problems after packaging
Quote:
|
Re: Permission problems after packaging
Quote:
libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0x400c8000) libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x40120000) libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x40c3e000) libpthread.so.0 => /lib/libpthread.so.0 (0x40f37000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x40f57000) libm.so.6 => /lib/libm.so.6 (0x41038000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x410ae000) libc.so.6 => /lib/libc.so.6 (0x410c0000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x411e5000) librt.so.1 => /lib/librt.so.1 (0x411f1000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x41200000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x412dc000) libz.so.1 => /usr/lib/libz.so.1 (0x41304000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4131c000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x4138f000) libEGL.so => /usr/lib/libEGL.so (0x413d0000) libSM.so.6 => /usr/lib/libSM.so.6 (0x413da000) libICE.so.6 => /usr/lib/libICE.so.6 (0x413e9000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0x41407000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x41417000) libXext.so.6 => /usr/lib/libXext.so.6 (0x41440000) libX11.so.6 => /usr/lib/libX11.so.6 (0x41457000) libdl.so.2 => /lib/libdl.so.2 (0x41546000) /lib/ld-linux.so.3 (0x40000000) libIMGegl.so => /usr/lib/libIMGegl.so (0x41551000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0x41565000) libXau.so.6 => /usr/lib/libXau.so.6 (0x4158b000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x41595000) libsrv_um.so => /usr/lib/libsrv_um.so (0x415a1000) |
Re: Permission problems after packaging
That all looks okay anyway. The only other things I can think of to check are "file /usr/bin/truecryptgui/TruecryptGUI" to make sure that it's compiled for the correct architecture (though I think ldd would have complained about that anyway), and installing strace and running "strace /usr/bin/truecryptgui/TruecryptGUI" to check where it's actually getting the error.
|
Re: Permission problems after packaging
This is really annoying. Now i am in the correct directory, and when i do 'ls' it returns "TruecryptGUI", however, when i then try to run this program or try to get any information about it xterm says it doens't exist... How's that possible?
|
Re: Permission problems after packaging
Quote:
|
Re: Permission problems after packaging
Have You done some ftp transfer?
|
Re: Permission problems after packaging
I just tried chowning it to user, doensn't have any effect. I can access file permissions trough "ls -l TruecryptGUI", but when i try for example "file TruecryptGUI" it says that the file cannot be found.
@m750 I have transferred the .deb file via FTP. Other than that I haven't used FTP for anything. |
Re: Permission problems after packaging
verify that the transfer is in BINARY mode
|
Re: Permission problems after packaging
Quote:
edit: I just checked if I can still run the program straight from QT without packaging, however, I get the error: chmod: /usr/local/bin/truecryptgui: No such file or directory Maybe it has something to do with the errors after packaging? Only I have no idea why it tries to chmod a directory /usr/local/bin, because that doesn't even exist... |
Re: Permission problems after packaging
somtime you wrote: truecryptgui and sometime you wrote TruecryptGUI.
Mybe the trouble is with lower/uper case? (check al files) |
Re: Permission problems after packaging
Yeah, I checked all files, but I don't really know where in the control file I need to put either 'truecryptgui' or 'TruecryptGUI', which one should be 'source' and 'package'?
|
Re: Permission problems after packaging
Quote:
|
Re: Permission problems after packaging
So is there some way to check for filesystem corruption? Is it likely that i created this myself by maybe deploying the app wrong?
|
Re: Permission problems after packaging
Quote:
|
Re: Permission problems after packaging
Quote:
|
Re: Permission problems after packaging
Quote:
it might be a symlink to a non existent file. Nicolai |
Re: Permission problems after packaging
Quote:
-rwxr-xr-x 1 root root 64248 Feb 26 14:15 /usr/bin/truecryptgui/TruecryptGUI What i find strange is the date above. I have uninstalled the app multiple times yesterday to try to get it working, yet the time is somewhere in February... |
Re: Permission problems after packaging
Quote:
Quote:
Actually, ldd worked earlier, which should have read the actual file, making filesystem corruption less likely to be an issue. Can you try the following, so we can see exactly what does/doesn't work: Code:
cd /usr/bin/truecryptgui |
Re: Permission problems after packaging
Hi
I'm not sure if I've ran into the same problems a while ago, but I've had something similar in the past. http://talk.maemo.org/showthread.php?t=61921 |
Re: Permission problems after packaging
Quote:
Thanks for all the help! |
Re: Permission problems after packaging
It's all working now. I have updated my version of QtSDK, then rebuilt the project and repackaged it. I probably have tried so much to make it work that in the process i have done some things that I shouldn't have.
Another quick question. If you have a Maemo native app, like email or calendar or something, and you dont have any mail or appointments there is a text in the center of the screen that's bold and bigger than normal text. Is there a special object for this text? Because my solution of recreating it as good as possibly doesn't work when someone changes a theme of course. I have already read through the UI specifications of Maemo, but it isn't mentioned as far as I know... |
All times are GMT. The time now is 10:51. |
vBulletin® Version 3.8.8