BLOG main image
분류 전체보기 (12)
[Python] Tips (1)
잡답 (2)
Programing - python3 (0)
Blockchain - Bitcoin - 4th .. (0)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
tistory 티스토리 가입하기!
2022. 1. 3. 12:02

[맥](프린터 연결) x4330(x4220, 삼성, color) 연결시, 옵션 적용사항

 - (문제) 프린터 설정은 되지만, 프린트가 매우 오래걸리는 문제 발생 

 - (해결) Samsung Driver 설치후, 프로토콜을 AirPrint, 드라이버를 Samsung X4300 Series PS 지정시 위의 문제가 발생하지 않음

'잡답' 카테고리의 다른 글

아이러브스쿨은 왜 잊혀졌는가?  (0) 2017.11.14
2019. 12. 26. 17:54

맥에서 Microsoft remote desktop 연결시 블랙 또는 블루 스크린이 생기고 연결이 안될 때 해결 방법을 기술함

1. xrdp 를 설치한 후, MS remote desktop 연결하면 연결이 안됨

>> sudo apt install xrdp 

2. 해결 방법으로 xorgxrdp 설치 하여야 하나 Error 가 발생

3. 다음 방법으로 설치하면 가능해짐

>> sudo apt-get install xorgxrdp-hwe-18.04

 

참고 자료: 

https://askubuntu.com/questions/1166568/remote-desktop-blue-screen-after-login

 

Remote Desktop -- blue screen after login

I've installed mate and xrdp on Ubuntu 18.04. Now I try to connect to this PC from another Ubuntu with Remmina: I press OK, login window disappears background is same,nothing happens. My ~/.xsession

askubuntu.com

 

2019. 10. 17. 20:47

여러사람이 동시에 서버를 사용할때 GPU의 사용량을 확인해서 사용하는 방법이다. 이 방법은 nvidia-smi 의 내용을 읽어들여 간단히 표현하는 방법이다.

 

pip install gpuinfo

https://pypi.org/project/gpuinfo/

 

gpuinfo

A quick access to nvidia gpu information

pypi.org

from gpuinfo import GPUInfo

GPUInfo.get_users(1) 

   {'mslee21': 17240}

GPUInfo.get_info()

 ==> 위의 경우value error가 발생한다. 이는 GPUInfo.py 에서 percent값을 정수로 읽어들이려 해서 발생하는 문제로 다음과 같이 바꾼다

percent.apped(int(line.splt('%')[1][-3:])

 ==> percent.apped(line.splt('%')[1][6:13])

이후 다시해보면 정상적으로 동작함