Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Ubuntu server guide VERY Detailed

Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
[Outdated]Ubuntu server guide VERY Detailed

Attention everyone, this thread is very outdated, you should not use this guide due to megaupload being shut down, links will not work and i will not reupload because i do not have the files anymore. if you wish you create a server i recommend using this guide
http://forum.ragezone.com/f695/server-client-1-4-2-a-698047/
its quick and works great.
i am going to keep my guide in spoiler tags for those to view but it will be of little use.

good day.

This guide is for complete beginners, im making this guide because this is how i learned to make a server in the past and its always worked for me, and when people ask me questions they can use this guide and ill know exactly what to help them fix, cause everyones server image is diffrent and i cant really explain everything from someone elses work.

recommend you have 4 gigs of ram or more, but you can use 2 if you really want to push it.

before we begin, download We use this to add files to your server after we set it up. but dont install it yet.

first
download

second
download

make sure you download the 64bit server image, just click download afterwards and save the image "iso"

last
we download beasties server files.


ok, now assuming you have Vbox downloaded, install it.
during installation do this
next
next
next
yes
install

now it should ask you "Would you like to install this device software?"
keep clicking install until it finnaly works
if it only shows up once then good. just click it once, for me it showed up 4 times.

click finish

now it should pop up with a blank server list, go to new.
next
put a name for your server "can be anything doesnt matter"
change operating system to linux
change verison to ubuntu 64bit
next
now depending on how much ram you have try to divide it by half,
if you have 4 gigs use 2048 ram, if you have 2 use 1024
remember this isnt going to be a real server for everyone to play on, just you can play on it so it doesnt need alot of ram.
this is giving you the basic idea on how to build a pw server.

after setting the ram
next
next
next
next
next
finish
finish

now you have an image made.
now right click your image, and click settings
next go to storage
and click on empty
now where it says attributes "CD/DVD Drive: IDE Secondary Master"
click the small cd picture next to it and click
"choose a virtual CD/DVD disk file"
select your ubuntu server image you downloaded.
then click ok at the bottom.

double click your server image to turn it on
a box will turn on
and an installation will pop up in it

click into the box
remember to get out of the box hit the right control button.
now ill explain the install you should do
English
Install Ubuntu Server
English
Any one you want "location"
No "to the keyboard layout"
Usa
Usa

let it install
when its ready
it will ask for a hostname
add anything this will be the name of your server
i do
ubuntu
even if the timezone is incorrect just do
yes
Guided - Use entire Disk
SCSI3 (0,0,0) (sda) - 8.6 GBATA VBOX HARDDISK "hit the enter key"
it will ask to write changes click yes

let it install

now it will ask for a full name for new user
add a small simple name
continue
now it will ask for "Username for your account:
just continue, make sure it doesnt have an upper case letter or it will not let you continue til is removed
now it will ask for a password, remember your password, you will need it alot for the future.
after entering a password continue
re-enter password continue
depending on your password it might ask if you want to use the weak password
Yes
it will ask to "encrypt your home directory?"
No
ignore the HTTP proxy information
continue
let it install
next choose No automatic updates

now it will ask to choose software to install
hit the down button all the way down to manual package selection
and continue

let it install

it will ask you to download grub boot loader
Yes
continue
it will now reboot
now after it loads, log into your account
the password may seem like its not working but it is.
ok
now first
type
sudo passwd
add your password 3 times
and it will finnaly say
passwd: password updated successfully
now type
logout
username root
password your password
you are now root
now before we continue
at the top left of your linux server it says
"machine - devices - help"
choose devices
then network adapters...
where it says "attached to:
change it to Bridged adapter
then click ok
type in your linux server
init 6
this will do a quick restart
after it loads
log into root again
now type
apt-get install openssh-server
when it asks hit Y then enter
after it finishes
type
apt-get install apache2
when it asks hit Y then enter
after it finishes
type
apt-get install mysql-server mysql-client
when it asks hit Y then enter
after it finishes
type
enter a password
re-enter password
after that
type
apt-get install ia32-libs
when it asks hit Y then enter
this will take a minute to install
after its finished
type
apt-get install php5-cgi
when it asks hit Y then enter
after its finished
type
apt-get install openjdk-6-jre
when it asks hit Y then enter
this will take about 3 minutes
after thats over
type
apt-get install phpmyadmin
when it asks hit Y then enter
select apache2 then continue
it will now ask to "configure database for phpmyadmin with dbconfig-common"
Yes
enter your password you used for your mysql
enter your password
re-enter password
now
heres where winscp steps in.
run the setup.
it will ask for a language just click ok
next
next
next
install
now it will ask to restart your computer
click no and then finish.
if winscp gives you issues restart your computer they should go away, i for one never had issues with it without restarting.
now
open it up
it will ask for a host name
go to your linux server
and type ifconfig
where it says
inet addr:
is your ip address
type that into the hostname of winscp
for username type root
then for password type your password
now save and it will ask if you want to save password
check it and click ok
now it should say
root@ip
double click it
it will pop up a window with too much text to read
now click yes
if successfull you will see two file locations your desktop on the left, your server on the right.
we are only going to deal with the right side
double click .. above .aptitude
go to etc, then apache2 double click apache2.conf
scroll all the way down
and at the very bottom add this line
Include /etc/phpmyadmin/apache.conf
save and close.
one last thing for phpmyadmin, your apache2 wont work with phpmyadmin without this lovely mod
apt-get install libapache2-mod-php5
if it asks to install type Y then continue
now
we are going to do something to prevent problems in the future
in winscp at the top go to options
then preferences then go to transfer now look for "upload options" set permissions, its unchecked, check it, in the text box below it, replace it with this rwsrwsr-t
click ok at the bottom to apply.
this will set permissions to 7775
now close the options.
go back to your linux machine and type
/etc/init.d/apache2 restart
this restarts apache2
after doing this your phpmyadmin will work.
now go to your phpmyadmin page

