digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   want to start MEncodeMe as an normal user, not root (http://www.digitalfaq.com/archives/encode/10083-want-start-mencodeme.html)

TKONeo 06-04-2004 07:08 PM

want to start MEncodeMe as an normal user, not root
 
Hi there,

I've searched for this topic thru the hole Board but I can't find anything helpfull!! My Problem is easy, I just want to start MEncodeMe as an normal user under my SuSe 9.1!!
If I start MEncodeMe as root-user, everything works fine! But if I start MEncodeMe as a normal user everytime I got an "Segmentation fault"!!

Sorry for bugging you with this noop Prob!

Maybe anyone here can help me!!

Solong
By
Neo

kwag 06-04-2004 07:30 PM

Hi Neo,

Check your file permissions and user permissions.
Go yo your user directory, and make sure you chmod and chown the MencodeME file.
It's probably set to "root" user, and that's why it bombs when you run it.

As root, do: chmod 755 MencodeME

And also as root, and if your user name is, for example "neo", do: chown neo:bin MencodeME

After that, try tunning MencodeME as your user name.


-kwag

TKONeo 06-04-2004 09:19 PM

I've done what you expected, but the result is the same!
I can't start MEncodeMe as Normal User:
here is an ls -l:

drwxr-xr-x 2 Administrator users 4096 2004-05-06 17:35 filter
-rwxr-xr-x 1 Administrator users 1371761 2004-05-06 17:22 MEncodeme
drwxr-xr-x 2 Administrator users 4096 2004-05-06 16:41 target

You see all the file permissions are set correctly. Is there anything else you could think of causing this problem?

Thanx
Solong
By
Neo

Dialhot 06-04-2004 09:22 PM

The tool can have need of a dynamic librairy that it can access.

Check your /usr/lib directory and see if the rights are correct.

TKONeo 06-05-2004 06:20 AM

Could you please tell me wich librarys are neede, cause my usr/lib folder has more than 150000 Entries!! All of them belong to root but most of them are readable / executable by everyone!!

----------
Update, I changed the ownership but the result is properbly the same!! I just get an "Segmentation fault" if I try to run MEncodeMe!

Any other suggestions?

THX
Solong
By
Neo

vmesquita 06-05-2004 06:34 AM

I think it needs only GTK. :roll:

TKONeo 06-05-2004 06:43 AM

Hi, thanx for the fast answer!

But GTK is fully installed on my system! I also have no problem in compiling other GTK based programms! This can't be the mistake!

Solong
by
Neo

kwag 06-05-2004 11:31 AM

@TKONeo,

Try this:

chown -R user:group Mencodeme filter target
And:
chmod -R 755 Mencodeme filter target

Of course, substitute user:group for your actual user name and group name.

-kwag

Dialhot 06-05-2004 12:56 PM

And do also a "chmod -R 755" on all your lib directory.

Note: 15000 entries in that directory ? I never used the 10th of this in 10years of Unix development. You overload your system with useless component !

kwag 06-05-2004 01:03 PM

Hell, why not chmod (recursively) 777 the root "/" :mrgreen: :lol:
Then the complete world can read,write,execute :rotf:


Off Topic:
Code:

The Ten Commandments for C Programmers
Henry Spencer

1. Thou shalt run lint frequently and study its pronouncements
with care, for verily its perception and judgement oft exceed thine.

2. Thou shalt not follow the NULL pointer, for chaos and madness
await thee at its end.

3. Thou shalt cast all function arguments to the expected type if
they are not of that type already, even when thou art convinced that
this is unnecessary, lest they take cruel vengeance upon thee when thou
least expect it.

4. If thy header files fail to declare the return types of thy
library functions, thou shalt declare them thyself with the most
meticulous care, lest grievous harm befall thy program.

5. Thou shalt check the array bounds of all strings (indeed, all
arrays), for surely where thou typest 'foo' someone someday shall
type 'supercalifragilisticexpialidocious'.

6. If a function be advertised to return an error code in the event
of difficulties, thou shalt check for that code, yea, even though the
checks triple the size of thy code and produce aches in thy typing
fingers, for if thou thinkest 'it cannot happen to me', the gods
shall surely punish thee for thy arrogance.

7. Thou shalt study thy libraries and strive not to re-invent them
without cause, that thy code may be short and readable and thy days
pleasant and productive.

8.  Thou shalt make thy program's purpose and structure clear to thy
fellow man by using the One True Brace Style, even if thou likest it
not, for thy creativity is better used in solving problems than in
creating beautiful new impediments to understanding.

9. Thy external identifiers shall be unique in the first six
characters, though this harsh discipline be irksome and the years of
its necessity stretch before thee seemingly without end, lest thou tear
thy hair out and go mad on that fateful day when thou desirest to make
thy program run on an old system.

10. Thou shalt foreswear, renounce, and abjure the vile heresy which
claimeth that 'All the world's a VAX', and have no commerce with the
benighted heathens who cling to this barbarous belief, that the days of
thy program may be long even though the days of thy current machine be
short.

:lol:

TKONeo 06-05-2004 09:47 PM

@kwarg
Thanx, but this is the same you said one day ago!! I have done these changes but without any effect.

@Dialhot
Quote:

I changed the ownership but the result is properbly the same!! I just get an "Segmentation fault" if I try to run MEncodeMe!
I have changed the ownership of all my libs to my user thou I have the full read/write/execute permissions. But this also doesn't help me! Of course I changed this back to root after doing some tests

Maybe I can send you a "gdb" backtrace of the problem would this help you?

Solong
By
Neo

kwag 06-05-2004 10:53 PM

Quote:

Originally Posted by TKONeo
@kwarg
Thanx, but this is the same you said one day ago!! I have done these changes but without any effect.

It is not :!:
It's a recursive change. The first one I gave you was only on a single file.
The last one is on the file and the directories.

-kwag

Dialhot 06-05-2004 11:15 PM

TKONeo,

Do you have any knowledges in UNIX or do you use Linux only because it's in the mood ?

rds_correia 06-06-2004 05:47 AM

Quote:

Originally Posted by Dialhot
TKONeo,

Do you have any knowledges in UNIX or do you use Linux only because it's in the mood ?

Come on guys :D
Give the poor guy a break ;-)
Maybe he's learning, like I will start learning BSD, within some weeks.
First times gotta be a nightmare 8O
And maybe it's not only because it's fashion.
Maybe the guy has a not so fast PC so it's understandable that he chooses something different from M$ :lol:
Cheers

