Linux/Ubuntu2020. 9. 23. 16:53

두개 노트북에 자료가 있어서 하나를 매번 지우고 복사하려니 귀찮기도 하고..

양쪽으로 변경되는게 있을 경우 어떻게 해야 하나 고민하다가 생각나서 찾아보는데..

이걸 내가 글쓴적이 한번도 없을리가 없는데 안나오네...

 

아무튼 mtime(modified time)을 기준으로 복사한다고 한데..

       Rsync finds files that need to be transferred  using  a  "quick  check"
       algorithm  (by  default) that looks for files that have changed in size
       or  in  last-modified  time.   Any  changes  in  the  other   preserved
       attributes  (as  requested by options) are made on the destination file
       directly when the quick check indicates that the file’s data  does  not
       need to be updated.

[링크 : https://linux.die.net/man/1/rsync]

 

영 찜찜하면 --checksum 옵션으로 다를 경우 하는게 안전할지도 모르겠다.

 

src, dest 순서로 지정하고 복사하면 되는데 일단 백업해놓고 해봐야겠다..

Access via remote shell:
  Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST]
  Push: rsync [OPTION...] SRC... [USER@]HOST:DEST

 


기본적으로 rsync는 파일의 크기와 수정 시간(modification)을 비교하는 것으로 파일을 전송할지 말지를 결정한다. 이 방법은 아주 작은 CPU 자원을 소모하지만 실수가 발생할 수 있다. 일반적으로 파일의 내용을 변경하면 크기와 수정시간이 변하지만 항상 그렇다고 단정할 수는 없기 때문이다.
--checksum 옵션을 이용하면 비교 방법을 개선할 수 있다. 이 옵션을 켜면, 파일의 checksum을 비교한다. 크기/시간을 이용한 비교 방법보다 안전하지만 더 느리고 더 많은 자원을 사용한다.

