pebrot 설치

 

서버에 MSN 메신져를 깔았다..ㅋ

예전에 나모씨가 알려준 pebrot이 갑자기 생각나서..ㅋ

서버에서 하는 text msn의 재미란..ㅋㅋ

홈페이지는 http://pebrot.sourceforge.net/ 이다.

pebrot-0.8.8.tar.gz을 다운받고 설치 문서 확인..

]$ tar xvzf pebrot-0.8.8.tar.gz
]$ vi INSTALL

root로 설치하란다..ㅋ

]# python setup.py install
File "setup.py", line 29
utils+= [ ( 'share/doc/pebrot/utils/transparent_bg', glob.glob( 'utils/transparent_bg/*' ) ) ]
^
SyntaxError: invalid syntax

오호…

이게 웬말인가

Syntax Error라니..ㅡㅡ;;

정보를 얻기위해 다시 pebrot 홈페이지에 방문하니 이런 문구가..ㅡㅡ;

You must have Python 2.2 or higher installed, Python 1.5.x is not supported.

혹시나 하는 마음에 python 버전을 확인했다.

]# python
Python 1.5.2 (#1, Jan 31 2003, 10:58:35)  [GCC 2.96 20000731 (Red Hat Linux 7.3 2 on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>

두둥!!

python 1.5 버전이다..ㅋ

아싸리 이번에 python도 새버전으로 깔자는 마음에 python 홈페이지를 방문했다.

http://www.python.org/ 에서 가장 최신버전인 2.5.1을 다운받았다.(http://www.python.org/download/releases/2.5.1/)

Python-2.5.1.tgz의 압축을 풀고

가뿐하게 설치했다.

]# ./configure
]# make
]# make intall

다시 python으로 확인해봐도 1.5버전이 실행된다.

whereis 로 어디 python이 실행되는지 확인해봤다.

]# whereis python
python: /usr/bin/python1.5 /usr/bin/python /usr/bin/python2.2 /usr/lib/python1.5 /usr/lib/python2.2 /usr/local/bin/python2.5 /usr/local/bin/python2.5-config /usr/local/bin/python /usr/local/lib/python1.5 /usr/local/lib/python2.5 /usr/include/python1.5 /usr/include/python2.2
]# ls -al /usr/bin/py*
-rwxr-xr-x    1 root     root           51 Jan 31  2003 pydoc2
-rwxr-xr-x    1 root     root        18175 Jan 31  2003 pygettext2.py
-rwxr-xr-x    1 root     root           64 Jan 31  2003 pynche2
-rwxr-xr-x    2 root     root       413032 Feb  1  2003 python
-rwxr-xr-x    2 root     root       413032 Feb  1  2003 python1.5
-rwxr-xr-x    2 root     root       887296 Jan 31  2003 python2

오호라..이러니 자꾸 1.5버전이 실행되는 것이였다.

python2.5는 /usr/local/bin/python2.5에 짱박혀있다.

]# cp /usr/local/bin/python2.5 /usr/bin/python

으로 덮어쓰기 신공!!ㅋ

다시 버전확인~

]# python
Python 2.5.1 (r251:54863, Jul  2 2007, 22:27:27)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-113)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

성공ㅋㅋ

아까하던 pebrot 설치를 계속해보자

]# python setup.py install

무소식이 희소식이라 아무런 에러가 없다.ㅋㅋ

개인 계정으로 바꿔서 ./pebrot을 실행해봤다

]$ ./pebrot
I can't find /home/XXXX/.pebrot/pebrotrc, so I will copy the supplied pebrotrc there.
Press Enter to continue...
Please edit /home/XXXX/.pebrot/pebrotrc and specify your login and password.

ㅋㅋ 설정파일을 설정하란다.

]$ vi /home/XXXX/.pebrot/pebrotrc
user=xxxx@hotmail.com
password=xxxx
encoding= EUC-KR
download_dir= /home/XXXX/.pebrot/down

등 몇개의 설정을 바꾸고 다시 실행ㅋ

]$ ./pebrot
      /\   
      \ \ 
 _.-._| |_.-_  
(      ~     ) 
`; #   ;    ;    ###   ##  ###  ###   ##  #####
 |     .    |    #  # #    #  # #  # #  #   #
 ( #   ;    ;    ###  ###  ###  ###  #  #   # 
 \ #   .   )     #    #    #  # # #  #  #   #
Version - 0.8.8
Enter \h for help.
User: xxxx@hotmail.com
Connecting to messenger.hotmail.com... done
Connecting to xxx.xxx.xxx.xxx... done

----------=| CONNECTED |=----------
0- email1@email.com (Idle): 모시깽이 별명~~
1- email2@email.com (Online): 누구누구~~
2- email3@email.com (Busy): 머기시머시기~~
...등등 기타 여러명
-----------------------------------

멋지다!!

사용법을 볼려면 \h하면 나온다.

----------=| HELP |=----------
Commands begin with '\' or '/', everything else are messages.

\number     Create chat to user with this number.
\c          Close active chat.
tab         Change active chat.
\i number   Invite user to active chat.
\l          List connected users.
\l list     Show requested list. list must be one of the following:
fl: Forward list, users on your contact list
rl: Reverse list, users who have you on their contact list
al: Allow list, users allowed to see your status
bl: Block list, users not allowed to see your status
\u          List users on active chat.
\n          Change nick.
\a user     Add user to buddy list.
\b user     Block user.
\r user     Remove user from buddy list.
\o user     Open chat window with a user not on your buddy list.
\s state    Change state. state must be one of the following:
nln: Online          fln: Offline        hdn: Appear Offline
idl: Idle            awy: Away           bsy: Busy
brb: Be Right Back   phn: On the Phone   lun: Out to Lunch
\f filePath Send file.
\fa         Accept file for download.
\fr pos     Reject file for download. pos specifies its position on chat
bar (1,2,3....). Can input several numbers at once, just
separate them with spaces.
If executed without any pos just rejects all file downloads
\fc pos     Cancel file send. pos works like in '\fr'
\!          Execute shell command.
\e          Erase chat window contents.
\d file     Dump chat text to file. If no file is supplied it will use a
temporal file name.
Ctrl-l      Redraw screen.
\h \?       This help.
\q Ctrl-d   Quit.
------------------------------

그러면 즐거운 메신져질 해볼까~ㅋ

 

This entry was posted in Python/Ruby/Perl, Util/Tools and tagged , , , , . Bookmark the permalink.

댓글 남기기