log into your phpmyadmin using root for the username
and password for your password.
go to import at the top

now scroll down to the bottom of this post and download pwdb.sql
i got this sql file from Das1007's server files so i dont know the source of the files so ill just thank das for it.

after downloading the file add it to your desktop
click browse in your phpmyadmin's import page and select pwdb.sql
then click go on the right side of the page.
now you have a pw database on the left of your screen.
you do not need to touch these.
now get out of phpmyadmin
and get back on winscp
go to your server files from beasties files
and go to beastie136pw folder
you have 5 folders in here
etc
lib
pwserver
root-ignore root
usr
now
open the etc folder

i recommend wordpad, cause it puts all the text into an
easier readable format

open authd.conf and change 192.168.0.50 to your servers ip
save quit
open gmopen.xml then scroll all the way down and change
192.168.0.50 to your ip's, save quit

now open GMserver.conf
and change 192.168.0.50 to your servers ip, save and quit
now open hosts wordpad and change all 192.168.0.50 to your ip
save and quit

now open iweb.conf and change all 192.168.0.50 to your ip
save and quit

now open table.xml with wordpad and change mysql://127.0.0.1/dbo?
to
mysql://127.0.0.1/pw?
then find password and change it to your password
save and exit
now go back to your beastie136pw folder and go into
PWServer

here is the fun part...
open the folder gacd
open gamesys.conf with word pad and change only the ips with 192.168.0.50 to your ip. leave the other ones alone.
save quit

go back to PWServer
open
gamed open gmserver.conf
edit only the 192.168.0.50 to your ip
save quit

now open gs.conf
scroll down til you find the ip 192.168.0.50, change it to your ip then save and quit

now open gs_rollback.conf, scroll down til you find the ip
192.168.0.50, change it to your servers ip then save and quit.

see ptemplate.conf? that file allows you to change your server rates, modify it to your liking just the exp/sp and gold rate nothing else.
now save edit

now go back to PWServer
go to gamedbd and open cashstat.conf and change
192.168.0.50 to your ip and save/quit

now open gamesys.conf and change all 192.168.0.50 to your ip then save/quit

go back to PWServer

now go to gdeliveryd
open gamesys.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to PWServer

now go to gfactiond
open gamesys.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to PWServer

now go to glinkd
now open gamesys.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to PWServer

now go to logservice
now open logservice.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to PWServer

go to uniquenamed
open gamesys.conf and change all 192.168.0.50 to your servers ip, save/quit

go back to beastie136pw folder
now we are ready to add some files to your linux machine
go to winscp go all the way back til you see /<root> above your servers files you will see
bin
boot
dev
etc
and so on
add the files inside of etc to your
linux servers etc folder
when finished
add lib folder's files to your linux servers lib32 folder
when finished add the folder PWServer to your linux machine, dont put it in any folders in the linux machine just add it in.
after its finished
add the usr folders files to your linux machines usr folder
now we are almost done adding files.
after adding that we will add pwadmin go to ronnies pwadmin page

go to download pwadmin,and the jetty script, you put the jetty script in the /root folder and put jetty-7.2.0 in your pwserver directory
go into jetty-7.2.0
then go into webapps
then go into pwadmin
then go into WEB-INF
open .pwconf.conf file in wordpad and change all the ip's to your servers ip
then open .pwadminconf.jsp with wordpad and change the database information to yours "db = database"
so host = ip
port keep the same
user is your root username
password is your password
database is pw
now at the top of this file you will see
String iweb_password = "abunch of numbers mixed together";
make sure it says
string iweb_password = "63a9f0ea7bb98050796b649e85481845"
your password is root in pwadmin.

now your done
when you want to start
pwadmin type ./jetty start
then go to

then go to control server, and start it
your server is now started.

also dont use this guide to make a server public as this is only meant for private use, this guide has no security in it so be smart and understand what your doing before you attempt to make one public.



---------- Post added at 08:20 PM ---------- Previous post was at 08:20 PM ----------

Reserved for client guide.

Also if you already have the client make sure to check
Glinkd go to the first login server and change the line below the ip that says
10301 to 10306 save restart and then log in.

