Ubuntu server guide VERY Detailed

Page 1 of 6 123456 LastLast
Results 1 to 25 of 127
  1. #1

    [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/serve...-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.

    Spoiler:
    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 Winscp We use this to add files to your server after we set it up. but dont install it yet.

    first
    download Vbox

    second
    download Ubuntu

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

    last
    we download beasties server files.
    Beastie's 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
    http://yourip/phpmyadmin/
    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 pwadmin - Release: pwAdmin v1.8 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
    http://IP:8080
    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
    NOTICE
    NOTICE
    NOTICE
    NOTICE
    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"
    Attached Files Attached Files
    Last edited by softsoldier; 16-08-12 at 11:53 PM. Reason: Outdated Post


  2. #2
    PW Dev <3 Ozuru is offline
    MemberRank
    Feb 2011 Join Date
    737Posts

    Re: Ubuntu server guide VERY Detailed

    Wow, very detailed guide. Good job!!!! +10
    Posted via Mobile Device

  3. #3
    Enthusiast Herosworld is offline
    MemberRank
    Mar 2011 Join Date
    36Posts

    Re: Ubuntu server guide VERY Detailed

    Great Tutorial by the way, best i have seen.
    But, Which Client Sould I use with beasties server files?

  4. #4
    PW Dev <3 Ozuru is offline
    MemberRank
    Feb 2011 Join Date
    737Posts

    Re: Ubuntu server guide VERY Detailed

    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
    Posted via Mobile Device
    Last edited by Ozuru; 19-03-11 at 12:57 PM.

  5. #5

    Re: Ubuntu server guide VERY Detailed

    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 by softsoldier; 19-03-11 at 03:14 AM.

  6. #6
    Member bouclier is offline
    MemberRank
    Mar 2011 Join Date
    63Posts

    Re: Ubuntu server guide VERY Detailed

    I've a problem here
    now type
    apt-get install openssh-server
    when it asks hit Y then enter
    http://img4.hostingpics.net/thumbs/mini_786674problem0.jpg
    After
    http://img4.hostingpics.net/thumbs/mini_696810problem1.jpg

    I think it's the connection the problem, but how to result.
    Last edited by bouclier; 19-03-11 at 02:04 PM.

  7. #7

    Re: Ubuntu server guide VERY Detailed

    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 by softsoldier; 19-03-11 at 02:42 PM.

  8. #8
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: Ubuntu server guide VERY Detailed

    Quote Originally Posted by bouclier View Post
    I've a problem here
    now type
    apt-get install openssh-server
    when it asks hit Y then enter
    http://img4.hostingpics.net/thumbs/mini_786674problem0.jpg
    After
    http://img4.hostingpics.net/thumbs/mini_696810problem1.jpg

    I think it's the connection the problem, but how to result.
    Quote Originally Posted by softsoldier View Post
    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

  9. #9
    Member bouclier is offline
    MemberRank
    Mar 2011 Join Date
    63Posts

    Re: Ubuntu server guide VERY Detailed

    I've finished the guide, but when I would to connect: "Server on maintenance, please login later"

  10. #10

    Re: Ubuntu server guide VERY Detailed

    hah i know that issue, go into pwserver/glinkd and change your first servers line that says 10301 to 10306

  11. #11
    Enthusiast Herosworld is offline
    MemberRank
    Mar 2011 Join Date
    36Posts

    Re: Ubuntu server guide VERY Detailed

    I have a problem,
    When i type
    apt-get install openssh-server
    and then say yes,
    i get this error
    error.jpg
    what should i do to fix this?

  12. #12

    Re: Ubuntu server guide VERY Detailed

    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 Google
    and if its successful hit the Q button.

  13. #13
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: Ubuntu server guide VERY Detailed

    Quote Originally Posted by softsoldier View Post
    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 Google
    and if its successful hit the Q button.
    because hrace009's vbox release has broke dns settings etc...

  14. #14

    Re: Ubuntu server guide VERY Detailed

    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.

  15. #15
    Enthusiast Herosworld is offline
    MemberRank
    Mar 2011 Join Date
    36Posts

    Re: Ubuntu server guide VERY Detailed

    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 by Herosworld; 25-03-11 at 03:20 AM. Reason: I didn't think i would bother adding another post when i was the last one to say anything, so why not just edit in my new ???

  16. #16

    Re: Ubuntu server guide VERY Detailed

    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.

  17. #17
    Member asraf1990 is offline
    MemberRank
    Mar 2011 Join Date
    Restricted areaLocation
    93Posts

    Re: Ubuntu server guide VERY Detailed

    Do I need to install MSSQL before Vbox?
    and what image are u use?
    can uploud it?

  18. #18

    Re: Ubuntu server guide VERY Detailed

    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.

  19. #19
    Member asraf1990 is offline
    MemberRank
    Mar 2011 Join Date
    Restricted areaLocation
    93Posts

    Re: Ubuntu server guide VERY Detailed

    thank u sir for that info..

  20. #20
    Member bouclier is offline
    MemberRank
    Mar 2011 Join Date
    63Posts

    Re: Ubuntu server guide VERY Detailed

    That makes twice that I try the guide, and twice that I have the same problem.

    While I verified files are on the good place.

    In PWServer/jetty-7.2.0
    In root/jetty
    In more I can launch jetty with the machine.

    Please, how resolve this problem.
    Attached Thumbnails Attached Thumbnails prb.jpg   normal.jpg   machine.jpg  

  21. #21
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: Ubuntu server guide VERY Detailed

    Quote Originally Posted by bouclier View Post
    stuff
    Linux is case sensitive... it more then likely is pwAdmin not pwadmin...

  22. #22

    Re: Ubuntu server guide VERY Detailed

    Quote Originally Posted by das7002 View Post
    Linux is case sensitive... it more then likely is pwAdmin not pwadmin...
    das is right its case sensitive, change it to pwAdmin, i just reproduced this error, in quite a few ways.

  23. #23
    Member bouclier is offline
    MemberRank
    Mar 2011 Join Date
    63Posts

    Re: Ubuntu server guide VERY Detailed

    I've the same problem with pwAdmin.
    Attached Thumbnails Attached Thumbnails look.jpg  
    Last edited by bouclier; 28-03-11 at 04:29 PM.

  24. #24
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: Ubuntu server guide VERY Detailed

    Quote Originally Posted by bouclier View Post
    I've the same problem with pwAdmin.
    Then you have done something wrong...

  25. #25

    Re: Ubuntu server guide VERY Detailed

    when i change it from pwAdmin to pwadmin i get that error so it has to be something related to this, check it over.



Page 1 of 6 123456 LastLast

Advertisement