| |
| |
| |
|
Page: 1 2 3 4 5 6 7
Comments:
<0> I tried w/o it <0> does nothing <0> raptor2 ~ # sudo -u hlds screen -A -m -S hlds /home/hlds/HLDSteam/hlds_run -game cstrike +mapchangecfgfile "server.cfg" +map de_dust2 +maxplayers 20 -insecure -nomaster <0> Cannot open your terminal '/dev/pts/0' - please check. <0> raptor2 ~ # <0> why does it give me that? <0> no screens are created <0> nothing is running <0> :/ <1> because its expecting to be run in a terminal, not in a magic startup script <0> who is expecting what? <2> the -d -m options are designed to be used in startup scripts <0> okay <2> Maybe you should switch the order of -m -d? <2> You've got it -m -d... I doubt that will work but it's a shot in the dark... <3> Raptor: there is probably a way to start the server running, then from a console, connect to the running server
<3> Raptor: example, with asterisk, i start it running, it is now running in the background <0> I've read a ton of forums on setting up hlds today, none spoke of connecting to a running server :/ <3> Raptor: at any time, with it running, from any shell, i can run 'asterisk -c' and it will connect to the running server <0> everybody screens <0> lemme see what params hlds will take <0> damn it won't give me a list of possible params <0> :/ <2> You could just put the process in the background... "/home/hlds/HLDSteam/hlds_run -game cstrike +mapchangecfgfile "server.cfg" +map de_dust2 +maxplayers 20 -insecure -nomaster &" and use jobs and fg to bring it to the foreground... <2> note the ampersand (&) at the end of the command... <0> ectospasm: could you please detail the jobs and fg thing? <2> jobs will show you all the commands currently in the background, labeled by numbers... fg will bring job N to the background. <0> I'll try that as a last resort <0> but it's a good idea to keep in mind, thanks <2> test this out: type "top &"... then "jobs" <0> I just rebooted on a test, will try it in 5 mins <2> it will show the job number for top... typing "fg N" will bring it to the ForeGround, where N is whatever job number the system has given top <0> I just ran the same command without the sudo -u hlds <0> it gave no error messages, but nothing started <0> lemme try it your way <2> Oh, and you can put something into the background by hitting CTRL-Z <0> :/ <0> weird things happening here <3> ctrl-z suspends an app <3> you then have to bg %1 it <0> I run the start command with an ampersand <0> and it gave me the prompt back, but the server continued displaying stuff over the prompt <2> what does jobs say? <0> shows it running <2> If you do fg N it should bring it to the foreground so you can interact with it... <0> yeah, problem is, even if it is in background it keeps outputting stuff to the console <0> overwriting anything there <3> d'oh <3> i forgot about that <3> been some time since ive switched an app to the background <3> years actually <0> so how do I make it behave? <3> uuhh <3> my brain hurts <2> some commands behave nicely when you do that, some don't. I guess yours doesn't. <0> okay then I have to make screen work <2> now is the history important when you connect to control the server? <0> not really <0> but it would be nice to have it <0> I do have logs for the history <0> I think <0> all I *really* want is to be able to interact with it <3> im goin home <4> GENTLEMEN! BEHOLD! <2> why do you say that? <4> sunspots <2> why? <4> I think Agios knows... <2> how do you know that? <4> More lubricant. <4> Wasn't expecting gn00b! <5> :-P <5> anyone know any url's where i can read on how to host 2 different domains (using gentoo and apache, of course) <6> gn00b: http ? <7> yellow, and sometimes blue
<2> look into httpd.conf for virtual domains... the default config for apache has that documented right in the config. <5> ty <2> I've never done it, though, so there might be a little more work to it than just that. YMMV <5> wait... <5> g/f bitchin at me... <5> ok...here's the revised question... <5> do i have to do anything special to host 2 different domains... <5> 1 will be http/ftp on gentoo/apache... <5> the other will be http on winxp/iis <0> hrm.. seems the only way to make screen run that command was to cd to that running dir and screen from it as root :/ <5> i have dsl--->router--->gentoo and windows boxes <0> I think the problem was with sudo or su not being able to take in more than one argument as a whole command <0> can I solve that by like adding quotes to the whole command? <2> Raptor: perhaps... <0> I was hoping you'd know :/ <0> I don't wanna re-re-re-re-re-reboot to test it <2> run the screen command before you reboot... if it works, then test with a reboot... <8> just re-re-reboot <0> not the screen command is the problem <0> cause screening as root or anything else works <0> su or sudo-ing as a user with a long command doesn't work <1> does the server NEED to run as root ? <1> or even moreso, the screen ? <0> I want both the screen and the server to run as hlds <1> oh ... thats right... good point <0> cause it works if I just add screen blah blah to the /etc/conf.d/local.start <0> but that means it runs it as root <0> so if anyone breaks into the server, they're root <0> :/ <0> not that anyone here would manage to do that <0> but I wanna have good habbits :) <0> I mean <0> I read everywhere <0> don't run as root <0> and I'm trying to do just that <1> does that user have reasonable permissions ? <0> erm? <0> the user manages to screen and run the server on its own <1> hmm k... <0> sudoing is run from the local.start file <0> I even tried quotes ffs :( <1> for su or sudo to work you need a p***word... maybe you need to change /etc/sudoers to make this case not need a p***word... <8> damn you just start the server as a daemon? <0> Mank0r: more details please <1> Mank0r, he reckons its got some text console he has to be able to interact with that can't be accessed remotely <0> theBear how do I do that? <1> edit /etc/sudoers <0> I have <0> that's ancient egyptian to me <1> so the entire command works yet ? <1> from a terminal <0> not the su part <0> screen blah blah works just fine <0> but I can't make it run as the user hlds on startup <1> have you fixed the su commandline options yet ? <0> yes <0> su user -c command <1> but it doesn't work from a terminal ? <0> and sudo -u user command <0> no it doesn't <0> everything works except the su/sudo part <1> what does it say <0> nothing <1> hmmmm.... checked the logs ? <0> logs? <0> ok how do I add a command in /etc/sudoers? <1> ls /var/log/ <0> but then again <1> there should be examples in there <0> why do I need to check sudoers? <0> cause local.start runs everything as root right? <0> so putting a su -c something user in the local.start file should run <1> depends if you use sudo or su .... i think by default sudoers makes root not super.... <0> cause it runs as root
Return to
#gentoo or Go to some related
logs:
#chatzone #AllNiteCafe gg`allin efnet #php #php openswan keeps stopping hastable java linked list hajuu funny welcoome charectors in java script
|
|