Ubuntu
#1

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
Reply
#2

. 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
Reply
#3

..or you could cd to your samp directory and run
Код:
nohup ./samp03svr &
Reply
#4

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 &
Reply
#5

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
Reply
#6

It's samp03svr NOT samp03srv
Reply
#7

samp03svr --> samp03srv Is there a different then exactly the same....
Reply
#8

Yes there is a difference.

samp03svr samp03srv
Reply
#9

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)
Reply
#10

Edited
Reply
#11

cat nohup.out

It's probably missing a library somewhere.
Reply
#12

i do it but nothing happens
Reply
#13

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.
Reply
#14

Quote:
Originally Posted by firemanjv
Посмотреть сообщение
i do it but nothing happens
cat server_log.txt
Reply
#15

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
Reply
#16

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
Reply
#17

Код:
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
Код:
nohup ./samp03svr &
& 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
Код:
ps aux
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)