proxy 환경에서  python setup.py install 시에 아래와 같은 에러가 발생한다.

 

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) -- Some packages may not be found!

인증서 certificate verify 시에 문제가 되는 것으로 proxy 인증서를 강제로 넣고 싶은데 따로 설정하는 방법을 모르겠다....

 

그래서 직접 setuptools 코드를 수정하였다.

 

     /usr/lib/python2.7/dist-packages/setuptools/ssl_support.py

 

위 파일을 열어보면



 

 

cert_paths = """

/etc/pki/tls/certs .....

...

...

..

등등

"""

 

이런게 있을텐데 여기에 프록시 인증서 경로를 추가해 주면 된다.

 

이렇게 수동 말고 따로 하는 방법이 있을 텐데 아직 그건 못찾겠다...

 

[solved] samba / smbd error

Posted 2017. 2. 1. 18:53

[2016/05/10 13:54:18.062733,  0] ../source4/smbd/server.c:372(binary_smbd_main)
  samba version 4.3.9-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2015
[2016/05/10 13:54:18.552887,  0] ../source4/smbd/server.c:477(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2016/05/10 13:54:18.553081,  0] ../lib/util/become_daemon.c:111(exit_daemon)
  STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22

 

 

/etc/samba/smb.conf

 

+++++add

 

server services = +smb -s3fs
dcerpc endpoint servers = +winreg +srvsvc

 

 

 

reference : https://wiki.samba.org/index.php/Samba4/s3fs

해결 방법. 아래와 같이 하면 해결된다.

 

 

 

 

저기서 [높은 DPI 설정에서 디스플레이 배율을 사용하지 않음]에 체크를 한다.

 

글자가 흐리게 보이는 원인은 노트북과 같이 화면이 작은 디스플레이의 경우 윈도우에서 강제로 글자를 확대하기 때문에 생기는 현상으로 보인다.

 

 

pydbg를 이용하여 pydbg.bp_set() 함수를 사용하니 아래와 같은 에러가 나왔다.

Traceback (most recent call last):
  File "asd.py", line 46, in <module>
    main()
  File "asd.py", line 42, in main
    dbg.bp_set(entry,handler=setallbp)
  File "C:\Python27\lib\site-packages\pydbg\pydbg.py", line 444, in bp_set
    raise pdx("Failed setting breakpoint at %08x" % address)
pydbg.pdx.pdx: Failed setting breakpoint at 00401301


처음에는 권한 문제인줄 알고 관리자 권한 실행을 해도 같은 오류가 나왔다.


별다른 이유가 없어서 생각난 것은 ASLR이었고 해당 기능을 제거하였더니 정상적으로 잘 되었다.


제거 방법은 아래 블로그를 참조하자


 http://zer0day.tistory.com/66





XE 중복 로그인 방지 애드온

Posted 2015. 9. 16. 01:32

일단 테스트로 대충 만듬

로그인하면 다른 한쪽 풀림

 

prevent_multi_login.zip

 

 ** 인증 세션 DB 사용 반드시 체크해야 됨 **

윈도우 10 버전으로 터치패드 드라이버 업데이트 하기.

오류: Connection timed out after 20 seconds of inactivity
오류: 디렉터리 목록 조회 실패

처음에는 passive 문제인줄 알았으나..

 

암호화 방식문제인 경우도 있음.

plain으로 바꾸면 됨

 

 

 

물론 그 환경에 맞춰야됨

Samba 설치하기

Posted 2014. 11. 21. 21:36

1. samba 설치하기 

 # apt-get install samba


2. samba 설정하기

 # vi /etc/samba/smb.conf

  * 아래 서버설정처럼

 # service smbd restart  또는 /etc/init.d/smbd restart

[global]

   security = user

   encrypt passwords = true

   passdb backend = smbpasswd



   workgroup = WORKGROUP


   #보안설정상 

   server string = Windows Server


   dns proxy = no

   log file = /var/log/samba/log.%m

   max log size = 1000

   syslog = 0

   panic action = /usr/share/samba/panic-action %d

   server role = standalone server

   passdb backend = tdbsam   obey pam restrictions = yes

   unix password sync = yes

   passwd program = /usr/bin/passwd %u

   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

   pam password change = yes

   map to guest = bad user

   usershare allow guests = yes


   dos charset = CP949

   unix charset = UTF-8

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192


# 보여질 파일 공유 이름

[media]

    comment = Data (share)

    # 경로

    path = /samba/data

    browseable = yes

    read only = no

    create mask = 0775

    directory mask = 0775


3. 계정 등록

 # smbpasswd -a [계정이름]

    ** 주의사항. 현 시스템에 존재하는 계정으로 해야함,,,, 비밀번호는 달라도 상관없음




 


문명 5 로컬연결(LAN) 안될 때

Posted 2014. 8. 27. 07:31

IP 대역이 사설망이여야 된다.

아니면 게임 개최를 해도 방이 보이는데 접속이 안된다.

회사나 학교의 경우에는 IP 대역이 서로 로컬이여도 사설망 IP대역이 아니여서 되질 않는다.

따라서 공유기를 쓰든지 아니면 연결할 PC들의 IP를 서로끼리 통신되게 사설 IP로 바꿔주면 된다.

(정상적인 인터넷은 사용 불가)

192.168.A. XX

위와 같이 바꿔주면 된다. 보통의 경우에 같은 공간이면 IP만 바꿔도 잘 됨


ex)  아이피 설정

* PC1 

ip : 192.169.1.10

subnet : 255.255.255.0

게이트웨이 안적어도됨


* PC2

ip : 192.169.1.11

subnet : 255.255.255.0

게이트웨이 안적어도됨


* PC3

ip : 192.169.1.12

subnet : 255.255.255.0

게이트웨이 안적어도됨



cmd 결과 복사

Posted 2013. 7. 9. 02:30

cmd 창에 명령어 입력시 쉽게 결과값을 복사하는 방법이 있다.

명령어를 쓰고 |copy 를 써주면 된다.

 

ex> ping 127.0.0.1 |clip

 

붙여넣기:


Ping 127.0.0.1 32바이트 데이터 사용:
127.0.0.1의 응답: 바이트=32 시간<1ms TTL=128
127.0.0.1의 응답: 바이트=32 시간<1ms TTL=128
127.0.0.1의 응답: 바이트=32 시간<1ms TTL=128
127.0.0.1의 응답: 바이트=32 시간<1ms TTL=128

127.0.0.1에 대한 Ping 통계:
    패킷: 보냄 = 4, 받음 = 4, 손실 = 0 (0% 손실),
왕복 시간(밀리초):
    최소 = 0ms, 최대 = 0ms, 평균 = 0ms

 

이렇게 복사됨,

 

굿.

 

분명 어딘가엔 유용할 꺼라 생각함.

'기타' 카테고리의 다른 글

Samba 설치하기  (0) 2014.11.21
문명 5 로컬연결(LAN) 안될 때  (0) 2014.08.27
Windows 8 (Internet Explorer 10) 한국장학재단 출근부 입력 안될 때  (8) 2013.02.27
XE ftp 오류  (0) 2012.08.13
아파치 인증 (apache2)  (1) 2012.07.06
« PREV : 1 : 2 : 3 : 4 : 5 : NEXT »