heres the client files




all 4 parts to the client enjoy
what you need to do is unrar it, go into element/data/server and take the elements.data, tasks.data and gshop.data and add it to the servers pwserver/gamed/config folder and replace it, restart server then go into the clients userdata/server/ serverlist.txt file and change it to your servers ip, save then load the client and connect, that is all enjoy.

ALSO you need to go into /pwserver/glinkd/gamesys.conf and change all 10301 to 10306 then save. without modifying this you will recieve the "server maintainance"
 

Attachments

You must be registered for see attachments list
Last edited:
PW Dev <3
Joined
Feb 28, 2011
Messages
722
Reaction score
117
Wow, very detailed guide. Good job!!!! +10
 
Initiate Mage
Joined
Mar 18, 2011
Messages
36
Reaction score
0
Great Tutorial by the way, best i have seen.
But, Which Client Sould I use with beasties server files?
 
PW Dev <3
Joined
Feb 28, 2011
Messages
722
Reaction score
117
Downgrade tideborn client via ronny's Perfect World Downgrader(PWD). just search for it. In google type site:forum.ragezone.com/f452 (insert item your searching for here) dont forget the space
 
Last edited:
Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
well in the future i will upload a client that will work with the server. i doubt anyones reading this guide at the moment and most of all i made this guide for people that ask me for help cause i dont like explaining it i wrote every last step down.

give me a week or two
and i will upload the client
so this will be a complete server/client guide.
 
Last edited:
Initiate Mage
Joined
Mar 1, 2011
Messages
63
Reaction score
0
I've a problem here
now type
apt-get install openssh-server
when it asks hit Y then enter

After


I think it's the connection the problem, but how to result. :?:
 
Last edited:
Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
looks odd to me, i never had that happen, id guess it would be your connection, try to ping google inside your server terminal.
 
Last edited:
Joined
Apr 29, 2010
Messages
2,170
Reaction score
600
I've a problem here
now type
apt-get install openssh-server
when it asks hit Y then enter

After


I think it's the connection the problem, but how to result. :?:

looks odd to me, i never had that happen, id guess it would be your connection, try to ping google inside your server terminal.

DNS settings are incorrect, hrace009 release doesn't have working DNS abilities... you have to manually fix that
 
Initiate Mage
Joined
Mar 1, 2011
Messages
63
Reaction score
0
I've finished the guide, but when I would to connect: "Server on maintenance, please login later" :?:
 
Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
hah i know that issue, go into pwserver/glinkd and change your first servers line that says 10301 to 10306
 
Initiate Mage
Joined
Mar 18, 2011
Messages
36
Reaction score
0
I have a problem,
When i type
apt-get install openssh-server
and then say yes,
i get this error
Error.JPG - Ubuntu server guide VERY Detailed - RaGEZONE Forums
what should i do to fix this?
 

Attachments

You must be registered for see attachments list
Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
another dns error? how is everyone getting this
this guide worked for at least 6+ people without a few minor issues xd
try to ping google from your vbox,
type
ping
and if its successful hit the Q button.
 
Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
this isnt hrace's image its just normal vbox with ubuntu server 10.10 x64, so far two people have the same issue, but everyone else i help with this guide never has trouble, xd and im not one to manualy set my dsn, but id amagine the resolve.conf has something to do with this. maybe their vbox isnt properly setting it up. i'll try to reproduce this issue.
 
Initiate Mage
Joined
Mar 18, 2011
Messages
36
Reaction score
0
I got it to work. I decided to start all over, so i uninstalled everything and tried again, which worked.
Thanks for the help though.

I got much further in your tutorial, but when i type
/ect/init.d/apache2 restart
it says that no such file or directory exists.
What sould i do?
 
Last edited:
Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
just type
init 6

and it will restart your server, apache2 is usually located in the /etc/init.d/apache2
the /etc/init.d/apache2 restart restarts the webserver but restarting the server with init 6 is the same way just a bit longer.
 
Initiate Mage
Joined
Mar 24, 2011
Messages
93
Reaction score
8
Do I need to install MSSQL before Vbox?
and what image are u use?
can uploud it?
 
Experienced Elementalist
Joined
Nov 17, 2009
Messages
233
Reaction score
26
this isnt an image your using the reguler ubuntu server just read through it, it explains every thing you have to do as you do it.
 
Initiate Mage
Joined
Mar 1, 2011
Messages
63
Reaction score
0
That makes twice that I try the guide, and twice that I have the same problem. :$:
softsoldier - Ubuntu server guide VERY Detailed - RaGEZONE Forums

While I verified files are on the good place.
softsoldier - Ubuntu server guide VERY Detailed - RaGEZONE Forums

In PWServer/jetty-7.2.0
In root/jetty
In more I can launch jetty with the machine.
softsoldier - Ubuntu server guide VERY Detailed - RaGEZONE Forums

Please, how resolve this problem. :*:
 

Attachments

You must be registered for see attachments list
Back
Top