Ubuntu -
firemanjv - 27.03.2013
hi all,
My private server is running ubuntu 12.4 command line
but i cant start my server
i have did what is on this page
https://sampwiki.blast.hk/wiki/Linux_Server
but i dont work with ( sudo nohup ./home/justin/samp/samp03svr & )
someone could help me
Error with nohup
root@Eu-RP:~# nohup ./home/justin/samp/samp03svr
nohup: ignoring input and appending output to `nohup.out'
nohup: failed to run command `./home/justin/samp/samp03svr': No such file or directory
Re: Ubuntu -
3ventic - 27.03.2013
. means current directory. Remove it and it should work:
root@Eu-RP:~# nohup /home/justin/samp/samp03svr
Or assuming your home directory is /home/justin, use:
root@Eu-RP:~# nohup ./samp/samp03svr
Re: Ubuntu -
Kurzalewski - 27.03.2013
..or you could
cd to your
samp directory and run
Re: Ubuntu -
SchurmanCQC - 27.03.2013
Since you are currently in the root directory, cd into the SA-MP directory and execute the server using the following commands:
Код:
cd ../home/justin/samp/
nohup ./samp03srv &
Re: Ubuntu -
firemanjv - 27.03.2013
Not realy working
Код:
root@Eu-RP:/home/justin/samp# nohup: ignoring input and appending output to `nohup.out'
nohup: failed to run command `./samp03srv': No such file or directory
Re: Ubuntu -
Djole1337 - 27.03.2013
It's samp03svr NOT samp03srv
Re: Ubuntu -
firemanjv - 27.03.2013
samp03svr --> samp03srv Is there a different then exactly the same....
Re: Ubuntu -
Djole1337 - 27.03.2013
Yes there is a difference.
samp03s
vr samp03s
rv
Re: Ubuntu -
firemanjv - 27.03.2013
oh .... that is realy a fail....
EDIT
doesn't work for me
Код:
root@Eu-RP:/home/justin/samp# nohup ./samp03svr
nohup: ignoring input and appending output to `nohup.out'
Segmentation fault (core dumped)
Re: Ubuntu -
firemanjv - 27.03.2013
Edited
Re: Ubuntu -
3ventic - 27.03.2013
cat nohup.out
It's probably missing a library somewhere.
Re: Ubuntu -
firemanjv - 27.03.2013
i do it but nothing happens
Re: Ubuntu -
Kurzalewski - 27.03.2013
You're running Ubuntu, and as if nohup doesn't work well for you, you can check
here.
If you're lazy, just do
Код:
sudo apt-get install screen
To start a new background terminal:
Код:
screen
cd samp
./samp03svr &
to 'minimize' it, use
Ctrl + A + D, then
screen -r to see screens and
screen -r PID to go back to your server.
Re: Ubuntu -
3ventic - 27.03.2013
Quote:
Originally Posted by firemanjv
i do it but nothing happens
|
cat server_log.txt
Re: Ubuntu -
firemanjv - 27.03.2013
Quote:
Originally Posted by Kurzalewski
You're running Ubuntu, and as if nohup doesn't work well for you, you can check here.
If you're lazy, just do
Код:
sudo apt-get install screen
To start a new background terminal:
Код:
screen
cd samp
./samp03svr &
to 'minimize' it, use Ctrl + A + D, then screen -r to see screens and screen -r PID to go back to your server.
|
I dont know what it is but i tryied and my samp server doesnt seems to be on
Quote:
Originally Posted by 3ventic
cat server_log.txt
|
Don't work
Re: Ubuntu -
3ventic - 27.03.2013
cat /home/justin/samp/nohup.out
cat /home/justin/samp/server_log.txt
If there's no output;
you're probably missing one of the following files:
linux-gate.so.1 => (0x004d3000)
libdl.so.2 => /lib/libdl.so.2 (0x008d8000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00fa6000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00c36000)
libm.so.6 => /lib/libm.so.6 (0x00a19000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x009fb000)
libc.so.6 => /lib/libc.so.6 (0x0021b000)
/lib/ld-linux.so.2 (0x001fe000)
To acquire them, install a package containing the file.
You can find out which packages contain the files by checking the answer in this topic:
http://superuser.com/questions/10997...-ubuntu-debian
Re: Ubuntu -
Tenshi - 03.04.2013
Код:
apt-get update && apt-get upgrade
for updates towards Ubuntu
also you didn't mention if its a 32bit or 64bit.
try this to turn on server
Код:
cd /home/justin/samp/ && nohup ./samp03svr &
WHEN THIS HAPPENS ^ and server is up, hit [CTR]+C to begin new line [in SSH/putty] and leave it alone ~
OR
Код:
cd /home/justin/samp/
then
& at the end is to keep it alive even after you closed putty or 'exit' command.
to turn off server later on or restart it, just use rcon login and do rcon exit to close server.
you will need to manually turn it on again. (above)
if u wanna kill it from SSH, then do
make sure you get the first numbers next to a name either "root"
look for samp server name and do
kill -9 number-OF-PID and enter to kill it.
MICS:
its a little confusing at first but it helps.
after you got used to Linux (Ubuntu)
you may like to try a auto re starter that I personally love and edited @
https://sampwiki.blast.hk/wiki/Linux_Server
( my personal favorite is Method 2 )
P.S. if you are under root "SUDO" is not needed majority of the times.