SA-MP Forums Archive
Running server in Linux (Ubuntu) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Running server in Linux (Ubuntu) (/showthread.php?tid=276119)



Running server in Linux (Ubuntu) - Michael@Belgium - 12.08.2011

Ok, hi guys... i want to try to run my server in Linux.

What i did:

- Downloaded the samp server package for Linux servers
- Installed Wine (for running samp.exe and other .exe files)
- I edited the server.cfg, copied all the gamemodes/filterscripts/... to a Linux samp map
- Edited plugins line in server.cfg
Код:
plugins streamer.so sscanf.so
- Read samp-wiki , but i don't understand the codes (where it must etc ...) (link)

What i want:
- In Windows, if you click on the samp-server.exe then you see a prompt but as i see i don't see that on Linux
- Playing samp on Linux
- Maybe i need step 5 in the vid (below) ? I can't find that ...

What works ?
- Well, when i click on samp03svr (on Linux ofcourse) ... and i look to my signature Then i see it's online...


Here a few ss:

Lol, this i don't understand it all: how i get this ? xD It's not explained in wiki :-/


This is when i start samp.exe with whine:

That "popup" is in Dutch, but the title is: Program Error

This is when i want to join a server:

The resolution changed + crash

whaha: running samp-server.exe with wine:



So if you can help me reply ^^

If you need more info, reply !

EDIT:

PS: i followed this (GOOD) tut:
[ame]http://www.youtube.com/watch?v=scSrNixCndY&list=FLLIm7igRwasc&index=1[/ame]


Re: Running server in Linux (Ubuntu) - linuxthefish - 12.08.2011

You need to use terminal application to start the server.


Re: Running server in Linux (Ubuntu) - Michael@Belgium - 12.08.2011

Quote:
Originally Posted by linuxthefish
Посмотреть сообщение
You need to use terminal application to start the server.
And what i have to type in there ?!


Re: Running server in Linux (Ubuntu) - linuxthefish - 12.08.2011

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
And what i have to type in there ?!
Код:
cd ~
wget http://team.sa-mp.com/files/samp03csvr_R2-2.tar.gz
tar -xsf samp03csvr_R2-2.tar.gz
cd samp03
Then open up your home folder, and edit the server.cfg. Then back to Terminal;

Код:
nohup ./samp03svr &
press enter again

Код:
exit
The instructions on the wiki are old, and suck. You can also use Wine to run the server, though that would be stupid!


Re: Running server in Linux (Ubuntu) - Michael@Belgium - 12.08.2011

Quote:
Originally Posted by linuxthefish
Посмотреть сообщение
Код:
cd ~
wget http://team.sa-mp.com/files/samp03csvr_R2-2.tar.gz
tar -xsf samp03csvr_R2-2.tar.gz
cd samp03
Then open up your home folder, and edit the server.cfg. Then back to Terminal;

Код:
nohup ./samp03svr &
press enter again

Код:
exit
The instructions on the wiki are old, and suck. You can also use Wine to run the server, though that would be stupid!
Lol you should make a tut linuxthefish ;p
Anyway: i did it ... but a question: for what was that for ? xp


Re: Running server in Linux (Ubuntu) - Tenshi - 12.08.2011

to PLAY you need wine on ubuntu
to run a server in linux, is what you are being told post above !


Re: Running server in Linux (Ubuntu) - Michael@Belgium - 12.08.2011

Quote:
Originally Posted by Tenshi
Посмотреть сообщение
to PLAY you need wine on ubuntu
to run a server in linux, is what you are being told post above !
I have Wine but as you see in the screenshot it crashes x)
and about the second: oh i thought it was for something else xD i just need a prompt like in Windows where the log is comming in x)


Re: Running server in Linux (Ubuntu) - linuxthefish - 12.08.2011

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
I have Wine but as you see in the screenshot it crashes x)
and about the second: oh i thought it was for something else xD i just need a prompt like in Windows where the log is comming in x)
You don't get a live log, you can make one though!


Re: Running server in Linux (Ubuntu) - Michael@Belgium - 12.08.2011

Quote:
Originally Posted by linuxthefish
Посмотреть сообщение
You don't get a live log, you can make one though!
OMG xD Why can't the SAMP developers make a Linux Client Dx This is so difficult ...
And how to do it then ? xD Im so noob in Linux ...


Re: Running server in Linux (Ubuntu) - linuxthefish - 12.08.2011

keep opening the server_log.txt file as fast as you can! Or install a webserver and and create a PHP script to read the server log and refresh the page every second.