Error when attempting to run config

These are old archives. They are kept for historic purposes only.
Ryan
Posts: 7
Joined: Thu May 05, 2005 4:50 am

Error when attempting to run config

Post 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?
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Ryan
Posts: 7
Joined: Thu May 05, 2005 4:50 am

Post 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....
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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.
Ryan
Posts: 7
Joined: Thu May 05, 2005 4:50 am

Post 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....
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Don't be lazy, and do it right.

If you had done it the proper way, you would be done by now.
Ryan
Posts: 7
Joined: Thu May 05, 2005 4:50 am

Post 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
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Unless you follow the Installation Instructions we can't help you.

Please do as told. :roll:
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Ryan
Posts: 7
Joined: Thu May 05, 2005 4:50 am

Post by Ryan »

its installed it won't run
Winbots
Posts: 65
Joined: Wed Apr 21, 2004 12:26 am
Location: irc://irc.winbots.org/Winbots
Contact:

Post 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
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post 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]
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Ryan
Posts: 7
Joined: Thu May 05, 2005 4:50 am

Post 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....
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post 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.
Ryan
Posts: 7
Joined: Thu May 05, 2005 4:50 am

Post 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....
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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.
Post Reply