TKONeo 06-06-2004 12:02 PM

@kwag

Sorry I missunderstand your first post and done the change recursively so it was the same for me!!!

@Dialhot
I'm using Linux for over 3 years and not cause it's in the mood! In my mind I have accaptable experience in using Linux! The problem is, that I'm german and so I have a bit problems in expressing to you what I think!
Are you borne with your great knowledges in Linux? I think not and so you've learned it although anytime.

But in all about this we are getting away from the topic and my problem still exists!

In addition a question:
Why not releasing the source of the MEncodeMe as I've heard it is a very great and usefull application! Maybe letting the users compile the application to their own needs may improve your performance

Solong
By
Neo

Dialhot 06-06-2004 12:20 PM

Quote:

Originally Posted by TKONeo
Are you borne with your great knowledges in Linux? I think not and so you've learned it although anytime.

The question was to know how deep we have to go in our hints because that was not crystalin at all. Nothing else.

Quote:

But in all about this we are getting away from the topic and my problem still exists!
I fear we are JUST in the middle of the problem : your lib directories reveals that you don't have any control on what is on your PC and that will be very difficult to imagine what can interfer in the process :-(

rds_correia 06-06-2004 01:06 PM

Quote:

Originally Posted by TKONeo
Why not releasing the source of the MEncodeMe as I've heard it is a very great and usefull application! Maybe letting the users compile the application to their own needs may improve your performance.

Hi TKONeo,
I'm affraid we'll never see the source for MencodeMe or any other tools that have been developed and presented here lately.
When VMesquita made MencodeME some of us also asked him if he was going to open the source code.
He told us he won't do it and I mostly agree with his choice.
It is free for use and he's been working on it so no need for many more people in the project.
If someday he quits developing it maybe he will open the sources or we ask him to do so but there is no guarantee he will do so.
Cheers

rendalunit 10-30-2004 01:49 PM

I've got the same problem except it gets 'segmentation fault' running as root also. I tried the things kwag suggested but still doesn't work. I also have Gtk installed. Any other ideas?

rds_correia 10-30-2004 01:56 PM

Sorry Ren (Hi :D) but I don't run it under Linux, so I don't know how to help you...
Anyone can help Ren?


All times are GMT -5. The time now is 06:45 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.