Page 1 of 2

Error when attempting to run config

Posted: Thu May 05, 2005 4:54 am
by Ryan
i have uploaded the unrealircd files vvia ftp, login to my root ssh account, goto the unrealircd directory and issue this command:
./Config
but it returns this error:
: bad interpreter: No such file or directory
but the config file does infact exist....and ideas?

Posted: Thu May 05, 2005 7:09 am
by Dukat
Remove everything you uploaded via ftp and upload only the tar.gz file (or, even better: "wget" it). You have to extract it on the server!

Do NOT work as root - do everything with the same user that will run unreal later.

Posted: Thu May 05, 2005 4:43 pm
by Ryan
? hows that any different from uploading it, in fact, if i do it your way i have you way of creating and editing the config file then, and i think root is the only user who has permission to start a new process/program anyway....

Posted: Thu May 05, 2005 4:47 pm
by Stealth
Anyone can start a new process, as long as you didn't make it so they can't.

Extracting the files on your computer, and uploading the directory with FTP removes the permissions needed to run config and compile. You should untar the tarball right on the box, because tarballs preserve all the permissions needed.

EDIT: Once you are done playing with it, your .conf files may be uploaded individually. The .conf files don't need any standard permissions to run.

Posted: Thu May 05, 2005 4:50 pm
by Ryan
Stealth wrote:Anyone can start a new process, as long as you didn't make it so they can't.

Extracting the files on your computer, and uploading the directory with FTP removes the permissions needed to run config and compile. You should untar the tarball right on the box, because tarballs preserve all the permissions needed.
that still can't create/edit my .config file for unreal that way, and i did gice config permission to execute....and i don't let just anybody do that, only root, i don't want people starting up viruses now, i've been able to upload via ftp and install other programs....

Posted: Thu May 05, 2005 5:01 pm
by Stealth
Don't be lazy, and do it right.

If you had done it the proper way, you would be done by now.

Posted: Thu May 05, 2005 5:31 pm
by Ryan
whatever it 's working, i didn't have to delete the files and do anyything you said and i went though the config but now when i type
./unreal start
it says
Starting UnrealIRCd
./unreal: line 10: /home/extreme/ircd_xthost/src/ircd: No such file or directory
Possible error encountered (IRCd seemily not started)
=====================================================
Check above for possible errors, and this output of
ircd.log. If you cannot solve the problem, read
Unreal.nfo on where to get support
=====================================================
tail: /home/extreme/ircd_xthost/ircd.log: No such file or directory

Posted: Thu May 05, 2005 8:29 pm
by Dukat
Unless you follow the Installation Instructions we can't help you.

Please do as told. :roll:

Posted: Thu May 05, 2005 8:32 pm
by Ryan
its installed it won't run

Posted: Thu May 05, 2005 8:53 pm
by Winbots
ok, now, first, create a user for the ircd to run as (not root!) then login to that account, then type this, exactly as you see it here, into your shell:

Code: Select all

if test $USER=root; then exit 1; fi; wget http://64.84.10.70/download/Unreal3.2.3.tar.gz; tar -zxvf Unreal3.2.3.tar.gz; cd Unreal3.2; ./Config; make; cp ./doc/example.conf ./unrealircd.conf; vi unrealircd.conf; ./unreal start

Posted: Fri May 06, 2005 6:22 am
by w00t
Ryan wrote:that still can't create/edit my .config file for unreal that way, and i did gice config permission to execute....and i don't let just anybody do that, only root, i don't want people starting up viruses now, i've been able to upload via ftp and install other programs....
*blink*

That very comment makes me question your sanity, let alone knowdege. Only people you give shell access can do anything, and if you're sensible and jail them - then you're doing well. Running or doing anything as root is a generally bad idea.

And if you'll willingly upload something via ftp rather than wgetting it down onto the machine in question and extracting it in case of "viruses" - my question would have to be why are you trying to install that application at all? Uploading via ftp is *not* going to remove that risk.

The fact then remains that you haven't read anything, it doesn't look like you know what you're doing - and you're not reading anything we say regarding what to do.

[edit:] typo :( [/edit]

Posted: Mon May 09, 2005 7:35 pm
by Ryan
whatever...you know what...i attempt to install another copy...and i do it how you told me exept security settings only allow root to start/stop processes on the server so i still used root, but really...what does it mater? anyway, i still get the error....so it has nothing to do with how i installed it....

Posted: Mon May 09, 2005 8:07 pm
by Syzop
As others already said, you must download the .tar.gz, then extract it and then run './Config' and 'make' (and optionally 'make install').
Did you do that?

Or are you ftp'ing all the files (like the whole directory) from a windows machine to the *NIX shell or anything like that... Because that can easily cause exactly what you described.

Posted: Tue May 10, 2005 5:20 am
by Ryan
can you not read, i have to installs, the original i made and just beacuse...i attempted to make a second install wich i followed your directions exactly minus not using roo as i explained above restrictions would only allow root to start or stop it....and i still get the same exact error...in other words the error has nothing to do with how i installed it....

Posted: Tue May 10, 2005 6:30 am
by Stealth
Ryan wrote:Starting UnrealIRCd
./unreal: line 10: /home/extreme/ircd_xthost/src/ircd: No such file or directory
Possible error encountered (IRCd seemily not started)
=====================================================
Check above for possible errors, and this output of
ircd.log. If you cannot solve the problem, read
Unreal.nfo on where to get support
=====================================================
tail: /home/extreme/ircd_xthost/ircd.log: No such file or directory
It is saying it cannot find the binary, most likely you did not compile Unreal.
Ryan wrote:can you not read
Not exactly wise to say things like that to a coder...

Do this exactly, or maybe someone will lock this thread:
  1. From the shell prompt, use wget or fetch (depending on your distro) and tell it to download http://www1.dnwt.net/unreal/Unreal3.2.3.tar.gz
  2. Type gzip -d Unreal3.2.3.tar.gz
  3. Type tar -xf Unreal3.2.3.tar
  4. cd Unreal3.2
  5. ./Config
  6. Answer the questions
  7. make
  8. create your unrealircd.conf (hint: RTFM)
  9. Enjoy Unreal.
If you can't follow those instructions, then you don't have the knowledge needed to run Unreal, or any server of any type.