[링크 : https://www.joinc.co.kr/w/Site/Tip/Rsync]

 

rsync 는 파일이 목적지에 존재할 경우 생성 시간과 크기를 비교해서 동일할 경우 건너뜀.

[링크 : https://www.lesstif.com/system-admin/rsync-data-backup-12943658.html]

Posted by 구차니
Linux/Ubuntu2020. 9. 22. 17:40

특이하게도 apt-get으로 삭제하면 설치되어 있지 않다고 나온다?

$ sudo apt-get remove gnome-calculator
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
패키지 'gnome-calculator'는 설치되어 있지 않아, 지우지 않았습니다.
0개 업그레이드, 0개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.

 

아래처럼 snap을 통해서 지우고 apt로 설치하면 해결.. (이게 머야!)

$ sudo snap remove gnome-calculator
$ sudo apt install gnome-calculator

[링크 : https://askubuntu.com/questions/1031673/cannot-open-calculator-app-from-keyboard-calculator-button]

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

ipmitool  (0) 2020.09.24
rsync with ssh  (0) 2020.09.23
ubuntu 18.04 tweak 설치하고 우클릭 안될 경우  (0) 2020.09.10
wacom 펜 타블렛 멀티터치로 zoom 작동 시키기  (0) 2020.09.08
ubuntu gnome 패널에 날짜 출력하기  (0) 2020.09.07
Posted by 구차니
Linux/Ubuntu2020. 9. 10. 15:01

시간 설정 바꾼다고 tweak깔았더니.. 그때 부터인지 모르겠지만 터치패드에서 마우스 우클릭이 안된다?

검색을 해보니 tweak - 키보드와 마우스 - 마우스 클릭 흉내를

손가락에서 영역으로 바꾸면 터치패드에서 우클릭이 된다.

 

[링크 : https://websetnet.net/ko/quick-fix-touchpad-right-click-not-working-in-ubuntu-18-04/]

Posted by 구차니
Linux/Ubuntu2020. 9. 8. 19:20

예전에 했었는데 왜 그때는 안되었고 지금은 될까 -ㅁ-?

2019/12/28 - [개소리 왈왈/컴퓨터] - 2760p wacom 화면 멀티터치 살리기

 

바탕화면에서 아이콘이 작을 경우 클릭이 거의 안되고(안되는건지 거의 안되는건지 모르겠다)

크롬과 PDF 뷰어에서 정상작동하는걸 확인했으니 쓸만할 듯

 

 

1회성으로 테스트

$ xsetwacom --set "Wacom Serial Penabled 2FG Touchscreen Finger touch" Gesture off

[링크 : https://askubuntu.com/questions/1140062/]

 

영구 설정

ubuntu 18.04 / HP 2760p 확인

$ sudo vi /usr/share/X11/xorg.conf.d/81-local-touchscreen-tweaks.conf
# Tweaks for the Wacom touchscreen on a ThinkPad X201 Tablet.
Section "InputClass"
    Identifier "local touchscreen tweaks"

    # Product to configure.
    MatchProduct "Wacom Serial Penabled 2FG Touchscreen Finger"

    # Driver to use for this device.
    # (Identical to the default, so not essential to mention.)
    Driver "wacom"

    # Disable multi-touch gestures to fix tap-to-click issues.
    Option "Gesture" "off"
EndSection

[링크 : https://askubuntu.com/questions/1051343/where-is-the-xorg-conf-file-in-ubuntu-18-04]

 

 

Posted by 구차니
Linux/Ubuntu2020. 9. 7. 10:40

clock override 라는 확장기능을 추가하면 끝

얘를 접근하려면 tweaks / 그놈 기능 개선도 깔아주면 좋다.

 

개인적으로는

%F %A %R:%S

설정으로 사용

 

[링크 : http://ubuntuhandbook.org/index.php/2019/02/customize-time-date-format-ubuntu-18-04-gnome-panel/]

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

ubuntu 18.04 tweak 설치하고 우클릭 안될 경우  (0) 2020.09.10
wacom 펜 타블렛 멀티터치로 zoom 작동 시키기  (0) 2020.09.08
ubuntu 18.04 모니터간 창이동  (0) 2020.09.03
ubuntu sticky note  (0) 2020.09.02
pinta vs xpaint  (0) 2020.09.02
Posted by 구차니
Linux/Ubuntu2020. 9. 3. 10:26

Super + shift + arrow 모니터간 이동

Super + arrow는 모니터 내 절반씩 이동

[링크 : https://askubuntu.com/questions/1033018/]

 

윈도우 처럼 모니터 넘어가면서 반반 나누는건 없나?

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

wacom 펜 타블렛 멀티터치로 zoom 작동 시키기  (0) 2020.09.08
ubuntu gnome 패널에 날짜 출력하기  (0) 2020.09.07
ubuntu sticky note  (0) 2020.09.02
pinta vs xpaint  (0) 2020.09.02
한컴 오피스 뷰어 / 우분투  (0) 2020.09.01
Posted by 구차니
Linux/Ubuntu2020. 9. 2. 14:14

얘가 깔끔해 보이네?

다만 기본 색상은 3M 포스트 잇 같은 짙은 노란색 하나 뿐이고

설정에서 여러가지 색을 넣어주고 지정해 주어야 하며

기본 리눅스 폰트로는 한글쪽 폰트 사이즈가 적용이 되지 않아

적절한 폰트를 좀 더 찾아 보거나 나눔고딕등을 해야 하나 고민중

 

sudo add-apt-repository ppa:umang/indicator-stickynotes
sudo apt-get update
sudo apt-get install indicator-stickynotes

 

[링크 : https://wisdom-something.tistory.com/9]

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

ubuntu gnome 패널에 날짜 출력하기  (0) 2020.09.07
ubuntu 18.04 모니터간 창이동  (0) 2020.09.03
pinta vs xpaint  (0) 2020.09.02
한컴 오피스 뷰어 / 우분투  (0) 2020.09.01
hpl on ubuntu 18.04  (0) 2020.09.01
Posted by 구차니
Linux/Ubuntu2020. 9. 2. 11:47

개인적으로는 pinta의 압승

xpaint는 단축키도 없고 선택창이 따로 있어서 애매하게 불편한 느낌

xpaint의 장점은 선택영역을 "File-Save Region"으로 한번에 png로 저장이 가능하다는 점?

 

[링크 : https://www.quora.com/What-is-the-Linux-equivalent-of-MS-Paint]

 

xpaint

Save Region이 좋음(png로 저장) 단 버그가 있는지 파일명 입력이 안되는 것 처럼 보임(입력은 됨)

단축키도 없고(ctrl-z도 안됨) 창이 분리되어 있어서 번거로움

 

pinta

단축키가 있어서 좋고, 영역설정후 윈도우와는 다르게 영역 변경이 가능하다.

하지만 기본이 jpeg로 저장되는건 조금 아쉬움

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

ubuntu 18.04 모니터간 창이동  (0) 2020.09.03
ubuntu sticky note  (0) 2020.09.02
한컴 오피스 뷰어 / 우분투  (0) 2020.09.01
hpl on ubuntu 18.04  (0) 2020.09.01
ubuntu 18.04 UEFI로 설치하기  (0) 2020.09.01
Posted by 구차니
Linux/Ubuntu2020. 9. 1. 18:13

아래의 명령대로 설치하니 문제없이 되긴 한다.

그런데.. 기업용 뷰어는 따로 신청하라는데.. 뷰어도 기업에서는 무료가 아닌건가?

$ sudo apt-get install libwebkitgtk-3.0-0 libjavascriptcoregtk-3.0-0 gvfs
$ sudo dpkg -i hancomoffice-hwpviewer-Ubuntu-amd64.deb

 

[링크 : https://www.hancom.com/cs_center/csDownload.do]

[링크 : https://wiki.debianusers.or.kr/index.php?title=HWP_viewer]

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

ubuntu sticky note  (0) 2020.09.02
pinta vs xpaint  (0) 2020.09.02
hpl on ubuntu 18.04  (0) 2020.09.01
ubuntu 18.04 UEFI로 설치하기  (0) 2020.09.01
sysbench cpu 벤치마크 하기  (0) 2020.07.14
Posted by 구차니
Linux/Ubuntu2020. 9. 1. 15:36

HPL(High Performance LINPACK) 을 한번 돌려봄.

특이하게(?)도 openMPI를 통해서만 구동이 되고, 단독으로 실행시 아래의 에러가 발생한다.

$  ../xhpl 
HPL ERROR from process # 0, on line 419 of function HPL_pdinfo:
>>> Need at least 4 processes for these tests <<<

HPL ERROR from process # 0, on line 621 of function HPL_pdinfo:
>>> Illegal input in file HPL.dat. Exiting ... <<<

[링크 : https://cs.kaist.ac.kr/upload_files/report/1227159241.pdf]

 

checking for dgemm_ in OpenBLAS... checking for dgemm_ in -lopenblas... no
no
configure: error: BLAS not found

libatlas-base-dev 패키지 설치

[링크 : https://qastack.kr/ubuntu/623578/installing-blas-and-lapack-packages]

 

In file included from ../include/hpl.h:80:0,
                 from auxil/HPL_dlatcpy.c:50:
../include/hpl_pmisc.h:54:10: fatal error: mpi.h: 그런 파일이나 디렉터리가 없습니다
 #include "mpi.h"
          ^~~~~~~

libopenmpi-dev, mpich 패키지 설치 이후 configure 재실행

[링크 : https://stackoverflow.com/questions/26920083/fatal-error-mpi-h-no-such-file-or-directory-include-mpi-h]

 

 

+

~/src/hpl-2.3/testing/ptest$ mpirun --allow-run-as-root -np 4 ../xhpl

[링크 : https://conservative-vector.tistory.com/entry/도커에서-HPL-이용하기]

[링크 : https://github.com/spack/spack/issues/6340]

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

pinta vs xpaint  (0) 2020.09.02
한컴 오피스 뷰어 / 우분투  (0) 2020.09.01
ubuntu 18.04 UEFI로 설치하기  (0) 2020.09.01
sysbench cpu 벤치마크 하기  (0) 2020.07.14
ubuntu 노트북에서 gpsd 테스트  (0) 2020.04.19
Posted by 구차니