Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

Pyspades for linux

For all your hosting needs.

Pyspades for linux

Postby KomradeKorakoff » Fri Mar 30, 2012 12:05 am

Does anybody have knowledge on compiling pyspades on Linux VPS? Specifically Ubuntu 11.04, if not gentoo or CentOS. A couple methods I've tried on the pyspades wiki for Ubuntu failed.
ImageImageImage
IRC link above ^ | <AGANCommanderCody> You really think we want a clan match against you guys, you Aimbotted last time and were GBLed on a canadian server for Hacking. <-- alart guys komrades delicious aimbot
User avatar
KomradeKorakoff
Komrade Leader
 
Posts: 1035
Joined: Sat Dec 10, 2011 8:24 pm
Location: Leningrad, CCCP

Re: Pyspades for linux

Postby Tocksman » Fri Mar 30, 2012 2:38 am

  • Step 1: "sudo aptitude install python-dev build-essential python-pip mercurial screen" (if you don't already have these packages).
  • Step 2: Create a new account for hosting the AoS server. "adduser aceofspades" (It is vital that you do this so that if someone manages to compromise pyspades, they won't have root access!!!)
  • Step 3: Without logging out of root, you can "sudo su aceofspades" to get directly into your aceofspades account from root.
  • Step 4: Run "hg clone https://code.google.com/p/pyspades/"
  • Step 5: The following is a direct dump of the python packages installed on Goon Haven 1. If you "pip install" each of these packages, you should be more than good to go (note: you may have to sudo, so type "exit" to return to the root account).
    Code: Select all
    Cython
    GnuPGInterface
    Twisted
    command-not-found
    distribute
    mercurial
    pyasn1
    pycrypto
    python-apt
    simple-json
    simplejson
    ufw
    unattended-upgrades
    virtualenv
    wsgiref
    zope.interface
  • Step 6: While under the aceofspades account (use the "sudo su aceofspades" command), change directories to your pyspades directory and run build.sh by typing "./build.sh". If it doesn't work, then type "chmod +x build.sh". If you get compile errors, make sure you installed all of the packages listed above.
  • Step 7: Now type "chmod +x run_server.sh".
  • Step 8: Check to make sure pyspades works. Type "./run_server.sh". If it comes up with errors, exit pyspades by hitting CONTROL-C and check your config or possibly anything else that may impede server execution. Once it runs successfully, exit it again. We're going to use screen to run it now.
  • Step 9: Type the following command: "screen -S aos ./run_server.sh". A new console will open up for you with pyspades working. If it just says "[screen has terminated]", then pyspades isn't working correctly, and you should repeat Step 8 until pyspades runs without errors.
  • Step 10: Press CONTROL-AD (both A and D at the same time), and you will detach from the console. Now you can safely log out without pyspades terminating when you exit.

Last minute tips:
  • If you wish to open up the pyspades console again, type "screen -raAd aos".
  • If you wish to terminate pyspades for an update or whatever reason, use the resume command in the previous point and then hit CONTROL-C. This will send a keyboardinterrupt to pyspades and cause it to close.
  • To update pyspades, terminate pyspades and run "hg pull && hg update -C" in your pyspades directory. NOTE THAT IF YOU MADE ANY CHANGES TO PYSPADES, THEY'LL BE OVERWRITTEN (this should not overwrite your config, but I would make backups just in case)!
  • If you have changes that you don't want to be overwritten, then use this command instead: "hg pull && hg update". This may prompt you to make manual merges with vim, though.
Tocksman
Member
 
Posts: 90
Joined: Mon Jan 02, 2012 10:46 pm

Re: Pyspades for linux

Postby KomradeKorakoff » Fri Mar 30, 2012 9:41 am

When I try to use *any* screen commands, I get this.

Code: Select all
Cannot open your terminal '/dev/pts/1' - please check.


Also, half of the packages didn't work while pip install
ImageImageImage
IRC link above ^ | <AGANCommanderCody> You really think we want a clan match against you guys, you Aimbotted last time and were GBLed on a canadian server for Hacking. <-- alart guys komrades delicious aimbot
User avatar
KomradeKorakoff
Komrade Leader
 
Posts: 1035
Joined: Sat Dec 10, 2011 8:24 pm
Location: Leningrad, CCCP

Re: Pyspades for linux

Postby Tocksman » Fri Mar 30, 2012 9:43 pm

Whoops. My bad. Use this command to fix: "script /dev/null" before using screen commands.

KomradeKorakoff wrote:Also, half of the packages didn't work while pip install

A lot of them are dependencies and get installed when you install other packages in the list.
Tocksman
Member
 
Posts: 90
Joined: Mon Jan 02, 2012 10:46 pm


Return to Server



Who is online

Users browsing this forum: No registered users and 2 guests

cron