Page 1 of 10 123 ... LastLast
Results 1 to 10 of 91
  1. #1

    [HowTo] Run a PRoCon Layer (1.4.0.6) with Linux+mono

    Setting up Procon on Linux

    NOTICE: PRoCon is developed for Windows! Expect Problems! You will NOT get the same support as if you running it on Windows

    Supported PRoCon Versions:
    • PRoCon 1.4.0.6 is WORKING


    Requirements:
    • a Server with Linux
    • Mono 2.6+ installed ( other Version might work)
    • on Debian mono 2.6.7 (Debian 2.6.7-5) is working
    • Some linux knowledge
    • a text editor of your choice (nano, vim, ...)
    • No root rights needed


    Step-by-Step

    1. Download PRoCon and put on your linux host
    2. create a folder and unzip the zip there
      Code:
      mkdir PRoCon-1.2.0.0
      
      cp procon-1.2.0.0.zip PRoCon-1.2.0.0/
      
      cd PRoCon-1.2.0.0
      
      unzip procon-1.2.0.0
      Now it should look like this:
      Code:
      drwxr-xr-x 3 xpkiller users     4096  6. Apr 12:51 Configs
      -rw-r--r-- 1 xpkiller users  1345396  7. Mär 22:09 GeoIP.dat
      -rw-r--r-- 1 xpkiller users   199680 16. Mär 12:11 Ionic.Zip.Reduced.dll
      drwxr-xr-x 2 xpkiller users     4096  6. Apr 12:57 Localization
      drwxr-xr-x 5 xpkiller users     4096  6. Apr 12:51 Media
      drwxr-xr-x 5 xpkiller users     4096  6. Apr 12:51 Plugins
      -rwxr--r-- 1 xpkiller users 15652065  6. Apr 13:45 procon_1.2.0.0.zip
      -rw-r--r-- 1 xpkiller users     6144  6. Apr 12:50 PRoCon.Console.exe
      -rw-r--r-- 1 xpkiller users    13824  6. Apr 12:50 PRoCon.Console.pdb
      -rw-r--r-- 1 xpkiller users   585216  6. Apr 12:19 PRoCon.Core.dll
      -rw-r--r-- 1 xpkiller users   935424  6. Apr 12:19 PRoCon.Core.pdb
      -rw-r--r-- 1 xpkiller users   282112 16. Mär 12:11 procon.doc
      -rw-r--r-- 1 xpkiller users  1171456  6. Apr 12:50 PRoCon.exe
      -rw-r--r-- 1 xpkiller users  1013248  6. Apr 12:50 PRoCon.pdb
      -rw-r--r-- 1 xpkiller users     6144  6. Apr 12:51 PRoCon.Service.exe
      -rw-r--r-- 1 xpkiller users    17920  6. Apr 12:51 PRoCon.Service.pdb
      -rw-r--r-- 1 xpkiller users    62464  6. Apr 12:50 PRoConUpdater.exe
      -rw-r--r-- 1 xpkiller users    34304  6. Apr 12:50 ProConUpdater.pdb
    3. run the Procon.Console.exe to create the Configs
      Code:
      [email protected]:~/PRoCon_1.2.0.0> mono PRoCon.Console.exe 
      Procon Frostbite
      ================
      By executing this application you agree to the license available at:
              http://myrcon.com/licenses/myrcon.pdf
      If you do not agree you must immediately exit this application.
      ================
      This is a cut down version of PRoCon.exe to be used by GSPs and PRoCon Hosts.
      Executing this file is the same as "PRoCon.exe -console 1"
      No output is given.  This is as cut down as we're gunno get..
      
      Executing procon...
      Running... (Press any key to shutdown)
    4. Stop it by press any Key
    5. Now look at the Config folder and open the procon.cfg
      Code:
      /////////////////////////////////////////////
      // This config will be overwritten by procon.
      /////////////////////////////////////////////
      procon.private.window.position Normal 0 0 0 0
      procon.private.options.setLanguage ""
      procon.private.options.chatLogging False
      procon.private.options.consoleLogging False
      procon.private.options.eventsLogging False
      procon.private.options.pluginLogging False
      procon.private.options.autoCheckDownloadUpdates True
      procon.private.options.autoApplyUpdates False
      procon.private.options.showtrayicon True
      procon.private.options.minimizetotray False
      procon.private.options.closetotray False
      procon.private.options.allowanonymoususagedata True
      procon.private.options.runPluginsInSandbox False
      procon.private.options.allowAllODBCConnections False
      procon.private.options.allowAllSmtpConnections False
      procon.private.options.adminMoveMessage True
      procon.private.options.chatDisplayAdminName True
      procon.private.options.layerHideLocalPlugins True
      procon.private.options.layerHideLocalAccounts True
      procon.private.options.ShowRoundTimerConstantly False
      procon.private.httpWebServer.enable False 27360 "0.0.0.0"
      procon.private.options.trustedHostDomainsPorts
    6. Add your server
      Code:
      procon.private.servers.name "85.14.234.211" 47200 "German Wildcards [GWC] Conquest | 300% Tickets | GGC-Stream"
      procon.private.servers.add "85.14.234.211" 47200 "rconpassword"
      Important:
      Set the languges:
      Code:
      procon.private.options.setLanguage "au.loc"
      And set those lines to "False" otherwise it will crash
      Code:
      procon.private.options.autoCheckDownloadUpdates False
      procon.private.options.autoApplyUpdates False
      procon.private.options.allowanonymoususagedata False
      Note:
      You might change the sandbox setting to false.
    7. Now you need to create the server config file:
      The name needs to match with the server in the procon.cfg file
      Like:" 85.14.234.211_47200.cfg"
    8. Paste the default content:
      Code:
      /////////////////////////////////////////////
      // This config will be overwritten by procon.
      /////////////////////////////////////////////
      procon.protected.layer.enable True 27260 "0.0.0.0" "PRoCon[%servername%]"
      procon.protected.playerlist.settings true 2 0,4939024 0,5
      procon.protected.chat.settings False False True 0 0
      procon.protected.events.captures False 200 False
      procon.protected.lists.settings False
      procon.protected.console.settings True True True True True True
      procon.protected.timezone_UTCoffset 0
      Note:
      You might want to change the layerport/ip.
    9. Now we need to create the first layer account
      Open accounts.cfg:
      Paste this:
      Code:
      /////////////////////////////////////////////
      // This config will be overwritten by procon.
      /////////////////////////////////////////////
      procon.public.accounts.create "Test" "test"
    10. Now open your server config again add the privileges
      85.14.234.211_47200.cfg

      Code:
      /////////////////////////////////////////////
      // This config will be overwritten by procon.
      /////////////////////////////////////////////
      procon.protected.layer.setPrivileges "Test" 3972679
      procon.protected.layer.enable True 27260 "0.0.0.0" "PRoCon[%servername%]"
      procon.protected.playerlist.settings true 2 0,4939024 0,5
      procon.protected.chat.settings False False True 0 0
      procon.protected.events.captures False 200 False
      procon.protected.lists.settings False
      procon.protected.console.settings True True True True True True
      procon.protected.timezone_UTCoffset 0
    11. Now the Config part is done!
    12. Run the Console and try to connect to it
      Code:
      mono ProCon.Console.exe
      If you can connect, lets go to the next step and run it as a service
    13. Create a startup.sh
      Code:
      #!/bin/bash
      cd /home/xpkiller/PRoCon_1.2.0.0
      mono-service2 -l:./proconservice.lock PRoCon.Service.exe
      make it executable
      Code:
      chmod +rx startup.sh

    14. Create the shutdown.sh

      Code:
      #!/bin/bash
      
      cd /home/xpkiller/PRoCon_1.2.0.0
      
      kill `cat ./proconservice.lock`
      make it executable
      Code:
      chmod +rx shutdown.sh
    15. Workaround for Version 1.4.0.5/6
      You need to create a symlink in the Proconbasedir:
      Code:
      ln -s mysql.data.dll MySql.Data.dll
    16. Run the startup.sh
    17. Now you should be able to connect to your new Linux PRoCon Layer Server, Enjoy
    18. To Stop the Service execute the shutdown.sh file


    Note:
    The PRoCon Service takes about 20 - 25 MB of Ram


    Troubleshooting:

    • Check if the Process is running
      Code:
      ps -ef | grep mono
    • Check if the IP and port is bound
      Code:
      netstat -nlp | grep mono



    Please give Feedback
    Last edited by XpKiller; 10-01-2013 at 18:55. Reason: Removed deprecated steps


  2. #2
    Placeholder

    just for the case i need more place


  3. #3
    Junior Member
    Join Date
    Apr 2012
    Location
    France
    Posts
    1
    Thx

  4. #4
    Fixed a typo in Step 13.

    Code:
    #!/bin/bash
    cd /home/xpkiller/PRoCon_1.2.0.0
    mono-service2 -l:./proconservice.lock PRoCon.Service.exe
    instead of
    Code:
    #!/bin/bash
    cd /home/xpkiller/PRoCon_1.2.0.0
    mono-service2 -l:./proconservice.lock ProCon.Service.exe


  5. #5
    Thnx for this I was looking for this a little while ago

  6. #6
    Member
    Join Date
    Oct 2011
    Location
    Norway
    Posts
    84
    Does plugin work with this? I remember a thread a while back that had something to do with running procon under linux, but as a result one wouldn't be able to run plugins..

  7. #7
    the most plugins should work.
    I fixed the plugin part in procon and given it to Phil.


  8. #8
    Junior Member
    Join Date
    Feb 2012
    Location
    Grand Rapids, Michigan, USA
    Posts
    7
    Nice...

    Preliminary tests show that this may also work in Mac OS X with the mono framework installed (/Library/Frameworks/Mono.framework).

    If I have a chance, I’ll take a break from (my) ProconCore.framework and look at whipping up a GUI to add the LaunchAgent launchd job (already did something like that in ”Other Apps Helper” part of Source Finagler; shouldn’t be too hard to repurpose it).
    Last edited by NSGod; 20-04-2012 at 03:19.

  9. #9
    I love you XpKiller ^^

  10. #10
    Out of interest...are there are advantages to running the layer on Linux as opposed to Windows?
    Developer of PBSS Scanner || Feedback Thread


 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •