'Linux'에 해당되는 글 777건

  1. 2019.06.19 리눅스 캐시 비우기
  2. 2019.06.18 gzip -k
  3. 2019.06.18 diff: memory exhausted
  4. 2019.06.14 plymouth
  5. 2019.06.03 ubuntu sftp with nautilius
  6. 2019.05.10 리눅스 gdm 키맵 변경
  7. 2019.05.06 ubuntu 18.04 hibernate 적용하기
  8. 2019.05.05 intel hd 3000 GLSL
  9. 2019.05.04 linux smbus?
  10. 2019.05.04 우분투 창 전환(그룹) 해제하기
Linux2019. 6. 19. 01:13

htop에서 노란색이 훅 줄어드네?

 

# echo 3 > /proc/sys/vm/drop_caches

[링크 : https://zetawiki.com/wiki/리눅스_캐시_메모리_비우기]

[링크 : https://serverfault.com/questions/180711/what-exactly-do-the-colors-in-htop-status-bars-mean]

'Linux' 카테고리의 다른 글

bash argument list is too long  (0) 2019.06.25
sgrep  (0) 2019.06.24
gzip -k  (0) 2019.06.18
diff: memory exhausted  (0) 2019.06.18
plymouth  (0) 2019.06.14
Posted by 구차니
Linux2019. 6. 18. 18:18

아무옵션없이 쓰니

압축풀면 원본이 사라지는데 -k(keep)을 주어야 안사라지는 듯

 

왜 이런 위험한 옵션이 기본값이 아니지?

       -k --keep
              Keep (don't delete) input files during compression or decompression.

'Linux' 카테고리의 다른 글

sgrep  (0) 2019.06.24
리눅스 캐시 비우기  (0) 2019.06.19
diff: memory exhausted  (0) 2019.06.18
plymouth  (0) 2019.06.14
linux 링크속도 줄이기  (0) 2019.04.25
Posted by 구차니
Linux2019. 6. 18. 18:17

헐.. -_-

 

cmp는 단순히 다른부분만 확인하고 넘어가는 놈..

sdiff도 메모리 부족해서 죽는건 동일..

 

(8GB 메모리에 7GB 짜리 파일 두개 비교하려니 죽네)

 

[링크 : https://superuser.com/questions/174283/how-to-diff-large-files-on-linux]

[링크 : https://stackoverflow.com/questions/15264062/memory-exhausted-for-large-files-using-diff]

 

 

+

걍 메모리 넘치는 놈으로 이동.

근데 7기가 두개를 비교하려니 하드도 안 긁어대고 diff가 되는건 맞는지 의심..

단, 두개 돌리는데 사용메모리가 42GB까지 점프...(미친)

 

+

2019.08.28

8기가 메모리에서 8GB 짜리 파일 두개를 비교하는데 성공

$ time diff -urN output-2019-06.csv output-2019-07.csv > 6_7.diff

real    0m4.037s
user    0m0.642s
sys     0m0.966s

근데... 이렇게 빨리 결과가 나오는게 가능한거 맞나?

 

한번도 비교 안한놈 하니 좀 심하게 오래 걸리네?

그리고 메모리 다 잡아 먹으면서, swap 까지 한계치 까지 쭉쭉 올라간다.. ㄷㄷ

아니.. 위에 결과는 머야? 어떻게 위에는 diff가 된거지?

(몇번 시도하는데 처음에 한번 되고 그 이후로는 안된다 -_- 스왑까지 다 차서 그런가..)

$ time diff -urN ClinVarFullRelease_2018-10.xml ClinVarFullRelease_2018-12.xml > 10_12.diff
죽었음

real    2m10.395s
user    0m0.006s
sys     0m10.949s

 

설정법은 아래와 같이 overcommit을 허용하는 걸로..(근데 문제는 없으려나..)

sudo vim /etc/sysctl.conf
vm.overcommit_memory=1
sudo sysctl -p

[링크 : https://stackoverflow.com/questions/15264062/memory-exhausted-for-large-files-using-diff]

[링크 : https://codeday.me/ko/qa/20190404/238051.html]

'Linux' 카테고리의 다른 글

리눅스 캐시 비우기  (0) 2019.06.19
gzip -k  (0) 2019.06.18
plymouth  (0) 2019.06.14
linux 링크속도 줄이기  (0) 2019.04.25
ip별 대역폭 제한하기  (0) 2019.04.25
Posted by 구차니
Linux2019. 6. 14. 07:38

종료하는데 90초나 잡고 있어서 먼가 찾아보는데

단순하게(?) 로딩 스플래시 띄워주는 놈이라고..

이딴놈이 90초나 종료를 못하도록 잡고 있다니 월권행위 아닌가?

 

[링크 : https://wiki.ubuntu.com/Plymouth]

 

부트로더에서 splash 끄면 된다는데, 시작은 그렇다 쳐도 종료는 어떻게 되려나?

[링크 :https://askubuntu.com/questions/766973/16-04-how-to-uninstall-plymouth]

'Linux' 카테고리의 다른 글

gzip -k  (0) 2019.06.18
diff: memory exhausted  (0) 2019.06.18
linux 링크속도 줄이기  (0) 2019.04.25
ip별 대역폭 제한하기  (0) 2019.04.25
systemctl restart 시그널  (0) 2019.04.23
Posted by 구차니
Linux/Ubuntu2019. 6. 3. 18:48

별다른 sftp 클라이언트를 깔기 보단

탐색기라고 불릴만한 nautilus를 쓰는게 편리할 듯

[링크 : https://www.techrepublic.com/article/how-to-use-linux-file-manager-to-connect-to-an-sftp-server/]

'Linux > Ubuntu' 카테고리의 다른 글

bash-completion  (0) 2019.07.09
우분투 리눅스에 카카오톡 깔기  (2) 2019.07.09
리눅스 gdm 키맵 변경  (0) 2019.05.10
ubuntu 18.04 hibernate 적용하기  (0) 2019.05.06
intel hd 3000 GLSL  (0) 2019.05.05
Posted by 구차니
Linux/Ubuntu2019. 5. 10. 10:30

뜬금없이 우측 alt 키가 한글에서 ALT-R로 인식이 바뀌어서 급 멘붕. (포맷해야하나..)

아무튼 바꿀순 있는데 걍... alt-r로 바뀐김에 한글변환키를 alt-r로 추가해주는게 현재로서는 가장 편하네..(덜 귀찮..)

 

[링크 : https://hyoungx.tistory.com/38]

[링크 : https://lhb0517.tistory.com/entry/우분투-기계식-키보드-오른쪽-알트키AltR를-한영전환키로-변경]

'Linux > Ubuntu' 카테고리의 다른 글

우분투 리눅스에 카카오톡 깔기  (2) 2019.07.09
ubuntu sftp with nautilius  (0) 2019.06.03
ubuntu 18.04 hibernate 적용하기  (0) 2019.05.06
intel hd 3000 GLSL  (0) 2019.05.05
linux smbus?  (0) 2019.05.04
Posted by 구차니
Linux/Ubuntu2019. 5. 6. 22:19

2760p에 우분투를 깔았는데 하루종일 냅둬도 syspend 모드로 가있어서

윈도우 처럼 하이버네이트 안되나 찾아보는 중. 적용을 해봐야겠네

(느낌인진 몰라도 suspend 해두면 자연방전이 윈도우 보다 적은 느낌?)

 

// 30*60=1800sec hiberate

$ sudo vim /etc/systemd/sleep.conf

[Sleep]
HibernateDelaySec=1800

// for test
$ sudo systemctl suspend-then-hibernate

[링크 : https://askubuntu.com/questions/12383/how-to-go-automatically-from-suspend-into-hibernate]

 

+

해보니 뚜껑닫아도 절전모드 들어가버린다..

이건 별도로 설정을 해주어야 할 듯

 

+

2019.05.08

절전모드 혹은 하이버네이트 들어갔다나 나올 때

와콤 펜 타블렛 및 터치가 안되는 문제가 있어서 sleep.conf 지우고 완전히 종료했다 켜니 됨.

(재시작으로는 살아나지 못함)

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu sftp with nautilius  (0) 2019.06.03
리눅스 gdm 키맵 변경  (0) 2019.05.10
intel hd 3000 GLSL  (0) 2019.05.05
linux smbus?  (0) 2019.05.04
우분투 창 전환(그룹) 해제하기  (0) 2019.05.04
Posted by 구차니
Linux/Ubuntu2019. 5. 5. 10:57

python 으로 먼가 하려는데 안되서 멘붕

$ python pygl.py 
No handlers could be found for logger "OpenGL.arrays.numpymodule"
Traceback (most recent call last):
  File "pygl.py", line 92, in 
    main()
  File "pygl.py", line 56, in main
    shader = OpenGL.GL.shaders.compileProgram(OpenGL.GL.shaders.compileShader(vertex_shader, GL_VERTEX_SHADER),
  File "/home/minimonk/.local/lib/python2.7/site-packages/OpenGL/GL/shaders.py", line 226, in compileShader
    shaderType,
RuntimeError: ('Shader compile failure (0): 0:2(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES\n', ['\n    #version 330\n    in vec3 position;\n    in vec3 color;\n\n    out vec3 newColor;\n    void main()\n    {\n        gl_Position = vec4(position, 1.0f);\n        newColor = color;\n    }\n    '], GL_VERTEX_SHADER)
minimonk@mini2760:~/src/pygl$ MESA_GLSL_VERSION_OVERRIDE=330 python pygl.py
No handlers could be found for logger "OpenGL.arrays.numpymodule"
Traceback (most recent call last):
  File "pygl.py", line 92, in 
    main()
  File "pygl.py", line 56, in main
    shader = OpenGL.GL.shaders.compileProgram(OpenGL.GL.shaders.compileShader(vertex_shader, GL_VERTEX_SHADER),
  File "/home/minimonk/.local/lib/python2.7/site-packages/OpenGL/GL/shaders.py", line 226, in compileShader
    shaderType,
RuntimeError: ('Shader compile failure (0): 0:2(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES\n', ['\n    #version 330\n    in vec3 position;\n    in vec3 color;\n\n    out vec3 newColor;\n    void main()\n    {\n        gl_Position = vec4(position, 1.0f);\n        newColor = color;\n    }\n    '], GL_VERTEX_SHADER)

 

암튼 찾다보면 win10에서 GL3.0 지원 안한다고 하는 말도 있고 하는데

리눅스에서는 아래처럼 환경변수 정해주면 된다고 하는데..  오오 진짜루 된다!! 만세!

export MESA_GLSL_VERSION_OVERRIDE=330
export MESA_GL_VERSION_OVERRIDE=3.3
$ python pygl.py 
No handlers could be found for logger "OpenGL.arrays.numpymodule"

 

일단은 실행되는걸 보니 shader도 정상적으로 되는 듯?

 

[링크 : https://news.ycombinator.com/item?id=14181897]

[링크 : https://old.reddit.com/.../how_can_i_get_opengl_33_with_glsl_33_support/...]

'Linux > Ubuntu' 카테고리의 다른 글

리눅스 gdm 키맵 변경  (0) 2019.05.10
ubuntu 18.04 hibernate 적용하기  (0) 2019.05.06
linux smbus?  (0) 2019.05.04
우분투 창 전환(그룹) 해제하기  (0) 2019.05.04
우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
Posted by 구차니
Linux/Ubuntu2019. 5. 4. 10:03

BMS 칩셋 i2c 주소를 어떻게 접근하나 찾는중

i2cdetect를 통해서는 이상한것만 보이는데..

gmbus는 그래픽 카드쪽이라고 검색은 나오지만.. 확실한건 좀더 봐야 할 듯 하고

 

$ i2cdetect -l
i2c-3 unknown    i915 gmbus dpc                   N/A
i2c-1 unknown    i915 gmbus vga                   N/A
i2c-6 unknown    DPDDC-B                          N/A
i2c-4 unknown    i915 gmbus dpb                   N/A
i2c-2 unknown    i915 gmbus panel                 N/A
i2c-0 unknown    i915 gmbus ssc                   N/A
i2c-5 unknown    i915 gmbus dpd                   N/A

 

acpi 명령을 통해 보면 배터리 상태나 온도등이 그냥 나오네.. 버스가 다른가?

$ acpi -V
Battery 0: Charging, 98%, 00:08:28 until charged
Battery 0: design capacity 3692 mAh, last full capacity 3692 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 28.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 55.0 degrees C
Thermal 1: ok, 0.0 degrees C
Thermal 1: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 1: trip point 1 switches to mode passive at temperature 105.0 degrees C
Thermal 2: ok, 37.0 degrees C
Thermal 2: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 3: ok, 0.0 degrees C
Thermal 3: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 4: ok, 43.0 degrees C
Thermal 4: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 4: trip point 1 switches to mode hot at temperature 99.0 degrees C
Thermal 5: ok, 36.0 degrees C
Thermal 5: trip point 0 switches to mode critical at temperature 128.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: intel_powerclamp no state information available
Cooling 2: x86_pkg_temp no state information available
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10
Cooling 5: LCD 14 of 20
Cooling 6: Processor 0 of 10

 

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu 18.04 hibernate 적용하기  (0) 2019.05.06
intel hd 3000 GLSL  (0) 2019.05.05
우분투 창 전환(그룹) 해제하기  (0) 2019.05.04
우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
Posted by 구차니
Linux/Ubuntu2019. 5. 4. 01:25

설정 - 장치 - 키보드 - 조종 - 창 전환

앱 전환이 동일 그룹으로 묶는 녀석인 듯

 

 

 

[링크 : https://askubuntu.com/questions/123977/how-to-ungroup-windows-on-unity-task-switcher]

'Linux > Ubuntu' 카테고리의 다른 글

intel hd 3000 GLSL  (0) 2019.05.05
linux smbus?  (0) 2019.05.04
우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
ubuntu test page 위치  (0) 2018.12.19
Posted by 구차니