Jump to content
pyth0n3

Import ccsc from Chess Club Project

Recommended Posts

Posted (edited)

man(8) ccsc man page man(8)

NAME

ccsc - chess club secure chat

SYNOPSIS

ccsc

DESCRIPTION

ccsc is a simple low level CLI pythonic chat server and client , in

server mode accepts MAX clients simultaneously and waits for reply As

client it works in a similar way.

OPTIONS

After starting the client session:

/help Will display the help menu

/quit Will shutdown

/mass Write message to all

/list List online users

/nick [NICKNAME] Change the default nickname

/to [NICKNAME] Write message to [NICKNAME]

/block [NICKNAME] Ignore user

/unblock [NICKNAME] Unblock user

BUGS

in client mode if Ctrl+C is pressed it will make server crash somehow

and the connection will remain open. I think timeout is changed auto?

matically to None

AUTHOR

Developer(cmin764@gmail/yahoo.com)

Package management, documentation, beta testing (python3aka@gmail.com)

1.0 25 September 2011 man(8)

Tested on Debian && Fedora Linux

Debian installer:

ccsc-1.0-dev-linux-2.6-intel.deb

md5sum 7a6500ed43cebc5bacd67815048b8205 ccsc-1.0-dev-linux-2.6-intel.deb

man page

Alternative download mediafire

Source Code

Dependencies pycrypto >= 2.1

The chess club project under contruction

Thanks also must go to Flubber && Zatarra for beta testing.

Edited by pyth0n3
  • Upvote 1
Posted

Pe win puteti lua direct pachetul de aici, pe linux

apt-get install python-crypto

si nici asa nu garantez ca merge.

Daca vreti sa instalati pachetul manual din setup va da o eroare in gcc, e un bug specific python. Ideea este sa folositi python2.7.2 si pycrypto2.3 nimic altceva in plus sau diferit.

Enjoy.

Posted

La asta se refera cMIN:

warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash.MD2' extension
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-i686-2.7/src/MD2.o
src/MD2.c:31:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

Posted

Pentru cei ce folosesc sisteme *NIX RPM-based:

yum install pycrypto

Daca nu vi-l gaseste, verificati-va repo-urile din /etc/yum.repos.d/.

Eventual puteti incerca sa cautati pachetul PyCrypto:

[^]

yum search python | grep crypto

Repo-urile mele:


~ yum repolist

repo id repo name status
fedora Fedora 14 - i386 17,883
-- cut --
rpmfusion-free RPM Fusion for Fedora 14 - Free 364
rpmfusion-free-updates RPM Fusion for Fedora 14 - Free - Updates 788
rpmfusion-nonfree RPM Fusion for Fedora 14 - Nonfree 176
rpmfusion-nonfree-updates RPM Fusion for Fedora 14 - Nonfree - Updates 418
updates Fedora 14 - i386 - Updates 7,750
repolist: 27,736

[^] executata pe Fedora Core 14 (Linux 2.6.35.14-96.fc14.i686 | i686 i686 i386 GNU/Linux):


~ yum search python | grep crypto

python-crypto.i686 : Cryptography library for Python
m2crypto.i686 : Support for using OpenSSL in python scripts
pycryptopp.i686 : Python wrappers for the Crypto++ library

Have fun si haideti sa imbunatatim codul (fix bug(s) etc.) si sa continuam munca (enorma) depusa de cmiN pentru noi.

Posted

Problema este urmatoarea :

Executabilul are nevoie de pycrypto >= 2.1 iar unele sisteme suporta pycrypto pana la versiunea 2.0

Deci chiar daca pycrypto vine instalat nu va functiona daca nu este egal sau mai mare decat 2.1 .

Aici am creat un installer universal care ar trebui sa functioneze in majoritatea distributiilor

ccsc-v1.0-dev-universal-installer.tar

md5sum f7101c3de741f1271258dcf5bc755e65 ccsc-v1.0-dev-universal-installer.tar


tar -xvf ccsc-v1.0-dev-universal-installer.tar
cd ccsc && sudo python setup.py install

Ce face?

In primul rand cauta ultima versiune de pycrypto si incearca sa o compileze in sistem

dupa care creaza un executabil care poate fi chemat cu ccsc

Unde este problema?

Installerul descarca ultima versiune de pycrypto dar in cazul in care nu reuseste sa o compileze renunta si trimite in stdout errorile .

Ultima versiune de Pycrypto are nevoie de anumite dependente si nu toate sistemele

sunt in grad sa o suporte .

Asadar no pytcrypto >= 2.1 no chat

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...