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/

How to install pyspades on centos

Problem getting your server up? Ask in here.

How to install pyspades on centos

Postby Killer804 » Sun Jul 29, 2012 2:47 pm

I have been looking for a good tutorial too install centos but can't find one. If someone could make one or link me to a good one.
Thanks
Last edited by Killer804 on Mon Jul 30, 2012 8:09 am, edited 1 time in total.
Killer804
Member
 
Posts: 3
Joined: Sun Jul 29, 2012 2:10 pm

Re: Centos install

Postby PXYC » Sun Jul 29, 2012 3:32 pm

You want to install Pyspades on CentOS, or you're just trying to install CentOS?
Image

<+laserlamp> lil b is my fav
User avatar
PXYC
Local Mod
 
Posts: 1068
Joined: Wed Dec 14, 2011 2:52 am
Location: Near Philadelphia, PA

Re: Centos install

Postby Killer804 » Sun Jul 29, 2012 7:11 pm

I want to install pyspades on centos sorry
Killer804
Member
 
Posts: 3
Joined: Sun Jul 29, 2012 2:10 pm

Re: How to install pyspades on centos

Postby topologist » Tue Jul 31, 2012 11:12 am

You'll want to use your root account for this, or there'll be a lot of "sudo"ing. :X

Grab http://codingwithcody.com/downloads/pyt ... install.sh and run "sh install.sh" to install python2.7. This will overwrite the default python, temporarily breaking your system. Don't worry, just run these commands to fix it:
Code: Select all
ln -sf /usr/bin/python2.4 /usr/bin/python
ln -sf /opt/python2.7.1/lib/libpython2.7.so /usr/lib/libpython2.7.so
ln -sf /opt/python2.7.1/lib/libpython2.7.so.1.0 /usr/lib/libpython2.7.so.1.0


Download the 2.7 egg for setuptools and run "sh setuptools-0.6c11-py2.7.egg --prefix=/opt/python2.7.1" to install setuptools (which includes easy_install).

run "python2.7 -m easy_install cython pil jinja2 pygeoip mercurial twisted" then "ln -s /opt/python2.7.1/bin/hg /usr/local/bin/hg". If you don't already have screen, run "yum install screen". Run "yum install gcc-c++".

You don't need to be root from now on. In fact, I recommend you don't run pyspades as root.

Run "hg clone https://code.google.com/p/pyspades" wherever you want pyspades to be installed.
cd to the newly-created pyspades directory.
Run:
Code: Select all
python2.7 build.py build_ext --inplace
cd enet
python2.7 setup.py build_ext --inplace


And you're done! Set up your config how you like it, cd to feature_server, run "screen -S pyspades python2.7 run.py" to run it. Use ctrl-a d to exit screen and "screen -r pyspades" to re-enter it.
REDACTED
topologist
[SPQR] Member
 
Posts: 216
Joined: Sun Dec 11, 2011 9:58 am
Location: boop


Return to Server Help



Who is online

Users browsing this forum: No registered users and 6 guests

cron