From: Miquel 'F. B. <miq...@gm...> - 2004-12-06 14:22:58
|
When you ssh, see if you can find a way to forward X, which will have the DISPLAY environment set. I think your Solaris box is blocking X to remote servers, hence is why Allegro is trying the Linux console driver On Mon, 6 Dec 2004 08:06:41 -0600, wc...@ca... <wc...@ca...> wrote: > Hi, Thanks for your reply. > > This is what I get from README file: > > "On Linux you have two different system drivers -- one for running using > X, and one for running without X. > > On initialisation, Allegro will try to connect to an X server. If it > can't find one, it will give up and try to use some different system > driver instead (such as the Linux console). This means that to run > it in X mode, you must either launch your programs from inside an X > session, or have set the DISPLAY environment variable to indicate > what server you would like to use." > > My situation is the following: > > I log into a solaris machine, and use ssh to connect to a linux machine. (have > to be this way because I have a library only works under linux). I tried the > suggestion above and do "setenv DISPLAY host:0.0" in linux terminal, but I > still get the error: > > Fatal error: unable to activate the Allegro system > Unable to open /dev/console: Permission denied > > Can anyone tell me what's wrong? And how to make it work? > > Thanks, > Chao > > > > > Quoting Steven <ste...@sb...>: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > You can not legitimately execute your program as root under linux on a > > machine for which you do not have root privileges. You should instead > > try using a different driver which does not need root permissions, such > > as the X Windows driver. > > > > On Dec 5, 2004, at 6:37 PM, Chao Wang wrote: > > > > > I installed Allegro under linux, which I don't have root priviledge. > > > > > > When I try to run my program > > > gen_areas test.txt out.txt > > > > > > I got error > > > Fatal error: unable to activate the Allegro system > > > Unable to open /dev/console: Permission denied > > > > > > I figured the error might because some parts of Linux console Allegro > > > need root > > > privileges. The installation manual suggest the following: > > > > > > If you want a program to run with privileges even though the user > > > running > > > it is not root, make root own the binary and set the suid bit: > > > > > > # chown root.allegro exhello > > > # chmod 4770 exhello > > > > > > But when I try to chown as above, I got the following error > > > chown: changing ownership of `gen_areas': Operation not permitted > > > > > > Is there a way I could get around this? > > > > > > Thank you very much for your help! > > > > > > Chao > > > > > > > > > > > > ------------------------------------------------------- > > > SF email is sponsored by - The IT Product Guide > > > Read honest & candid reviews on hundreds of IT Products from real > > > users. > > > Discover which products truly live up to the hype. Start reading now. > > > http://productguide.itmanagersjournal.com/ > > > -- > > > https://lists.sourceforge.net/lists/listinfo/alleg-main > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.2.4 (Darwin) > > > > iD8DBQFBs8ckjRUeSe4yhVoRAhApAKCVsaI7oI9pg4nsNP5PmcIgLlWEIQCgl6Eo > > 5RJI6YYQfN+ZYHgdJt26xtk= > > =87p2 > > -----END PGP SIGNATURE----- > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://productguide.itmanagersjournal.com/ > > -- > > https://lists.sourceforge.net/lists/listinfo/alleg-main > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > -- > https://lists.sourceforge.net/lists/listinfo/alleg-main > -- There is no sig. |