2019년 9월 25일 수요일

debian 10(buster) install 2019

  1. install(with wired-lan)
    1. config wifi
      1. https://wiki.debian.org/iwlwifi
  2. install packages
    1. sakura
    2. syncthing-gtk
      1.  UnicodeDecodeError: 경로에 한글이 있어서...?
      2. locale을 en_US.utf-8로...
        1. https://wiki.archlinux.org/index.php/Locale
    3. git
    4. gnome-extensions 
    5. keepassxc
    6. ibus ibus-hangul ( install by default with kor lang )
    7. telegram-desktop
    8. fonts-noto-cjk
    9. visual-studio-code
      1. https://tecadmin.net/install-visual-studio-code-editor-ubuntu/ 
      2. visual-studio-code-plugins
  3. config
    1. turn off visual bell
    2. rotate screen manually
      1. https://unix.stackexchange.com/questions/464947/how-to-programmatically-rotate-the-screen-in-gnome-3-28-wayland 
    3. fractional scaling
      1. https://teqnograf.blogspot.com/2019/08/gnome-332-fractional-https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_L380_Yogascaling.html
    4. ibus + telegram-desktop
      1. https://blog.kjwon15.net/2019/07/15/fix-ibus-qt5/
    5. lightdm / font size
      1. /etc/lightdm/lightdm-gtk-greeter.conf
        1. xft.dpi = 144 
  4. cons
    1. ugly title bar font with fractional scaling

2019년 9월 17일 화요일

visual studio code plugins

  • https://marketplace.visualstudio.com/items?itemName=geequlim.godot-tools
  • https://marketplace.visualstudio.com/items?itemName=wmaurer.change-case
  • https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow
  • https://marketplace.visualstudio.com/items?itemName=DmitryDorofeev.empty-indent 
  • gitlens
  • vscode-icons

2019년 9월 11일 수요일

linux intel sound stuttering after suspend/resume

sudo vi /etc/modprobe.d/snd_hda_intel.conf options snd_hda_intel power_save=0 power_save_controller=N

https://forum.manjaro.org/t/sound-stuttering/47673
https://wiki.archlinux.org/index.php/Kernel_module

2019년 9월 8일 일요일

How to make your own amazfit verge lite/GTS/GTR WF

  • Requirements
    • PC
    • text editor
      • vscode, notepad++, sublime text, atom, whatever...
    • image editor
      • gimp, MS paint, photoshop, ...
    • tool
      • https://github.com/ghtalpo/py_amazfit_tools 
      • https://github.com/amazfitbip/py_amazfit_tools/releases
      • https://github.com/ghtalpo/py_amazfit_tools/tree/master/resunpacker_qzip_bin
  • Step 1(uncompress)
    • If WF has zip or cmp on their name, it is compressed.
    • use resunpacker in resunpacker_qzip_bin to uncompress it
  • Step 2 (unpack)
    • If you know what Python is and how to use cmd(or shell, terminal)
      • install python3
      • install pip
      • install pillow (using pip)
      • go to the tool directory
      • packing demo watchface
        • "python main.py example_watchface/demo.json"
        • this will generate demo_packed.bin, demo_packed_animated.gif, demo_packed.log in example_watchface folder
        • open demo.json with text editor and you can easily understand what each section is.
      • unpacking watchface
        • download WF on online
        • "python main.py SOME_WATCH_FACE_NAME.bin"
        • this will geneate SOME_WATCH_FACE_NAME folder with one json and lots of pngs
          • if not, make sure bin is valid WF for verge lite.
            • there's some variants in amazfit(verge lite, mi band, bip, gtr and more?)
          • if that WF is working in your watch correctly, please submit a issue on github
    • If you don't know about Python and cmd stuffs
      • use main.exe
        • packing demo watchface
        • drag & drop example_watchface/demo.json onto main.exe(from uncompressed folder)
      • unpacking watchface
        •  drag & drop SOME_WATCH_FACE_NAME.bin onto main.exe(from uncompressed folder)
  • Step 3 (edit .json)
    • syntax is relatively simple but there's some trick in there
    • you can learn by uncompress others' WF.
  • Step 4 (pack)
    • read Step 2
    • check your new WF size
      • if it is too big, your watch will be unstable or some part will be missing
      • HW limitation
        • 1.5 MiB for GTS
        • 2.0 MiB for GTR(maybe) 
    • Keep your .bin size small
  • Step 5 (compress)
    • use respacker in resunpacker_qzip_bin
    • this will reduce WF size and time for installation on your watch
  • Nothing happened or seems not working?
    • there'll be a WATCH_FACE_NAME.log after packing/unpacking
    • look up the last 20(?) lines to see what happened
    • names of pngs should be continuous
    • battery without percent cause trouble in GTS
  • Done?
    • Unpack other's WFs to learn some tricks
    • Have a fun and make lot of WFs!
  • KEEP YOUR WF SMALL AT ANY COST!

    2019년 9월 6일 금요일

    archlabs install 2019


    1. turn off secure boot
      1. security -> secure boot
        1. secure boot -> disabled
        2. reset to setup mode
    2. install archlabs
    3. install packages
      1. yay
      2. visual-studio-code-bin
      3. godot-bin
      4. timeset
      5. python-pip
      6. gnome-tweaks 
      7. gitflow-fishcompletion-avh 
      8. syncthing-gtk
        1.  UnicodeDecodeError: 경로에 한글이 있어서...?
        2. locale을 en_US.utf-8로...
          1. https://wiki.archlinux.org/index.php/Locale
      9. keepassxc
      10. chrome-gnome-shell 
        1. https://teqnograf.blogspot.com/2018/07/gnome-extensions.html
      11. ibus
      12. telegram-desktop-bin
      13. mcomix
      14. ttf-d2coding
      15. otf-fira-mono 
      16. pcmanfm
        • smb
          • install gvfs-smb
    4. config
      1. enable gdm
      2. turn off visual bell
      3. rotate screen manually
        1. https://unix.stackexchange.com/questions/464947/how-to-programmatically-rotate-the-screen-in-gnome-3-28-wayland 
      4. rotate screen automatically(not working?)
        1. https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_L380_Yoga
      5. fractional scaling
        1. https://teqnograf.blogspot.com/2019/08/gnome-332-fractional-https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_L380_Yogascaling.html
      6. ibus + telegram-desktop
        1. https://blog.kjwon15.net/2019/07/15/fix-ibus-qt5/
      7. gnome disable 3rd button paste
        1. https://www.reddit.com/r/archlinux/comments/8d1us1/disable_middle_click_paste/
      8. firefox plugins
        1. ublock origin
        2. noscript
        3. zoom page we
      9. visual studio code plugins
      10. termite
        1. https://wiki.archlinux.org/index.php/termite#Font

     

    2019년 7월 7일 일요일

    체리 G80-1865 SA 키캡 삽질기

    1. 체리 g80-1865LXNKO
      1. 체리 g80-18xx
        1. 체리사의 컴팩트 키보드
          1. 일반 키보드와 TKL키보드의 중간 형태
        2. https://deskthority.net/wiki/Cherry_G80-1800
      2. 다른 사람의 개봉기
      3. 정보
        1. NKRO 6+1
      4. 키캡 재질
        1. POM?(스페이스 바는 PBT인 듯)
          1. 오래 쓰니 키캡이 번들거림
      5. 키캡 인쇄
        1. 음각(+잉크)? 레이저마킹
          1. (장) 감촉으로 키 위치를 알 수 있음
          2. (단) 오래 쓰니 잉크가 날아가서 지저분함
      6. 키 배열
        1. 스페이스바 6u
          1. 보통 스페이스 바는 6.25u 크기인데 반해, 이 키보드는 6u크기임
          2. (그나마) 보통 6u스페이스 바는 중앙에 스위치 연결 구멍이 있는데 반해, 이 키보드는 중앙에서 약간 우측에 연결 구멍이 있음
        2. 스페이스바 좌측 ctrl, windows, alt 1u
        3. 스페이스바 우측 alt, windows, menu, ctrl 1u
    2. SA 키캡이 예뻐서 바꾸려고 시도
      1. SA 키캡은 대중적인 인기가 없어서, 보통 키캡(체리나 OEM 프로필)에 비해 선택의 폭이 적음
    3. 위의 조건(우편향 6u 스페이스바, 1u짜리 좌우측 키, sa키캡) 때문에,  이 키보드에 맞는 SA 키캡은 하늘에 별 따기(존재는 할까?)
      1. 키캡 세트에 6u크기의 스페이스바가 존재해야 함(!!!)
      2. 1u짜리 좌우측 키 여분이 있어야 함(104~108키만 들어 있으면 안 됨)
    4. 후보
      1. (아콘) SA9009
        1. 예쁨, 키캡 여분 많음
        2. 품절
      2. SA PBT 제어 코드
        1. 예쁨, 적절한 여분 키캡
        2. 6u 스페이스 바 없음
      3. 아콘  SA뗑컨 승화키캡 세트
        1. 키캡 여분 많음, 6u스페이스 바(중앙 정렬), 비쌈
        2. 반품(해결법 몰라서)
      4. 키아노 SA_PBT_염료승화_쵸크 키캡
        1. 키캡 적당, 6u스페이스 바(중앙 정렬), 그럭저럭
        2. 절망
    5. 해결
      1. 배열 개조
        1. 원상 복구 불가능, 직접 시도 불가능, 포기
      2. 힌트: 스템 수정
      3. 힌트: 스템 이식
        1. 다른 키캡에서 스템(키캡 연결 부분)을 잘라서 접착제로 옮겨 붙임
        2. 접착제의 내구성에 의심이 감
      4. 힌트: 블루텍
        1. 스위치쪽에 많이 넣으면 넘쳐서 스위치 동작이 이상하게 됨(다시 안 올라옴)
        2. 몇번 자리 바꿔 붙여서 해결(!)
        3. 내구성이 좋기를 바래 봄

    void vscode/firefox open dialog not working

     install nautilus